.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
}

.catalog-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.02) 45%),
        radial-gradient(circle at 86% 8%, rgba(186, 231, 255, 0.32) 0%, rgba(186, 231, 255, 0.03) 43%),
        linear-gradient(135deg, #d9efff 0%, #9fdcff 40%, #49c6f7 100%);
}

.catalog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/images/catalog-overlay.jpg') center/cover no-repeat;
    opacity: 0.14;
}

.catalog-hero > * {
    position: relative;
    z-index: 1;
}

.catalog-hero .eyebrow,
.catalog-hero p {
    color: #1f5a82;
}

.hotel-layout {
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
}

.hotel-sidebar,
.hotel-content {
    border-radius: 28px;
}

.hotel-sidebar {
    position: sticky;
    top: 6.6rem;
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.hotel-sidebar h3 {
    margin-bottom: 0.25rem;
}

.hotel-sidebar .chip {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 0.56rem 0.82rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hotel-sidebar .chip.sub {
    margin-left: 0.72rem;
}

.hotel-sidebar .chip:hover {
    background: #e8f6ff;
    color: #0e4d74;
    transform: translateX(5px);
    box-shadow: 0 8px 18px rgba(85, 163, 214, 0.18);
}

.hotel-content h2 {
    margin-bottom: 0.95rem;
}

.catalog-card-grid {
    gap: 0.9rem;
}

.hotel-card {
    border-radius: 30px;
    overflow: hidden;
}

.hotel-card .card-media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}

.hotel-card .card-media img {
    aspect-ratio: 16 / 9;
}

.hotel-card-footer {
    margin-top: 15px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.card-footer a.catalog-price-cta.price-badge {
    width: min(88%, 260px);
    min-height: 58px;
    padding: 0.44rem 0.86rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    white-space: normal;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.04rem;
    box-shadow: 0 12px 24px rgba(0, 117, 194, 0.2);
    cursor: pointer;
}

.card-footer a.catalog-price-cta.price-badge:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 117, 194, 0.24);
    filter: saturate(1.03);
}

.package-option-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.package-option-card .package-cover-link {
    z-index: 2;
}

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

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

.catalog-price-cta .price-badge-prefix {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

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

.catalog-price-cta.is-contact .price-badge-prefix {
    font-size: 0.88rem;
}

.catalog-price-cta.is-contact .price-badge-amount {
    font-size: 1.25rem;
    font-weight: 850;
}

.product-card .description,
.hotel-card .description,
.package-card .description {
    text-align: left !important;
    text-wrap: pretty !important;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
    margin-right: 10px;
    display: block;
    width: 100%;
    min-height: 3.2rem;
}

.catalog-sidebar,
.catalog-content {
    padding: 1rem;
}


@media (max-width: 1080px) {
    .catalog-layout,
    .hotel-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar,
    .hotel-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .hotel-layout {
        gap: 0.85rem;
    }

    .hotel-sidebar,
    .hotel-content {
        border-radius: 24px;
    }

    .hotel-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.42rem;
        padding: 0.85rem;
    }

    .hotel-sidebar h3 {
        width: 100%;
        margin-bottom: 0.15rem;
    }

    .hotel-sidebar .chip {
        width: auto;
        margin-top: 0;
        padding: 0.46rem 0.68rem;
        font-size: 0.86rem;
    }

    .hotel-sidebar .chip.sub {
        margin-left: 0;
        font-size: 0.82rem;
    }

    .hotel-card .card-media {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }

    .card-footer a.catalog-price-cta.price-badge {
        width: 92%;
        min-height: 50px;
        padding: 0.34rem 0.64rem;
    }

    .catalog-price-cta .price-badge-prefix {
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .catalog-price-cta .price-badge-amount {
        font-size: 1.1rem;
    }
}

/* =========================================================
   [데스크탑 전용] 카테고리 계층(대/중/소분류) 프리미엄 디자인
========================================================= */
@media (min-width: 769px) {
    /* Hotel page had a translateX hover; keep category list stable. */
    .catalog-sidebar .chip:hover {
        transform: none;
        box-shadow: none;
    }

    /* 1) 대분류 */
    .catalog-sidebar .chip {
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f3454;
        margin-top: 1.4rem;
        padding: 0.4rem 0.8rem;
    }

    .catalog-sidebar .chip:first-of-type {
        margin-top: 0.2rem;
    }

    /* 2) 중/소분류 */
    .catalog-sidebar .chip.sub {
        font-size: 0.9rem;
        font-weight: 500;
        color: #64748b;
        margin-top: 0.2rem;
        margin-left: 1.2rem;
        padding-left: 1rem;
        position: relative;
    }

    /* 3) Dot marker */
    .catalog-sidebar .chip.sub::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #cbd5e1;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    /* 4) Hover / Active */
    .catalog-sidebar .chip.sub:hover {
        color: #0f3454;
    }

    .catalog-sidebar .chip.sub.active {
        font-weight: 800;
        color: #0f3454;
        border: none !important;
        border-left: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .catalog-sidebar .chip.sub.active::before {
        background-color: #00acef;
        box-shadow: 0 0 6px rgba(0, 172, 239, 0.4);
    }
}
