/**
 * EagerSky — Property detail page
 * Tight centered layout; readable line lengths; balanced two-column grid.
 */

/* ── Page shell ── */
body.property-page main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.property-page-root {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    body.property-page .flex.flex-1.w-full.justify-center {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.property-page .property-page-root {
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    #available-rooms-panel.property-section--card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #roomCardsContainer,
    #roomCardsContainer.pr-1 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ── Header ── */
.property-top-bar h1 {
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0b1428;
}

.property-top-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    color: rgba(10, 22, 40, 0.62);
    font-size: 0.875rem;
    margin-top: 0.4rem;
}

.property-top-meta .meta-sep {
    color: rgba(10, 22, 40, 0.28);
}

.property-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #dde3ea;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0b1428;
    cursor: pointer;
}

.property-action-btn:hover {
    background: #f8fafc;
}

/* ── Gallery ── */
.property-hero {
    position: relative;
    margin-bottom: 1.5rem;
}

.property-photo-mosaic {
    position: relative;
    display: grid;
    gap: 6px;
    width: 100%;
    height: clamp(260px, 42vw, 420px);
    max-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8edf2;
}

.property-photo-mosaic.count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.property-photo-mosaic.count-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.property-photo-mosaic.count-3,
.property-photo-mosaic.count-4,
.property-photo-mosaic.count-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Explicit placement — avoids broken auto-flow */
.property-photo-mosaic.count-3 .property-photo-cell:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.property-photo-mosaic.count-3 .property-photo-cell:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
.property-photo-mosaic.count-3 .property-photo-cell:nth-child(3) { grid-area: 2 / 2 / 3 / 4; }

.property-photo-mosaic.count-4 .property-photo-cell:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.property-photo-mosaic.count-4 .property-photo-cell:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.property-photo-mosaic.count-4 .property-photo-cell:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.property-photo-mosaic.count-4 .property-photo-cell:nth-child(4) { grid-area: 2 / 2 / 3 / 4; }

.property-photo-mosaic.count-5 .property-photo-cell:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.property-photo-mosaic.count-5 .property-photo-cell:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.property-photo-mosaic.count-5 .property-photo-cell:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }
.property-photo-mosaic.count-5 .property-photo-cell:nth-child(4) { grid-area: 2 / 2 / 3 / 3; }
.property-photo-mosaic.count-5 .property-photo-cell:nth-child(5) { grid-area: 2 / 3 / 3 / 4; }

.property-photo-cell {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    background: #dde3ea;
    cursor: pointer;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.property-photo-cell img,
.property-photo-cell picture,
.property-photo-cell picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-photo-show-all {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 22, 40, 0.1);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0b1428;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.property-hero-carousel {
    border-radius: 12px;
    overflow: hidden;
}

/* ── Highlights ── */
.property-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #e8edf2;
}

.property-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    background: #f4f6f8;
    font-size: 0.8125rem;
    color: rgba(10, 22, 40, 0.78);
    white-space: nowrap;
}

.property-highlight i {
    color: #fb923c;
    font-size: 0.75rem;
}

.property-highlight strong {
    font-weight: 600;
    color: #0b1428;
}

.property-highlight:not([href]):not(button) {
    cursor: default;
}

a.property-highlight:hover {
    background: #eef2f6;
    color: #0b1428;
}

/* Hide Windows scrollbar arrows; wheel, swipe, and drag still work. */
body.property-page::-webkit-scrollbar-button,
body.property-page *::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ── Two-column body ── */
.property-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .property-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.property-main-col {
    min-width: 0;
    max-width: 100%;
}

/* ── Details stack (card layout) ── */
.property-details-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-info-duo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 900px) {
    .property-info-duo:not(.property-info-duo--solo) {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
    }
}

.property-info-duo > .property-section--card {
    height: auto;
    align-self: start;
}

.property-about-body.is-clamped .property-section-lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.property-about-more {
    margin-top: 0.75rem;
}

.property-section {
    padding: 0;
    border-bottom: none;
}

.property-section--card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
}

.property-section-title {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0b1428;
    margin-bottom: 0.75rem;
}

.property-section-lead {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(10, 22, 40, 0.72);
    max-width: none;
    margin: 0;
}

/* Amenities */
.property-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
}

@media (min-width: 640px) {
    .property-amenities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.property-amenity-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(10, 22, 40, 0.78);
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.property-amenity-item i {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(189, 78, 5, 0.1);
    color: #bd4e05;
    font-size: 0.8rem;
}

.property-amenities-more {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0b1428;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.property-amenity-hidden { display: none; }
.property-amenities-grid.is-expanded .property-amenity-hidden { display: flex; }

/* Host */
.property-host-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.property-host-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0b1428;
}

.property-host-role {
    font-size: 0.8125rem;
    color: rgba(10, 22, 40, 0.52);
    margin-top: 0.15rem;
}

.property-host-avatar {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(189, 78, 5, 0.15), rgba(189, 78, 5, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #bd4e05;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.property-rooms--compact .property-rooms-toolbar,
.property-rooms--compact #roomPaginationBar,
.property-rooms--compact #roomTypeChips {
    display: none !important;
}

.property-rooms--compact #roomCardsContainer {
    max-height: none;
    overflow: visible;
}

#available-rooms-panel.property-section--card {
    padding: 1.25rem 1.25rem 1.35rem;
}

.property-map-lazy-placeholder {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2f6, #f8fafc);
    color: rgba(10, 22, 40, 0.45);
    font-size: 0.875rem;
}

/* Rooms — prevent ultra-wide stretched rows */
#available-rooms-panel .room-card-item {
    max-width: 100%;
}

#roomCardsContainer {
    max-width: 100%;
}

@media (min-width: 1024px) {
  #roomCardsContainer.rooms-view-list { grid-template-columns: 1fr !important; }
}

