/* Luxenest property detail — React 0042D parity.
   Source of truth: frontend/src/pages/Property.js + components/PublicGallery.js
   + ElegantDateRangePicker.js from the supplied React package. */

.lx-react-property-page .lx-property-react-parity {
    padding: 40px 0 64px;
    color: #0b1b34;
}

/* Tailwind max-w-7xl + px-5/md:px-10: the 1280px box includes its gutters. */
.lx-property-react-parity .lx-react-shell {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 40px;
    box-sizing: border-box;
}

/* Header */
.lx-property-react-parity .lx-react-property-heading {
    padding-bottom: 0;
}
.lx-property-react-parity .lx-react-property-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    color: rgba(11,27,52,.70);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}
.lx-property-react-parity .lx-react-property-back:hover { color: #0b1b34; }
.lx-property-react-parity .lx-react-location-badge {
    padding: .52rem .92rem;
    gap: .48rem;
    font-size: .67rem;
}
.lx-property-react-parity .lx-react-property-heading h1 {
    max-width: none;
    margin: 12px 0 0;
    color: #0b1b34;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
}

/* PublicGallery: exact 2/3 + 1/3 hero composition from React. */
.lx-property-react-parity .lx-react-property-gallery { margin-top: 24px; }
.lx-property-react-parity .lx-react-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.lx-property-react-parity .lx-react-gallery-hero {
    grid-column: span 2;
    height: 520px;
    min-height: 0;
    border-radius: 16px;
}
.lx-property-react-parity .lx-react-gallery-hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    background: #f7f2e8;
}
.lx-property-react-parity .lx-react-gallery-rail {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 122px;
    align-content: start;
    gap: 12px;
}
.lx-property-react-parity .lx-react-gallery-rail:has(.lx-react-gallery-see-all) {
    grid-template-rows: none;
}
.lx-property-react-parity .lx-react-gallery-thumb,
.lx-property-react-parity .lx-react-gallery-see-all {
    width: 100%;
    height: 122px;
    min-height: 122px;
    border-radius: 12px;
}
.lx-property-react-parity .lx-react-gallery-thumb img {
    width: 100%;
    height: 122px;
    object-fit: cover;
    background: #f7f2e8;
}
.lx-property-react-parity .lx-react-gallery-view {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    opacity: .9;
}
.lx-property-react-parity .lx-react-gallery-see-all {
    display: flex;
    border: 1px dashed rgba(199,161,91,.50);
    background: rgba(255,255,255,.60);
}
.lx-property-react-parity .lx-react-gallery-see-all strong {
    font-size: 24px;
}
.lx-property-react-parity .lx-react-gallery-see-all span {
    font-size: 11px;
    letter-spacing: .18em;
}

/* React PublicGallery complete gallery for >5 images. */
.lx-property-react-parity .lx-react-complete-gallery { margin-top: 56px; }
.lx-property-react-parity .lx-react-complete-gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.lx-property-react-parity .lx-react-complete-gallery-head h2 {
    margin: 4px 0 0;
    color: #0b1b34;
    font: 400 24px/1.2 'Playfair Display', Georgia, serif;
    letter-spacing: -.02em;
}
.lx-property-react-parity .lx-react-complete-gallery-head > span {
    color: rgba(11,27,52,.60);
    font-size: 12px;
}
.lx-property-react-parity .lx-react-complete-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.lx-property-react-parity .lx-react-complete-gallery-tile {
    position: relative;
    height: 160px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f7f2e8;
    cursor: zoom-in;
}
.lx-property-react-parity .lx-react-complete-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.lx-property-react-parity .lx-react-complete-gallery-tile:hover img { transform: scale(1.04); }
.lx-property-react-parity .lx-react-complete-gallery-tile > span {
    position: absolute;
    inset: auto 0 0;
    padding: 26px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0;
    transition: opacity .18s ease;
}
.lx-property-react-parity .lx-react-complete-gallery-tile:hover > span { opacity: 1; }

/* React md:grid-cols-12 gap-10 py-16. */
.lx-property-react-parity .lx-react-property-main {
    padding-top: 64px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}
.lx-property-react-parity .lx-react-property-content {
    grid-column: span 8;
    min-width: 0;
}
.lx-property-react-parity .lx-react-booking-column {
    grid-column: span 4;
    align-self: start;
}

