html { scroll-behavior: smooth; }

#heroSection {
    background-size: cover;
    background-position: center;
}

.property-card { transition: all 0.3s ease; }

.active-zone {
    fill: rgba(197, 160, 89, 0.4) !important;
    stroke: #C5A059 !important;
    stroke-width: 2px;
}

input:focus { border-color: #C5A059; outline: none; }

html,
body {
    background: #f7f6f0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-nav {
    width: 100%;
    height: 90px;
    border-bottom: 1px solid #eeeeee;
    background: #f7f6f0;
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 55px;
}

.nav-left a,
.contact-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-left a {
    color: #000000 !important;
}

.brand {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 30px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.40em;
    line-height: 1.4;
    word-spacing: 2px;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    color: #0f172a;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.contact-btn {
    background: #000000;
    color: #f7f6f0;
    padding: 12px 34px;
    border-radius: 2px;
    display: inline-block;
}

#portfolio {
    background: #f7f6f0 !important;
    padding-top: 4.5rem !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

@media (min-width: 768px) {
    #portfolio {
        padding-left: 6rem !important;
        padding-right: 6rem !important;
    }
}

.page-panel {
    background: #f7f6f0;
}

body.view-properties #heroSection,
body.view-about #heroSection,
body.view-contact #heroSection {
    display: none !important;
}

body.view-about #portfolio,
body.view-about #contactPage,
body.view-contact #portfolio,
body.view-contact #aboutPage {
    display: none !important;
}

body.view-properties #aboutPage,
body.view-properties #contactPage {
    display: none !important;
}

body.view-properties #portfolio,
body.view-about #aboutPage,
body.view-contact #contactPage {
    display: block !important;
    padding-top: 8rem !important;
}

body.view-home #heroSection,
body.view-home #portfolio,
body.view-home #aboutPage,
body.view-home #contactPage {
    display: block !important;
}

@media (max-width: 768px) {
    .site-nav {
        height: 82px;
        padding: 0 20px;
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .nav-left {
        display: none;
    }

    .brand {
        justify-self: start;
        font-size: 20px;
        letter-spacing: 0.22em;
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 11px;
    }

    .hero-fill {
        margin-top: 82px;
        height: 72vh;
        min-height: 420px;
    }

    body.view-properties #portfolio,
    body.view-about #aboutPage,
    body.view-contact #contactPage {
        padding-top: 7rem !important;
    }
}

.hero-fill {
    display: none !important;
}

.hero-video-container {
    margin-top: 90px;
    width: 100%;
    height: 76vh;
    min-height: 470px;
    overflow: hidden;
    position: relative;
    background: #f7f6f0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    display: block;
}

@media (max-width: 768px) {
    .hero-video-container {
        margin-top: 82px;
        height: 72vh;
        min-height: 420px;
    }
}

.kaly-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #000000 !important;
    color: #f7f6f0 !important;
    padding: 70px 80px !important;
    margin-top: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.footer-inner {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 50px !important;
    max-width: 1400px !important;
    margin: auto !important;
}

.kaly-footer h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: .25em;
    margin-bottom: 15px;
}

.kaly-footer span {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .7;
}

.kaly-footer p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
}

body.view-about #heroSection,
body.view-about #portfolio,
body.view-contact #heroSection,
body.view-contact #portfolio {
    display: none !important;
}

body.view-about #aboutPage,
body.view-contact #contactPage {
    display: block !important;
    padding-top: 130px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
}

body.view-about #contactPage,
body.view-contact #aboutPage,
body.view-properties #aboutPage,
body.view-properties #contactPage,
body.view-home #aboutPage,
body.view-home #contactPage {
    display: none !important;
}

body.view-about .kaly-footer,
body.view-contact .kaly-footer,
body.view-properties .kaly-footer,
body.view-home .kaly-footer {
    display: block !important;
}

@media (max-width: 768px) {
    .kaly-footer {
        padding: 55px 24px !important;
    }

    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    body.view-about #aboutPage,
    body.view-contact #contactPage {
        padding-top: 120px !important;
    }
}