/* Map — proper proportion, not a thin strip */
.property-map-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    background: #fff;
    max-width: 100%;
}

.property-map-card #propertyMap {
    width: 100%;
    height: clamp(220px, 36vw, 320px);
    min-height: 220px;
}

.property-map-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #eef2f6;
    text-align: right;
}

/* Reviews — constrain bar width, readable list */
.property-reviews-wrap {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .property-reviews-wrap.has-reviews {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 2rem;
    }
}

.property-reviews-score-num {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #0b1428;
}

.property-reviews-score-label {
    font-size: 0.8125rem;
    color: rgba(10, 22, 40, 0.5);
    margin-top: 0.25rem;
}

#review-breakdown {
    max-width: 280px;
}

.property-reviews-list {
    min-width: 0;
    max-width: 100%;
}

.property-reviews-list .border-b {
    max-width: 72ch;
}

/* —— Booking card —— */
.property-booking-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 1.15rem 1.15rem 1.25rem;
    box-shadow:
        0 1px 2px rgba(10, 22, 40, 0.04),
        0 12px 32px rgba(10, 22, 40, 0.08);
    width: 100%;
}

.property-booking-price-block {
    margin-bottom: 0.85rem;
}

.property-booking-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.property-booking-price-main .amount {
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0b1428;
    line-height: 1.1;
}

.property-booking-price-main .unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(10, 22, 40, 0.5);
}

.property-booking-price-alt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.property-booking-price-alt span {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(10, 22, 40, 0.52);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}

.property-booking-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.property-booking-badge--ok {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.property-booking-badge--deposit {
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.property-booking-badge--full {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.property-booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.property-booking-field {
    border: 1px solid #d5dde8;
    border-radius: 12px;
    margin-bottom: 0;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.property-booking-field:focus-within {
    border-color: #bd4e05;
    box-shadow: 0 0 0 3px rgba(189, 78, 5, 0.12);
}

.property-booking-field label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(10, 22, 40, 0.48);
    padding: 0.55rem 0.8rem 0;
}

.property-booking-field select,
.property-booking-field input:not([type="hidden"]),
.property-booking-field textarea {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 0.15rem 0.8rem 0.6rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #0b1428 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

.property-booking-room {
    padding-bottom: 0.55rem;
    background:
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.property-booking-room-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem 0;
}

.property-booking-room-head label {
    padding: 0;
}

.property-booking-room-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(10, 22, 40, 0.55);
}

.property-booking-room-label i {
    width: 1rem;
    text-align: center;
    color: rgba(10, 22, 40, 0.42);
    font-size: 0.8125rem;
}

.property-booking-room-type {
    margin-left: auto;
    margin-right: 0.35rem;
    font-size: 0.75rem;
    font-weight: 650;
    color: #bd4e05;
    background: rgba(189, 78, 5, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.property-booking-room-type.hidden {
    display: none !important;
}

.property-booking-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.35rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.property-booking-sheet-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0b1428;
}

.property-booking-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(10, 22, 40, 0.72);
    cursor: pointer;
}

.property-booking-sheet-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

@media (min-width: 1024px) {
    .property-booking-room-type {
        margin-left: 0;
        margin-right: auto;
    }
}

.property-booking-browse {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #bd4e05;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(189, 78, 5, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.property-booking-browse:hover {
    background: rgba(189, 78, 5, 0.14);
    color: #9a3f04;
}

.property-booking-room-picked {
    margin: 0.35rem 0.8rem 0;
    min-height: 1.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
}

.property-booking-room-picked.is-empty {
    color: rgba(10, 22, 40, 0.42);
    font-weight: 600;
}

.property-booking-room-picked.is-selected {
    color: #bd4e05;
}

.property-booking-room-hint,
.property-booking-hint {
    margin: 0.2rem 0.8rem 0;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: rgba(10, 22, 40, 0.45);
}

.property-booking-mode {
    margin: 0.15rem 0 0.1rem;
}

.property-booking-mode-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(10, 22, 40, 0.48);
    margin-bottom: 0.35rem;
    padding-left: 0.15rem;
}

.property-booking-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.045);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.property-booking-mode-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.property-booking-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.property-booking-mode-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.55rem;
    border-radius: 9px;
    font-size: 0.8125rem;
    font-weight: 650;
    color: rgba(10, 22, 40, 0.58);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.property-booking-mode-option input:checked + span {
    background: #fff;
    color: #0b1428;
    box-shadow: 0 1px 3px rgba(10, 22, 40, 0.1);
}

.property-booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.property-booking-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.property-booking-date-grid .property-booking-field,
.property-booking-dates .property-booking-field {
    border: 1px solid #d5dde8;
    border-radius: 12px;
    margin: 0;
    background: #fff;
}

.property-booking-date-grid .property-booking-field:focus-within,
.property-booking-dates .property-booking-field:focus-within {
    border-color: #bd4e05;
    box-shadow: 0 0 0 3px rgba(189, 78, 5, 0.12);
}

.property-booking-dates:has(#customStayPanel.hidden),
.property-booking-date-grid:has(#customStayPanel.hidden) {
    grid-template-columns: 1fr;
}

/* Booking availability calendar (custom date picker) */
.property-booking-checkin-guests {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-date-box {
    position: relative;
}

.property-date-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.15rem 0.8rem 0.6rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0b1428;
    text-align: left;
    cursor: pointer;
}

.property-date-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.property-date-box.is-open {
    border-color: #bd4e05;
    box-shadow: 0 0 0 3px rgba(189, 78, 5, 0.12);
}

.property-date-cal {
    margin-top: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #d5dde8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.property-date-cal.hidden,
.property-date-cal[hidden] {
    display: none !important;
}

.property-date-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.property-date-cal-head strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0b1428;
}

.property-date-cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #fff;
    color: #0b1428;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.property-date-cal-nav:hover {
    border-color: #bd4e05;
    color: #bd4e05;
}

.property-date-cal-hint {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: rgba(10, 22, 40, 0.55);
}

.property-date-cal-dows,
.property-date-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.property-date-cal-dows {
    margin-bottom: 0.25rem;
}

.property-date-cal-dows span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(10, 22, 40, 0.45);
}

