/* Landing mode - room types page (page_mode = 2). Only loaded by that page. */

/* ---- Sticky booking bar (search_availability element with isLandingBar) ----
   A light bar: Overnight/Day Use as text tabs on the left, then one rounded pill that holds every
   field (thin dividers between them) and ends in the Update button. */
.lp-resv-bar-form {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--theme-navbar-color, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.lp-resv-bar.banner-form {
    padding: 12px 0;
}

/* The pill is centred on its own; the switch is pinned over its top-left edge like a tab,
   so nothing sits beside the pill and pushes it off-centre. */
.lp-resv-bar > .container {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Overnight / Day Use: one button at the start of the pill. Clicking flips the mode; the moon turns
   into the sun, the label slides, and the dates row nudges in. All driven by data-mode. */
.lp-resv-bar .lp-mode-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 14px 4px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.lp-resv-bar .lp-mode-btn:hover .lp-mode-text small,
.lp-resv-bar .lp-mode-btn:focus-visible .lp-mode-text small {
    color: var(--theme-primary-color);
}

.lp-resv-bar .lp-mode-btn:focus-visible {
    outline: 2px solid var(--theme-primary-color);
    outline-offset: 2px;
}

.lp-resv-bar .lp-mode-icon {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-primary-btn-color);
    color: #ffffff;
    overflow: hidden;
}

.lp-resv-bar .lp-mode-icon i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.lp-resv-bar .lp-mode-btn[data-mode="overnight"] .lp-mode-icon .fa-sun,
.lp-resv-bar .lp-mode-btn[data-mode="day_use"] .lp-mode-icon .fa-moon {
    opacity: 0;
    transform: rotate(-120deg) scale(0.4);
}

.lp-resv-bar .lp-mode-text {
    display: flex;
    flex-direction: column;
    min-width: 108px;
}

.lp-resv-bar .lp-mode-text small {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.lp-resv-bar .lp-mode-labels {
    position: relative;
    display: block;
    height: 21px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    white-space: nowrap;
}

.lp-resv-bar .lp-mode-labels > span {
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.lp-resv-bar .lp-mode-btn[data-mode="overnight"] .lp-mode-label-day {
    transform: translateY(100%);
    opacity: 0;
}

.lp-resv-bar .lp-mode-btn[data-mode="day_use"] .lp-mode-label-overnight {
    transform: translateY(-100%);
    opacity: 0;
}

/* The icons inside the two labels are only for the tablet / phone toggle (see the end of this file). */
.lp-resv-bar .lp-mode-seg-icon {
    display: none;
}

.lp-resv-bar .lp-mode-swap {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* One full turn on hover. */
.lp-resv-bar .lp-mode-btn:hover .lp-mode-swap,
.lp-resv-bar .lp-mode-btn:focus-visible .lp-mode-swap {
    transform: rotate(360deg);
}

.lp-resv-bar .booking-dates-row.lp-mode-changed {
    animation: lp-mode-nudge 0.4s ease;
}

@keyframes lp-mode-nudge {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-resv-bar .lp-mode-icon i,
    .lp-resv-bar .lp-mode-labels > span,
    .lp-resv-bar .lp-mode-swap,
    .lp-resv-bar .booking-dates-row.lp-mode-changed {
        transition: none;
        animation: none;
    }
}

/* The pill. */
.lp-resv-bar .modern-booking-bar-wrapper {
    flex: 0 0 auto;
    width: 100%;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0;
    padding: 8px 12px 8px 10px;
    height: 80px; /* fixed, so a two-line hotel name never makes the bar taller */
    border: 1px solid #d5dbe3;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    align-items: center;
}

/* Fields sit flat inside the pill. On hover/focus an accent line grows out from the middle of the
   field's bottom edge and its label takes the theme colour - no background fill. */
.lp-resv-bar .booking-field,
.lp-resv-bar .booking-dates-row {
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

.lp-resv-bar .booking-field {
    padding: 4px 16px;
}

/* Every field is as tall as the pill, so all the underlines sit on the same pixel row. */
.lp-resv-bar .booking-field,
.lp-resv-bar .booking-dates-row {
    align-self: stretch;
}

.lp-resv-bar .booking-field::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--theme-primary-color);
    transform: scaleX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-resv-bar .booking-field:hover::after,
.lp-resv-bar .booking-field:focus-within::after,
.lp-resv-bar .booking-field.is-filled::after {
    transform: scaleX(1);
}

.lp-resv-bar .booking-field:hover,
.lp-resv-bar .booking-field:focus-within,
.lp-resv-bar .booking-dates-row:hover,
.lp-resv-bar .booking-dates-row:focus-within {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.lp-resv-bar .booking-field label {
    transition: color 0.2s ease;
}

.lp-resv-bar .booking-field:hover label,
.lp-resv-bar .booking-field:focus-within label {
    color: var(--theme-primary-color);
}

/* Tom Select draws its own white box; let the pill show through instead. */
.lp-resv-bar .ts-wrapper .ts-control,
.lp-resv-bar .ts-wrapper.single.input-active .ts-control {
    background: transparent !important;
}

.lp-resv-bar .booking-field label {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lp-resv-bar .booking-field .field-content {
    min-height: 24px;
}

.lp-resv-bar .booking-field .form-control,
.lp-resv-bar .booking-field.flex-grow-3 .ts-wrapper.tom-select-premium .ts-control .item {
    font-size: 14px;
}

.lp-resv-bar .booking-field.flex-grow-3 {
    flex: 1 1 150px;
}

.lp-resv-bar .booking-field.flex-grow-3 .ts-wrapper.tom-select-premium .ts-control {
    min-height: 24px !important;
    /* 4px above and below the name, so a two-line name doesn't make the field jump; the right side
       keeps a long, wrapped name clear of the dropdown arrow. */
    padding: 4px 22px 4px 0 !important;
}

/* No padding on the hotel field itself (the inherited 8px 12px is dropped); the label and the
   value carry their own side spacing so a two-line name has room above the accent line. */
.lp-resv-bar .booking-field.flex-grow-3 {
    padding: 0;
}

.lp-resv-bar .booking-field.flex-grow-3 label {
    padding: 4px 16px 0;
}

.lp-resv-bar .booking-field.flex-grow-3 .field-content {
    padding: 0 16px;
}

/* The name takes at most two lines (the full name is the tooltip); anything longer is cut with "...". */
.lp-resv-bar .booking-field.flex-grow-3 .ts-wrapper.tom-select-premium .ts-control .item {
    line-height: 1.15;
}

.lp-resv-bar .booking-field.flex-grow-3 .ts-wrapper.tom-select-premium .ts-control .item span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.lp-resv-bar .booking-dates-row {
    flex: 0 0 290px;
}

/* Dates need the room: tighter side padding so the whole "13 Oct 2026" shows. */
.lp-resv-bar .booking-dates-row .booking-field {
    padding-left: 10px;
    padding-right: 10px;
}

.lp-resv-bar .booking-dates-row .booking-field::after {
    left: 10px;
    right: 10px;
}

.lp-resv-bar .booking-dates-row .booking-field .field-content {
    gap: 6px;
}

.lp-resv-bar .booking-field.occupancy-field {
    flex: 0 0 205px;
}

.lp-resv-bar .booking-field.promo-field {
    flex: 0 0 165px;
}

/* Thin dividers between the groups (the element renders them as empty divs). */
.lp-resv-bar .modern-booking-bar-wrapper > .field-divider-80 {
    flex: 0 0 2px;
    width: 2px;
    height: 36px;
    border-radius: 2px;
    background: #cbd5e1;
}

/* The Check In / Check Out divider inside the dates box matches. */
.lp-resv-bar .booking-dates-row > .field-divider-80 {
    width: 2px;
    margin: 6px 0;
    border-radius: 2px;
    background: #cbd5e1;
}

/* Icons already say what each field is; drop the chevrons (and the hotel icon) to save width. */
.lp-resv-bar .booking-dates-row .chevron-icon,
.lp-resv-bar .promo-field .chevron-icon,
.lp-resv-bar .occupancy-field .chevron-icon,
.lp-resv-bar .booking-field.flex-grow-3 .ts-control .item i {
    display: none;
}

/* Search: the site's own btn-abs-primary colours, just sized and rounded to close the pill. */
.lp-resv-bar .booking-action {
    display: flex;
    margin: 0 0 0 8px !important;
}

.lp-resv-bar .booking-action .btn {
    height: 48px;
    padding: 0 28px;
    border-radius: 999px;
}

/* The cart column sticks below the bar instead of at the very top. */
.reservation-main .cart-container .sticky-top {
    top: calc(var(--lp-resv-bar-h, 0px) + var(--lp-resv-tabs-h, 0px) + 16px) !important;
}

/* ---- Tabs (Overview / Rooms), sticky right under the booking bar ---- */
.lp-resv-tabs {
    position: sticky;
    top: var(--lp-resv-bar-h, 0px);
    z-index: 1030;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.lp-resv-tabs .container {
    display: flex;
    gap: 28px;
    overflow-x: auto;
}

.lp-resv-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 14px 2px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lp-resv-tab:hover {
    color: var(--theme-primary-color);
}

.lp-resv-tab.is-active {
    border-bottom-color: var(--theme-primary-color);
    color: var(--theme-primary-color);
}

/* Every tab sits on the same background as the rooms section (.reservation-main). */
.lp-resv-pane {
    background-color: #f4f4f4;
}

.lp-resv-pane[hidden] {
    display: none;
}

/* Skeleton placeholders reuse the room cards' .skeleton-block (shimmer). */
.lp-resv-extra-body .skeleton-block,
.lp-resv-pane .skeleton-block {
    border-radius: 6px;
}

/* In the dark footer the grey blocks would glare. */
.lp-skel-on-dark .skeleton-block {
    background: rgba(255, 255, 255, 0.15);
}

.lp-skel-on-dark .skeleton-block::after {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
}

/* ---- Facilities and policy tabs ---- */
/* The tabs sit on the page's grey; the original pages' sections (white behind their cards) must not
   paint a white block of their own here. */
.lp-resv-extra-body .happening-section,
.lp-resv-extra-body .attraction-list,
.lp-resv-extra-body .deal-section,
.lp-resv-extra-body .faq-page,
.lp-resv-extra-body .amenities,
.lp-resv-extra-body .facilities {
    background: transparent;
}

.lp-resv-extra-body {
    padding: 28px 0 40px;
}

.lp-resv-facilities-type {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
}

.lp-resv-facilities .row + .lp-resv-facilities-type {
    margin-top: 12px;
}

.lp-resv-empty {
    margin: 0;
    color: #64748b;
}

/* Text pages sit on a white panel: the Contact Us and Home tabs and any plain CMS page. */
.lp-resv-page,
.lp-resv-contact-tab,
.lp-resv-home {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.lp-resv-page-title {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.lp-resv-page-body {
    line-height: 1.7;
    color: #334155;
}

/* ---- Content of the other tabs: cards, gallery grid, FAQ ---- */
.lp-resv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lp-resv-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.lp-resv-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.lp-resv-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.lp-resv-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.lp-resv-card-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.lp-resv-card-meta i {
    margin-right: 4px;
    color: var(--theme-primary-color);
}

.lp-resv-card-text {
    font-size: 0.9rem;
    color: #334155;
}

.lp-resv-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

.lp-resv-gallery-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.lp-resv-gallery-tab-photo {
    padding: 0;
    border: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #e2e8f0;
    cursor: pointer;
}

.lp-resv-gallery-tab-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* All FAQ categories are stacked here (the FAQ page shows one at a time), so each needs room below it. */
.lp-resv-extra-body .faq-category-content {
    margin-bottom: 44px;
}

.lp-resv-extra-body .faq-category-content:last-child {
    margin-bottom: 0;
}

.lp-resv-faq-category {
    margin: 20px 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-primary-color);
}

.lp-resv-faq {
    border-bottom: 1px solid #e2e8f0;
}

.lp-resv-faq summary {
    padding: 12px 0;
    font-weight: 600;
    cursor: pointer;
}

.lp-resv-faq-answer {
    padding: 0 0 14px;
    color: #334155;
}

/* ---- "View details" modal ---- */
.lp-resv-detail-photo {
    display: block;
    width: 100%;
    max-height: 340px;
    margin-bottom: 16px;
    border-radius: 8px;
    object-fit: cover;
}

.lp-resv-detail-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.lp-resv-detail-content {
    line-height: 1.7;
    color: #334155;
}

.lp-resv-detail-content img {
    max-width: 100%;
    height: auto;
}

/* ---- Overview tab ---- */
.lp-resv-overview {
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 32px;
    padding-top: 28px;
}

.lp-resv-overview-title {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.lp-resv-overview-photo {
    display: block;
    width: 100%;
    max-height: 360px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.lp-resv-overview-about {
    line-height: 1.7;
    color: #334155;
}

.lp-resv-overview-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.lp-resv-overview-card h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* Hotel name first, then the score and the stars with the review count under them; a long name wraps. */
.lp-resv-rating-hotel {
    flex: 1 1 0;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.lp-resv-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.lp-resv-rating-score {
    min-width: 64px;
    padding: 10px 0;
    border-radius: 8px;
    background: var(--theme-primary-btn-color);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.lp-resv-rating-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-resv-rating-stars {
    color: #f4b400;
    font-size: 0.95rem;
}

.lp-resv-rating-count {
    font-size: 0.85rem;
    color: #64748b;
}

.lp-resv-review {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 12px;
    border-left: 3px solid var(--theme-primary-color);
    font-size: 0.9rem;
}

/* The site stylesheet decorates every blockquote with a quote mark and a thin line; not wanted here. */
.lp-resv-review::before,
.lp-resv-review::after {
    content: none;
    display: none;
}

.lp-resv-review p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 4px;
    color: #334155;
}

.lp-resv-review footer {
    font-size: 0.8rem;
    color: #64748b;
}

.lp-resv-overview-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary-color);
    text-decoration: none;
}

.lp-resv-overview-link:hover {
    text-decoration: underline;
}

.lp-resv-contact {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.lp-resv-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.lp-resv-contact i {
    flex: 0 0 18px;
    margin-top: 3px;
    text-align: center;
    color: var(--theme-primary-color);
}

.lp-resv-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* WhatsApp's own green. */
.lp-resv-whatsapp-btn {
    border-color: #25d366;
    background: #25d366;
    color: #ffffff;
    font-weight: 600;
}

.lp-resv-whatsapp-btn:hover,
.lp-resv-whatsapp-btn:focus {
    border-color: #1ebe5b;
    background: #1ebe5b;
    color: #ffffff;
}

.lp-resv-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .lp-resv-overview {
        grid-template-columns: 1fr;
    }
}

/* ---- "Home > Branch" line ---- */
.lp-resv-crumb {
    padding: 12px 0;
    font-size: 0.875rem;
    color: #475569;
}

.lp-resv-crumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-resv-crumb a {
    color: var(--theme-primary-color);
    text-decoration: none;
}

.lp-resv-crumb a:hover {
    text-decoration: underline;
}

.lp-resv-crumb i {
    font-size: 0.65rem;
    color: #94a3b8;
}

.lp-resv-crumb span {
    color: var(--theme-primary-color);
    font-weight: 600;
}

/* ---- Photo gallery: one large photo and up to four small ones ---- */
.lp-resv-gallery-section {
    padding-bottom: 8px;
}

.lp-resv-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
}

.lp-resv-gallery-tile {
    padding: 0;
    border: 0;
    background: #e2e8f0;
    overflow: hidden;
    cursor: pointer;
}

.lp-resv-gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.lp-resv-gallery-tile:hover img {
    transform: scale(1.04);
}

.lp-resv-gallery-tile:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Fewer than five photos: let the ones there are fill the space. */
.lp-resv-gallery-count-1 .lp-resv-gallery-tile:first-child { grid-column: 1 / 5; }
.lp-resv-gallery-count-2 .lp-resv-gallery-tile:first-child { grid-column: 1 / 4; }
.lp-resv-gallery-count-2 .lp-resv-gallery-tile:nth-child(2) { grid-column: 4; grid-row: 1 / 3; }
.lp-resv-gallery-count-3 .lp-resv-gallery-tile:nth-child(2),
.lp-resv-gallery-count-3 .lp-resv-gallery-tile:nth-child(3) { grid-column: 3 / 5; }
.lp-resv-gallery-count-4 .lp-resv-gallery-tile:nth-child(2) { grid-column: 3 / 5; }

/* Colours, padding and hover come from btn btn-abs-primary; this only places it. */
.lp-resv-gallery-all {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

/* ---- "See all photos" modal ---- */
/* Fixed size: the modal must not grow or shrink with the number of photos (grid or single-photo view); the body scrolls. */
.lp-resv-gallery-modal .modal-content {
    height: 80vh;
}
.lp-resv-gallery-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
}

.lp-resv-gallery-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.lp-resv-gallery-tab.is-active {
    border-bottom-color: var(--theme-primary-color);
    color: var(--theme-primary-color);
}

.lp-resv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lp-resv-gallery-thumb {
    padding: 0;
    border: 0;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    overflow: hidden;
    cursor: pointer;
}

.lp-resv-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* [hidden] must beat the display rules above (filtered thumbs, grid/viewer swap). */
.lp-resv-gallery-grid[hidden],
.lp-resv-gallery-thumb[hidden],
.lp-resv-gallery-viewer[hidden],
.lp-resv-gallery-tabs[hidden],
.lp-resv-gallery-tab[hidden] {
    display: none;
}

.lp-resv-gallery-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.lp-resv-gallery-photo-name {
    min-width: 0;
    font-weight: 600;
    color: #0f172a;
}

.lp-resv-gallery-back {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--theme-primary-color);
    font-weight: 600;
}

/* The single-photo view fills the whole (fixed-height) body: the stage takes the leftover height and the photo scales to it. */
.lp-resv-gallery-modal .modal-body {
    display: flex;
    flex-direction: column;
}

/* Keep the tab bar and grid at their natural height: in the column flex body they would otherwise be squeezed (the tab bar has overflow, so it collapses to nothing). */
.lp-resv-gallery-tabs,
.lp-resv-gallery-grid {
    flex: 0 0 auto;
}

.lp-resv-gallery-viewer {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.lp-resv-gallery-stage {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.lp-resv-gallery-nav {
    position: relative;
    z-index: 2;
}

.lp-resv-gallery-stage img {
    touch-action: none; /* pinch / pan is handled in landing-resv.js */
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lp-resv-gallery-nav {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
}

.lp-resv-gallery-caption {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
}

/* ---- Footer ---- */
.lp-resv-footer .lp-resv-footer-logo {
    margin-bottom: 32px;
    text-align: center;
}

.lp-resv-footer .lp-resv-footer-logo img {
    max-width: 100%;
    height: auto;
}

/* Below this width the bar stacks into a tall column, so it scrolls away like a normal block. */
@media (max-width: 991px) {
    .lp-resv-bar-form {
        position: static;
    }

    .lp-resv-bar.banner-form {
        padding: 10px 0;
    }

    .lp-resv-bar > .container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }


    .lp-resv-bar .modern-booking-bar-wrapper {
        height: auto;
        padding: 8px;
        border-radius: 16px;
    }

    .lp-resv-bar .modern-booking-bar-wrapper > .field-divider-80 {
        display: none;
    }
}

@media (max-width: 767px) {
    .lp-resv-gallery {
        height: 240px;
        grid-template-columns: 2fr 1fr;
    }

    .lp-resv-gallery-tile:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .lp-resv-gallery .lp-resv-gallery-tile:nth-child(2),
    .lp-resv-gallery .lp-resv-gallery-tile:nth-child(3) {
        grid-column: 2;
        grid-row: auto;
    }

    .lp-resv-gallery .lp-resv-gallery-tile:nth-child(n+4) {
        display: none;
    }

    /* Beat the per-count desktop placements above (same two-column layout whatever the count). */
    .lp-resv-gallery[class*="lp-resv-gallery-count-"] .lp-resv-gallery-tile:nth-child(n) {
        grid-column: 2;
        grid-row: auto;
    }

    .lp-resv-gallery[class*="lp-resv-gallery-count-"] .lp-resv-gallery-tile:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .lp-resv-gallery.lp-resv-gallery-count-1 {
        grid-template-columns: 1fr;
    }

    .lp-resv-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reservation-main .cart-container .sticky-top {
        top: 20px !important;
    }
}

/* The pill is as wide as the page content (1140px on a typical laptop), so below 1400px the stay-type
   button keeps just the icon and the current mode, and the fixed-size fields tighten up, leaving the
   hotel name as much room as possible. */
@media (max-width: 1399px) {
    .lp-resv-bar .lp-mode-text small,
    .lp-resv-bar .lp-mode-swap {
        display: none;
    }

    .lp-resv-bar .booking-field.occupancy-field {
        flex-basis: 190px;
    }

    .lp-resv-bar .booking-field.promo-field {
        flex-basis: 150px;
    }

    .lp-resv-bar .lp-mode-text {
        min-width: 100px;
    }
}

/* ---- Header of the booking steps after the room list: logo, stepper, login ---- */
.lp-checkout-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

.lp-checkout-header .container {
    display: grid;
    grid-template-columns: 1fr minmax(0, 560px) 1fr;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 12px;
}

.lp-checkout-logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.lp-checkout-account {
    display: flex;
    justify-content: flex-end;
}

.lp-checkout-steps {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-checkout-step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: #94a3b8;
}

/* The line to the previous step, behind the dots. */
.lp-checkout-step + .lp-checkout-step::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    left: -50%;
    height: 3px;
    border-radius: 2px;
    background: #e2e8f0;
}

.lp-checkout-step.is-done + .lp-checkout-step::before,
.lp-checkout-step.is-current::before {
    background: var(--theme-primary-color);
}

.lp-checkout-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
}

.lp-checkout-step.is-done .lp-checkout-dot {
    border-color: var(--theme-primary-color);
    background: var(--theme-primary-color);
    color: #ffffff;
}

.lp-checkout-step.is-current .lp-checkout-dot {
    border-color: var(--theme-primary-color);
    background: var(--theme-primary-color);
    color: #ffffff;
}

.lp-checkout-label {
    font-size: 0.9rem;
}

.lp-checkout-step.is-done,
.lp-checkout-step.is-current {
    color: var(--theme-primary-color);
}

.lp-checkout-step.is-current .lp-checkout-label {
    font-weight: 700;
}

/* ---- Booking bar on tablets and phones (below 992px) ----
   The pill turns into a compact card: stay type on top, then Hotel, Check In | Check Out, Occupancy,
   Promo Code and Search, one per row. Kept last in the file so it wins over the desktop rules above. */
@media (max-width: 991px) {
    .lp-resv-bar .modern-booking-bar-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
        height: auto;
        padding: 12px;
        border-radius: 16px;
    }

    .lp-resv-bar .lp-mode-btn {
        grid-column: 1 / -1;
        justify-self: center;
        min-height: 44px;
    }

    .lp-resv-bar .booking-field.flex-grow-3,
    .lp-resv-bar .booking-field.occupancy-field,
    .lp-resv-bar .booking-field.promo-field,
    .lp-resv-bar .booking-dates-row,
    .lp-resv-bar .booking-action {
        grid-column: 1 / -1;
    }

    /* Every field is its own bordered box now that the pill's dividers are gone. */
    .lp-resv-bar .booking-field {
        align-self: auto;
        min-height: 56px;
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    .lp-resv-bar .booking-field.flex-grow-3 {
        padding: 0;
    }

    .lp-resv-bar .booking-field.flex-grow-3 label {
        padding: 8px 12px 0;
    }

    .lp-resv-bar .booking-field.flex-grow-3 .field-content {
        padding: 0 12px 8px;
    }

    .lp-resv-bar .booking-field::after {
        left: 12px;
        right: 12px;
    }

    /* Check In and Check Out side by side. */
    .lp-resv-bar .booking-dates-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        min-height: 0;
        border: 0;
        background: transparent;
    }

    .lp-resv-bar .booking-dates-row > .field-divider-80 {
        display: none;
    }

    /* The base stylesheet takes the border off the fields inside the dates row; they are boxes here. */
    .lp-resv-bar .booking-dates-row .booking-field {
        padding: 8px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #ffffff;
    }

    .lp-resv-bar .booking-dates-row .booking-field::after {
        left: 12px;
        right: 12px;
    }

    .lp-resv-bar .booking-dates-row:hover,
    .lp-resv-bar .booking-dates-row:focus-within {
        background: transparent;
        box-shadow: none;
    }

    .lp-resv-bar .booking-action {
        margin: 0 !important;
    }

    .lp-resv-bar .booking-action .btn {
        width: 100%;
    }

    /* The swap arrows are shown on tablets and phones too, so the stay type reads as tappable. */
    .lp-resv-bar .lp-mode-swap {
        display: inline;
    }

    /* Day Use has just one date: Occupancy takes the other half of that row instead of a row of its own. */
    .lp-resv-bar.is-day-use .modern-booking-bar-wrapper {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .lp-resv-bar.is-day-use .booking-dates-row {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-resv-bar.is-day-use .booking-field.occupancy-field {
        grid-column: 2;
    }
}

/* Narrow phones: in that half-width Occupancy box the people icon goes, so "1 Adults, 0 Children" fits. */
@media (max-width: 480px) {
    .lp-resv-bar.is-day-use .occupancy-field .field-content > i.fa:first-child {
        display: none;
    }

    .lp-resv-bar.is-day-use .occupancy-field .form-control {
        font-size: 13px;
    }
}

/* ---- Booking bar on tablets and phones: stacking, occupancy popup and Search button ---- */
@media (max-width: 991px) {
    /* A static bar leaves the base stylesheet's z-index: 1060 on .banner-form in the page's own stacking
       order, which put the card above Bootstrap's modals (1055). Give the bar its own context below them. */
    .lp-resv-bar-form {
        position: relative;
        z-index: 1040;
    }
}

/* The occupancy popup is an absolute box (the base stylesheet's phone bottom sheet is overridden by a later
   rule, so it never applies). Anchor it to the right edge of its field and cap its width, so it opens
   inside the screen even from the half-width Day Use field. */
@media (max-width: 991px) {
    .lp-resv-bar .occupancy-dropdown {
        left: auto !important;
        right: 0 !important;
        width: min(320px, calc(100vw - 32px)) !important;
    }
}

/* Phones: a slimmer Search button. */
@media (max-width: 767px) {
    .lp-resv-bar .booking-action .btn {
        height: 32px;
        padding: 0 16px;
        font-size: 14px;
        line-height: 30px;
    }
}

/* ---- Attraction and happening cards: a grid, each card as tall as its own content ----
   The original pages give the card height: 100% (stretched to its row). With the "Show More" text and the photo
   that height came out shorter than the card's content on phones, and overflow: hidden cut the "View Details"
   button off. Here the rows are a grid (three / two / one cards per row) and the card sizes from its content,
   so nothing is ever cut; cards in a row are top-aligned and may differ in height. */
.lp-resv-extra-body .attraction-list .row,
.lp-resv-extra-body .happening-section .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: 0;
}

.lp-resv-extra-body .attraction-card,
.lp-resv-extra-body .happening-row {
    height: auto;
}

.lp-resv-extra-body .attraction-list .row > [class*="col-"],
.lp-resv-extra-body .happening-section .row > [class*="col-"] {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.lp-resv-extra-body .attraction-list .row > .col-12,
.lp-resv-extra-body .happening-section .row > .col-12 {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .lp-resv-extra-body .attraction-list .row,
    .lp-resv-extra-body .happening-section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .lp-resv-extra-body .attraction-list .row,
    .lp-resv-extra-body .happening-section .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---- Stay type on tablets and phones: a clear two-option switch ----
   The desktop button (one label, animated icon) reads as plain text on a phone. Here both options are shown as
   two segments - "Overnight Stay | Day Use" - the chosen one filled, so it is obvious that there is a choice and
   that it can be tapped. The whole thing is still the one button; tapping a segment picks that mode. */
@media (max-width: 991px) {
    .lp-resv-bar .lp-mode-btn {
        grid-column: 1 / -1;
        justify-self: stretch;
        gap: 0;
        width: 100%;
        min-height: 0;
        padding: 3px;
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        background: #f1f5f9;
    }

    .lp-resv-bar .lp-mode-icon,
    .lp-resv-bar .lp-mode-text small,
    .lp-resv-bar .lp-mode-swap {
        display: none;
    }

    .lp-resv-bar .lp-mode-text {
        flex: 1;
        min-width: 0;
    }

    .lp-resv-bar .lp-mode-labels {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        overflow: visible;
    }

    .lp-resv-bar .lp-mode-labels > span,
    .lp-resv-bar .lp-mode-btn[data-mode] .lp-mode-label-overnight,
    .lp-resv-bar .lp-mode-btn[data-mode] .lp-mode-label-day {
        position: static;
        padding: 9px 8px;
        border-radius: 999px;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
        color: #475569;
        opacity: 1;
        transform: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .lp-resv-bar .lp-mode-btn[data-mode="overnight"] .lp-mode-label-overnight,
    .lp-resv-bar .lp-mode-btn[data-mode="day_use"] .lp-mode-label-day {
        background: var(--theme-primary-color);
        color: #ffffff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    }

    /* A moon / sun in front of each option. */
    .lp-resv-bar .lp-mode-seg-icon {
        display: inline-block;
        margin-right: 8px;
        font-size: 13px;
    }
}
