.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.74rem 1.25rem;
    border-radius: 34px;
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: var(--cta-gradient);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #74c6e8 0%, #00acef 100%);
}

.btn-messenger {
    gap: 0.45rem;
    min-width: 170px;
}

.btn-messenger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.btn-secondary {
    background: #fff;
    color: var(--text-900);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    background: #edf8ff;
}

.btn-accent {
    background: var(--cta-gradient);
    color: #fff;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #74c6e8 0%, #00acef 100%);
}

.btn-google {
    background: #fff;
    color: #202124;
    border: 1px solid #e0e0e0;
}

.btn-facebook {
    background: var(--cta-gradient);
    color: #fff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.section-head a {
    text-decoration: none;
    color: var(--text-900);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.card-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc((100% - 2rem) / 3));
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.15rem 0.2rem 0.9rem;
    scrollbar-width: thin;
}

.card-carousel::-webkit-scrollbar {
    height: 8px;
}

.card-carousel::-webkit-scrollbar-thumb {
    background: #b8daf1;
    border-radius: 999px;
}

.carousel-card {
    scroll-snap-align: start;
}

.travel-card,
.panel,
.empty-card,
.menu-box,
.catalog-sidebar,
.catalog-content,
.site-footer {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--cloud-shadow);
}

.travel-card,
.empty-card {
    border-radius: var(--radius-card);
}

.panel,
.menu-box,
.catalog-sidebar,
.catalog-content,
.site-footer {
    border-radius: 26px;
}

.travel-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.08rem;
}

.travel-card,
.package-card,
.hotel-card,
.pkg-card {
    border-radius: var(--radius-card, 26px);
    overflow: hidden !important;
    background: #ffffff;
}

.travel-card:nth-child(2) {
    animation-delay: 0.04s;
}

.travel-card:nth-child(3) {
    animation-delay: 0.08s;
}

.media-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover,
.media-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    border-radius: inherit;
    text-decoration: none;
    cursor: pointer;
}

.card-cover-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.media-card > :not(.card-cover-link) {
    position: relative;
    z-index: 1;
}

.media-card .card-footer,
.media-card .card-footer a {
    position: relative;
    z-index: 3;
}

.card-media {
    width: 100%;
    min-height: 180px;
    height: clamp(190px, 22vw, 250px);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 -18px 26px rgba(0, 0, 0, 0.12);
}

.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.media-card .card-tag,
.media-card h3,
.media-card .description-container,
.media-card .card-footer {
    margin-left: 1rem;
    margin-right: 1rem;
}

.media-card .card-tag {
    margin-top: 0.84rem;
}

.media-card .card-footer {
    margin-bottom: 0.88rem;
}

.description-container {
    width: 100%;
    padding-right: 0;
}

.product-desc {
    margin: 0;
    line-height: 1.6;
    text-wrap: pretty;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: normal;
}

.product-desc.is-short {
    text-align: left;
}

.card-tag {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    background: #e8f6ff;
    color: #0e4d74;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.8rem;
}

.card-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 52px;
    padding: 0 0.12rem;
    text-align: center;
    line-height: 1.18;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-900);
    cursor: pointer;
}

.price-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    min-height: 52px;
    border-radius: 30px;
    padding: 0.56rem 0.94rem;
    background: var(--cta-gradient);
    color: #fff;
    text-align: center;
    gap: 0.06rem;
}

.price-badge-prefix {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.08;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-badge-amount {
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.01em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-badge.is-contact .price-badge-prefix {
    font-size: 1rem;
    font-weight: 700;
}

.home-card-footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.card-footer a.home-price-cta.price-badge {
    color: #fff;
    text-decoration: none;
    white-space: normal;
    width: min(80%, 230px);
    min-height: 50px;
    padding: 0.36rem 0.8rem;
    border-radius: 30px;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.03rem;
    line-height: 1.05;
    box-shadow: 0 9px 18px rgba(0, 117, 194, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.card-footer a.home-price-cta.price-badge:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 117, 194, 0.2);
    filter: saturate(1.02);
}

.home-price-cta .price-badge-prefix {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.95;
}

.home-price-cta .price-badge-amount {
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1;
}

.home-price-cta.is-contact .price-badge-prefix {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.home-price-cta.is-contact .price-badge-amount {
    font-size: 1.04rem;
}


.panel,
.menu-box {
    padding: 1.1rem;
}

.menu-box ul,
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.menu-box a {
    text-decoration: none;
    color: var(--text-900);
    font-weight: 700;
}

.map-panel iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 24px;
}

.map-frame-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 0;
    box-shadow: inset 0 0 0 1px #d8ebf9;
}

.map-frame-wrap iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    filter: grayscale(0.3) saturate(0.92);
    transition: filter 0.25s ease;
}