.property-date-cal-pad {
    display: block;
    min-height: 2.25rem;
}

.property-date-cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    min-width: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0b1428;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.property-date-cal-day.is-available {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
    color: #047857;
}

.property-date-cal-day.is-available:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.2);
}

.property-date-cal-day.is-blocked,
.property-date-cal-day.is-past,
.property-date-cal-day:disabled {
    background: rgba(15, 23, 42, 0.04);
    color: rgba(10, 22, 40, 0.28);
    cursor: not-allowed;
}

.property-date-cal-day.is-selected,
.property-date-cal-day.is-checkin,
.property-date-cal-day.is-checkout {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.property-date-cal-day.is-in-range {
    background: rgba(194, 65, 12, 0.12);
    color: #9a3412;
}

.property-date-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: #b91c1c;
}

.property-date-error.hidden {
    display: none !important;
}

.property-booking-stay-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.15rem 0.15rem;
    font-size: 0.8125rem;
    color: rgba(10, 22, 40, 0.62);
}

.property-booking-stay-meta-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(10, 22, 40, 0.45);
}

#stayNightsDisplay {
    font-weight: 700;
    color: #0b1428;
    text-align: right;
}

.property-booking-guests .property-booking-hint {
    padding-bottom: 0.45rem;
}

.property-booking-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0;
}

.property-booking-row-2 .property-booking-field {
    margin-bottom: 0;
}

.property-booking-extras {
    margin-top: 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.35rem;
}

.property-booking-extras summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 650;
    color: rgba(10, 22, 40, 0.62);
    cursor: pointer;
    padding: 0.45rem 0.15rem;
    list-style: none;
    user-select: none;
}

.property-booking-extras summary::-webkit-details-marker { display: none; }

.property-booking-extras summary i {
    font-size: 0.65rem;
    color: rgba(10, 22, 40, 0.4);
    transition: transform 0.18s ease;
}

.property-booking-extras[open] summary i {
    transform: rotate(180deg);
}

.property-booking-extras .property-booking-field {
    margin-top: 0.45rem;
}

.property-booking-cta {
    width: 100%;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #d4570a 0%, #bd4e05 100%);
    color: #fff;
    font-size: 0.975rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    cursor: pointer;
    margin-top: 0.35rem;
    box-shadow: 0 8px 18px rgba(189, 78, 5, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.property-booking-cta:hover:not(:disabled):not([aria-disabled="true"]) {
    background: linear-gradient(180deg, #152238 0%, #0f1a2c 100%);
    box-shadow: 0 10px 22px rgba(15, 26, 44, 0.28);
}

.property-booking-cta:disabled,
.property-booking-cta[aria-disabled="true"],
.property-booking-cta.opacity-60 {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.property-booking-note {
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(10, 22, 40, 0.48);
    margin-top: 0.55rem;
}

.property-booking-auth-panel.hidden { display: none !important; }

.property-booking-auth-panel {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.property-sidebar-trust {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.property-sidebar-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-sidebar-trust i { color: #16a34a; }

/* Similar stays — stay inside container, sensible card width */
.property-similar-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e8edf2;
}

.property-similar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .property-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .property-similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.property-similar-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.property-similar-card h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-carousel-dots,
.card-carousel-dot,
.card-carousel-wrapper [role="tablist"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Reviews: summary + modal ── */
.property-reviews-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.25rem;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.property-reviews-summary:hover {
    border-color: #fb923c;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
}

.property-reviews-summary-left {
    flex-shrink: 0;
}

.property-reviews-summary-bars {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.property-review-bar-row {
    display: grid;
    grid-template-columns: 1.75rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.55);
}

.property-review-bar-track {
    height: 6px;
    background: #eef2f6;
    border-radius: 9999px;
    overflow: hidden;
}

.property-review-bar-fill {
    height: 100%;
    background: #fb923c;
    border-radius: 9999px;
}

.property-review-bar-count {
    min-width: 1rem;
    text-align: right;
}

.property-reviews-summary-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0b1428;
    white-space: nowrap;
}

.property-reviews-summary-cta i {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    opacity: 0.6;
}

button.property-reviews-open {
    border: none;
    font: inherit;
    cursor: pointer;
}

button.property-reviews-open:hover {
    background: #eef2f6;
}

.property-reviews-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e8edf2;
}

.property-review-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f6;
}

.property-review-item:last-child {
    border-bottom: none;
}

.property-review-item-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.property-review-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b1428;
    flex-shrink: 0;
}

.property-review-item-meta {
    flex: 1;
    min-width: 0;
}

.property-review-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0b1428;
}

.property-review-date {
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.45);
    white-space: nowrap;
}

.property-review-verified {
    font-size: 0.625rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #166534;
}

.property-review-subscores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin: 0.35rem 0 0.5rem 3rem;
    font-size: 0.75rem;
    color: rgba(10, 22, 40, 0.55);
}

.property-review-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(10, 22, 40, 0.72);
    margin-left: 3rem;
}

.property-review-item--preview .property-review-text {
    margin-left: 0;
    margin-top: 0.5rem;
}

.property-review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.5rem 3rem;
}

.property-review-photos a {
    width: 4rem;
    height: 4rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8edf2;
}

