.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;
    touch-action: manipulation;
}

.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%);
}

@media (hover: none), (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primary:hover,
    .btn-accent:hover {
        background: var(--cta-gradient);
    }

    .btn-secondary:hover,
    .btn-google:hover {
        background: #fff;
    }
}

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

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

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.auth-card {
    padding: 1.4rem;
}

.auth-card h2 {
    margin-bottom: 0.5rem;
}

.auth-card h3 {
    margin-bottom: 0.8rem;
}

.social-login-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.social-provider-form {
    flex: 1 1 240px;
    margin: 0;
}

.social-provider-google {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.google-signin-slot {
    width: 100%;
    min-height: 58px;
}

.google-signin-slot > div {
    width: 100% !important;
}

.google-signin-slot iframe {
    margin: 0 auto !important;
}

.google-auth-helper {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-500);
    font-weight: 600;
}

.social-auth-btn {
    width: 100%;
    min-height: 58px;
    gap: 0.75rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.social-auth-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.auth-note {
    margin-top: 0.95rem;
    font-size: 0.92rem;
    color: var(--text-500);
    text-align: center;
}

.auth-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.auth-benefit-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-700);
}

.auth-benefit-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--sky-strong);
    transform: translateY(-50%);
}

.auth-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.auth-link-row-centered {
    justify-content: center;
}

.auth-helper-text {
    color: var(--text-500);
    font-size: 0.92rem;
}

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

.section-head h2 {
    margin-bottom: 0 !important;
}

.section-head a {
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 1;
    text-decoration: none;
    color: var(--text-900);
    font-weight: 700;
}

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

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

.card-carousel::-webkit-scrollbar {
    display: none;
}

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

.carousel-container {
    position: relative;
}

.card-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #d0e6f8;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    color: #00a9ef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: #00a9ef;
    color: #ffffff;
}

.prev-arrow {
    left: -15px;
}

.next-arrow {
    right: -15px;
}

.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;
    touch-action: manipulation;
}

.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;
    touch-action: manipulation;
}

.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-meta-row,
.media-card .card-tag,
.media-card h3,
.media-card .description-container,
.media-card .card-footer {
    margin-left: 1rem;
    margin-right: 1rem;
}

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

.media-card .card-tag {
    margin-top: 0;
}

.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-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.45rem;
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: #fff8df;
    border: 1px solid #f5df9a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.star-rating.is-unrated {
    background: #f8fafc;
    border-color: #dbe7f2;
}

.star-rating-track {
    display: inline-flex;
    gap: 0.02rem;
    line-height: 1;
}

.rating-star {
    position: relative;
    display: inline-block;
    color: #d4dee8;
    font-size: 0.92rem;
}

.rating-star.is-filled {
    color: #f6b800;
}

.rating-star.is-half::after {
    content: "\2605";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f6b800;
}

.star-rating-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8d6500;
}

.star-rating.is-unrated .star-rating-value {
    display: none;
}

.card-star-rating {
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.18rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.card-star-rating .star-rating-track {
    gap: 0.08rem;
}

.card-star-rating .rating-star {
    font-size: 0.82rem;
    line-height: 1;
}

.card-star-rating .star-rating-value {
    display: none;
}

.card-meta-row .card-tag {
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .card-meta-row {
        gap: 0.32rem;
    }

    .card-meta-row .card-tag {
        padding: 0.28rem 0.56rem;
        font-size: 0.7rem;
    }

    .card-star-rating .rating-star {
        font-size: 0.72rem;
    }

    .card-star-rating .star-rating-track {
        gap: 0.04rem;
    }
}

.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: none;
}

