/* 
   HBH Properties - Property Detail Page (Quiet Luxury Edition)
   Dedicated Stylesheet
*/

:root {
    --primary: #9B8144;
    --dark: #26272A;
    --gray-light: #F9F9F9;
    --gray-medium: #E0E0E0;
    --gray-text: #666666;
    --white: #FFFFFF;
}

body.detail-page {
    background-color: var(--white);
    color: var(--dark);
    font-family: 'Google Sans Flex', sans-serif;
    overflow-x: hidden;
}

/* --- Top Bar (Dark Text / White Background) --- */
.detail-page .top-bar {
    position: relative;
    background: var(--white) !important;
    color: var(--dark) !important;
    padding: 12px 5% !important;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
}

.detail-page .top-bar i {
    color: var(--primary);
    margin-right: 8px;
}

/* --- Professional Header --- */
.detail-page header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white) !important;
    z-index: 1001;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-page header.sticky-header {
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    padding: 2px 0;
}

.detail-page .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
}



.detail-page .logo img {
    height: 45px;
    width: auto;
}

.detail-page .nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-page .nav-links li {
    position: relative;
}

.detail-page .nav-links li a {
    color: var(--dark) !important;
    font-weight: 500; /* Reverted from 700 to match main.css */
    font-size: 0.85rem; /* Reverted from 1.05rem to match main.css */
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85; /* Match main.css */
}

.detail-page .nav-links li a:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* Contact Button Overrides for Detail Page Header */
.detail-page .nav-links li a.contact-btn {
    background: var(--primary) !important;
    color: white !important;
    opacity: 1 !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
}

.detail-page .nav-links li a.contact-btn:hover {
    background: var(--dark) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Dropdown styling */
.detail-page .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-radius: 20px; /* Replicated from index */
    padding: 10px 0;
    z-index: 1005;
    border: 1px solid rgba(0,0,0,0.04);
    margin-top: 10px;
}

.detail-page .dropdown:hover .dropdown-content {
    display: block;
}

.detail-page .dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500; /* Match index style */
    border-bottom: 1px solid rgba(0,0,0,0.02);
    transition: 0.2s;
    opacity: 1 !important;
}

.detail-page .dropdown-content a:last-child {
    border-bottom: none;
}

.detail-page .dropdown-content a:hover {
    background-color: #fcfcfc;
    color: var(--primary) !important;
}



.detail-page .contact-btn {
    background: var(--primary);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(155, 129, 68, 0.15);
}

.detail-page .contact-btn:hover {
    background: #8a713b;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(155, 129, 68, 0.25);
}

/* --- Property Top Header --- */
.property-page-header {
    padding: 40px 5% 10px;
    background: var(--white);
}

.property-page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.property-page-header .property-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(155, 129, 68, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.property-page-header .property-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    color: var(--dark);
}