#listingPage {
    background: #f7f6f0;
    padding-top: 130px !important;
    padding-bottom: 90px !important;
}

.listing-hero-detail {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: end;
    margin-bottom: 45px;
}

.listing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: .04em;
    color: #0f172a;
}

.listing-subtitle {
    margin-top: 18px;
    max-width: 760px;
    color: #6b7280;
    font-weight: 300;
    line-height: 1.8;
}

.listing-price {
    font-size: 28px;
    font-weight: 300;
    color: #0f172a;
    white-space: nowrap;
}

.listing-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 40px;
}

.gallery-main,
.gallery-side > div {
    background: #efece6;
    overflow: hidden;
}

.gallery-main {
    aspect-ratio: 16/9;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.gallery-side > div {
    aspect-ratio: 4/3;
}

.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-upload-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
    border: 1px dashed #cfc8b8;
    color: #6b7280;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.photo-upload-slot span {
    display: block;
    font-size: 10px;
    margin-top: 6px;
    opacity: .7;
}

.listing-facts {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: #ded8ca;
    margin-bottom: 55px;
}

.listing-facts div {
    background: #f7f6f0;
    padding: 24px;
    text-align: center;
}

.listing-facts span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #888;
    margin-bottom: 8px;
}

.listing-facts strong {
    font-weight: 400;
    color: #0f172a;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
}

.listing-section {
    margin-bottom: 55px;
}

.listing-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    margin-bottom: 18px;
    color: #0f172a;
}

.listing-section p {
    color: #6b7280;
    font-weight: 300;
    line-height: 1.9;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.info-grid div,
.sidebar-card {
    border: 1px solid #e5e1d7;
    padding: 28px;
    background: #f7f6f0;
}

.info-grid h3,
.sidebar-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-list {
    columns: 2;
    color: #6b7280;
    font-weight: 300;
    line-height: 2;
    padding-left: 18px;
}

.document-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    margin-top: 22px;
}

.document-row button,
.sidebar-card a {
    background: #000;
    color: #f7f6f0;
    padding: 10px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    text-decoration: none;
    border: 0;
    display: inline-block;
}

.map-placeholder {
    height: 360px;
    border: 1px solid #d8d2c4;
    background: linear-gradient(135deg, #e8e1d3, #f7f6f0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6b7280;
}

.sidebar-card {
    margin-bottom: 22px;
}

body.view-listing #heroSection,
body.view-listing #portfolio,
body.view-listing #aboutPage,
body.view-listing #contactPage {
    display: none !important;
}

body.view-listing #listingPage {
    display: block !important;
}

body.view-home #listingPage,
body.view-properties #listingPage,
body.view-about #listingPage,
body.view-contact #listingPage {
    display: none !important;
}

@media (max-width: 900px) {
    .listing-hero-detail,
    .listing-gallery,
    .listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-facts {
        grid-template-columns: 1fr 1fr;
    }

    .feature-list {
        columns: 1;
    }

    .listing-title {
        font-size: 42px;
    }
}

@media (min-width: 1280px) {
    .listing-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 32px;
    }
    #listingPage {
        max-width: 1600px !important;
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

@media (min-width: 1600px) {
    .listing-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 28px;
    }
    #listingPage {
        max-width: 1720px !important;
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}

/* Transparent nav over video only on the home page at the top */
body.view-home:not(.scrolled) .site-nav {
    background: rgba(247, 246, 240, 0.66) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Solid nav once scrolling, and always solid on every other page/view */
body.view-home.scrolled .site-nav,
body.view-properties .site-nav,
body.view-about .site-nav,
body.view-contact .site-nav,
body.view-listing .site-nav {
    background: #f7f6f0 !important;
}

/* Let the home video bleed underneath the fixed navigation */
body.view-home #heroSection.hero-video-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Keep non-home pages clear below the fixed navigation */
body.view-properties #portfolio,
body.view-about #aboutPage,
body.view-contact #contactPage,
body.view-listing #listingPage {
    padding-top: 130px !important;
}

/* Because the video now bleeds under the transparent nav, extend the hero so its bottom still sits lower on the page. */
body.view-home #heroSection.hero-video-container {
    height: calc(76vh + 90px) !important;
    min-height: 560px !important;
}

