:root {
    --bg: #f5f7fb;
    --surface: #fff;
    --text: #172033;
    --muted: #667085;
    --line: #e5e7eb;
    --blue: #7b3ff2;
    --blue-dark: #6127cf;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
    --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(255, 191, 71, 0.16), transparent 28%), linear-gradient(180deg, #eef4ff 0%, var(--bg) 26%, #f8fafc 100%);
}
img { display: block; max-width: 100%; }
.popular-area, .accommodation, .hero-overlay { width: min(1200px, calc(100% - 32px)); }
.popular-area, .accommodation { margin: 56px auto 0; }

.hero {
    min-height: 460px;
    padding: 40px 24px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.28)), url("../images/main/hero.png") center/cover no-repeat;
}
.hero-copy {
    margin: 0 0 22px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.booking-shell {
    position: relative;
    margin: 0 auto;
    padding: 18px 20px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
}
.booking-bar { display: grid; grid-template-columns: 1.7fr 1.25fr 1.25fr 120px 120px; gap: 12px; }
.booking-field, .booking-action, .booking-search, .booking-reset { min-height: 54px; border-radius: 14px; }
.booking-field, .booking-action, .calendar-header, .calendar-footer, .guest-option, .accom-section__head, .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.booking-field, .booking-action {
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid transparent;
    background: #f3f4f6;
}
.booking-field svg, .booking-action svg { flex-shrink: 0; width: 18px; height: 18px; fill: #b8bcc3; }
.booking-input { width: 100%; border: 0; background: transparent; color: #111827; font-size: 0.98rem; outline: none; }
.booking-input::placeholder, .booking-action.is-placeholder { color: #9ca3af; }
.booking-action { color: #2a2f36; font-size: 0.98rem; font-weight: 700; text-align: left; cursor: pointer; }
.booking-action.active { border-color: #111827; background: #fff; }
.booking-search,
.booking-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, var(--blue), #9563ff);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.popup-panel {
    position: absolute;
    z-index: 30;
    display: none;
    background: #fff;
    border-radius: 20px;
}
.popup-panel.open { display: block; }
.calendar-popup { top: calc(100% - 2px); left: 50%; width: min(660px, calc(100vw - 32px)); padding: 12px 16px 14px; transform: translateX(-50%); }
.calendar-header { margin-bottom: 10px; }
.calendar-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf0f4; color: #9ca3af; font-size: 0.84rem; }
.calendar-nav, .calendar-reset { border: 0; background: transparent; cursor: pointer; }
.calendar-nav { width: 34px; height: 34px; border-radius: 999px; color: #111827; font-size: 1.8rem; }
.calendar-reset { color: #b0b7c3; font-size: 0.95rem; font-weight: 700; }
.calendar-summary, .calendar-month-title { color: #2a2f36; font-weight: 800; }
.calendar-footer .popup-confirm-button { margin-left: auto; }
.calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calendar-month-title { margin: 0 0 8px; text-align: center; font-size: 0.94rem; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-weekdays span, .calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    font-size: 0.84rem;
}
.calendar-weekdays span { color: #9ca3af; }
.calendar-day { border: 0; border-radius: 999px; background: transparent; color: #2d3748; cursor: pointer; }
.calendar-day.muted { visibility: hidden; }
.calendar-day.disabled { opacity: 0.35; cursor: not-allowed; }
.calendar-day.sunday { color: #ef4444; }
.calendar-day.saturday { color: #2563eb; }
.calendar-day.in-range { border-radius: 12px; background: rgba(123, 63, 242, 0.12); color: var(--blue); }
.calendar-day.selected { background: var(--blue); color: #fff; font-weight: 800; }

.guest-popup { top: calc(100% - 2px); right: 20px; width: 360px; padding: 12px 0; }
.guest-option { gap: 18px; padding: 18px 22px; }
.guest-option + .guest-option { border-top: 1px solid #edf0f4; }
.guest-popup-actions { display: flex; justify-content: flex-end; padding: 0 22px 14px; }
.guest-copy, .accom-info { display: flex; flex-direction: column; }
.guest-copy { gap: 6px; }
.popup-confirm-button {
    min-width: 88px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}
.guest-copy strong, .guest-counter span { color: #111827; font-weight: 800; }
.guest-copy span { color: #8b949e; font-size: 0.92rem; line-height: 1.4; }
.guest-counter { display: flex; align-items: center; gap: 18px; }
.guest-counter button {
    width: 42px;
    height: 42px;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 1.5rem;
    line-height: 1;
    cursor: default;
}

.accom-card__image-link{
    display:block;
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}

.accom-card__detail-link{
    cursor:pointer;
}

.accom-card__title,
.accom-card__location,
.accom-card__desc,
.accom-card__price-wrap,
.accom-card__meta,
.accom-info{
    cursor:default;
}

.popular-area h2, .accommodation h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.02em; }
.area-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 230px));
    justify-content: space-between;
}
.area-card {
    display: block;        /* a 태그도 block처럼 동작 */
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 175px;
    border-radius: 24px;
}
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.72) 100%); }
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.area-card:hover img { }
.area-card span { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: #fff; font-size: 1.25rem; font-weight: 700; }

.accommodation { margin-bottom: 72px; }
.accom-section__head { align-items: end; gap: 16px; margin-bottom: 22px; }
.accom-section__eyebrow { margin: 0 0 8px; color: #0f5fd0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.accom-section__sub, .review, .desc, .accommodation > div:last-child p, .accom-card__type, .accom-card__price-label { color: var(--muted); }
.accom-section__sub { margin: 8px 0 0; }

.accom-content-main {
    min-width: 0;
    overflow: hidden;
}
.recent-viewed-page { margin-top: 56px; }
.recent-viewed-summary {
    color: #475467;
    font-size: 0.92rem;
    font-weight: 700;
}
.recent-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.recent-viewed-empty {
    padding: 44px 24px;
    border: 1px dashed #d7deea;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}
.recent-viewed-empty p {
    margin: 0 0 20px;
    color: var(--muted);
}
.recent-viewed-empty__action {
    display: inline-flex;
}
.accom-slider-wrap {
    position: relative;
    padding: 0 28px;   /* 버튼 너비만큼 좌우 여백 확보 */
}

.accom-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 14px * 4) / 5);
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.accom-slider::-webkit-scrollbar { display: none; }
.accom-card__price-wrap { display: flex; gap: 10px; }

.accom-slider__button {
    position: static;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f5fd0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.accom-slider__button span { font-size: 22px; line-height: 1; }

.accom-slider__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 숙소 카드 */

.card{
    overflow:hidden;
    border-radius:24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,255,0.98));
    border:1px solid #e6ebf5;
    transition:transform .28s ease, border-color .28s ease;
}

.card:hover{
    border-color:#d8d3ff;
}

/* 카드 전체 */

.accom-card{
    display:flex;
    flex-direction:column;
    height:100%;
    cursor:pointer;
}

/* 이미지 영역 */

.accom-card__visual{
    position:relative;
    overflow:hidden;
    border-bottom:1px solid rgba(230,235,245,0.85);
    background:linear-gradient(135deg, #eef3ff, #f8fbff);
}

.accom-card__image-link{
    display:block;
    color:inherit;
    text-decoration:none;
}

.accom-card__image{
    width:100%;
    height:182px;
    object-fit:cover;
    background:#e5e7eb;
    transition:transform .45s ease, filter .45s ease;
}

.recent-viewed-grid .card{
    min-width:0;
}

.recent-viewed-grid .accom-card{
    width:100%;
}

.accom-card__image-placeholder{
    width:100%;
    height:182px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #eef3ff, #f8fbff);
    color:#667085;
    font-size:1rem;
    font-weight:800;
    letter-spacing:0.08em;
}

.accom-card__image-placeholder span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:84px;
    min-height:84px;
    padding:0 18px;
    border-radius:999px;
    background:rgba(255,255,255,0.72);
    border:1px solid #dbe4f0;
    box-shadow:0 8px 24px rgba(15, 23, 42, 0.06);
}

.card:hover .accom-card__image{
    filter:saturate(1.03);
}

/* 찜 버튼 */

.accom-card__wish{
    position:absolute;
    top:12px;
    right:12px;
    z-index:2;
    width:46px;
    height:46px;
    border:1px solid rgba(255,255,255,0.78);
    border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.94));
    backdrop-filter:blur(10px);
    cursor:pointer;
    font-size:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.accom-card__wish:hover{
    border-color:rgba(255,255,255,0.96);
}

.accom-card__wish svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:#2b3445;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:fill .2s ease, stroke .2s ease, transform .2s ease;
}

.accom-card__wish.is-active{
    border-color:rgba(255,255,255,0.78);
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.94));
}

.accom-card__wish.is-active svg{
    fill:#e11d48;
    stroke:#e11d48;
    transform:scale(1.04);
}

/* 카드 정보 */

.accom-info{
    padding:16px 16px 18px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1;          /* 카드 내 남은 공간 전부 차지 → bottom이 항상 하단 고정 */
}

/* 숙소 이름 */

.accom-card__title{
    font-size:0.94rem;
    font-weight:800;
    margin:0;
    color:#111827;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;    /* 최대 2줄 고정 */
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.accom-card__badge-row{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:2px;
}

.accom-card__kind{
    color:#6b7280;
    font-size:0.82rem;
    font-weight:500;
}

.accom-card__grade-stars{
    display:inline-flex;
    align-items:center;
    gap:2px;
    flex:0 0 auto;
    white-space:nowrap;
    transform:translateY(-1px);
}

.star{
    font-size:13px;
    line-height:1;
    color:#d5dbe8;
    text-shadow:0 1px 0 rgba(255,255,255,0.7);
}

.star.filled{
    color:#ffb400;
}

/* 평점 */

.accom-card__rating{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:0;
}

.accom-card__score{
    background:linear-gradient(135deg,#7b3ff2,#965cff);
    color:#fff;
    font-size:0.78rem;
    font-weight:800;
    border-radius:9px;
    padding:4px 9px;
}

.accom-card__rating-copy{
    display:flex;
    gap:6px;
    align-items:center;
    font-size:0.82rem;
    color:#6b7280;
}

.accom-card__review-link{
    color:#6b7280;
    font-size:0.82rem;
    text-decoration:underline;
    text-underline-offset:2px;
}
.accom-card__review-link:hover{
    color:#7b3ff2;
}

.accom-card__rating-copy span{
    color:#6b7280;
}

/* 위치 */

.accom-card__location{
    font-size:0.76rem;
    color:#546174;
    margin:0;
    font-weight:500;
    line-height:1.35;
    display:-webkit-box;
    -webkit-line-clamp:2;    /* 최대 2줄 고정 */
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* 설명 */

.accom-card__desc{
    font-size:0.86rem;
    color:#7d8899;
    line-height:1.35;
    margin:0 0 4px 0;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* 가격 영역 */

.accom-card__bottom{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-top:auto;
    gap:12px;
    padding-top:2px;
}

/* 가격 */

.accom-card__price-wrap{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:0;
    height:44px;
    flex:1 1 auto;
}

.accom-card__price-label{
    font-size:0.73rem;
    color:#7b8798;
    letter-spacing:-0.01em;
    line-height:1;
    margin:0;
}

.price{
    display:block;
    font-size:1.04rem;
    font-weight:900;
    color:#111827;
    letter-spacing:-0.03em;
    line-height:1;
    white-space:nowrap;
}

/* 예약 버튼 */

.reserve-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:92px;
    height:44px;
    background:linear-gradient(135deg,#7b3ff2,#9258ff);
    color:white;
    font-size:0.8rem;
    font-weight:800;
    border-radius:14px;
    padding:0 16px;
    text-decoration:none;
    transition:transform .2s ease, background .2s ease;
}

.reserve-btn:hover{
    background:linear-gradient(135deg,#6b2fe6,#7b3ff2);
}

.accommodation > div:last-child p {
    margin: 0;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.74);
    text-align: center;
}

@media (max-width: 1024px) {
    .booking-bar, .calendar-months { grid-template-columns: 1fr; }
    .calendar-popup, .guest-popup { left: 16px; right: 16px; width: auto; transform: none; }
    .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .hero { min-height: 400px; padding: 24px 16px 40px; }
    .booking-shell { padding: 16px; }
    .popular-area, .accommodation { width: min(100% - 24px, 1200px); }
    .area-list { grid-template-columns: 1fr; }
    .card-bottom, .accom-section__head { flex-direction: column; align-items: stretch; }
    .recent-viewed-grid { grid-template-columns: 1fr; }
    .reserve-btn { width: 100%; text-align: center; }
    .accom-slider { grid-auto-columns: minmax(72vw, 72vw); }
    .accom-card__image, .accom-card__image-placeholder { height: 180px; }
    .accom-card__title { font-size: 1.05rem; }
    .price { font-size: 1.2rem; }
}

.local-activities {
    width: min(1200px, calc(100% - 32px));
    margin: 56px auto 0;
}

.local-activities__head {
    margin-bottom: 28px;
}

.local-activities__eyebrow {
    margin: 0 0 10px;
    color: #0f5fd0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.local-activities__head h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #172033;
}

.local-activities__sub {
    margin: 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

.local-activities__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.activity-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf5;
    transition: transform .28s ease, border-color .28s ease;
}

.activity-card:hover {
    border-color: #d8d3ff;
}

.activity-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.activity-card__image-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-card__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.72) 100%);
}

.activity-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.activity-card:hover .activity-card__image-wrap img {
}

/* 기존 좌측 상단 파란 배지 -> 좌측 하단 흰 글씨 */
.activity-card__label {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.activity-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px 20px;
    flex: 1;
}

.activity-card__body p {
    margin: 0;
    color: #667085;
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

.activity-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 42px;
    padding: 0 18px;
    margin-top: auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #7b3ff2, #9563ff);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .local-activities__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .local-activities {
        width: min(100% - 24px, 1200px);
    }

    .local-activities__grid {
        grid-template-columns: 1fr;
    }

    .activity-card__body p {
        min-height: auto;
    }
}