.property-review-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-review-owner-reply {
    margin: 0.65rem 0 0 3rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(184, 134, 11, 0.35);
    font-size: 0.8125rem;
    color: rgba(10, 22, 40, 0.65);
}

.property-review-owner-label {
    font-weight: 600;
    color: #fb923c;
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
}

/* Reviews modal */
.property-reviews-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.property-reviews-modal.hidden {
    display: none !important;
}

.property-reviews-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.45);
}

.property-reviews-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: min(90vh, 820px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(10, 22, 40, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.property-reviews-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
}

.property-reviews-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1428;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.property-reviews-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: #f4f6f8;
    color: #0b1428;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.property-reviews-modal-close:hover {
    background: #eef2f6;
}

.property-reviews-modal-body {
    overflow-y: auto;
    padding: 1rem 1.35rem 1.35rem;
    -webkit-overflow-scrolling: touch;
}

.property-reviews-modal-breakdown {
    max-width: 320px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 1024px) {
    .property-similar-section .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Lightbox */
.property-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
}

.property-gallery-modal.hidden { display: none !important; }

.property-gallery-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1rem 1.75rem;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
    pointer-events: none;
}

.property-gallery-modal-close {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
    pointer-events: auto;
    margin-left: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.property-gallery-modal-body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.property-gallery-modal-body::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--gallery-bg);
    background-size: cover;
    background-position: center;
    filter: blur(32px) saturate(1.05);
    transform: scale(1.08);
    opacity: 0.45;
}

.property-gallery-modal-body img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.property-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    z-index: 5;
}

.property-gallery-nav.prev { left: 0.75rem; }
.property-gallery-nav.next { right: 0.75rem; }

.property-gallery-counter {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    z-index: 4;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    padding-bottom: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

body.property-gallery-open .chat-toggle,
body.property-gallery-open .esky-chat-fab,
body.property-gallery-open .mobile-bottom-nav,
body.property-gallery-open .portal-mobile-tab-bar {
    display: none !important;
}

/* Ultra-wide screens — never stretch beyond readable width */
@media (min-width: 1400px) {
    .property-page-root {
        max-width: 1120px;
    }
}

/* Property layout upgrade v5 */
.property-layout-grid {
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .property-layout-grid {
        gap: 1.75rem;
    }
}

/* --- Wave D / Phase 25 — booking card mobile --- */
@media (max-width: 640px) {
  .property-booking-card {
    padding: 0.9rem 0.9rem 1rem;
    border-radius: 12px;
    box-shadow:
      0 1px 2px rgba(10, 22, 40, 0.04),
      0 8px 20px rgba(10, 22, 40, 0.07);
  }
  .property-booking-price-row {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .property-booking-badge {
    white-space: normal;
    max-width: 100%;
  }
  .property-booking-price-main .amount {
    font-size: 1.4rem;
  }
  .property-booking-row-2 {
    grid-template-columns: 1fr;
  }
  .property-booking-dates {
    grid-template-columns: 1fr;
  }
  .property-booking-dates .property-booking-field:first-child {
    border-right: none;
    border-bottom: 1px solid #d5dde8;
  }
  .property-booking-dates:has(#customStayPanel.hidden) .property-booking-field:first-child {
    border-bottom: none;
  }
  .property-layout-grid {
    gap: 1.25rem;
  }
  .property-booking-cta {
    padding: 0.85rem 0.9rem;
    font-size: 0.9375rem;
  }
  .room-scroll-area {
    max-height: min(320px, 48vh);
  }
}

/* Other rates — collapsed until clicked */
.property-booking-other-rates {
    margin-top: 0.4rem;
}
.property-booking-other-rates-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(10, 22, 40, 0.55);
}
.property-booking-other-rates-toggle:hover {
    color: rgba(10, 22, 40, 0.85);
}
.property-booking-other-rates-toggle .label-hide { display: none; }
.property-booking-other-rates[data-open="1"] .property-booking-other-rates-toggle .label-show { display: none; }
.property-booking-other-rates[data-open="1"] .property-booking-other-rates-toggle .label-hide { display: inline; }
.property-booking-other-rates-toggle i {
    font-size: 0.65rem;
    transition: transform 0.15s ease;
}
.property-booking-other-rates[data-open="1"] .property-booking-other-rates-toggle i {
    transform: rotate(180deg);
}
.property-booking-other-rates .property-booking-price-alt[hidden] {
    display: none !important;
}

#roomCardsContainer.rooms-view-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  max-height: none;
  overflow: visible;
}
#roomCardsContainer.rooms-view-grid .room-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#roomCardsContainer.rooms-view-grid .room-card:hover,
#roomCardsContainer.rooms-view-grid .room-card.is-active {
  border-color: #c2410c;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.12);
}
#roomCardsContainer.rooms-view-grid .room-card-media {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: hsl(var(--muted) / 0.5);
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
#roomCardsContainer.rooms-view-grid .room-card-media img,
#roomCardsContainer.rooms-view-grid .room-card-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-avail-pill {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.room-avail-pill.is-open {
  background: #dcfce7;
  color: #166534;
}
.room-avail-pill.is-low {
  background: #fee2e2;
  color: #b91c1c;
}
.room-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
  border-radius: 8px;
  background: #c2410c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  letter-spacing: 0.01em;
}
#roomCardsContainer.rooms-view-grid .room-card-body {
  padding: 12px 14px 4px;
}
#roomCardsContainer.rooms-view-grid .room-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 14px 14px;
  text-align: left;
}
#roomCardsContainer.rooms-view-grid .room-card-price-value {
  font-size: 0.95rem;
}
#roomCardsContainer.rooms-view-list .room-card-cta {
  display: none;
}
#roomCardsContainer.rooms-view-list .room-avail-pill {
  margin-top: 4px;
}