@media (max-width: 768px) {
    body.view-home #heroSection.hero-video-container {
        height: calc(72vh + 82px) !important;
        min-height: 500px !important;
    }
}

.site-nav {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Slightly larger home hero video */
body.view-home #heroSection.hero-video-container {
    height: calc(80vh + 90px) !important;
    min-height: 600px !important;
}

@media (max-width: 768px) {
    body.view-home #heroSection.hero-video-container {
        height: calc(76vh + 82px) !important;
        min-height: 540px !important;
    }
}

/* Full front-screen hero video on home */
body.view-home #heroSection.hero-video-container {
    height: 100vh !important;
    min-height: 100vh !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    body.view-home #heroSection.hero-video-container {
        height: 100vh !important;
        min-height: 100vh !important;
        margin-top: 0 !important;
    }
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: 0;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: #000000;
    margin: 6px 0;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .site-nav {
        grid-template-columns: 1fr auto !important;
    }

    .nav-right .contact-btn {
        display: none !important;
    }

    .hamburger-btn {
        display: block !important;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        z-index: 999;
        background: #f7f6f0;
        border-bottom: none;
        padding: 32px 24px 36px;
        text-align: center;
    }

    .mobile-menu.open {
        display: block !important;
    }

    .mobile-menu a {
        display: block;
        font-family: 'Quicksand', sans-serif;
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        text-decoration: none;
        color: #000000;
        padding: 16px 0;
    }
}

/* ── Leaflet Satellite Map ──────────────────────────────────── */
.leaflet-map-container {
    width: 100%;
    height: 420px;
    border: 1px solid #d8d2c4;
    background: #efece6;
}

/* Gold dot marker */
.leaflet-gold-marker {
    width: 16px;
    height: 16px;
    background: #C5A059;
    border: 2.5px solid #f7f6f0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(197,160,89,0.35), 0 2px 8px rgba(0,0,0,0.35);
}

/* Popup – override Leaflet defaults to match site palette */
.leaflet-popup-content-wrapper {
    background: #f7f6f0 !important;
    border: 1px solid #d8d2c4 !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 20px 24px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leaflet-popup-tip-container {
    display: none !important;
}

.leaflet-popup-title {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.leaflet-popup-coords {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C5A059;
    margin-top: 2px;
}

/* Leaflet close button */
.leaflet-popup-close-button {
    color: #6b7280 !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 10px !important;
}

.leaflet-popup-close-button:hover {
    color: #C5A059 !important;
}

.footer-copyright {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 16px;
    text-align: left;
}

@media (min-width: 769px) {
    .footer-copyright {
        text-align: center;
        margin-top: 24px;
    }
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #555;
    border-radius: 50%;
    color: #f7f6f0;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    border-color: #C5A059;
    color: #C5A059;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f7f6f0;
    opacity: 0.45;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #C5A059;
}

/* ── Cookie Consent Banner ──────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #121212;
    color: #f7f6f0;
    padding: 18px 24px;
    font-size: 13px;
    line-height: 1.6;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid #333;
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner a {
    color: #C5A059;
    text-decoration: underline;
}

.cookie-banner button {
    background: #C5A059;
    color: #121212;
    border: none;
    padding: 10px 22px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.cookie-banner button:hover {
    background: #f7f6f0;
}

/* ── GDPR Form Checkbox ─────────────────────────────────────── */
.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.gdpr-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #C5A059;
}

.gdpr-consent a {
    color: #C5A059;
    text-decoration: underline;
}
.leaflet-control-attribution {
    background: rgba(247,246,240,0.85) !important;
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
    color: #6b7280 !important;
    border-top: 1px solid #e5e1d7 !important;
}

/* Zoom controls */
.leaflet-control-zoom a {
    background: #f7f6f0 !important;
    color: #0f172a !important;
    border: 1px solid #d8d2c4 !important;
    font-weight: 300 !important;
}

.leaflet-control-zoom a:hover {
    background: #C5A059 !important;
    color: #f7f6f0 !important;
    border-color: #C5A059 !important;
}
