/* ==========================================================================
   Accommodation booking page: gallery + tabbed details on the left, a sticky
   booking card with a night-by-night availability calendar on the right.
   Loaded only on the accommodation detail page.
   ========================================================================== */

.booking-page {
    /* The page banner already clears the header. */
    padding: clamp(28px, 4vw, 56px) 0 clamp(50px, 6vw, 90px);
    background: var(--cream-deep);
}

.booking-layout {
    max-width: 1360px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: clamp(20px, 2.4vw, 34px);
    align-items: start;
}

.bp-main { min-width: 0; }

.bp-gallery__main {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 7.5;
    border-radius: 10px;
    background: var(--forest);
    box-shadow: 0 20px 50px -30px rgba(21, 30, 23, 0.7);
}

.bp-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.bp-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.bp-gallery__thumbs button {
    flex: none;
    width: 96px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bp-gallery__thumbs button.is-active,
.bp-gallery__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.bp-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.bp-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin: 24px 0 18px;
}

.bp-head .eyebrow { margin-bottom: 8px; }
.bp-title { font-size: clamp(28px, 3vw, 40px); }

.bp-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.bp-location .icon { width: 16px; height: 16px; color: var(--gold); }

.bp-share { display: flex; gap: 8px; }

.bp-share__btn {
    padding: 7px 16px;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--white);
    transition: opacity 0.25s var(--ease);
}

.bp-share__btn:hover { opacity: 0.85; }
.bp-share__btn--fb { background: #3b5998; }
.bp-share__btn--x { background: #1d9bf0; }

.bp-tabs {
    position: relative;
    z-index: 20;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 8px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 1px 0 var(--line);
    scrollbar-width: none;
}

.bp-tabs::-webkit-scrollbar { display: none; }

.bp-tabs [data-tab] {
    flex: 1 0 auto;
    padding: 15px 14px 13px;
    text-align: center;
    white-space: nowrap;
    font-size: 16px;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.bp-tabs [data-tab]:hover,
.bp-tabs [data-tab].is-active { color: #a6352b; border-color: #a6352b; }

.bp-panel {
    margin-top: 18px;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--white);
    border-radius: 8px;
    scroll-margin-top: 150px;
}

.bp-panel__title,
.bp-subtitle {
    margin-bottom: 14px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bp-subtitle { margin: 26px 0 10px; font-size: 14px; }

.bp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bp-list li { position: relative; padding-left: 18px; color: var(--ink-soft); }

.bp-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.bp-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.bp-facts > div {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    background: var(--cream);
    border-radius: 6px;
}

.bp-facts strong { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1; color: var(--forest-soft); }
.bp-facts span { font-size: 14px; color: var(--ink-mute); }
.bp-facts--terms { margin: 0 0 18px; }

.bp-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bp-amenities li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }

.bp-amenities__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--cream);
    border-radius: 50%;
    font-size: 16px;
}

.bp-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bp-review { margin: 0; padding: 18px; background: var(--cream); border-radius: 8px; }
.bp-review__stars { color: var(--gold); letter-spacing: 2px; }
.bp-review p { margin: 8px 0 10px; font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.45; }
.bp-review footer { font-size: 14px; color: var(--ink-mute); }

/* ------------------------------------------------------------ booking card */

.bp-card {
    position: sticky;
    top: 92px;
    overflow: hidden;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 24px 60px -34px rgba(21, 30, 23, 0.55);
    scroll-margin-top: 92px;
}

.bp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--forest);
    color: var(--cream);
}

.bp-card__label { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; }
.bp-card__code { font-size: 13px; letter-spacing: 0.04em; color: var(--gold-pale); }

.bp-card__share {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: background 0.25s var(--ease);
}

.bp-card__share:hover { background: rgba(255, 255, 255, 0.1); }
.bp-card__share svg { width: 18px; height: 18px; }

.bp-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.bp-card__stats > div { display: flex; align-items: center; gap: 10px; font-size: 15px; }

.bp-card__stats .icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
    background: #fbeceb;
    color: #b8423a;
}

.bp-card__stats small { display: block; font-size: 12px; color: var(--ink-mute); }

.bp-success {
    margin: 14px 18px 0;
    padding: 14px 16px;
    background: #eef6ef;
    border: 1px solid #b9d9bf;
    border-radius: 8px;
    color: #24502f;
    font-size: 15px;
}

.bp-success p { margin: 2px 0 10px; }
.bp-success dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.bp-success dt { color: #4d7556; }
.bp-success dd { margin: 0; font-weight: 500; }

/* Calendar */

.bk-cal { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }

.bk-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal__nav strong { font-family: var(--display); font-size: 20px; }

.bk-cal__nav button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.bk-cal__nav button:disabled { opacity: 0.3; cursor: default; }

.bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.bk-cal__grid--head span {
    padding-bottom: 4px;
    text-align: center;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-mute);
}