#roomDetailModal[hidden] { display: none !important; }
#roomDetailModal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.room-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.room-detail-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  background: #fff;
  box-sizing: border-box;
}
.room-detail-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 220px;
  min-height: 220px;
  scrollbar-width: none;
}
.room-detail-gallery::-webkit-scrollbar { display: none; }
.room-detail-gallery img,
.room-detail-gallery .room-detail-fallback {
  flex: 0 0 100%;
  width: 100%;
  height: 220px;
  min-height: 220px;
  object-fit: cover;
  scroll-snap-align: start;
  background: #e5e7eb;
}
@media (min-width: 768px) {
  .room-detail-gallery {
    height: 280px;
    min-height: 280px;
  }
  .room-detail-gallery img,
  .room-detail-gallery .room-detail-fallback {
    height: 280px;
    min-height: 280px;
  }
}
body.room-detail-open .chat-toggle,
body.room-detail-open .esky-chat-fab,
body.room-detail-open .mobile-bottom-nav,
body.room-detail-open .portal-mobile-tab-bar {
  display: none !important;
}
.room-detail-body {
  padding: 16px 14px 0;
  padding-left: 14px;
  padding-right: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  box-sizing: border-box;
}
.room-detail-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.room-detail-meta { color: #64748b; font-size: 0.875rem; margin-bottom: 12px; }
.room-detail-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  margin: 0 0 14px;
}
.room-detail-amenity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  color: #334155;
}
.room-detail-amenity i { color: #c2410c; width: 16px; flex-shrink: 0; }
.room-detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.room-detail-close,
.room-detail-confirm {
  flex: 1;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.9rem;
}
.room-detail-close { border: 1px solid #e5e7eb; background: #fff; }
.room-detail-confirm { border: 0; background: #c2410c; color: #fff; }
.room-detail-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

.bunk-selector-grid { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.bunk-tile {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}
.bunk-tile:last-child { margin-bottom: 0; }
.bunk-tile-label { font-size: 12px; font-weight: 600; color: #0f172a; }
.bunk-tile:not(.is-taken):hover { border-color: #fdba74; background: #fff7ed; }
.bunk-tile.is-taken {
  background: #f8fafc;
  color: #94a3b8;
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}
.bunk-tile.is-taken .bunk-tile-label { color: #94a3b8; }
.bunk-tile.is-selected {
  border: 2px solid #c2410c;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  opacity: 1;
}
.bunk-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bunk-taken-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  text-decoration: none;
}
.bunk-price { font-size: 12px; font-weight: 700; color: #c2410c; white-space: nowrap; }
.booking-bunk-summary,
.room-detail-bunk-summary {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c2410c;
}
.booking-bunk-panel { margin-top: 12px; }
.booking-bunk-heading { font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }

.room-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.room-detail-facts div {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 0;
  box-sizing: border-box;
}
.room-detail-facts dt {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}
.room-detail-facts dd {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.room-detail-facts .is-wide { grid-column: 1 / -1; }
.room-detail-h {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 14px 0 8px;
}
.room-detail-empty { font-size: 0.85rem; color: #64748b; }
/* rooms-view-engine */
#roomCardsContainer.rooms-view-engine {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: min(70vh, 720px);
  scrollbar-width: none;
}
#roomCardsContainer.rooms-view-engine::-webkit-scrollbar { display: none; }
#roomCardsContainer.rooms-view-engine.is-grid,
#roomCardsContainer.rooms-view-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  overflow-x: hidden;
  scrollbar-width: none;
}
#roomCardsContainer.rooms-view-engine.is-grid::-webkit-scrollbar,
#roomCardsContainer.rooms-view-grid::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  #roomCardsContainer.rooms-view-engine,
  #roomCardsContainer.rooms-view-engine.is-grid,
  #roomCardsContainer.rooms-view-engine.is-list,
  #roomCardsContainer.rooms-view-grid,
  #roomCardsContainer.rooms-view-list,
  #roomCardsContainer.rooms-grid-container.is-grid {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
  }
  #roomCardsContainer.rooms-view-engine.is-grid,
  #roomCardsContainer.rooms-view-grid,
  #roomCardsContainer.rooms-grid-container.is-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    scroll-snap-type: none !important;
    max-height: none !important;
    padding-bottom: 0 !important;
  }
  #roomCardsContainer.rooms-view-engine.is-grid .room-card,
  #roomCardsContainer.rooms-view-grid .room-card,
  #roomCardsContainer.rooms-grid-container.is-grid .room-card {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
  }
}
@media (min-width: 400px) and (max-width: 767px) {
  #roomCardsContainer.rooms-view-engine.is-grid,
  #roomCardsContainer.rooms-view-grid,
  #roomCardsContainer.rooms-grid-container.is-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
#roomCardsContainer.rooms-view-engine.is-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
#roomCardsContainer.rooms-view-engine .room-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#roomCardsContainer.rooms-view-engine .room-card:hover,
#roomCardsContainer.rooms-view-engine .room-card.is-active {
  border-color: #c2410c;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.12);
}
#roomCardsContainer.rooms-view-engine .room-card-media,
#roomCardsContainer.rooms-view-grid .room-card-media {
  display: block !important;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
#roomCardsContainer.rooms-view-engine .room-card-media img,
#roomCardsContainer.rooms-view-engine .room-card-media-fallback,
#roomCardsContainer.rooms-view-grid .room-card-media img,
#roomCardsContainer.rooms-view-grid .room-card-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-card-media-tag { display: none !important; }
.room-card-media__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.7rem 0.8rem;
  pointer-events: none;
  z-index: 1;
}
.room-card-media__place {
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.room-card-media__count {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
#roomCardsContainer.rooms-view-engine .room-card-badge { display: none !important; }
#roomCardsContainer.rooms-view-engine .room-card-body {
  padding: 12px 14px 4px;
  min-width: 0;
  flex: 1;
}
#roomCardsContainer.rooms-view-engine .room-card-body .font-heading {
  font-weight: 800;
  font-size: 1rem;
  color: #0f172a;
  overflow-wrap: anywhere;
}
#roomCardsContainer.rooms-view-engine .room-card-meta,
#roomCardsContainer.rooms-view-engine .room-card-body p.text-\[11px\] {
  color: #64748b;
  font-size: 12px;
  white-space: normal;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}
#roomCardsContainer.rooms-view-engine .room-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 14px 14px;
  text-align: left;
}
#roomCardsContainer.rooms-view-engine .room-card-price-value,
#roomCardsContainer.rooms-view-engine .room-card-price .text-primary {
  color: #c2410c !important;
  font-weight: 800;
  font-size: 0.98rem;
}
#roomCardsContainer.rooms-view-engine .room-card-cta { display: inline-flex; width: 100%; }
.room-avail-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.room-avail-pill.is-low {
  color: #dc2626;
  background: #fee2e2;
}
.room-avail-pill.is-open {
  color: #166534;
  background: #dcfce7;
}
@media (min-width: 768px) {
  #roomCardsContainer.rooms-view-engine.is-list .room-card {
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media {
    width: 300px;
    max-width: 42%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    border-radius: 16px 0 0 16px;
    border-top-right-radius: 0;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-body {
    padding: 16px 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-price {
    padding: 16px 16px 16px 0;
    margin-left: auto;
    align-items: flex-end;
    justify-content: center;
    min-width: 160px;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-cta { width: auto; min-width: 140px; }
}
@media (max-width: 767px) {
  #roomCardsContainer.rooms-view-engine.is-list .room-card {
    flex-direction: column;
    width: 100%;
    max-width: none;
    flex: none;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media {
    width: 100%;
    border-radius: 16px 16px 0 0;
  }
}
.rooms-chip-scroller {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 12px;
  padding-bottom: 2px;
}
.rooms-chip-scroller::-webkit-scrollbar { display: none; }
.rooms-chip-scroller > button {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}
@media (max-width: 360px) {
  #roomCardsContainer.rooms-view-engine .room-card-body,
  #roomCardsContainer.rooms-view-engine .room-card-price {
    padding-left: 12px;
    padding-right: 12px;
  }
  #roomCardsContainer.rooms-view-engine .room-card-price-value { font-size: 0.9rem; }
}
/* desktop list-view: stop flex-shrink collapse */
#roomCardsContainer.rooms-view-engine.is-list,
#roomCardsContainer.rooms-view-list {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  grid-template-columns: none !important;
}
#roomCardsContainer.rooms-view-engine.is-list .room-card,
#roomCardsContainer.rooms-view-list .room-card {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: 188px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}
@media (min-width: 768px) {
  #roomCardsContainer.rooms-view-engine.is-list .room-card,
  #roomCardsContainer.rooms-view-list .room-card {
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media,
  #roomCardsContainer.rooms-view-list .room-card-media {
    display: block !important;
    position: relative !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 240px !important;
    max-width: 300px !important;
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
    aspect-ratio: auto !important;
    align-self: stretch !important;
    border-radius: 16px 0 0 16px !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media img,
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media-fallback,
  #roomCardsContainer.rooms-view-list .room-card-media img,
  #roomCardsContainer.rooms-view-list .room-card-media-fallback {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 188px !important;
    object-fit: cover !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-body,
  #roomCardsContainer.rooms-view-list .room-card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 16px 8px 16px 0 !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-price,
  #roomCardsContainer.rooms-view-list .room-card-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 160px !important;
    padding: 16px 16px 16px 0 !important;
    text-align: right !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-cta,
  #roomCardsContainer.rooms-view-list .room-card-cta {
    display: inline-flex !important;
    width: auto !important;
    min-width: 140px;
  }
}
@media (max-width: 767px) {
  #roomCardsContainer.rooms-view-engine.is-list .room-card,
  #roomCardsContainer.rooms-view-list .room-card {
    flex-direction: column !important;
    min-height: 0 !important;
  }
  #roomCardsContainer.rooms-view-engine.is-list .room-card-media,
  #roomCardsContainer.rooms-view-list .room-card-media {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 16px 16px 0 0 !important;
  }
}
/* premium host card */
.property-host-panel {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 20px;
  max-width: none;
  width: 100%;
  height: auto;
  align-self: start;
  box-sizing: border-box;
  border: 1px solid #eef2f6;
  min-width: 0;
}
.property-host-panel .property-section-title,
.property-host-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  line-height: 1.3;
}
.property-host-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.property-host-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e8edf2;
}
.property-host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-host-avatar__initials {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #334155;
  line-height: 1;
}
.property-host-meta {
  min-width: 0;
  flex: 1;
}
.property-host-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}
.property-host-role { display: none; }
.property-host-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.property-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.property-host-badge i {
  font-size: 10px;
  line-height: 1;
}
.property-host-badge--owner {
  background: #e0f2fe;
  color: #0369a1;
}
.property-host-badge--verified {
  background: #dcfce7;
  color: #16a34a;
}
@media (max-width: 360px) {
  .property-host-panel {
    padding: 16px;
    max-width: 100%;
  }
  .property-host-name { font-size: 14px; }
}