.property-page-header .property-location {
    font-size: 0.9rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.property-page-header .property-location i {
    color: var(--primary);
    font-size: 0.85rem;
}

.property-page-header .property-price {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .property-page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .property-page-header .property-title {
        font-size: 1.5rem;
    }
    
    .property-page-header .property-price {
        font-size: 1.5rem;
    }
}

/* --- Property Hero Bar (above gallery) --- */
.property-hero-bar {
    padding: 30px 5% 20px;
    background: var(--white);
    border-bottom: 1px solid #f0ece4;
}

.phb-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phb-label {
    display: inline-block;
    align-self: flex-start;
    background: rgba(155, 129, 68, 0.08);
    color: var(--primary);
    border: 1px solid rgba(155, 129, 68, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.phb-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.phb-address {
    font-size: 0.92rem;
    color: var(--gray-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.phb-address i {
    color: var(--primary);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .phb-title {
        font-size: 1.3rem;
    }
}

/* --- Editorial Gallery Grid --- */
.property-gallery-section {
    padding: 10px 5% 20px;
    background: var(--white);
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 80vh; /* Increased from 65vh to 80vh */
    min-height: 550px;
    max-height: 900px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main {
    grid-row: 1 / span 2;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-main img, .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-side {
    grid-row: 1 / span 2; /* Match the height of the main image */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-main:hover img, .gallery-item:hover img {
    transform: scale(1.03);
}

/* Photo Count Overlay (+X) */
.gallery-item.more-photos {
    position: relative;
}

.gallery-item.more-photos::after {
    content: attr(data-count);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 2;
    pointer-events: none;
}

/* Dynamic Image Layouts */
.detail-gallery-grid.single-image {
    display: block;
}
.detail-gallery-grid.single-image .gallery-main {
    height: 100%;
}
.detail-gallery-grid.single-image .gallery-side {
    display: none;
}

.detail-gallery-grid.two-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
.detail-gallery-grid.two-images .gallery-side {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.detail-gallery-grid.three-images {
    grid-template-columns: 2fr 1fr;
}
.detail-gallery-grid.three-images .gallery-side {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}

.detail-gallery-grid.four-images .gallery-side .gallery-item:first-child {
    grid-column: 1 / span 2;
}

/* --- Property Details Content --- */
.property-details-section {
    padding: 60px 5%;
}

.property-content-split {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.details-main {
    flex: 1;
}

.details-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.property-title {
    font-size: 2.8rem; /* Reduced from 3.2rem */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.property-location {
    font-size: 1.1rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-location i { color: var(--primary); }

.property-price {
    font-size: 2.6rem; /* Reduced from 3.5rem for elegance */
    color: var(--primary);
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: -0.02em;
}

/* Quick Specs Card */
.property-quick-specs-card {
    background: var(--white);
    border: 1px solid #eef0f2;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.pqsc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pqsc-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.pqsc-location {
    font-size: 1rem;
    color: var(--gray-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pqsc-location i {
    color: var(--gray-text);
}

.pqsc-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pqsc-badge {
    background: rgba(155, 129, 68, 0.08);
    color: var(--primary);
    border: 1px solid rgba(155, 129, 68, 0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

.pqsc-fav-btn {
    background: transparent;
    border: 1px solid #eef0f2;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

.pqsc-fav-btn:hover {
    background: #fff5f5;
    border-color: #ffcccc;
}

.pqsc-price-section {
    margin-bottom: 35px;
}

.pqsc-price {
    font-size: 2.6rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.pqsc-closing-cost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f6f8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    border: 1px solid #e2e8f0;
}

.pqsc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pqsc-grid-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    transition: 0.3s;
}

.pqsc-grid-item:hover {
    background: #f5f5f5;
}

.pqsc-icon {
    font-size: 1.6rem;
    color: var(--dark);
    width: 30px;
    text-align: center;
    opacity: 0.8;
}

.pqsc-info {
    display: flex;
    flex-direction: column;
}

.pqsc-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 3px;
}

.pqsc-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 992px) {
    .pqsc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pqsc-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .pqsc-grid {
        grid-template-columns: 1fr;
    }
    
    .pqsc-price {
        font-size: 2rem;
    }
    
    .property-quick-specs-card {
        padding: 20px;
    }
}

.details-block {
    margin-bottom: 60px;
}

/* ====================================================
   Mortgage Calculator
   ==================================================== */
.mortgage-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #faf8f5;
    border: 1px solid #f0ece4;
    border-radius: 16px;
    padding: 30px;
}

.mortgage-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mc-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.mc-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e0d8;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    transition: border-color 0.25s;
}

.mc-input-wrap:focus-within {
    border-color: var(--primary);
}

.mc-prefix, .mc-suffix {
    padding: 0 12px;
    background: #faf7f3;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    height: 46px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.mc-prefix { border-right: 1.5px solid #e5e0d8; }
.mc-suffix { border-left: 1.5px solid #e5e0d8; }

.mc-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: transparent;
    width: 0;
}

/* Result Panel */
.mc-result {
    background: var(--dark);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.mc-result-main {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mc-result-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.mc-result-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.mc-result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

.mc-breakdown-item span {
    color: rgba(255,255,255,0.55);
}

.mc-breakdown-item strong {
    color: var(--white);
    font-weight: 600;
}

.mc-calc-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: auto;
}

.mc-calc-btn:hover {
    background: #8a713b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 129, 68, 0.3);
}

@media (max-width: 900px) {
    .mortgage-calc { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .mortgage-inputs { grid-template-columns: 1fr; }
    .mortgage-calc { padding: 20px; }
}

/* ====================================================
   Google Map
   ==================================================== */
.property-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0ece4;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    height: 420px;
    background: #f5f0e8;
}

.property-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


.details-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.details-block h3::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 4px; height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.details-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

/* Sidebar Agent Card */
.details-sidebar {
    width: 400px;
    position: sticky;
    top: 120px;
}

.sticky-contact-card {
    background: var(--white);
    border-radius: 32px;
    padding: 45px 40px;
    box-shadow: none;
    border: 1.5px solid #eee;
    transition: all 0.3s ease;
}

.sticky-contact-card:hover {
    border-color: var(--primary);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.agent-avatar img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--gray-light);
    padding: 8px;
}

.agent-details h4 {
    font-size: 1.25rem; /* Slightly smaller for better fit */
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-sidebar {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem; /* Better balance */
    transition: 0.3s;
}

.btn-wa { background: #25D366; color: white !important; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-wa:hover { background: #20bd5a; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }

/* Message Button: dark outline, white background */
.btn-message {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--dark);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-message:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(38, 39, 42, 0.15);
}

/* --- WhatsApp Lightbox --- */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 99999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    backdrop-filter: blur(15px);
}

.lightbox-modal.active { display: flex; }

.lightbox-close {
    position: absolute;
    top: 40px; right: 50px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    z-index: 100001;
}

.lightbox-content {
    width: 100%;
    max-width: 1500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-main img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); }
.prev-lightbox { left: 40px; }
.next-lightbox { right: 40px; }

.lightbox-thumbnails-container {
    padding: 30px 0 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.lightbox-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
}

.lightbox-thumbnails::-webkit-scrollbar { display: none; }

.lightbox-thumbnails img {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.3;
    transition: 0.4s;
    border: 2px solid transparent;
}

.lightbox-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.15);
}

/* --- Similar Properties --- */
.similar-properties-section {
    padding: 100px 5%;
    background: var(--gray-light);
}

.similar-properties-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.similar-properties-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
}

.similar-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.similar-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 20px 0;
}

.similar-slider::-webkit-scrollbar { display: none; }

.similar-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 320px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.similar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.similar-card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.similar-card:hover .similar-card-image img {
    transform: scale(1.1);
}

.similar-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.similar-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.similar-card-location {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.similar-card-location i {
    color: var(--primary);
}

.similar-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.similar-card-features span {
    font-size: 0.85rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.similar-card-features i {
    color: var(--primary);
    font-size: 0.9rem;
}

.similar-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.similar-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.similar-card-link {
    width: 40px;
    height: 40px;
    background: var(--gray-light);
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.similar-card:hover .similar-card-link {
    background: var(--primary);
    color: white;
    transform: rotate(-45deg);
}

@media (max-width: 1200px) {
    .similar-card { flex: 0 0 calc(33.333% - 16px); }
}

@media (max-width: 1024px) {
    .detail-page .nav-group { gap: 15px; }
    .detail-page .hamburger { display: flex !important; }
    .detail-page .hamburger span { background: var(--dark); }
    
    .detail-page .nav-links {
        position: fixed !important;
        display: flex !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 350px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 100px 40px !important;
        gap: 20px !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
        z-index: 1001 !important;
        margin: 0 !important;
    }
    
    .detail-page .nav-links.active {
        right: 0 !important;
    }
    
    .detail-page .dropdown-content {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        background: #f9f9f9 !important;
        border: none !important;
        margin-top: 5px !important;
    }
    
    .detail-page .dropdown.active .dropdown-content {
        display: block !important;
    }
    .property-content-split { flex-direction: column; }
    .details-sidebar { width: 100%; position: relative; top: 0; }
    .detail-gallery-grid { grid-template-columns: 1fr; grid-template-rows: 350px repeat(2, 200px); height: auto; max-height: none; }
    .gallery-main { grid-row: 1; }
    .similar-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
    .similar-card { flex: 0 0 100%; }
    .property-title { font-size: 2.4rem; }
    .similar-card-image { height: 200px; }
    .similar-card-content { padding: 15px; }
}

/* --- Footer Section --- */
.footer {
    background: var(--dark);
    padding: 100px 0 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 30px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary);
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom .divider {
    margin: 0 10px;
    opacity: 0.3;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer { padding: 80px 0 30px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-bottom: 50px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ====================================================
   Enquiry Modal
   ==================================================== */
.enquiry-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(38, 39, 42, 0.55);
    backdrop-filter: blur(6px);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.enquiry-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.enquiry-modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    margin: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.enquiry-modal-overlay.active .enquiry-modal {
    transform: translateY(0) scale(1);
}

.enquiry-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f0ece4;
}

.enquiry-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.enquiry-modal-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--gray-text);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.enquiry-modal-close:hover {
    background: #f5f0e8;
    color: var(--primary);
}

.enquiry-modal-body {
    padding: 24px 32px 32px;
}

.enquiry-property-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(155, 129, 68, 0.07);
    border: 1px solid rgba(155, 129, 68, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 22px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.enquiry-field {
    display: flex;
    align-items: center;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.enquiry-field:focus-within {
    border-color: var(--primary);
}

.enquiry-field-icon {
    width: 46px;
    min-width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf7f3;
    border-right: 1px solid #e5e0d8;
    color: var(--gray-text);
    font-size: 0.9rem;
    transition: color 0.25s;
}

.enquiry-field:focus-within .enquiry-field-icon {
    color: var(--primary);
}

.enquiry-field input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: transparent;
}

.enquiry-field input::placeholder {
    color: #aaa;
}

.enquiry-field-textarea {
    align-items: flex-start;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    margin-bottom: 22px;
}

.enquiry-field-textarea textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    resize: vertical;
    background: transparent;
    min-height: 100px;
}

.enquiry-field-textarea textarea::placeholder {
    color: #aaa;
}

.enquiry-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.enquiry-btn-close {
    background: var(--white);
    color: var(--dark);
    border: 1.5px solid #d5cfc5;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s;
    white-space: nowrap;
}

.enquiry-btn-close:hover {
    background: #f5f0e8;
    border-color: var(--primary);
    color: var(--primary);
}

.enquiry-btn-send {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    text-transform: uppercase;
}

.enquiry-btn-send:hover {
    background: #8a713b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(155, 129, 68, 0.3);
}

@media (max-width: 540px) {
    .enquiry-modal-header, .enquiry-modal-body { padding-left: 20px; padding-right: 20px; }
    .enquiry-form-actions { flex-direction: column; }
    .enquiry-btn-close, .enquiry-btn-send { width: 100%; justify-content: center; }
}
