/* Property Detail - Luxury Layout */
/* Matches the screenshot: mosaic gallery, sticky agent card, clean spacing */

.property-detail-page {
    background: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 0;
}
.breadcrumb-luxury {
    /* fill available space in the breadcrumb-inner and align left */
    flex: 1 1 auto;
    padding: 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    justify-content: flex-start;
}
/* Make breadcrumbs slightly more visible */
.breadcrumb-luxury a,
.breadcrumb-luxury span { color: #4b5563; }
.breadcrumb-luxury a {
    color: #444;
    text-decoration: none;
}
.breadcrumb-luxury a:hover {
    color: var(--accent-gold, #d4a05f);
}
.breadcrumb-luxury i {
    font-size: 10px;
    color: #aaa;
}
.breadcrumb-luxury span {
    color: #666;
}

/* Breadcrumb inner to separate nav and share actions */
.breadcrumb-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.breadcrumb-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.breadcrumb-actions .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 50%;
    padding: 0;
}

/* Main Detail Grid */
.property-detail-main {
    max-width: 1320px;
    margin: 0 auto;
    /* compensate for the fixed header (80px) so breadcrumbs are visible */
    padding: 100px 0 0 0;
}
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 32px 20px;
}

/* Left Column */
.property-detail-left {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Mosaic Gallery (1 large left + 4 grid right) */
.property-mosaic-gallery {
    position: relative;
}
.mosaic-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    height: 480px;
}
.mosaic-main {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px 0 0 0;
}
.mosaic-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease;
}
.mosaic-main:hover .mosaic-overlay,
.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.35);
}
.btn-open-gallery {
    background: rgba(255,255,255,0.92);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-open-gallery i {
    margin-right: 6px;
}

.mosaic-grid-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}
.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mosaic-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-show-all {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-show-all:hover {
    background: rgba(255,255,255,0.12);
}

/* Property Header Section */
.property-header-section {
    padding: 28px 32px 20px;
}
.property-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.property-header-top .header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.property-header-top .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 220px;
    text-align: right;
}
.property-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 400;
    color: #222;
    margin: 0; /* remove bottom margin so title lines up with price */
    line-height: 1.08;
}
/* Ensure location appears under the title (stacked) and aligns left */
.property-header-top .property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin: 2px 0 0; /* small gap under title */
}
.property-header-top .property-location i { margin-right: 6px; color: var(--accent-gold, #d4a05f); }
.property-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.property-header-top .property-location {
    /* ensure block layout below title; this repeated selector increases specificity */
    display: flex;
}

/* Ensure the right header (price) is vertically centered when title is on the same row */
.property-header-top .header-right {
    align-self: center;
}

/* Responsive: stack title + location on small screens */
@media (max-width: 860px) {
    .property-header-top .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .property-header-top .property-location { margin-top: 6px; }
}
.link-map {
    color: var(--accent-gold, #d4a05f);
    text-decoration: none;
    font-size: 13px;
    margin-left: 8px;
}
.link-map:hover {
    text-decoration: underline;
}
.property-location-right {
    /* removed — location returned to left column; keep a harmless rule in case used elsewhere */
    display: none;
}
.property-location-right i { color: var(--accent-gold, #d4a05f); }

/* Specs badge inside the specs grid */
.spec-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}
.spec-badge i {
    font-size: 18px;
    color: var(--accent-gold, #d4a05f);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(213,170,110,0.08);
}
.spec-badge .spec-value {
    font-weight: 700;
    font-size: 14px;
}
.spec-badge .spec-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}
.property-social-actions {
    display: flex;
    gap: 8px;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 14px;
}
.icon-btn:hover {
    background: var(--accent-gold, #d4a05f);
    border-color: var(--accent-gold, #d4a05f);
    color: #fff;
}

/* Price and Specs Bar */
.property-specs-bar {
    padding: 0 32px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-and-type {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.property-price-luxury {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold, #d4a05f);
    margin: 0;
}
.price-per-sqft {
    font-size: 14px;
    color: #888;
}
.property-badges-inline {
    display: flex;
    gap: 8px;
}
.badge-chip {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-offer-type {
    background: rgba(255,200,90,0.12);
    color: #d4a05f;
}
.badge-property-type {
    background: rgba(0,0,0,0.04);
    color: #444;
}

/* Specs Grid */
.property-specs-grid {
    padding: 24px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid #e9ecef;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.spec-item i {
    font-size: 24px;
    color: var(--accent-gold, #d4a05f);
}
.spec-info {
    display: flex;
    flex-direction: column;
}
.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}
.spec-label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description Section */
.property-description-section {
    padding: 28px 32px;
}
.section-heading {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}
.description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Right Column: Sticky Agent Card */
.property-detail-right {
    position: relative;
}
.agent-sidebar-sticky {
    position: sticky;
    top: 90px;
}

/* Agent Card Luxury */
.agent-card-luxury {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    overflow: hidden;
}
.agent-card-inner {
    padding: 32px 24px;
    text-align: center;
}
.agent-photo-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.agent-photo-circle img { width:100%; height:100%; object-fit:cover; display:block; }
.agent-initials-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4a05f 0%, #c99050 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}
.agent-name {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.agent-role {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.agent-card-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a05f, transparent);
    margin: 18px auto;
}
.agent-phone-display {
    margin-bottom: 20px;
}
.agent-phone-link {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
}
.agent-phone-link:hover {
    color: var(--accent-gold, #d4a05f);
}
.agent-contact-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.agent-btn-icon {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
}
.whatsapp-btn {
    border-color: #25D366;
    color: #25D366;
}
.whatsapp-btn:hover {
    background: #25D366;
    color: #fff;
}
.viber-btn {
    border-color: #665CAC;
    color: #665CAC;
}
.viber-btn:hover {
    background: #665CAC;
    color: #fff;
}
.btn-view-listings-gold {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, #d4a05f 0%, #c99050 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(212,160,95,0.18);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-view-listings-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212,160,95,0.26);
}

/* Property Lightbox */
.property-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}
.property-lightbox[aria-hidden="true"] {
    display: none;
}
.lightbox-image-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.16);
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-caption {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .property-detail-grid {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .property-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .agent-sidebar-sticky {
        position: relative;
        top: 0;
    }
    .mosaic-grid {
        height: 400px;
    }
    .property-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .property-detail-grid {
        padding: 20px 12px;
    }
    .mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 260px repeat(4, 120px);
        height: auto;
    }
    .mosaic-grid-right {
        display: contents;
    }
    .property-header-section,
    .property-specs-bar,
    .property-specs-grid,
    .property-description-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .property-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right {
        width: 100%;
        text-align: left;
        margin-top: 12px;
    }
    .property-title {
        font-size: 24px;
    }
    .property-price-luxury {
        font-size: 26px;
    }
    .property-specs-grid {
        grid-template-columns: 1fr;
    }
    .breadcrumb-luxury {
        font-size: 11px;
        overflow-x: auto;
        white-space: nowrap;
    }
    /* Keep navigation visible on small screens so users can navigate the lightbox */
    .lightbox-prev, .lightbox-next {
        display: block;
    }
}