/* React uses space-y-14 here — no separator rules between content sections. */
.lx-property-react-parity .lx-react-property-section {
    margin: 0 0 56px;
    padding: 0;
    border: 0;
}
.lx-property-react-parity .lx-react-property-section:last-child { margin-bottom: 0; }
.lx-property-react-parity .lx-react-property-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}
.lx-property-react-parity .lx-react-property-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .38rem .82rem;
    border-radius: 999px;
    background: rgba(199,161,91,.11);
    color: #0b1b34;
    box-shadow: 0 6px 16px rgba(11,27,52,.05);
    font-size: .8rem;
    line-height: 1.3;
}
.lx-property-react-parity .lx-react-property-facts-secondary {
    margin-top: 24px;
    margin-bottom: 0;
}
.lx-property-react-parity .lx-react-property-section h2,
.lx-property-react-parity .lx-react-property-section h3 {
    color: #0b1b34;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0;
}
.lx-property-react-parity .lx-react-property-section h2 {
    margin: 16px 0 0;
    font-size: 30px;
    line-height: 1.2;
}
.lx-property-react-parity .lx-react-property-section h3 {
    margin: 16px 0 0;
    font-size: 24px;
    line-height: 1.25;
}
.lx-property-react-parity .lx-react-property-description {
    margin: 20px 0 0;
    color: rgba(11,27,52,.75);
    font-size: 16px;
    line-height: 1.625;
    white-space: pre-line;
}
.lx-property-react-parity .lx-react-amenity-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.lx-property-react-parity .lx-react-amenity-item {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    color: #0b1b34;
    box-shadow: 0 8px 20px rgba(11,25,44,.06);
    font-size: 14px;
    line-height: 1.45;
}
.lx-property-react-parity .lx-react-house-rules {
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}
.lx-property-react-parity .lx-react-house-rules li {
    gap: 12px;
    color: #0b1b34;
    font-size: 14px;
    line-height: 1.5;
}
.lx-property-react-parity .lx-react-location-heading { gap: 8px; }
.lx-property-react-parity .lx-react-privacy-note {
    margin-top: 12px;
    padding: .82rem .95rem;
    border-radius: 15px;
    font-size: .76rem;
    line-height: 1.55;
}
.lx-property-react-parity .lx-react-map {
    margin-top: 24px;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #e8e5dd;
    box-shadow: 0 12px 30px rgba(11,25,44,.09);
}
.lx-property-react-parity .lx-react-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Reviews */
.lx-property-react-parity .lx-react-review-list { margin-top: 24px; gap: 16px; }
.lx-property-react-parity .lx-react-review-card { padding: 20px; border-radius: 16px; }
.lx-property-react-parity .lx-react-review-card h4 { font-size: 18px; }
.lx-property-react-parity .lx-react-review-meta { font-size: 12px; }
.lx-property-react-parity .lx-react-review-card > p { margin-top: 12px; font-size: 14px; line-height: 1.625; }