/* Independent booking boxes */
.property-booking-form {
    gap: 0.75rem;
}
.property-booking-box {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #d5dde8;
    border-radius: 14px;
    background: #fff;
    min-width: 0;
    isolation: isolate;
}
.property-booking-box .property-booking-field {
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background: transparent;
}
.property-booking-box .property-booking-field:focus-within {
    box-shadow: none;
}
.property-booking-box .property-booking-field label {
    padding: 0 0 0.2rem;
}
.property-booking-box .property-booking-field select,
.property-booking-box .property-booking-field input:not([type="hidden"]),
.property-booking-box .property-booking-field textarea {
    padding: 0.35rem 0 0.15rem !important;
}
.property-booking-box-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
}
.property-booking-box-title {
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(10, 22, 40, 0.55);
}
.property-booking-box-tag {
    font-size: 0.75rem;
    font-weight: 650;
    color: #bd4e05;
    background: rgba(189, 78, 5, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}
.property-booking-date-summary {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
    color: #0b1428;
    overflow-wrap: anywhere;
}
.property-booking-policy-note {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(10, 22, 40, 0.62);
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.property-booking-state-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(10, 22, 40, 0.72);
}
.property-booking-state-row span:last-child {
    font-weight: 700;
    color: #0b1428;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}
.property-booking-cta {
    min-height: 2.75rem;
}
@media (max-width: 639px) {
    .property-booking-date-grid {
        grid-template-columns: 1fr;
    }
    .property-booking-date-grid:has(#customStayPanel.hidden) {
        grid-template-columns: 1fr;
    }
}

/* Public host profile */
body.host-profile-open {
    overflow: hidden;
}
.property-host-card--button {
    width: 100%;
    margin: 0;
    padding: 4px 2px 4px 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-radius: 12px;
}
.property-host-card--button:hover .property-host-name,
.property-host-card--button:focus-visible .property-host-name {
    color: #bd4e05;
}
.property-host-card--button:focus-visible {
    outline: 2px solid #bd4e05;
    outline-offset: 4px;
}
.property-host-hint {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.55);
    line-height: 1.35;
}
.property-host-open-icon {
    margin-left: auto;
    color: rgba(15, 23, 42, 0.35);
    font-size: 13px;
    flex-shrink: 0;
}
.host-badge-row,
.property-host-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.host-badge,
.property-host-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}
.host-badge i,
.property-host-badge i {
    font-size: 10px;
    line-height: 1;
}
.host-badge--role,
.property-host-badge--owner {
    background: #e0f2fe;
    color: #0369a1;
}
.host-badge--verified,
.property-host-badge--verified {
    background: #dcfce7;
    color: #15803d;
}
.host-badge--listing {
    background: #ecfdf5;
    color: #047857;
}

