/* =====================================================
   PROPERTY DETAIL — FULL-BLEED HERO BANNER OVERRIDE
   Loaded after live-property.css to restyle just the hero
   into a full-bleed image with a gradient overlay, title
   over the image, and top-right action pills, matching the
   new reference design. Everything below the hero (premium
   unlock, price breakdown, floor plans, rooms, etc.) is
   untouched.
===================================================== */

.lp-hero {
    display: block;
    position: relative;
    /* Square all round -- it butts directly against the unified
       panel below with no gap, which carries the only rounding
       (at its bottom), so the two read as one continuous block. */
    border-radius: 0;
    overflow: hidden;
    background: #0d1b34;
}

.lp-hero-image {
    position: relative;
    min-height: 420px;
    height: clamp(360px, 42vw, 460px);
    background: linear-gradient(135deg, #e8f8ed, #d8f6f3);
}

.lp-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(13, 60, 40, 0.88) 0%, rgba(13, 60, 40, 0.55) 28%, rgba(13, 60, 40, 0) 58%);
    pointer-events: none;
}

.lp-hero-image img.project-image-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lp-hero-image img.project-image-slide.is-active {
    opacity: 1;
}

.lp-placeholder {
    height: 100%;
    min-height: 420px;
}

.lp-verified {
    z-index: 3;
}

/* No heart/save icon in the reference design -- template already
   hides this button with the `hidden` attribute; nothing to
   position here. */

.project-image-dots {
    position: absolute;
    left: 28px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.project-image-dots i {
    position: relative;
    display: block;
    width: 16px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    font-style: normal;
    transition: width 0.25s ease;
}

.project-image-dots i.is-active {
    width: 34px;
}

.project-image-dots i.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: #ffffff;
    border-radius: inherit;
    animation: lpDotProgress 3s linear forwards;
}

@keyframes lpDotProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* -----------------------------------------------
   COPY OVERLAY — bottom-left of the image
------------------------------------------------ */

.lp-hero-copy {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: min(640px, 92%);
    padding: 28px 32px;
    display: block;
    color: #ffffff;
}

.lp-hero-copy .lp-back {
    display: none;
}

.lp-hero-copy .lp-tags {
    display: none;
}

.lp-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    margin: 0 0 10px;
}

.lp-location i {
    font-size: 13px;
}

.lp-hero-copy h1 {
    color: #ffffff;
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.12;
    margin: 0 0 6px;
}

.lp-hero-copy .lp-price,
.lp-hero-copy .lp-stats {
    display: none;
}

/* -----------------------------------------------
   ACTION PILLS — top-right of the image
------------------------------------------------ */

.lp-hero-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.lp-hero-actions a,
.lp-hero-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(13, 27, 52, 0.18);
}

.lp-action-tour {
    background: rgba(20, 24, 33, 0.72);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.lp-action-edit,
.lp-action-inquiry {
    background: #ffffff;
    color: #0d1b34;
}

.lp-action-delete {
    background: #ffffff;
    color: #d3372f;
}

.lp-hero-actions a:hover,
.lp-hero-actions button:hover {
    filter: brightness(0.96);
}

@media (max-width: 700px) {

    .lp-hero-image {
        height: clamp(300px, 70vw, 380px);
    }

    .lp-hero-copy {
        padding: 20px 18px;
        width: 100%;
    }

    .lp-hero-actions {
        top: 16px;
        right: 16px;
        gap: 8px;
    }

    .lp-hero-actions a,
    .lp-hero-actions button {
        padding: 9px 14px;
        font-size: 12.5px;
    }

}

@media (max-width: 420px) {

    .lp-hero-actions span {
        display: none;
    }

    .lp-hero-actions a,
    .lp-hero-actions button {
        padding: 10px;
        border-radius: 50%;
    }

}


/* =====================================================
   QUICK-VIEW GRID -- Images / About Apartment / Price
   Change / Deal Proposals, directly under the hero.
===================================================== */

.lp-quickview-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 1.6fr 1.2fr;
    grid-template-rows: auto auto;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(160deg, #eef6f4, #eaf2fb 55%, #eef6f4);
}

.lp-quickview-box {
    background: #ffffff;
    border: 1px solid #e3ece9;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(24, 47, 68, 0.05);
}

.lp-quickview-images {
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #eef8f4, #f2f8fb);
}

.lp-quickview-images .lp-quickview-photo-grid {
    align-content: start;
}

.lp-quickview-box h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--lp-ink);
}

.lp-quickview-images {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.lp-quickview-wide {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.lp-quickview-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.lp-quickview-photo-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.lp-quickview-photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.lp-quickview-photo-grid a:hover img {
    transform: scale(1.04);
}

/* small, attractive field chips for the detail boxes */

.lp-field-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-field-chips span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    background: #f6faf9;
    border: 1px solid #e7ebee;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-field-chips span b {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--lp-muted);
}

.lp-review-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    background: #fff2d9;
    color: #8a5a06;
    border-radius: 12px;
    font-size: 12.5px;
}