/* Booking card: lx-card + Property.js typography. */
.lx-property-react-parity .lx-react-booking-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 24px;
    border: 1px solid rgba(222,210,191,.68);
    border-radius: 22px;
    background: rgba(255,253,248,.97);
    color: #0b1b34;
    box-shadow: 0 18px 48px rgba(11,27,52,.075);
}
.lx-property-react-parity .lx-react-booking-panel h3 {
    margin: 8px 0 0;
    font: 400 24px/1.2 'Playfair Display', Georgia, serif;
}
.lx-property-react-parity .lx-react-booking-guide {
    margin: 8px 0 0;
    color: #6f756f;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.48;
}
.lx-property-react-parity .lx-react-booking-panel form {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}
.lx-property-react-parity .lx-react-form-field > span {
    margin-bottom: .48rem;
    font-size: .74rem;
    letter-spacing: .13em;
}
.lx-property-react-parity .lx-react-form-field input,
.lx-property-react-parity .lx-react-form-field select,
.lx-property-react-parity .lx-react-form-field textarea {
    min-height: 54px;
    padding: .78rem 1rem;
    border-radius: 15px;
    font-size: .95rem;
}
.lx-property-react-parity .lx-react-form-field textarea { min-height: 104px; }
.lx-property-react-parity .lx-react-field-guide,
.lx-property-react-parity .lx-react-form-field small {
    margin-top: .5rem;
    color: #6f756f;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.48;
}
/* React PhoneInput parity: searchable country picker + national number. */
.lx-property-react-parity .lx-react-phone-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
}
.lx-property-react-parity .lx-react-phone-code-field { position: relative; min-width: 0; }
.lx-property-react-parity .lx-react-phone-label {
    display: block;
    margin-bottom: .48rem;
    color: #0b1b34;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.lx-property-react-parity .lx-react-phone-code-trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .78rem 1rem;
    border: 1px solid rgba(199,161,91,.36);
    border-radius: 15px;
    background: #fff;
    color: #0b1b34;
    font: inherit;
    cursor: pointer;
}
.lx-property-react-parity .lx-react-phone-code-trigger > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    overflow: hidden;
    white-space: nowrap;
}
.lx-property-react-parity .lx-react-phone-code-trigger strong { font-weight: 700; }
.lx-property-react-parity .lx-react-phone-code-trigger em {
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(11,27,52,.58);
    font-size: .75rem;
    font-style: normal;
}
.lx-property-react-parity .lx-react-country-menu {
    position: absolute;
    z-index: 220;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    overflow: hidden;
    border: 1px solid rgba(222,210,191,.82);
    border-radius: 15px;
    background: #fffdf8;
    box-shadow: 0 22px 54px rgba(11,27,52,.18);
}
.lx-property-react-parity .lx-react-country-menu[hidden] { display: none !important; }
.lx-property-react-parity .lx-react-country-search {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(222,210,191,.65);
}
.lx-property-react-parity .lx-react-country-search svg { flex: 0 0 auto; color: rgba(11,27,52,.55); }
.lx-property-react-parity .lx-react-country-search input {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
    font-size: .84rem;
}
.lx-property-react-parity .lx-react-country-options { max-height: 240px; overflow-y: auto; padding: .3rem; }
.lx-property-react-parity .lx-react-country-option {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) auto;
    align-items: center;
    gap: .55rem;
    padding: .55rem .65rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0b1b34;
    text-align: left;
    cursor: pointer;
}
.lx-property-react-parity .lx-react-country-option:hover,
.lx-property-react-parity .lx-react-country-option.is-selected { background: rgba(199,161,91,.14); }
.lx-property-react-parity .lx-react-country-option .country-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-property-react-parity .lx-react-country-option .country-dial { color: rgba(11,27,52,.60); font-size: .78rem; font-variant-numeric: tabular-nums; }
.lx-property-react-parity .lx-react-concierge-prefill {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(199,161,91,.40);
    border-radius: 9px;
    background: rgba(199,161,91,.10);
    color: #0b1b34;
    font-size: 12px;
    line-height: 1.45;
}
.lx-property-react-parity .lx-react-concierge-prefill svg { color: #c7a15b; flex: 0 0 auto; }

/* Full-screen lightbox mirrors PublicGallery rather than the older dialog card. */
.lx-react-lightbox {
    background: rgba(0,0,0,.92);
    display: flex;
    flex-direction: column;
}
.lx-react-lightbox-backdrop { background: transparent; }
.lx-react-lightbox-dialog {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.lx-react-lightbox-topbar {
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lx-react-lightbox-property-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-react-lightbox-topbar [data-gallery-counter] { text-align: center; }
.lx-react-lightbox-topbar button { justify-self: end; width: auto; height: auto; padding: 4px; border-radius: 0; background: transparent; }
.lx-react-lightbox-stage { flex: 1; min-height: 0; padding: 0 16px; }
.lx-react-lightbox-stage img { max-width: 92vw; max-height: 76vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.lx-react-lightbox-nav { width: 44px; height: 44px; background: rgba(255,255,255,.10); }
.lx-react-lightbox-nav.is-prev { left: 32px; }
.lx-react-lightbox-nav.is-next { right: 32px; }
.lx-react-lightbox-caption {
    padding: 8px 40px 12px;
    color: rgba(255,255,255,.85);
    text-align: center;
    font-size: 14px;
}
.lx-react-lightbox-caption[hidden] { display: none !important; }
.lx-react-lightbox-thumbs {
    flex: 0 0 auto;
    padding: 8px 40px 24px;
    gap: 8px;
}
.lx-react-lightbox-thumbs button { width: 80px; height: 56px; border-radius: 8px; opacity: .70; }
.lx-react-lightbox-thumbs button.is-active { opacity: 1; box-shadow: 0 0 0 2px #c7a15b; }

@media (max-width: 1024px) {
    .lx-property-react-parity .lx-react-property-main { grid-template-columns: 1fr; }
    .lx-property-react-parity .lx-react-property-content,
    .lx-property-react-parity .lx-react-booking-column { grid-column: auto; }
    .lx-property-react-parity .lx-react-booking-column { max-width: 680px; }
    .lx-property-react-parity .lx-react-amenity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lx-property-react-parity .lx-react-complete-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 767px) {
    .lx-react-property-page .lx-property-react-parity { padding-top: 24px; padding-bottom: 40px; }
    .lx-property-react-parity .lx-react-shell { padding-inline: 20px; }
    .lx-property-react-parity .lx-react-property-back { font-size: 13px; }
    .lx-property-react-parity .lx-react-property-heading h1 { font-size: 30px; }
    .lx-property-react-parity .lx-react-gallery-mosaic { grid-template-columns: 1fr; }
    .lx-property-react-parity .lx-react-gallery-hero { grid-column: auto; height: 380px; }
    .lx-property-react-parity .lx-react-gallery-hero img { height: 380px; }
    .lx-property-react-parity .lx-react-gallery-rail {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-auto-rows: 96px;
        gap: 12px;
    }
    .lx-property-react-parity .lx-react-gallery-thumb { height: 96px; min-height: 96px; }
    .lx-property-react-parity .lx-react-gallery-thumb img { height: 96px; }
    .lx-property-react-parity .lx-react-gallery-see-all { display: none; }
    .lx-property-react-parity .lx-react-complete-gallery { margin-top: 44px; }
    .lx-property-react-parity .lx-react-complete-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lx-property-react-parity .lx-react-complete-gallery-tile { height: 150px; }
    .lx-property-react-parity .lx-react-property-main { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
    .lx-property-react-parity .lx-react-property-section { margin-bottom: 48px; }
    .lx-property-react-parity .lx-react-property-section h2 { font-size: 24px; }
    .lx-property-react-parity .lx-react-property-section h3 { font-size: 24px; }
    .lx-property-react-parity .lx-react-property-description { font-size: 15px; }
    .lx-property-react-parity .lx-react-amenity-grid { grid-template-columns: 1fr; }
    .lx-property-react-parity .lx-react-map { aspect-ratio: 1.45 / 1; }
    .lx-property-react-parity .lx-react-booking-panel { padding: 20px; }
    .lx-property-react-parity .lx-react-phone-picker { grid-template-columns: 1fr 1fr; }
    .lx-react-lightbox-topbar { padding-inline: 20px; }
    .lx-react-lightbox-nav.is-prev { left: 12px; }
    .lx-react-lightbox-nav.is-next { right: 12px; }
    .lx-react-lightbox-caption { padding-inline: 20px; }
    .lx-react-lightbox-thumbs { padding-inline: 20px; }
}

@media (max-width: 480px) {
    .lx-property-react-parity .lx-react-property-heading h1 { font-size: 30px; }
    .lx-property-react-parity .lx-react-gallery-hero,
    .lx-property-react-parity .lx-react-gallery-hero img { height: 310px; }
    .lx-property-react-parity .lx-react-gallery-rail { grid-auto-rows: 92px; gap: 8px; }
    .lx-property-react-parity .lx-react-gallery-thumb,
    .lx-property-react-parity .lx-react-gallery-thumb img { height: 92px; min-height: 92px; }
    .lx-property-react-parity .lx-react-complete-gallery-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .lx-property-react-parity .lx-react-complete-gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .lx-property-react-parity .lx-react-complete-gallery-tile { height: 124px; }
    .lx-property-react-parity .lx-react-property-facts { gap: 8px; }
    .lx-property-react-parity .lx-react-property-facts span { font-size: 11px; }
    .lx-property-react-parity .lx-react-phone-picker { grid-template-columns: 1fr; }
    .lx-react-lightbox-property-name { max-width: 130px; }
}

/* Final responsive parity: React Property.js switches to 12 columns at md=768,
   amenities to 3 columns at md, and PublicGallery to 4 columns at md. */
@media (min-width:768px) and (max-width:1024px) {
    .lx-property-react-parity .lx-react-property-main {
        display:grid;
        grid-template-columns:repeat(12,minmax(0,1fr));
        gap:40px;
    }
    .lx-property-react-parity .lx-react-property-content { grid-column:span 8 / span 8; }
    .lx-property-react-parity .lx-react-booking-column { grid-column:span 4 / span 4; max-width:none; }
    .lx-property-react-parity .lx-react-amenity-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .lx-property-react-parity .lx-react-complete-gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (min-width:640px) and (max-width:767px) {
    .lx-property-react-parity .lx-react-amenity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .lx-property-react-parity .lx-react-complete-gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