.map-frame-wrap:hover iframe {
    filter: grayscale(0) saturate(1);
}


.catalog-sidebar {
    position: sticky;
    top: 6.6rem;
    height: fit-content;
}

.chip {
    display: block;
    margin-top: 0.45rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-700);
    border-radius: 24px;
    border: 1px solid transparent;
    font-weight: 600;
}

.chip.sub {
    margin-left: 0.9rem;
    font-size: 0.9rem;
}

.chip.active,
.chip:hover {
    background: #ebf8ff;
    border-color: #b8e2fa;
    color: var(--text-900);
}

.table-wrap {
    overflow-x: auto;
}

.clean-table,
.rent-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
}

.clean-table th,
.clean-table td,
.rent-table th,
.rent-table td {
    border: 1px solid var(--line);
    padding: 0.68rem 0.8rem;
    text-align: left;
}

.clean-table th,
.rent-table th {
    background: #eaf7ff;
    color: #1f5e89;
    font-size: 0.86rem;
}

.rent-table .route-title-row td {
    background: #dff2ff;
    color: #0e4f75;
    font-weight: 800;
}

.table-note {
    margin: 0.75rem 0;
    color: var(--text-500);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.66rem 0.78rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    font: inherit;
    color: var(--text-900);
    background: #fff;
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--text-700);
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: 0.75rem;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.two-col button,
.form-grid.two-col a,
.form-grid.two-col .check-label {
    width: fit-content;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.check-label input {
    width: auto;
}

.soft-gate {
    text-align: center;
}

.mileage-box {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.mileage-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-900);
}

.mileage-review-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.mileage-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mileage-dashboard-hero h2 {
    margin: 0.2rem 0 0.2rem;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--text-900);
}

.mileage-dashboard-copy {
    margin: 0;
    color: var(--text-700);
}

.mileage-balance-pill {
    min-width: min(100%, 260px);
    border-radius: 26px;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #eef8ff 0%, #dff2ff 100%);
    border: 1px solid #b8daf1;
    text-align: right;
    box-shadow: var(--cloud-shadow);
}

.balance-label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a668f;
    font-weight: 700;
}

.balance-value {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
    color: #0f3454;
}

.mileage-balance-pill small {
    color: #3c6a89;
}

.mileage-mission-grid {
    align-items: stretch;
}

.mission-card {
    display: grid;
    gap: 0.75rem;
}

.mission-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-900);
}

.mission-card p {
    margin: 0;
    color: var(--text-700);
}

.contact-list {
    margin-bottom: 0.65rem;
}

.contact-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.summary-contact {
    display: grid;
    gap: 0.2rem;
    margin-top: 20px;
    padding-top: 0.78rem;
    border-top: 1px solid #e1ecf7;
}

.summary-contact small {
    color: var(--text-500);
}

.summary-trust {
    margin-top: 0.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1f6b95;
}

