/* /real-estate/assets/css/property-detail.css
   Supplemental styles for property detail page — extends real-estate.css */

/* ---- GALLERY LIGHTBOX OVERLAY ---- */
.re-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.re-lightbox.open { display: flex; }
.re-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.re-lightbox__close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    color: rgba(255,255,255,.8);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color .18s;
}
.re-lightbox__close:hover { color: #fff; }
.re-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s;
}
.re-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.re-lightbox__prev { left: 16px; }
.re-lightbox__next { right: 16px; }
.re-lightbox__counter {
    color: rgba(255,255,255,.6);
    font-family: var(--re-font-ui);
    font-size: 0.82rem;
}

/* ---- STICKY INQUIRY (mobile float) ---- */
@media (max-width: 900px) {
    .re-inquiry-box {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -4px 24px rgba(0,0,0,.14);
        z-index: 200;
        transform: translateY(calc(100% - 62px));
        transition: transform .3s ease;
    }
    .re-inquiry-box.open { transform: translateY(0); }
    .re-inquiry-box__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: var(--re-dusk);
        cursor: pointer;
        color: #fff;
        border-radius: 14px 14px 0 0;
    }
    .re-inquiry-box__toggle strong {
        font-family: var(--re-font-ui);
        font-size: 0.88rem;
    }
    .re-inquiry-box__toggle svg {
        width: 18px; height: 18px;
        stroke: #fff; fill: none;
        transition: transform .28s;
    }
    .re-inquiry-box.open .re-inquiry-box__toggle svg { transform: rotate(180deg); }
    .re-inquiry-box__head { display: none; }
    .re-inquiry-box__body { max-height: 70vh; overflow-y: auto; }
}
@media (min-width: 901px) {
    .re-inquiry-box__toggle { display: none; }
}

/* ---- PROPERTY META TABLE ---- */
.re-prop-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.re-prop-meta-table tr { border-bottom: 1px solid var(--re-rule); }
.re-prop-meta-table tr:last-child { border-bottom: none; }
.re-prop-meta-table td {
    padding: 10px 0;
    font-family: var(--re-font-ui);
    font-size: 0.86rem;
    vertical-align: top;
}
.re-prop-meta-table td:first-child {
    width: 42%;
    color: var(--re-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.re-prop-meta-table td:last-child { color: var(--re-ink-soft); font-weight: 500; }

/* ---- NEARBY PLACES ---- */
.re-nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.re-nearby-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--re-cream);
    border: 1px solid var(--re-rule);
    border-radius: var(--re-radius);
}
.re-nearby-item__icon {
    width: 30px; height: 30px;
    background: var(--re-sand);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.re-nearby-item__icon svg { width: 14px; height: 14px; stroke: var(--re-coconut); fill: none; }
.re-nearby-item__name {
    font-family: var(--re-font-ui);
    font-size: 0.82rem;
    color: var(--re-ink-soft);
    font-weight: 500;
}
.re-nearby-item__dist {
    font-size: 0.72rem;
    color: var(--re-muted);
    margin-top: 2px;
}

/* ---- COASTAL LIFESTYLE CONTENT ---- */
.re-coastal-strip {
    background: linear-gradient(135deg, var(--re-dusk) 0%, #1e4a52 50%, var(--re-sea) 100%);
    padding: 40px;
    border-radius: var(--re-radius-lg);
    margin: 36px 0;
    color: rgba(255,255,255,.85);
}
.re-coastal-strip h3 {
    font-family: var(--re-font-head);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}
.re-coastal-strip p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: rgba(255,255,255,.75);
}
.re-coastal-strip p:last-child { margin-bottom: 0; }

/* ---- SHARE BAR ---- */
.re-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--re-rule);
    border-bottom: 1px solid var(--re-rule);
    margin: 20px 0 28px;
    flex-wrap: wrap;
}
.re-share-bar__label {
    font-family: var(--re-font-ui);
    font-size: 0.78rem;
    color: var(--re-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.re-share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border: 1px solid var(--re-rule);
    border-radius: var(--re-radius);
    font-family: var(--re-font-ui);
    font-size: 0.78rem;
    color: var(--re-ink-soft);
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    transition: all .18s;
}
.re-share-btn:hover { background: var(--re-sand); }
.re-share-btn svg { width: 14px; height: 14px; }
.re-copy-link { cursor: pointer; }

/* ---- REPORT LISTING ---- */
.re-report-link {
    display: inline-block;
    font-family: var(--re-font-ui);
    font-size: 0.76rem;
    color: var(--re-muted);
    margin-top: 12px;
    cursor: pointer;
    border-bottom: 1px dashed var(--re-rule);
    padding-bottom: 1px;
    transition: color .18s;
}
.re-report-link:hover { color: #c0392b; }

/* ---- VIEW COUNT ---- */
.re-view-count {
    font-family: var(--re-font-ui);
    font-size: 0.76rem;
    color: var(--re-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.re-view-count svg { width: 13px; height: 13px; stroke: var(--re-muted); fill: none; }