/* 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; }

.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;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    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) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .social-provider-form {
        flex-basis: 100%;
    }

    .auth-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-link-row .btn,
    .auth-link-row form {
        width: 100%;
    }

    .header-main-row {
        border-top: 0;
        padding: 0 0.8rem 0.8rem;
    }

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

    .main-nav {
        display: none;
        width: 100%;
        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;
        position: fixed;
        top: 78px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 96px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        z-index: 1000001;
    }

    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        z-index: 999999;
    }

    .mobile-menu-backdrop[hidden] {
        display: none;
    }

    .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) {
    .carousel-arrow {
        display: none;
    }

    .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;
    }

    .footer-grid > div {
        justify-items: center;
        text-align: center;
    }

    .footer-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

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

    .contact-list li {
        justify-content: center;
    }

    .footer-links {
        justify-items: 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;
    }
}

/* =========================================================
   Global Header Layer + Dropdown Readability + Mobile Brand Size
========================================================= */
.site-header, header, .nav-wrap {
    position: relative !important;
    z-index: 1000 !important;
}

.home-v2-header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
}

/* 2. Dropdown container: always above header/content */
.dropdown,
.sub-menu,
.main-nav > .has-dropdown > .dropdown {
    position: absolute !important;
    z-index: 1001 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* 3. Lower all hero/banner/sections beneath header layer */
.page-head,
.category-hero,
.section {
    position: relative !important;
    z-index: 1 !important;
}

.dropdown a,
.sub-menu a,
.dropdown-item {
    color: #111827 !important;
    font-weight: 600 !important;
}

.dropdown a:hover,
.sub-menu a:hover {
    color: #00acef !important;
}

@media (max-width: 768px) {
    .header-brand img, .brand img {
        height: 38px !important;
        transform: translateY(-2px) !important;
    }

    .header-brand-text strong, .brand strong {
        font-size: 1.15rem !important;
    }

    .header-brand-text span, .brand small {
        font-size: 0.75rem !important;
    }

    .header-brand, .brand {
        gap: 6px !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        position: fixed !important;
        top: 25px !important;
        right: 15px !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 1000000 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 172, 239, 0.2) !important;
    }

    .nav-wrap {
        align-items: flex-start !important;
        padding-top: 15px !important;
    }

    .page-home .site-header,
    .home-v2-header {
        position: absolute !important;
        background: transparent !important;
    }
}

/* Keep mobile accordion dropdown behavior intact */
@media (max-width: 1024px) {
    .dropdown,
    .sub-menu,
    .main-nav > .has-dropdown > .dropdown {
        position: static !important;
        z-index: auto !important;
    }
}

/* =========================================================
   Card CTA Bottom Alignment (Global)
========================================================= */
/* 1) Stretch card to full track/grid height */
.travel-card,
.package-option-card,
.media-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* 2) Grow body/content area to consume free space */
.option-body,
.media-card .card-body,
.card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* 3) Anchor footer CTA to bottom edge */
.card-footer,
.hotel-card-footer {
    margin-top: auto !important;
    padding-top: 1rem !important;
}

/* =========================================================
   Final Global Dropdown Layer Fix
========================================================= */
header,
.site-header,
.nav-wrap {
    overflow: visible !important;
    z-index: 1000 !important;
}

.dropdown,
.sub-menu {
    display: none;
    position: absolute !important;
    z-index: 1001 !important;
    background: #fff !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.mobile-open > .dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@media (hover: none), (pointer: coarse) {
    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
    }
}

@media (max-width: 1024px) {
    .main-nav > .has-dropdown {
        display: block;
    }

    .main-nav > .has-dropdown > .dropdown,
    .main-nav > .has-dropdown.mobile-open > .dropdown {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin-top: 0.35rem;
        box-shadow: none;
    }
}

.page-head,
.category-hero,
.hero-v2 {
    z-index: 1 !important;
}

.site-header,
.nav-wrap {
    overflow: visible !important;
}

/* Inner pages: prevent title overlap with non-fixed absolute header layouts */
.main-content {
    padding-top: 0;
}

.page-head {
    margin-top: 20px;
}

/* Image lightboxes/modals must sit above header/dropdowns */
.fslightbox-container,
.lg-container,
.modal-overlay,
.lightbox-overlay,
.glightbox-container {
    z-index: 9999 !important;
}

