#jtb-home-recommendations {
    --rec-ink: #182338;
    --rec-blue: #1563be;
    --rec-blue-soft: #edf5ff;
    --rec-muted: #55647a;
    --rec-border: #dce5f0;
    width: min(1200px, calc(100% - 48px));
    margin: 46px auto 58px;
    color: var(--rec-ink);
    font: 400 14px/1.5 Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

#jtb-home-recommendations *,
#jtb-home-recommendations *::before,
#jtb-home-recommendations *::after {
    box-sizing: border-box;
}

#jtb-home-recommendations div,
#jtb-home-recommendations ul,
#jtb-home-recommendations li,
#jtb-home-recommendations h2,
#jtb-home-recommendations p {
    margin: 0;
    padding: 0;
    font: inherit;
}

#jtb-home-recommendations > #jtb-quick-menu {
    margin: 38px 0;
    padding-top: 18px;
    padding-bottom: 18px;
}

#jtb-home-recommendations .jtb-rec-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rec-border);
}

#jtb-home-recommendations .jtb-rec-heading h2 {
    color: var(--rec-ink);
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.045em;
}

#jtb-home-recommendations .jtb-rec-heading h2 span {
    color: var(--rec-blue);
}

#jtb-home-recommendations .jtb-rec-section-stay .jtb-rec-heading {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#jtb-home-recommendations .jtb-rec-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#jtb-home-recommendations .jtb-rec-tab {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--rec-border);
    border-radius: 999px;
    background: #f5f8fc;
    color: #34465c;
    font: inherit;
    font-weight: 550;
    cursor: pointer;
    white-space: nowrap;
}

#jtb-home-recommendations .jtb-rec-tab:hover {
    border-color: #a8c3e5;
    color: var(--rec-blue);
}

#jtb-home-recommendations .jtb-rec-tab[aria-pressed="true"] {
    border-color: var(--rec-blue);
    background: var(--rec-blue);
    color: #fff;
    font-weight: 650;
}

#jtb-home-recommendations .jtb-rec-section-stay .jtb-rec-tab {
    min-width: 116px;
}

#jtb-home-recommendations .jtb-rec-breakdown {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 400;
}

#jtb-home-recommendations .jtb-rec-tab:focus-visible,
#jtb-home-recommendations .jtb-rec-card:focus-visible,
#jtb-home-recommendations .jtb-rec-retry:focus-visible {
    outline: 2px solid var(--rec-blue);
    outline-offset: 3px;
}

#jtb-home-recommendations .jtb-rec-panel {
    margin-top: 18px;
}

#jtb-home-recommendations .jtb-rec-schedule {
    margin-bottom: 14px;
    color: var(--rec-muted);
    font-size: 13px;
}

#jtb-home-recommendations .jtb-rec-schedule time {
    color: var(--rec-ink);
    font-weight: 650;
}

#jtb-home-recommendations .jtb-rec-grid {
    display: grid;
    align-items: stretch;
    gap: 16px;
    list-style: none;
}

#jtb-home-recommendations .jtb-rec-grid-package {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#jtb-home-recommendations .jtb-rec-grid-stay {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#jtb-home-recommendations .jtb-rec-grid > li {
    min-width: 0;
}

#jtb-home-recommendations .jtb-rec-card {
    display: grid;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--rec-border);
    border-radius: 12px;
    background: #fff;
    color: var(--rec-ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

#jtb-home-recommendations .jtb-rec-card:hover {
    border-color: #a8c3e5;
    box-shadow: 0 6px 18px rgba(24, 52, 91, .08);
}

#jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 208px;
    gap: 10px 18px;
    padding: 14px;
}

#jtb-home-recommendations .jtb-rec-grid-stay .jtb-rec-card {
    grid-template-rows: minmax(116px, auto) auto 1fr;
}

#jtb-home-recommendations .jtb-rec-photo {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf3f9;
    color: var(--rec-muted);
    font-size: 13px;
}

#jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-photo {
    grid-row: span 2;
    height: 100%;
    min-height: 178px;
    border-radius: 8px;
}

#jtb-home-recommendations .jtb-rec-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #edf3f9;
}

#jtb-home-recommendations .jtb-rec-photo img[hidden] {
    display: none;
}

#jtb-home-recommendations .jtb-rec-photo-car,
#jtb-home-recommendations .jtb-rec-photo-car img {
    background: #f5f8fc;
}

#jtb-home-recommendations .jtb-rec-photo-car img {
    object-fit: contain;
    padding: 10px;
}