.bk-day {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 44px;
    padding: 3px 0;
    border-radius: 6px;
    font-family: var(--sans);
    line-height: 1.1;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.bk-day b { font-size: 14px; font-weight: 500; }
.bk-day small { font-size: 9.5px; white-space: nowrap; }
.bk-day--blank { min-height: 0; }

.bk-day.is-free { background: #e9f4ea; color: #25603a; }
.bk-day.is-few { background: #fbf0dc; color: #8a5a12; }
.bk-day.is-full { background: #f8e3e1; color: #a1362d; }
.bk-day.is-full b { text-decoration: line-through; }
.bk-day.is-past { color: #c4bcb0; cursor: default; }
.bk-day.is-loading { background: var(--cream); color: var(--ink-mute); }

.bk-day:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--gold); }

.bk-day.is-between { background: #d9e6db; color: var(--forest); }

.bk-day.is-start,
.bk-day.is-end {
    background: var(--forest-soft);
    color: var(--cream);
    box-shadow: 0 0 0 2px var(--gold-soft);
}

.bk-day.is-full.is-end b { text-decoration: none; }

.bk-cal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 10px;
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--ink-mute);
}

.bk-cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-cal__legend i { width: 10px; height: 10px; border-radius: 3px; }
.bk-cal__legend .is-free { background: #bfe0c5; }
.bk-cal__legend .is-few { background: #f1d49c; }
.bk-cal__legend .is-full { background: #eab4ae; }

.bk-cal__hint { margin: 8px 0 0; font-size: 14px; color: var(--forest-soft); }
.bk-cal__hint.is-error { color: #a6352b; }

/* Form */

.bp-card__form { display: grid; gap: 12px; padding: 14px 18px 18px; }

.bp-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ink-soft);
}

.bp-price strong { font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--ink); }

.bp-select {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
}

.bp-select select {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #a6352b;
    font-family: var(--serif);
    font-size: 15px;
    outline: none;
}

.bp-counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.bp-counter small { font-size: 12px; color: var(--ink-mute); }
.bp-counter__ctrl { display: flex; align-items: center; gap: 6px; }

.bp-counter__ctrl button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--ink-soft);
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
}

.bp-counter__ctrl input {
    width: 38px;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: var(--sans);
    font-size: 16px;
    -moz-appearance: textfield;
}

.bp-counter__ctrl input::-webkit-outer-spin-button,
.bp-counter__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bp-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 15px;
}

.bp-total small { color: var(--ink-mute); }
.bp-total strong { font-family: var(--sans); font-size: 21px; font-weight: 500; color: var(--forest-soft); }

.bp-errors { padding: 10px 12px; background: #fbeceb; border-radius: 6px; color: #a1362d; font-size: 14px; }
.bp-errors p { margin: 0; }

.bp-contact { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.bp-contact[hidden] { display: none; }
.bp-contact legend { margin-bottom: 6px; font-family: var(--sans); font-size: 13px; font-weight: 500; }

.bp-contact input,
.bp-contact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbf8f2;
    font-family: var(--serif);
    font-size: 15px;
    outline: none;
}

.bp-contact input:focus,
.bp-contact textarea:focus { border-color: var(--gold); }

.bp-actions { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; }


.bp-note { margin: 0; font-size: 13px; color: var(--ink-mute); text-align: center; }

@media (max-width: 1080px) {
    .booking-layout { grid-template-columns: 1fr; }
    .bp-card { position: static; max-width: 560px; width: 100%; margin: 0 auto; }
    .bp-gallery__main { aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------ tab panels, reviews, extra */

.bp-panel[hidden] { display: none; }

.bp-tabs [data-tab] { font-family: var(--serif); background: none; }
.bp-tabs [data-tab]:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }

.bp-reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bp-reviews-head .bp-panel__title { margin: 0; }
.bp-rating { display: flex; align-items: center; gap: 10px; margin: 0; }
.bp-rating strong { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--forest-soft); }
.bp-rating small { font-size: 14px; color: var(--ink-mute); }

.bp-review-form {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.bp-review-form .bp-subtitle { margin: 0 0 4px; }

.bp-review-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.bp-review-form input,
.bp-review-form textarea,
.bp-extra textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbf8f2;
    font-family: var(--serif);
    font-size: 15px;
    outline: none;
    resize: vertical;
}

.bp-review-form input:focus,
.bp-review-form textarea:focus,
.bp-extra textarea:focus { border-color: var(--gold); }

/* Star picker: radios laid out 5..1 and flipped, so hover fills leftwards. */
.bp-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
}