/* Backdrop must stay BELOW the lightbox media plane */
.goverlay,
.lg-backdrop,
.lightbox-overlay,
.modal-overlay {
    z-index: 9990 !important;
}

/* Softer gallery backdrop (desktop + mobile) */
.fslightbox-container,
.lg-backdrop,
.lightbox-overlay,
.goverlay {
    background-color: rgba(0, 0, 0, 0.42) !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* Keep lightbox media plane clean (no extra dark layer over the image) */
.glightbox-container .gslide-media,
.glightbox-container .gslide-image,
.glightbox-container .ginner-container,
.glightbox-container .gslide-inner-content {
    background: transparent !important;
    filter: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Gallery image prominence */
.fslightbox-source,
.lg-image,
.glightbox-container .gslide-image img,
.glightbox-container .gslide-media img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    filter: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Kill any inline JS-injected filter/opacity on modal images */
.glightbox-container .gslide-image img[style*="filter"],
.glightbox-container .gslide-media img[style*="filter"],
.glightbox-container .gslide-image img[style*="opacity"],
.glightbox-container .gslide-media img[style*="opacity"] {
    filter: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
}

/* Keep header below modal layers */
.site-header,
header,
.nav-wrap {
    z-index: 1000 !important;
}

/* =========================================================
   Global Black Text System (Buttons Excluded)
========================================================= */
/* Header logo text: keep same black tone as Home on all pages */
.header-brand-text strong,
.brand strong,
.header-brand-text span,
.brand small {
    color: #000 !important;
}

/* 1) Header menu text: force black on all states */
.main-nav > a,
.main-nav > .has-dropdown > a,
.main-nav > .admin-link {
    color: #000 !important;
}

.main-nav > a:hover,
.main-nav > .has-dropdown > a:hover,
.main-nav > .admin-link:hover,
.main-nav > a.active,
.main-nav > .has-dropdown.active > a {
    color: #000 !important;
}

/* 2) Category hierarchy: major black / sub slightly lighter black */
.catalog-sidebar .chip,
.hotel-sidebar .chip {
    color: #000 !important;
}

.catalog-sidebar .chip.sub,
.hotel-sidebar .chip.sub {
    color: #4b5563 !important;
}

.catalog-sidebar .chip.sub::before,
.hotel-sidebar .chip.sub::before {
    background-color: #9ca3af !important;
}

.catalog-sidebar .chip.sub.active,
.hotel-sidebar .chip.sub.active {
    color: #111827 !important;
}

.catalog-sidebar .chip.sub.active::before,
.hotel-sidebar .chip.sub.active::before {
    background-color: #00acef !important;
}

/* 3) Cell/body text across cards/panels/tables (non-button text) */
.panel h1, .panel h2, .panel h3, .panel h4,
.panel p, .panel li,
.catalog-content h1, .catalog-content h2, .catalog-content h3,
.catalog-content p, .catalog-content li,
.travel-card h1, .travel-card h2, .travel-card h3, .travel-card h4,
.travel-card p, .travel-card .description, .product-desc, .description,
.menu-box h1, .menu-box h2, .menu-box h3, .menu-box h4,
.menu-box p, .menu-box li, .menu-box a,
.clean-table th, .clean-table td,
.rent-table th, .rent-table td,
.rent-card-header h3, .rent-card-body, .rent-card-body p, .rent-card-body li,
.info-list li, .about-info-list li, .about-info-list li div,
.section-head h1, .section-head h2, .section-head h3,
.section-head p, .section-head a {
    color: #111111 !important;
}

/* Keep button text untouched */
.btn,
button,
.price-badge,
.card-footer a,
.hotel-card-footer a,
.home-price-cta,
.catalog-price-cta {
    color: inherit;
}

/* =========================================================
   Pagination
========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    border-color: var(--sky-strong);
    color: var(--sky-strong);
}

.pagination .page-link.active {
    background: var(--sky-strong);
    color: #ffffff;
    border-color: var(--sky-strong);
}

.pagination .page-link.is-ellipsis {
    background: #ffffff;
    color: #6b7280;
    border-style: dashed;
    cursor: default;
    pointer-events: none;
}

/* =========================================================
   Mobile Footer Center Lock (Final Override)
========================================================= */
@media (max-width: 768px) {
    .site-footer .footer-grid,
    .site-footer .footer-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    .site-footer .footer-grid > div {
        width: 100%;
        display: grid !important;
        justify-items: center !important;
        align-content: start;
        text-align: center !important;
    }

    .site-footer .footer-brand {
        width: 100%;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .site-footer .footer-brand-text {
        justify-items: center !important;
        text-align: center !important;
    }

    .site-footer .footer-grid h4,
    .site-footer .footer-grid p,
    .site-footer .footer-grid li,
    .site-footer .footer-links a {
        width: 100%;
        text-align: center !important;
    }

    .site-footer .footer-grid ul {
        width: 100%;
        padding-left: 0 !important;
        list-style: none;
        justify-items: center !important;
    }

    .site-footer .contact-list li {
        justify-content: center !important;
    }
}

/* Final header submenu rules: isolate nav accordion/dropdown from generic global dropdown overrides */
.main-nav > .has-dropdown > .nav-parent-link {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0.52rem 0.88rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-nav > .has-dropdown > .nav-parent-link:hover,
.main-nav > .has-dropdown > .nav-parent-link:focus-visible,
.main-nav > .has-dropdown.active > .nav-parent-link {
    color: #000;
}

.main-nav > .has-dropdown > .nav-parent-link:focus-visible {
    outline: 2px solid rgba(0, 172, 239, 0.35);
    outline-offset: 2px;
}

.main-nav > .has-dropdown > .nav-parent-link::after {
    content: '▾';
    margin-left: 0.75rem;
    font-size: 0.72rem;
    line-height: 1;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.main-nav > .has-dropdown.mobile-open > .nav-parent-link::after {
    transform: rotate(180deg);
}

.main-nav > .has-dropdown > .nav-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.2rem);
    min-width: 220px;
    margin: 0;
    padding: 0.45rem;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--cloud-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1002;
}

.main-nav > .has-dropdown.mobile-open > .nav-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav > .has-dropdown > .nav-submenu > li {
    position: relative;
}

.main-nav > .has-dropdown > .nav-submenu a {
    display: block;
    border-radius: 18px;
    padding: 0.52rem 0.72rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 600;
}

.main-nav > .has-dropdown > .nav-submenu a:hover {
    background: #e8f6ff;
    color: #111827;
}

.main-nav > .has-dropdown > .nav-submenu .nav-submenu-overview a {
    font-weight: 700;
}

@media (min-width: 1025px) {
    .main-nav > .has-dropdown:hover > .nav-submenu,
    .main-nav > .has-dropdown:focus-within > .nav-submenu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (hover: none), (pointer: coarse) {
    .main-nav > .has-dropdown > .nav-parent-link:hover {
        background: transparent;
    }

    .main-nav > .has-dropdown > .nav-submenu a:hover {
        background: transparent;
    }
}

@media (max-width: 1024px) {
    body.mobile-menu-open {
        overflow-x: hidden;
        overscroll-behavior: none;
    }

    .main-nav,
    .main-nav > *,
    .main-nav > .has-dropdown,
    .main-nav > .has-dropdown > .nav-parent-link,
    .main-nav > .has-dropdown > .nav-submenu,
    .main-nav > .has-dropdown > .nav-submenu > li,
    .mobile-auth-group,
    .header-search-mobile {
        max-width: 100%;
        min-width: 0;
    }

    .main-nav > .has-dropdown.mobile-open > .nav-submenu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .main-nav > .has-dropdown > .nav-parent-link {
        width: 100%;
    }

    .main-nav > .has-dropdown > .nav-submenu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
        margin-top: 0.35rem;
        padding: 0.15rem 0 0 0.65rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav > .has-dropdown > .nav-submenu a {
        width: 100%;
        padding: 0.5rem 0.72rem;
    }
}