#jtb-home-recommendations .jtb-rec-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

#jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-card-copy {
    padding-top: 3px;
}

#jtb-home-recommendations .jtb-rec-grid-stay .jtb-rec-card-copy {
    justify-content: center;
    align-items: center;
    padding: 16px 16px 14px;
    text-align: center;
}

#jtb-home-recommendations .jtb-rec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

#jtb-home-recommendations .jtb-rec-tags:empty {
    display: none;
}

#jtb-home-recommendations .jtb-rec-grid-stay .jtb-rec-tags {
    justify-content: center;
}

#jtb-home-recommendations .jtb-rec-tag {
    padding: 2px 7px;
    border-radius: 4px;
    background: #e9f2ff;
    color: #174d8d;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.55;
}

#jtb-home-recommendations .jtb-rec-tag + .jtb-rec-tag {
    background: #edf1f6;
    color: #45566e;
}

#jtb-home-recommendations .jtb-rec-name {
    color: var(--rec-ink);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

#jtb-home-recommendations .jtb-rec-composition {
    color: var(--rec-blue);
    font-size: 13px;
    font-weight: 600;
}

#jtb-home-recommendations .jtb-rec-details {
    color: var(--rec-muted);
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#jtb-home-recommendations .jtb-rec-rate {
    align-self: end;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

#jtb-home-recommendations .jtb-rec-grid-stay .jtb-rec-rate {
    min-height: 80px;
    justify-content: flex-end;
    padding: 13px 16px;
}

#jtb-home-recommendations .jtb-rec-stay-date {
    color: var(--rec-muted);
    font-size: 12px;
}

#jtb-home-recommendations .jtb-rec-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 30px;
}

#jtb-home-recommendations .jtb-rec-night {
    flex: 1 1 auto;
    color: var(--rec-muted);
    font-size: 13px;
}

#jtb-home-recommendations .jtb-rec-price {
    color: var(--rec-ink);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    white-space: nowrap;
}

#jtb-home-recommendations .jtb-rec-price small {
    margin-left: 2px;
    font-size: .62em;
    font-weight: 500;
}

#jtb-home-recommendations .jtb-rec-query {
    color: var(--rec-blue);
    font-weight: 650;
}

#jtb-home-recommendations .jtb-rec-arrow {
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--rec-blue-soft);
    color: var(--rec-blue);
}

#jtb-home-recommendations .jtb-rec-arrow::after {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translateX(-1px) rotate(45deg);
}

#jtb-home-recommendations .jtb-rec-message {
    padding: 25px 14px;
    border: 1px solid var(--rec-border);
    border-radius: 10px;
    background: #f5f8fc;
    color: var(--rec-muted);
    text-align: center;
}

#jtb-home-recommendations .jtb-rec-retry {
    margin-left: 8px;
    padding: 4px 9px;
    border: 1px solid var(--rec-border);
    border-radius: 5px;
    background: #fff;
    color: var(--rec-blue);
    font: inherit;
    cursor: pointer;
}

@media (max-width: 1000px) {
    #jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-card {
        gap: 10px 13px;
    }
}

@media (max-width: 780px) {
    #jtb-home-recommendations {
        width: calc(100% - 36px);
        margin: 32px auto 40px;
    }

    #jtb-home-recommendations > #jtb-quick-menu {
        margin: 26px 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #jtb-home-recommendations .jtb-rec-grid-package {
        grid-template-columns: minmax(0, 1fr);
    }

    #jtb-home-recommendations .jtb-rec-grid-stay {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 510px) {
    #jtb-home-recommendations {
        width: calc(100% - 28px);
    }

    #jtb-home-recommendations .jtb-rec-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #jtb-home-recommendations .jtb-rec-tab,
    #jtb-home-recommendations .jtb-rec-section-stay .jtb-rec-tab {
        min-width: 0;
        padding-inline: 8px;
        white-space: normal;
    }

    #jtb-home-recommendations .jtb-rec-breakdown {
        display: block;
        margin-left: 0;
        font-size: 11px;
    }

    #jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto 1fr;
        gap: 10px;
        padding: 11px;
    }

    #jtb-home-recommendations .jtb-rec-grid-package .jtb-rec-photo {
        grid-row: auto;
        min-height: 0;
        height: auto;
    }

    #jtb-home-recommendations .jtb-rec-grid-stay {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    #jtb-home-recommendations .jtb-rec-card {
        transition: none;
    }
}