.bp-stars legend { width: 100%; margin-bottom: 4px; font-family: var(--sans); font-size: 13px; font-weight: 500; float: left; }
.bp-stars input { position: absolute; opacity: 0; pointer-events: none; }
.bp-stars label { font-size: 28px; line-height: 1; color: #d9cfbf; cursor: pointer; transition: color 0.15s; }

.bp-stars input:checked ~ label,
.bp-stars label:hover,
.bp-stars label:hover ~ label { color: var(--gold); }

.bp-stars input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

.bp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.bp-extra { display: grid; gap: 6px; }
.bp-extra span { font-family: var(--sans); font-size: 13px; font-weight: 500; }

@media (max-width: 560px) {
    .bp-review-form__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------- summary under the calendar */

.bk-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0 0;
    padding: 12px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bk-summary > div { display: grid; gap: 1px; }
.bk-summary dt { font-family: var(--sans); font-size: 11.5px; color: var(--ink-mute); }
.bk-summary dd { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 500; }

.bk-summary__total {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

.bk-summary__total dt { font-size: 13px; color: var(--ink); }
.bk-summary__total small { color: var(--ink-mute); }
.bk-summary__total dd { font-size: 20px; color: var(--forest-soft); }

/* -------------------------------------------------------------- checkout */

.checkout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 26px;
    margin-top: 16px;
}

.checkout h3 {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout__summary {
    padding: 18px;
    background: var(--white);
    border-radius: 10px;
}

.checkout__summary dl,
.receipt,
.bank { display: grid; gap: 8px; margin: 0; }

.checkout__summary dl > div,
.receipt > div,
.bank > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 15px;
}

.checkout__summary dt,
.receipt dt,
.bank dt { color: var(--ink-mute); }

.checkout__summary dd,
.receipt dd,
.bank dd { margin: 0; text-align: right; font-weight: 500; }

.checkout__total,
.receipt__total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 18px !important;
}

.checkout__total dd,
.receipt__total dd { color: var(--forest-soft); }

.checkout__deposit dd { color: #a6352b; }

.checkout__form { display: grid; gap: 12px; align-content: start; }
.checkout__who { margin: 0; font-size: 15px; color: var(--ink-soft); }

.checkout__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--serif);
    font-size: 16px;
    outline: none;
}

.checkout__input:focus { border-color: var(--gold); }

.pay-options { display: grid; gap: 8px; }

.pay-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.pay-option:has(input:checked) { border-color: var(--forest-soft); background: #f3f8f3; }
.pay-option input { margin-top: 4px; accent-color: var(--forest-soft); }
.pay-option strong { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.pay-option small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-mute); line-height: 1.45; }

.checkout__agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.checkout__agree input { margin-top: 4px; accent-color: var(--forest-soft); }
.checkout__agree a { color: #a6352b; text-decoration: underline; }

.checkout__actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 4px; }

.bp-signin-prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding: 18px 20px;
    background: var(--cream);
    border: 1px dashed var(--gold);
    border-radius: 10px;
}

.bp-signin-prompt p { margin: 0; }
.bp-review-form__as { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------- account */

.account-page {
    padding: calc(76px + clamp(24px, 3vw, 40px)) 0 clamp(50px, 6vw, 90px);
    background: var(--cream-deep);
    min-height: 70vh;
}

.account-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.account-layout--booking { grid-template-columns: minmax(0, 1fr) 380px; }

.account-card {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 50px -34px rgba(21, 30, 23, 0.5);
}

.account-card__name { font-size: 28px; }
.account-card__email { margin: 0; color: var(--ink-mute); font-size: 15px; }
.account-form { display: grid; gap: 10px; margin-top: 8px; }

.account-main { display: grid; gap: 12px; align-content: start; }

.account-booking {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-radius: 10px;
    transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.account-booking:hover { box-shadow: 0 14px 34px -24px rgba(21, 30, 23, 0.6); transform: translateY(-1px); }
.account-booking img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.account-booking strong { display: block; font-size: 18px; }
.account-booking span,
.account-booking small { display: block; font-size: 14px; color: var(--ink-mute); }
.account-booking__side { display: grid; gap: 6px; justify-items: end; }

.kt-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 12px;
    white-space: nowrap;
}

.kt-pill--new,
.kt-pill--in_progress { background: #fbf0dc; color: #8a5a12; }
.kt-pill--confirmed { background: #e4f2e7; color: #2f6d42; }
.kt-pill--archived { background: #eee; color: #777; }
.kt-pill--pay-unpaid { background: #fbeceb; color: #a1362d; }
.kt-pill--pay-pending { background: #e8eefb; color: #2f4f9b; }
.kt-pill--pay-paid { background: #e4f2e7; color: #2f6d42; }
.kt-pill--pay-refunded { background: #eee; color: #777; }

.bank code,
.receipt code { font-size: 15px; letter-spacing: 0.04em; }

@media (max-width: 860px) {
    .checkout { grid-template-columns: 1fr; }
    .account-layout,
    .account-layout--booking { grid-template-columns: 1fr; }
    .account-booking { grid-template-columns: 72px 1fr; }
    .account-booking img { width: 72px; height: 56px; }
    .account-booking__side { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; }
}
