@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --brand-navy: #1a365d;
    --brand-navy-dark: #0f1e33;
    --brand-navy-light: #2c4a75;
    --brand-orange: #F18829;
    --brand-orange-hover: #e07415;
    --brand-orange-light: #fff3e6;
    --brand-gold: #d4af37;
    --brand-whatsapp: #25D366;
    --brand-whatsapp-dark: #128C7E;
    
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.35);
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.16);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism Sticky)
   ========================================================================== */
.main-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    padding: 12px 0;
    z-index: 1030;
}

.navbar-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.02);
}

.nav-link-custom {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-navy) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--brand-orange) !important;
    background-color: var(--brand-orange-light);
}

.btn-cta-nav {
    background-color: var(--brand-orange);
    color: white !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(241, 136, 41, 0.3);
    transition: all 0.25s ease;
}

.btn-cta-nav:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(241, 136, 41, 0.4);
}

/* ==========================================================================
   FULL WIDTH HERO SECTION & SLIDER
   ========================================================================== */
.hero-fullwidth-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 75vh;
    max-height: 850px;
    height: 80vh;
    overflow: hidden;
    background-color: var(--brand-navy-dark);
}

@media (max-width: 768px) {
    .hero-fullwidth-wrapper {
        height: 88vh;
        min-height: 600px;
    }
}

.hero-bg-fixed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68) blur(2.5px);
    transform: scale(1.05);
    z-index: 1;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 8s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.hero-slide-active .hero-slide-media {
    transform: scale(1.06);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 30, 51, 0.86) 0%, rgba(15, 30, 51, 0.68) 50%, rgba(15, 30, 51, 0.90) 100%);
    z-index: 2;
}

.hero-content-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-property-card-preview {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-property-card-preview:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-property-card-preview:hover .hero-card-thumb {
    transform: scale(1.06);
}

.hero-card-thumb {
    transition: transform 0.5s ease;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 850px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 680px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 28px;
}

/* Glassmorphism Quick Search Box */
.hero-search-glassbox {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    margin-top: 15px;
    max-width: 1050px;
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-hover) 100%);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 4px 14px rgba(241, 136, 41, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(241, 136, 41, 0.45);
}

.btn-navy-custom {
    background: var(--brand-navy);
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 4px 14px rgba(26, 54, 93, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-navy-custom:hover {
    background: var(--brand-navy-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(26, 54, 93, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);
    background: transparent;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--brand-navy);
    color: white;
}

/* ==========================================================================
   PROPERTY CARDS (Modern Real Estate Showcase)
   ========================================================================== */
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(241, 136, 41, 0.4);
}

.property-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #1e293b;
}

.property-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-card-img {
    transform: scale(1.08);
}

.property-badge-op {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-navy);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 2;
}

.property-badge-ref {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.property-card-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 30px 18px 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
    z-index: 2;
}

.property-card-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin: 0;
    line-height: 1;
}

.property-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.property-card-zone {
    color: var(--brand-orange);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.property-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: auto;
    margin-bottom: 14px;
}

.property-spec-item {
    text-align: center;
}

.property-spec-icon {
    font-size: 16px;
    color: var(--brand-navy);
    display: block;
    margin-bottom: 2px;
}

.property-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.property-spec-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ==========================================================================
   FULL-WIDTH PROPERTY DETAILS & GALLERY
   ========================================================================== */
.property-hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 65vh;
    min-height: 450px;
    max-height: 700px;
    background-color: #0f172a;
    overflow: hidden;
}

.property-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Mobile & Desktop Responsive Styles */
.gallery-wrapper {
    margin-bottom: 25px;
}

.gallery-mobile-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 340px;
    background-color: var(--brand-navy-dark);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 576px) and (max-width: 991px) {
    .gallery-mobile-container {
        height: 440px;
    }
}

.gallery-mobile-slide {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.gallery-mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery-mobile-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 5;
}

.gallery-mobile-badge.top-right {
    top: 14px;
    right: 14px;
}

.gallery-mobile-badge.bottom-right {
    bottom: 14px;
    right: 14px;
}

.gallery-mobile-badge.btn-open-all {
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.gallery-mobile-dots {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--brand-orange);
    transform: scale(1.3);
}

.property-mosaic-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 12px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .property-mosaic-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

.mosaic-main-item {
    grid-row: span 2;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.mosaic-sub-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mosaic-item:hover .mosaic-img {
    transform: scale(1.05);
}

.mosaic-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Specs Bar Luxury Header */
.property-specs-hero-bar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .property-specs-hero-bar {
        padding: 16px;
        margin-top: 20px;
        margin-bottom: 25px;
    }
}

.spec-hero-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-right: 1px solid var(--border-color);
}

.spec-hero-box:last-child {
    border-right: none;
}

.spec-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--brand-orange-light);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* ==========================================================================
   WHATSAPP INTEGRATION & FLOATING FAB
   ========================================================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.whatsapp-fab:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse-ring 2s infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.btn-whatsapp-contextual {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 16px;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.btn-whatsapp-contextual:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-btn-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1090;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev { left: 24px; }
.lightbox-nav-next { right: 24px; }

.lightbox-bottom-info {
    position: absolute;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1090;
}

@media (max-width: 768px) {
    .lightbox-img-wrapper {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        max-height: 85vh;
        padding: 0;
    }

    .lightbox-img {
        width: 100vw;
        max-width: 100vw;
        max-height: 80vh;
        border-radius: 0;
        object-fit: contain;
    }

    .lightbox-btn-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .lightbox-bottom-info {
        bottom: 16px;
    }
}

/* ==========================================================================
   FOOTER & SEO LINKS
   ========================================================================== */
.main-footer {
    background-color: var(--brand-navy-dark);
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 4px solid var(--brand-orange);
}

.footer-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--brand-orange);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-orange);
    padding-left: 4px;
}

.footer-seo-badges a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin: 3px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.footer-seo-badges a:hover {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
}