.host-profile-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(1rem, env(safe-area-inset-top, 0px))
             max(1rem, env(safe-area-inset-right, 0px))
             max(1rem, env(safe-area-inset-bottom, 0px))
             max(1rem, env(safe-area-inset-left, 0px));
}
.host-profile-modal.hidden {
    display: none !important;
}
.host-profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.host-profile-modal.is-open .host-profile-modal-backdrop {
    opacity: 1;
}
.host-profile-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    min-width: 0;
    box-sizing: border-box;
    max-height: 85vh;
    max-height: 85dvh;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.host-profile-modal.is-open .host-profile-modal-panel {
    opacity: 1;
}
.host-profile-modal-handle {
    display: none;
}
.host-profile-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1rem 0.5rem;
    flex-shrink: 0;
}
.host-profile-modal-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.host-profile-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.host-profile-modal-close i {
    font-size: 16px;
    line-height: 1;
    color: #0f172a;
}
.host-profile-modal-close:focus-visible {
    outline: 2px solid #bd4e05;
    outline-offset: 2px;
}
.host-profile-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.host-profile-modal-footer {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.host-profile-full-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: #3d2a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.host-profile-full-link:hover,
.host-profile-full-link:focus-visible {
    color: #fff;
    text-decoration: none;
    background: #2c1d12;
}

.host-profile {
    min-width: 0;
}
.host-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    min-width: 0;
}
.host-profile-hero-meta {
    min-width: 0;
    flex: 1 1 auto;
}
.host-profile-avatar {
    width: 72px;
    height: 72px;
}
.host-profile-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.host-profile-joined {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.58);
}
.host-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}
.host-profile-stat {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 12px 12px 11px;
    min-width: 0;
}
.host-profile-stat strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.host-profile-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.58);
}
.host-profile-note {
    margin: 0 0 10px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.host-profile-note i {
    color: #15803d;
    margin-top: 2px;
}
.host-profile-bio {
    margin: 4px 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    white-space: pre-wrap;
}
.host-profile-section {
    margin: 18px 0 6px;
}
.host-profile-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.host-profile-listings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.host-profile-listing {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.host-profile-listing:hover,
.host-profile-listing:focus-visible {
    border-color: #dbe4ee;
    background: #f8fafc;
}
.host-profile-listing img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #eef2f6;
}
.host-profile-listing-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.host-profile-listing-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    overflow-wrap: anywhere;
}
.host-profile-listing-name em {
    font-style: normal;
    font-weight: 600;
    color: #bd4e05;
    font-size: 12px;
}
.host-profile-listing-place,
.host-profile-listing-price {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.58);
}
.host-profile-empty {
    margin: 0;
    font-size: 14px;
    color: rgba(15, 23, 42, 0.55);
}
.host-profile-review-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}
.host-profile-reviews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.host-profile-review {
    padding: 12px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #f8fafc;
}
.host-profile-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.55);
}
.host-profile-review-place {
    margin: 6px 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}
.host-profile-review p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

body.host-profile-page-body,
body.host-profile-page-body main {
    overflow: visible;
}

.host-profile-page {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 20px;
    overflow: visible;
}
.host-profile-page-back {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
}
.host-profile-page-back a {
    color: #0f172a;
    text-decoration: none;
}
.host-profile-page-back a:hover {
    color: #bd4e05;
}