/* Dynamic Smart Gallery Grid (Adapts to image count) */
.product-gallery-wrap {
    display: grid;
    gap: 10px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

.product-gallery-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.product-gallery-wrap img:hover {
    filter: brightness(0.9);
}

/* 1. Exactly 3 Images Total (1 Big Left, 2 Stacked Right) */
.product-gallery-wrap:has(figure:nth-child(3):last-child) {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.product-gallery-wrap:has(figure:nth-child(3):last-child) figure:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.product-gallery-wrap:has(figure:nth-child(3):last-child) figure:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.product-gallery-wrap:has(figure:nth-child(3):last-child) figure:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }

/* 2. Exactly 4 Images Total (1 Big Left, 1 Wide Top Right, 2 Square Bottom Right) */
.product-gallery-wrap:has(figure:nth-child(4):last-child) {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.product-gallery-wrap:has(figure:nth-child(4):last-child) figure:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.product-gallery-wrap:has(figure:nth-child(4):last-child) figure:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
.product-gallery-wrap:has(figure:nth-child(4):last-child) figure:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.product-gallery-wrap:has(figure:nth-child(4):last-child) figure:nth-child(4) { grid-area: 2 / 3 / 3 / 4; }

/* 3. 5 or More Images Total (1 Big Left, 4 Small Grid on Right) */
.product-gallery-wrap:has(figure:nth-child(5)) {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.product-gallery-wrap:has(figure:nth-child(5)) figure:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.product-gallery-wrap:has(figure:nth-child(5)) figure:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.product-gallery-wrap:has(figure:nth-child(5)) figure:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.product-gallery-wrap:has(figure:nth-child(5)) figure:nth-child(4) { grid-area: 1 / 3 / 2 / 4; }
.product-gallery-wrap:has(figure:nth-child(5)) figure:nth-child(5) { grid-area: 2 / 3 / 3 / 4; }

/* Hide anything beyond 5 images in the desktop grid (they show in lightbox) */
.product-gallery-wrap figure:nth-child(n+6) {
    display: none;
}

.site-footer {
    margin-top: 1rem;
    padding: 1rem 1rem 1.35rem;
    position: relative;
}

.footer-grid,
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4개 컬럼의 너비를 완전히 똑같이 맞춤 */
    gap: 2rem;
    width: 100%;
}

.footer-grid {
    margin-top: 1rem;
    align-items: start;
}

.footer-grid > div {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.42rem;
}

/* 주소와 아이콘이 수직으로 딱 맞게 마지막 컬럼만 정렬 수정 */
/* 로고(첫번째)를 제외한 나머지 3개 컬럼을 모두 중앙 정렬 */
.footer-grid > div:not(:first-child) {
    text-align: center;
}

/* 리스트 항목(전화번호, 링크 등)들도 중앙으로 모아줍니다 */
.footer-grid > div:not(:first-child) .info-list {
    justify-items: center;
}

.footer-grid h2,
.footer-grid h3,
.footer-grid h4,
.footer-grid h5,
.footer-brand {
    margin-top: 0;
}

.footer-grid h2,
.footer-grid h3,
.footer-grid h4,
.footer-grid h5 {
    margin-bottom: 0.8rem !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-900);
}

.footer-col ul,
.info-list,
.footer-grid ul,
.footer-grid p {
    margin-top: 0 !important;
    margin-bottom: 0;
}

.footer-grid ul {
    padding: 0;
}

.footer-grid li,
.footer-grid p,
.footer-grid .footer-links a {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-700);
}

.footer-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-700);
}

.footer-links a:hover {
    color: var(--text-900);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #c9e3f6;
    background: #f4fbff;
    color: var(--text-700);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-1px);
    border-color: #7fc8ee;
    background: #e9f7ff;
    color: var(--text-900);
}

.footer-socials svg {
    width: 22px;
    height: 22px;
}

.admin-image-link {
    display: inline-flex;
    text-decoration: none;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    transform: translateY(-4px);
}

.footer-brand-text {
    display: grid;
    gap: 0.22rem;
    text-align: left;
}

.footer-brand-text strong {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-900);
    line-height: 1.1;
}

.footer-brand-text span {
    font-size: 0.73rem;
    color: var(--text-500);
    line-height: 1.2;
}

.footer-bottom {
    position: static;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: normal;
    align-items: center;
}

.footer-bottom p,
.copyright {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--text-500);
    text-align: center;
}

.footer-bottom p.copyright {
    grid-column: 1 / -1; /* 전체 너비를 쓰되 */
    grid-row: 1;         /* 반드시 첫 번째 줄에 배치! */
    text-align: center;
    margin: 0;
    padding: 0;
    pointer-events: none; /* 글자가 혹시 아이콘을 가려도 클릭은 되게 함 */
}

.footer-socials {
    grid-column: 4;      /* 4번째 칸(주소 아래) 위치 유지 */
    grid-row: 1;         /* 저작권과 똑같은 첫 번째 줄에 배치! */
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    z-index: 10;         /* 아이콘을 글자보다 위로 확실히 올림 */
    position: relative;
}

.info-list li,
.footer-col ul li {
    padding-bottom: 0.6rem;
}