/* -----------------------------------------------
   TIGHTER SPACING SITE-WIDE -- the default cards use
   generous 26px padding and big gaps; this pulls them
   in so the page doesn't feel airy/empty, especially on
   small screens.
------------------------------------------------ */

.lp-card {
    padding: 18px;
}

.lp-card > header {
    margin-bottom: 14px;
    gap: 10px;
}

.lp-card > header > span {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.lp-layout {
    gap: 16px;
    margin-top: 16px;
}

.lp-main-column,
.lp-side-column {
    gap: 16px;
}

.live-property-page {
    --lp-page-pad: 18px;
    padding: 0 var(--lp-page-pad) 60px;
}

/* Hero and the quick-view grid bleed edge-to-edge, flush under
   the header and flush to the browser's left/right edges --
   only the deeper content cards keep the page's side padding. */

.lp-hero {
    margin-left: calc(-1 * var(--lp-page-pad));
    margin-right: calc(-1 * var(--lp-page-pad));
    width: auto;
}

.lp-unified-panel {
    margin-left: calc(-1 * var(--lp-page-pad));
    margin-right: calc(-1 * var(--lp-page-pad));
}

.lp-two-col-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lp-two-col-row .lp-card {
    margin: 0;
}

.lp-two-col-row .lp-breakdown-grid,
.lp-two-col-row .lp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 700px) {

    .lp-two-col-row {
        grid-template-columns: 1fr;
    }

}

/* Grids that only ever hold a handful of facts look better
   as a tight 2-up layout than a 4-up grid with dangling
   half-empty rows. */

.lp-breakdown-grid,
.lp-landmark-grid,
.lp-requirement-grid,
.lp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 700px) {

    .lp-card {
        padding: 14px;
    }

    .live-property-page {
        --lp-page-pad: 10px;
        padding: 0 10px 60px;
    }

}

/* -----------------------------------------------
   FLOOR & UNIT CONFIG -- compact version, now in the
   side column right after the map.
------------------------------------------------ */

.lp-floor-config-compact {
    padding: 16px;
}

.lp-floor-config-compact header {
    margin-bottom: 12px;
}

.lp-floor-config-compact header h2 {
    font-size: 16px;
}

.lp-floor-config-compact header p {
    font-size: 12px;
}

.lp-floor-config-compact .lp-floor-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.lp-floor-config-compact .lp-floor-grid article {
    padding: 10px 12px;
}

.lp-floor-config-compact .lp-floor-grid h3 {
    margin-bottom: 4px;
    font-size: 13px;
}

.lp-floor-config-compact .lp-floor-grid article div {
    padding: 5px 0;
    font-size: 12.5px;
}

/* -----------------------------------------------
   HOVER BORDER -- box border turns brand teal on hover
------------------------------------------------ */