@media (min-width: 640px) {
    .host-profile-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .host-profile-stats:has(.host-profile-stat:nth-child(3):last-child),
    .host-profile-stats:has(.host-profile-stat:nth-child(2):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 639px) {
    .host-profile-stats:has(.host-profile-stat:nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .property-host-panel {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .host-profile-hero {
        align-items: flex-start;
        gap: 12px;
    }
    .host-profile-avatar {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }
    .host-profile-name {
        font-size: 1.15rem;
    }
    .host-profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 18px;
    }
    .host-profile-stat {
        padding: 10px 6px 9px;
        text-align: center;
    }
    .host-profile-stat strong {
        font-size: 1.05rem;
    }
    .host-profile-stat span {
        font-size: 11px;
        line-height: 1.3;
    }
    .host-profile-listings {
        gap: 0;
        border: 1px solid #eef2f6;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
    }
    .host-profile-listing {
        padding: 14px 12px;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #eef2f6;
        gap: 12px;
    }
    .host-profile-listings li:last-child .host-profile-listing {
        border-bottom: 0;
    }
    .host-profile-listings li:nth-child(even) .host-profile-listing {
        background: #f8fafc;
    }
    .host-profile-listing img {
        width: 76px;
        height: 58px;
    }
    .host-profile-listing-name {
        font-size: 15px;
    }
    .host-profile-listing-place {
        font-size: 13px;
        color: #64748b;
    }
    .host-profile-listing-price {
        margin-top: 2px;
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
    }
}
@media (max-width: 359px) {
    .host-profile-stats {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .host-profile-modal-backdrop,
    .host-profile-modal-panel {
        transition: none;
    }
}

/* ── Booking overlay (all viewports — after room + bed confirmed) ── */
.property-booking-col {
    display: none !important;
}

.property-booking-col.is-booking-open {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 10060;
    margin: 0;
    padding:
        calc(14px + env(safe-area-inset-top, 0px))
        calc(14px + env(safe-area-inset-right, 0px))
        calc(14px + env(safe-area-inset-bottom, 0px))
        calc(14px + env(safe-area-inset-left, 0px));
    max-height: none !important;
    overflow: hidden !important;
    background: rgba(15, 23, 42, 0.55);
    overscroll-behavior: contain;
    box-sizing: border-box;
}

body.booking-sheet-open {
    overflow: hidden;
}

.property-booking-col.is-booking-open #bookingCard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(440px, 100%);
    flex: 0 1 auto;
    max-height: min(90vh, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid #c5d0dc;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65),
        0 18px 40px rgba(10, 22, 40, 0.22);
    box-sizing: border-box;
}

.property-booking-col.is-booking-open .property-booking-sheet-head,
.property-booking-col.is-booking-open .property-booking-price-block {
    flex-shrink: 0;
}

.property-booking-col.is-booking-open .property-booking-sheet-head {
    padding: 0.85rem 0.9rem 0.35rem;
}

.property-booking-col.is-booking-open .property-booking-price-block {
    margin-bottom: 0;
    padding: 0 0.9rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.property-booking-col.is-booking-open .property-booking-popup-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.property-booking-col.is-booking-open .property-booking-popup-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.property-booking-col.is-booking-open .property-booking-popup-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.65rem 0.9rem 0.5rem;
}

.property-booking-col.is-booking-open .property-booking-popup-footer {
    flex-shrink: 0;
    padding: 0.65rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #fff 24%);
    box-shadow: 0 -8px 20px rgba(10, 22, 40, 0.06);
}

.property-booking-col.is-booking-open .property-booking-popup-footer .property-booking-cta {
    width: 100%;
    margin-top: 0;
}

.property-booking-col.is-booking-open .property-booking-popup-footer .property-booking-note {
    margin-bottom: 0;
}

.property-booking-col.is-booking-open .property-booking-popup-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin-top: 0.55rem;
    font-size: 0.6875rem;
    color: rgba(10, 22, 40, 0.55);
}

.property-booking-col.is-booking-open .booking-bunk-panel.is-bed-confirmed {
    display: none !important;
}

.property-booking-col.is-booking-open .property-date-cal {
    margin-bottom: 0.35rem;
}

@media (min-width: 1024px) {
    .property-booking-col.is-booking-open {
        padding: 24px;
    }

    .property-booking-col.is-booking-open #bookingCard {
        width: min(440px, 100%);
    }
}

@media (max-width: 380px) {
    .property-booking-col.is-booking-open {
        padding:
            calc(10px + env(safe-area-inset-top, 0px))
            calc(10px + env(safe-area-inset-right, 0px))
            calc(10px + env(safe-area-inset-bottom, 0px))
            calc(10px + env(safe-area-inset-left, 0px));
    }

    .property-booking-col.is-booking-open #bookingCard {
        border-radius: 14px;
    }
}

/* Room detail overlay — same inset card before booking confirm */
#roomDetailModal:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:
        calc(14px + env(safe-area-inset-top, 0px))
        calc(14px + env(safe-area-inset-right, 0px))
        calc(14px + env(safe-area-inset-bottom, 0px))
        calc(14px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

#roomDetailModal .room-detail-sheet {
    width: 100%;
    max-width: min(720px, 100%);
    flex: 0 1 auto;
    max-height: min(90vh, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid #c5d0dc;
    padding-bottom: 1rem;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65),
        0 18px 40px rgba(10, 22, 40, 0.22);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    #roomDetailModal:not([hidden]) {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    #roomDetailModal .room-detail-gallery {
        height: clamp(180px, 36vw, 240px);
        min-height: 180px;
        max-height: 240px;
        border-radius: 16px 16px 0 0;
    }

    #roomDetailModal .room-detail-gallery img,
    #roomDetailModal .room-detail-gallery .room-detail-fallback {
        min-height: 180px;
        max-height: 240px;
    }
}