.floating-messenger {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 56;
    text-decoration: none;
    border-radius: 999px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: var(--cta-gradient);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.floating-messenger svg {
    width: 25px;
    height: 25px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Facebook chat plugin fallback: keep it above messenger icon on mobile. */
@media (max-width: 1024px) {
    .fb_dialog,
    .fb_dialog_content,
    .fb_dialog iframe {
        bottom: calc(5.2rem + env(safe-area-inset-bottom)) !important;
    }

    .about-hero {
        padding: 1.5rem;
    }

    .map-frame-wrap iframe {
        min-height: 280px;
    }
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: #1f1d1b;
}

.admin-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f3faff, #e7f3ff);
}

.admin-login-box {
    width: min(560px, calc(100% - 1.2rem));
    margin: 2.2rem auto;
}

.small-note {
    color: var(--text-500);
    font-size: 0.82rem;
}

.room-info-admin-preview {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fcff;
    padding: 0.75rem;
}

.room-info-admin-preview .small-note {
    margin-bottom: 0.45rem;
    display: block;
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 2px solid #e2e8f0;
    display: grid;
    gap: 0.95rem;
}

.admin-form-card h3 {
    margin: 0;
    color: #0f3454;
    font-size: 1.05rem;
    border-bottom: 2px solid #f3faff;
    padding-bottom: 0.72rem;
}

.admin-form-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.form-group {
    display: grid;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 700;
    color: #2f587a;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.helper-text {
    display: block;
    font-size: 0.8rem;
    color: #829ab1;
    margin-top: 0.15rem;
    line-height: 1.4;
    background: #f8fbff;
    padding: 0.5rem;
    border-radius: 8px;
}

.advanced-settings {
    border: 1px dashed #cfe3f3;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    background: #fcfeff;
}

.advanced-settings summary {
    cursor: pointer;
    font-weight: 700;
    color: #2f587a;
    margin-bottom: 0.55rem;
}

.admin-form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

/* Real Admin Image Preview UI */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

/* Cover Image Frame (Matches frontend hero/card ratio) */
.preview-card.is-cover {
    width: 300px;
    aspect-ratio: 4 / 3;
}

/* Gallery Thumbnails */
.preview-card.is-gallery {
    width: 120px;
    aspect-ratio: 1 / 1;
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.preview-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.preview-frame-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 3px 5px;
}

.existing-gallery-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.existing-thumb-item {
    display: grid;
    gap: 6px;
}

.existing-thumb-item .preview-card {
    width: 90px;
    aspect-ratio: 1 / 1;
}

.existing-thumb-item input[type='checkbox'] {
    width: 14px;
    height: 14px;
    margin: 0 4px 0 0;
    accent-color: #0ea5e9;
    vertical-align: middle;
}

.existing-remove-check {
    font-size: 0.75rem;
    color: #334155;
    font-weight: 600;
}

@media (max-width: 768px) {
    .preview-card.is-cover {
        width: min(100%, 280px);
    }

    .preview-card.is-gallery {
        width: 96px;
    }
}

.room-preview-table {
    min-width: 0;
}

.admin-shell {
    display: grid;
    grid-template-columns: 245px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 1rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.45rem;
}

.admin-sidebar nav a {
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    border-radius: 20px;
    color: var(--text-700);
    font-weight: 700;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: #fff1e6;
    color: var(--text-900);
}

.admin-content {
    padding: 1rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.metric-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--cloud-shadow);
    padding: 0.9rem;
}

.metric-grid strong {
    display: block;
    font-size: 1.35rem;
}

.metric-grid span {
    color: var(--text-500);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.actions-cell form {
    margin: 0;
}

.btn-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--text-900);
    font-weight: 700;
}