.lp-unit-charge-card,
.lp-floor-grid article {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-unit-charge-card:hover,
.lp-floor-grid article:hover {
    border-color: var(--lp-teal);
    box-shadow: 0 8px 20px rgba(8, 127, 123, 0.12);
}

/* -----------------------------------------------
   UNIFIED PANEL -- everything below the hero lives in one
   continuous white surface, with a horizontal rule between
   sections instead of each being its own floating card.
------------------------------------------------ */

.lp-unified-panel {
    background: #ffffff;
    border: 1px solid #e9edec;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}

/* Strip the individual card chrome from everything inside the
   panel -- they become flat, full-width sections separated by
   a border instead of stacked boxes with their own shadow/gap. */

.lp-unified-panel .lp-quickview-grid,
.lp-unified-panel > .lp-card,
.lp-unified-panel .lp-two-col-row,
.lp-unified-panel .lp-layout,
.lp-unified-panel .lp-main-column > .lp-card,
.lp-unified-panel .lp-side-column > .lp-card,
.lp-unified-panel .lp-floor-config-compact {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

.lp-unified-panel > .lp-quickview-grid,
.lp-unified-panel > .lp-card,
.lp-unified-panel > .lp-two-col-row,
.lp-unified-panel > .lp-layout {
    padding: 20px 22px;
    border-bottom: 1px solid #eef1f0;
}

.lp-unified-panel > *:last-child {
    border-bottom: 0;
}

.lp-unified-panel .lp-two-col-row {
    gap: 22px;
}

.lp-unified-panel .lp-two-col-row .lp-card {
    padding: 0;
}

.lp-unified-panel .lp-two-col-row > .lp-card:first-child {
    border-right: 1px solid #eef1f0;
    padding-right: 22px;
}

.lp-unified-panel .lp-layout {
    gap: 22px;
}

.lp-unified-panel .lp-main-column,
.lp-unified-panel .lp-side-column {
    gap: 0;
}

.lp-unified-panel .lp-main-column > .lp-card,
.lp-unified-panel .lp-side-column > .lp-card {
    padding: 18px 0;
    border-bottom: 1px solid #eef1f0;
}

.lp-unified-panel .lp-main-column > .lp-card:first-child,
.lp-unified-panel .lp-side-column > .lp-card:first-child {
    padding-top: 0;
}

.lp-unified-panel .lp-main-column > .lp-card:last-child,
.lp-unified-panel .lp-side-column > .lp-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.lp-unified-panel .lp-side-column {
    border-left: 1px solid #eef1f0;
    padding-left: 22px;
}

@media (max-width: 900px) {

    .lp-unified-panel .lp-two-col-row {
        display: block;
    }

    .lp-unified-panel .lp-two-col-row > .lp-card:first-child {
        border-right: 0;
        border-bottom: 1px solid #eef1f0;
        padding-right: 0;
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .lp-unified-panel .lp-side-column {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #eef1f0;
        padding-top: 18px;
        margin-top: 18px;
    }

}

@media (max-width: 700px) {

    .lp-unified-panel > .lp-quickview-grid,
    .lp-unified-panel > .lp-card,
    .lp-unified-panel > .lp-two-col-row,
    .lp-unified-panel > .lp-layout {
        padding: 16px;
    }

}

/* -----------------------------------------------
   LIGHTBOX -- opened when a quick-view photo is clicked
------------------------------------------------ */

.lp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
    background: rgba(9, 16, 28, 0.88);
}

.lp-lightbox.is-open {
    display: flex;
}

.lp-lightbox img {
    max-width: min(84vw, 980px);
    max-height: 82vh;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lp-lightbox-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.lp-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lp-lightbox-prev {
    left: 24px;
}

.lp-lightbox-next {
    right: 24px;
}

.lp-lightbox-count {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* -----------------------------------------------
   OWNER / CONTACT CARD -- compact, aligned box instead
   of the oversized, loosely-spaced default layout.
------------------------------------------------ */

.lp-mobile-summary {
    gap: 14px;
}

.lp-owner-premium {
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    background: #f8fbfa;
    border: 1px solid #e7ebee;
    border-radius: 16px;
    gap: 14px;
}

.lp-owner-contact-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lp-owner-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-teal);
    color: #ffffff;
    font-weight: 800;
}

.lp-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-owner-contact-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lp-owner-contact-copy strong {
    font-size: 15px;
}

.lp-owner-contact-copy span,
.lp-owner-contact-copy small {
    font-size: 12.5px;
    color: var(--lp-muted);
    overflow-wrap: anywhere;
}

.lp-owner-premium .lp-unlocked-action,
.lp-owner-premium .lp-premium-unlock-btn,
.lp-owner-premium > a {
    white-space: nowrap;
}

@media (max-width: 560px) {

    .lp-owner-premium {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 560px) {

    .lp-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .lp-lightbox-prev {
        left: 10px;
    }

    .lp-lightbox-next {
        right: 10px;
    }

}


@media (max-width: 900px) {

    .lp-quickview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-quickview-images {
        grid-column: 1 / span 2;
        grid-row: 1;
    }

    .lp-quickview-wide {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

}

@media (max-width: 560px) {

    .lp-quickview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        background: none;
    }

    .lp-quickview-images,
    .lp-quickview-wide {
        grid-column: 1;
        grid-row: auto;
    }

    .lp-quickview-box {
        padding: 12px;
    }

    .lp-quickview-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* Reduce the map preview height -- it doesn't need to be as
   tall as a full sidebar card. */

.lp-map-preview,
.lp-map-preview iframe {
    height: 180px !important;
    min-height: 0 !important;
}

/* Public unit actions stay visible for every visitor. */
.lp-hero-image .property-detail-save[hidden] {
    display: grid !important;
}

.lp-hero-image .property-detail-save,
.lp-hero-image .lp-share-button {
    position: absolute;
    top: 24px;
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #087f7b;
    box-shadow: 0 8px 20px rgba(13,27,52,.18);
    cursor: pointer;
}

.lp-hero-image .property-detail-save { right: 132px; }
.lp-hero-image .lp-share-button { right: 78px; }
.lp-hero-image .property-detail-save svg,
.lp-hero-image .lp-share-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lp-hero-image .property-detail-save svg { fill: none; }
.lp-hero-image .property-detail-save.active { color: #e0455a; }
.lp-hero-image .property-detail-save.active svg { fill: currentColor; }
.lp-hero-image .property-detail-save:hover,
.lp-hero-image .lp-share-button:hover { transform: translateY(-2px); }

@media (max-width: 700px) {
    .lp-hero-image .property-detail-save,
    .lp-hero-image .lp-share-button { top: 16px; width: 40px; height: 40px; }
    .lp-hero-image .property-detail-save { right: 108px; }
    .lp-hero-image .lp-share-button { right: 60px; }
}