.btn-link.danger {
    color: #c13e2b;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.seo-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--cloud-shadow);
    padding: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1080px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-option-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 1024px) {
    .nav-wrap {
        grid-template-columns: 1fr auto;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        grid-column: 1 / -1;
        justify-content: flex-start;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 26px;
        padding: 0.65rem;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav > a,
    .main-nav > .has-dropdown > a,
    .main-nav > .admin-link {
        width: 100%;
    }

    .main-nav > .has-dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav > .has-dropdown > a[data-menu-parent]::after {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .has-dropdown.mobile-open > a[data-menu-parent]::after {
        transform: rotate(180deg);
    }

    .dropdown {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        min-width: 0;
        margin-top: 0.25rem;
        padding: 0.2rem 0 0 0.6rem;
    }

    .has-dropdown.mobile-open > .dropdown {
        display: block;
    }

    .split-grid,
    .form-grid.two-col,
    .seo-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-carousel {
        grid-auto-columns: minmax(250px, 46%);
    }

    .floating-messenger {
        bottom: calc(0.9rem + env(safe-area-inset-bottom));
        right: 0.72rem;
    }
}

@media (max-width: 768px) {
    .footer-grid,
    .footer-bottom {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom .copyright {
        grid-column: auto;
        padding-left: 0;
    }

    .footer-socials {
        grid-column: auto;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: calc(100% - 1.4rem);
        padding-bottom: 4.6rem;
    }

    .section {
        margin: 1.2rem 0 2.15rem;
    }

    .brand strong {
        font-size: 0.88rem;
    }

    .brand small {
        font-size: 0.65rem;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .card-media {
        min-height: 180px;
        height: 180px;
    }

    .card-media img {
        min-height: 180px;
    }

    .card-footer {
        column-gap: 0.58rem;
    }

    .card-footer a {
        min-height: 42px;
        font-size: 0.96rem;
    }

    .card-footer a.home-price-cta.price-badge {
        width: 90%;
        min-height: 52px;
        padding: 0.32rem 0.62rem;
    }

    .price-badge {
        min-height: 46px;
        padding: 0.5rem 0.7rem;
        gap: 0.2rem;
    }

    .home-price-cta .price-badge-prefix {
        font-size: 0.9rem;
        letter-spacing: 0.09em;
    }

    .home-price-cta .price-badge-amount {
        font-size: 1.12rem;
        font-weight: 850;
    }

    .media-card .card-tag,
    .media-card h3,
    .media-card .description-container,
    .media-card .card-footer {
        margin-left: 0.9rem;
        margin-right: 0.9rem;
    }

    .media-card .card-tag {
        margin-top: 0.76rem;
    }

    .media-card .card-footer {
        margin-bottom: 0.84rem;
    }

    .price-badge-prefix {
        font-size: 0.82rem;
    }

    .price-badge-amount {
        font-size: 1.02rem;
    }

    .option-media {
        height: 180px;
    }

    .card-carousel {
        grid-auto-columns: minmax(255px, 90%);
        gap: 0.76rem;
        padding: 0.1rem 0.25rem 2.35rem 0.02rem;
        scroll-padding-left: 0.02rem;
    }

    .mileage-review-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand img {
        width: 64px;
        height: 64px;
    }

    .footer-brand-text strong {
        font-size: 0.88rem;
    }

    .footer-brand-text span {
        font-size: 0.65rem;
    }

    .floating-messenger {
        width: 50px;
        height: 50px;
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .page-head,
    .panel,
    .menu-box,
    .site-footer {
        padding: 0.92rem;
    }

}

/* =========================================================
   [디자인 대통합] 선 없는 깔끔한 초승달 메뉴 (웹/모바일 전체 적용)
========================================================= */
.catalog-sidebar .chip.active {
    background: #ffffff !important;
    color: #0f3454 !important;
    border: none !important;
    border-left: 4px solid #00acef !important;
    padding: 0.5rem 1.1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(0, 172, 239, 0.15) !important;
}

/* =========================================================
   [모바일 전용] 메뉴 찌그러짐 방지 및 슬림화
========================================================= */
@media (max-width: 768px) {
    .page-head, .category-hero {
        padding: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    .page-head h1, .category-hero h1, .page-head h2 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }
    .page-head p, .category-hero p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    .catalog-sidebar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 0.2rem 1rem 0.8rem 1rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 0.5rem !important;
        gap: 0.5rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .catalog-sidebar::-webkit-scrollbar {
        display: none;
    }
    .catalog-sidebar h2, .catalog-sidebar h3 {
        display: none !important;
    }
    .catalog-sidebar .chip {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0.4rem 1.1rem !important;
        background: #f1f5f9;
        border: none;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 999px !important;
    }

    .mileage-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .mileage-balance-pill {
        width: 100%;
        text-align: left;
    }
}
