/* --- 1. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #4b0082; /* Your Royal Purple */
    --black: #1a1a1a;
    --white: #ffffff;
    --vintage-ochre: #8b5e3c;
    --vintage-muted: #6b5b4b;
    --vintage-paper: #fbf6ef;
}

/* Accessibility helper: visually hidden */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Typing cursor and heading */
.typed-heading { font-family: 'Playfair Display', serif; font-weight:700; font-size: 2.2rem; color: var(--black); }
.typed-heading #typedText { white-space: nowrap; }
.typing-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--purple); margin-left: 8px; vertical-align: middle; opacity: 1; animation: blink 0.8s step-end infinite; }
.typing-cursor.blink { animation: blink 0.6s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 700px) { .typed-heading { font-size: 1.4rem; } }

/* Mobile-only: make the typed heading larger and reduce logo size on small devices */
@media (max-width: 600px) {
    .typed-heading { font-size: 2.6rem; line-height: 1.02; }
    .logo-img { height: 40px; }
    .logo-container { position: relative; transform: translateX(-8px); }
}

/* --- COLLABORATORS PAGE STYLES --- */
.collab-hero {
    background-image: url('images/background10.avif');
    background-size: cover;
    background-position: center;
    padding: 64px 4%;
    color: #fff;
    position: relative;
}
.collab-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,13,0.56), rgba(75,0,130,0.16));
    z-index: 1;
    pointer-events: none;
}
.collab-hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; text-align: center; }
.collab-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.4rem; margin-bottom: 8px; }
.collab-hero .lead { color: rgba(255,255,255,0.92); font-size: 1.05rem; }

.company-section { padding: 42px 4%; border-bottom: 1px solid rgba(0,0,0,0.04); background: #fff; }
.company-section.alt { background: linear-gradient(180deg,#fbfbff,#f6f6fb); }
.company-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.company-info h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 8px; color: var(--black); }
.company-info .muted { color: var(--vintage-muted); font-weight:700; margin-bottom:10px; }
.company-info p { color: #444; line-height:1.7; }

.collab-gallery { padding: 12px 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.gallery-grid .photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; display:block; background: #fff; box-shadow: 0 18px 36px rgba(16,12,8,0.06); transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease; }
.gallery-grid .photo img { width:100%; height:100%; object-fit: cover; display:block; }
.gallery-grid .photo:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 26px 64px rgba(16,12,50,0.12); filter: brightness(0.98); }

/* Hidden extras in galleries (first N shown, others hidden until View More) */
.gallery-grid .photo.hidden-photo { display: none; }

/* Video thumbnail wrapper and play overlay (used by collaborators and properties pages) */
.gallery-thumb-wrap { position: relative; display: block; }
.gallery-thumb-wrap .gallery-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.video-play-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.45); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; pointer-events: none; }

/* Floating effect for property gallery thumbnails (subtle, staggered) */
#prop-gallery .gallery-img {
    animation: floaty 4.6s ease-in-out infinite;
    will-change: transform;
    transform-origin: center bottom;
}
#prop-gallery .gallery-img:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 34px 80px rgba(16,12,8,0.16);
}

/* Stagger timings for a natural, non-uniform float */
#prop-gallery .gallery-img:nth-child(2n) { animation-duration: 5.0s; animation-direction: reverse; }
#prop-gallery .gallery-img:nth-child(3n) { animation-duration: 4.4s; animation-delay: 0.2s; }
#prop-gallery .gallery-img:nth-child(5n) { animation-duration: 5.4s; animation-delay: 0.6s; }

/* Float keyframes */
@keyframes floaty {
    0% { transform: translateY(0px) rotate(0deg); }
 20% { transform: translateY(-8px) rotate(-0.35deg); }
 50% { transform: translateY(-12px) rotate(0.45deg); }
 80% { transform: translateY(-8px) rotate(-0.2deg); }
100% { transform: translateY(0px) rotate(0deg); }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #prop-gallery .gallery-img { animation: none !important; transition: transform 160ms ease !important; }
}

/* Featured properties: disable floating animation for a stable professional layout */
.featured-section .property-image {
    animation: none !important;
    will-change: auto;
    transform-origin: center bottom;
}
.featured-section .property-image img {
    transition: transform 260ms ease, box-shadow 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .featured-section .property-image { animation: none !important; transform: none !important; }
}

@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .company-inner { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.88);
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 28px 80px rgba(0,0,0,0.6); display: block; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.8rem;
    backdrop-filter: blur(4px);
}
.lightbox-close { right: 18px; top: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }

@media (max-width: 700px) {
    .lightbox-prev, .lightbox-next { display: none; }
    .lightbox-close { right: 12px; top: 12px; }
}


body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
    padding-bottom: 0;
}

/* --- 2. NAVIGATION BAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: var(--white);
    height: 90px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 300ms ease, box-shadow 220ms ease;
}

.logo-img {
    height: 70px;
    width: auto;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
}

.site-title span { color: var(--purple); }

/* Center the site title precisely in the header */
.site-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    pointer-events: none;
    text-align: center;
    width: max-content;
}

@media (max-width: 700px) {
    .site-title { font-size: 1.1rem; }
}

/* Hamburger Button */
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--black);
}

/* --- 3. MENU DRAWER FIX --- */
.menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    background: rgba(0,0,0,0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2000;
    transition: 0.5s ease-in-out;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.menu-drawer.open {
    right: 0;
}

.menu-drawer .close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

.drawer-nav ul {
    list-style: none;
    margin-top: 50px;
}

.menu-drawer .drawer-nav,
.menu-drawer .drawer-nav nav {
    background: transparent;
    height: auto;
    box-shadow: none;
    padding: 0;
    margin-top: 40px;
}

.menu-drawer .drawer-nav ul { margin-top: 12px; }

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1500;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-nav li { margin-bottom: 30px; }

.drawer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.drawer-nav a:hover { color: var(--purple); }

/* --- 4. HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
}

.slide.active { opacity: 1; }

.overlay {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    opacity: 1;
    transition: opacity 260ms ease;
    background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.18));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

nav.nav-hide {
    transform: translateY(-120%);
    box-shadow: none;
}

.hero-title {
    --hero-sub: 1.6rem;
    --hero-h1: calc(var(--hero-sub) * 2.5);
}
.hero-title h1 {
    font-size: var(--hero-h1);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}
.hero-title p {
    font-size: var(--hero-sub);
}

@media (max-width: 1024px) { .hero-title { --hero-sub: 1.2rem; } }
@media (max-width: 768px) { .hero-title { --hero-sub: 1rem; } }
@media (max-width: 480px) { .hero-title { --hero-sub: 0.9rem; } }

.slideshow-controls {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 12;
}
.slideshow-controls button {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1.4rem;
    cursor: pointer;
}
.slideshow-controls .dots { display:flex; gap:8px; }
.slideshow-controls .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor:pointer; }
.slideshow-controls .dot.active { background: white; box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }

@media (max-width: 700px) {
    .slideshow-controls { gap: 10px; bottom: 14px; }
    .slideshow-controls button { padding: 6px 10px; font-size: 1.1rem; }
}

/* --- 5. ABOUT SECTION --- */
.about-section { padding: 80px 5%; background: linear-gradient(180deg,#fbfbff 0%, #f6f6fb 100%); }
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 36px;
    align-items: center;
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(21,21,21,0.06);
}
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin-bottom: 12px; color: var(--black); }
.about-text .lead { color: #333; font-size: 1.05rem; line-height: 1.6; margin-bottom: 14px; }
.about-image { display:flex; align-items:center; justify-content:center; }
.about-image img { width: 100%; max-width: 420px; height: auto; border-radius: 10px; box-shadow: 0 12px 28px rgba(21,21,21,0.08); }

/* --- ABOUT PAGE STYLES --- */
.about-hero {
    position: relative;
    background-image: url('images/background10.avif');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 72px 4% 48px;
}
.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,13,0.66), rgba(75,0,130,0.28));
    pointer-events: none;
    z-index: 1;
}
.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center;
}
.about-hero-content h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; margin-bottom: 10px; color: #fff; }
.about-hero-content .lead { color: rgba(255,255,255,0.92); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }

.about-main { max-width: 1100px; margin: 40px auto 80px; padding: 0 4%; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
.about-story p { color: #333; line-height: 1.75; margin-bottom: 16px; }
.about-values { background: linear-gradient(180deg,#fffef9,#fbf6ef); padding: 20px; border-radius: 12px; box-shadow: 0 18px 40px rgba(16,12,8,0.06); }
.about-values h3 { margin-top: 0; font-family: 'Playfair Display', serif; color: var(--vintage-ochre); }
.about-values ul { list-style: none; padding-left: 0; margin: 12px 0 0; }
.about-values li { margin-bottom: 10px; font-weight:700; color: var(--vintage-muted); cursor: pointer; transition: color 180ms ease, transform 160ms ease; padding: 6px 8px; border-radius: 6px; }
.about-values li:hover { color: var(--purple); transform: translateY(-2px); background: rgba(75,0,130,0.04); }

/* --- CONTACT PAGE --- */
.contact-hero {
    background-image: url('images/background4.avif');
    background-size: cover;
    background-position: center;
    padding: 72px 4%;
    position: relative;
    color: #fff;
}
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,13,0.52), rgba(75,0,130,0.18));
    z-index: 1;
    pointer-events: none;
}
.contact-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
.contact-form {
    background: rgba(255,255,255,0.98);
    padding: 28px;
    border-radius: 12px;
    color: var(--black);
    box-shadow: 0 12px 30px rgba(16,12,8,0.06);
}
.contact-form h1 { font-family: 'Playfair Display', serif; margin-bottom: 6px; color: var(--black); }
.form-row { margin-bottom: 12px; display: flex; flex-direction: column; }
input, textarea { padding: 10px 12px; border: 1px solid #e6e6e6; border-radius: 8px; font-size: 1rem; }
.btn-primary { background: var(--purple); color: #fff; border: none; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.contact-details .contact-card { background: rgba(255,255,255,0.06); padding: 18px; border-radius: 10px; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,0.12); transition: background 280ms ease, transform 180ms ease, box-shadow 280ms ease; cursor: pointer; }
.contact-details .contact-card:hover { background: linear-gradient(135deg, var(--purple), #6a2db8); transform: translateY(-4px); box-shadow: 0 18px 48px rgba(75,0,130,0.28); }
.contact-details .contact-card:active { background: var(--purple); transform: translateY(-2px); }
.contact-details a { color: #fff; text-decoration: underline; }

.agents-section { padding: 60px 4%; background: linear-gradient(180deg,#fffef9,#fbf6ef); color: var(--black); }
.agents-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.agents-grid { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.agent { width: 160px; text-align: center; }
.agent-photo { width: 140px; height: 140px; border-radius: 50%; background-size: cover; margin: 0 auto 12px; box-shadow: 0 18px 42px rgba(16,12,8,0.12); border: 8px solid rgba(255,255,255,0.9); }
.agent-name { font-weight: 700; color: var(--vintage-muted); }

@media (max-width: 900px) {
    .contact-inner { grid-template-columns: 1fr; }
    .contact-details { order: 2; }
    .contact-form { order: 1; }
}

/* --- SUBSCRIBE SECTION (Contact page) --- */
.subscribe-section {
    padding: 40px 4%;
    background: linear-gradient(180deg,#fffef9,#fbf6ef);
}
.subscribe-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: center;
    padding: 22px;
    background: #070707; /* black container */
    color: #f3f3f3;
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(0,0,0,0.6);
}
.subscribe-copy h2 { font-family: 'Playfair Display', serif; color: var(--vintage-ochre); font-size: 1.9rem; margin-bottom: 8px; }
.subscribe-copy .lead { color: #d6d6d6; font-size: 1rem; line-height: 1.6; }
.subscribe-form .form-row { margin-bottom: 12px; }
.subscribe-form input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); font-size: 1rem; background: rgba(255,255,255,0.03); color: #fff; }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.6); }
.subscribe-form .btn-primary { width: 100%; display: inline-block; padding: 12px 16px; background: var(--vintage-ochre); border-color: rgba(0,0,0,0.12); color: #fff; }
.subscribe-message { margin-top: 8px; font-weight: 700; color: #cbd5ff; }

@media (max-width: 900px) {
    .subscribe-inner { grid-template-columns: 1fr; padding: 18px; }
}


/* --- ABOUT TEXT VINTAGE STYLES --- */
.about-story h2 {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg,var(--vintage-paper), #fff7ec);
    color: var(--vintage-ochre);
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(16,12,8,0.08);
    transform: rotate(-1.6deg);
    font-family: 'Playfair Display', serif;
}
.about-story p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 0.8;
    margin-right: 12px;
    color: var(--vintage-ochre);
    font-weight: 700;
}

@media (max-width: 900px) {
    .about-story h2 { transform: rotate(0deg); display: block; }
    .about-story p:first-of-type::first-letter { font-size: 2.6rem; }
}

@media (max-width: 1000px) {
    .about-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--purple);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; padding: 20px; }
    .about-image { order: -1; display: block; }
    .about-text { text-align: center; }
}

.contact-phone {
    position: absolute;
    top: 50%;
    right: 120px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}
.contact-phone a { color: var(--black); text-decoration: none; display:flex; align-items:center; gap:8px; font-weight: 600; }
.phone-icon { width: 34px; height: 34px; object-fit: contain; }

@media (max-width: 1024px) {
    .contact-phone { display: none; }
}

/* ==========================================================================
   FEATURED PROPERTIES (UPDATED FOR GRID LAYOUT / CONTENTFUL)
   ========================================================================== */
.featured-section { padding: 80px 5%; background: #ffffff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--black); }
.section-subtitle { color:#666; margin-top:8px; }

.featured-wrapper { 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
}

/* This replaces the old "Slider" CSS with "Grid" CSS */
.property-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.property-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(16,16,16,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.property-image {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    color: var(--purple);
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.property-details h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--black);
    font-weight: 700;
}

/* Featured CTA: align to the right (opposite side) and give a vintage look */
.featured-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.view-more-btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--vintage-paper), #fff7ec);
    color: var(--vintage-ochre);
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16,12,8,0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    border: 2px solid rgba(139,94,60,0.12);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.6px;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(16,12,8,0.12);
    background: linear-gradient(180deg, #fff7ec, var(--vintage-paper));
}

/* Place collaborators 'View More' on the opposite (right) side of the gallery */
.collab-gallery .collab-view-more {
    display: inline-block;
    float: right;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .collab-gallery .collab-view-more { float: none; display: block; text-align: center; margin: 12px auto 0; }
}

/* On small screens keep the button centered for better layout */
@media (max-width: 600px) {
    .featured-cta { justify-content: center; }
}

.property-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Status Badges */
.property-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.property-status.sale { background: var(--purple); }
.property-status.rent { background: #008080; }

/* Hide the old slider buttons since we are using a grid now */
.slide-btn { display: none !important; }

/* Responsive Grid */
@media (max-width: 900px) {
    .property-slider { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .property-slider { grid-template-columns: 1fr; }
}

/* --- TESTIMONIALS --- */
.testimonial-section { padding: 72px 5%; background: #fff; }
.testimonial-section h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; text-align: center; margin-bottom: 12px; }
.testimonial-slider-wrapper { position: relative; max-width: 900px; margin: 24px auto 0; }
.testimonial-slider { display:flex; gap:20px; overflow:hidden; scroll-behavior:smooth; }
.testimonial-card { flex: 0 0 100%; max-width: 820px; margin: 0 auto; padding: 28px; background: linear-gradient(180deg,#ffffff,#fbfbff); border-radius: 12px; box-shadow: 0 18px 48px rgba(18,18,18,0.06); text-align:center; }
.testimonial-stars { color: #f5c150; font-size: 1.1rem; margin-bottom: 8px; }
.testimonial-card p { font-size: 1.05rem; color: #333; line-height: 1.7; margin-bottom: 12px; }
.testimonial-card h4 { margin-top: 6px; color: var(--black); font-weight:700; }

.testimonial-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 12; background: var(--white); border: none; padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); cursor: pointer; }
.testimonial-btn.left { left: -18px; }
.testimonial-btn.right { right: -18px; }

@media (max-width: 800px) { .testimonial-btn.left { left: 8px; } .testimonial-btn.right { right: 8px; } .testimonial-card { padding: 20px; } }

/* --- SERVICES SECTION --- */
.services-section { padding: 80px 5%; background: #f7f7fb; }
.services-section .section-header { text-align: left; max-width: 1200px; margin: 0 auto 18px; }
.services-section .section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; margin: 0 0 6px; color: var(--black); }
.services-section .section-subtitle { color: #666; margin: 0 0 24px; }

.services-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card { background: #fff; border-radius: 12px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 12px 30px rgba(18,18,18,0.06); border: 1px solid rgba(16,16,16,0.04); transition: transform 220ms ease, box-shadow 220ms ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(18,18,18,0.12); }
.service-card .icon { width:56px; height:56px; border-radius:50%; background: linear-gradient(135deg,var(--purple), rgba(120,50,170,0.9)); display:flex; align-items:center; justify-content:center; color: #fff; font-weight:700; font-size:18px; flex:0 0 56px; box-shadow: 0 8px 20px rgba(75,0,130,0.12); }
.service-card .service-content { flex:1; }
.service-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--black); }
.service-card p { margin: 0; color: #444; line-height: 1.6; font-size: 0.96rem; }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .services-section { padding: 40px 4%; } }

/* --- FOOTER --- */
.site-footer {
    background: rgba(11,11,13,0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #e9e9ea;
    padding: 48px 5% 24px;
    border-top: 1px solid rgba(255,255,255,0.03);
}
.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-logo { flex: 0 0 140px; border-radius: 12px; overflow: hidden; }
.footer-logo img { width: 140px; height: auto; display: block; object-fit: cover; border-radius: 8px; }
.footer-about, .footer-contact, .footer-follow { flex: 1 1 220px; min-width: 180px; color: #cfcfcf; }
.footer-about h3 { color: #ffffff; margin-bottom: 8px; }
.footer-about p { color: #d0d0d0; }
.footer-contact h4, .footer-follow h4 { color: #fff; margin-bottom: 8px; }
.footer-contact p, .footer-follow p { color: #d0d0d0; margin: 6px 0; }
.footer-contact a, .footer-follow a { color: #d0d0d0; text-decoration: none; transition: color 180ms ease, transform 120ms ease; }
.footer-contact a:hover, .footer-follow a:hover { color: var(--purple); }
.footer-follow .icon { color: #d0d0d0; vertical-align: middle; transition: color 180ms ease; }
.footer-follow p:hover .icon { color: var(--purple); }

.footer-bottom {
    display: block;
    background: rgba(0,0,0,0.45);
    color: #cfcfcf;
    padding: 14px 5% 20px;
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-bottom .footer-links { display: flex; align-items: center; gap: 0; }
.footer-bottom .footer-links a {
    color: #dcdcdc;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    border-left: 1px solid rgba(255,255,255,0.04);
    transition: color 180ms ease, background 160ms ease;
}
.footer-bottom .footer-links a:first-child { border-left: none; padding-left: 0; }
.footer-bottom .footer-links a:hover { color: var(--purple); background: rgba(75,0,130,0.04); }
.footer-bottom p { margin: 0; color: #bdbdbd; font-size: 0.95rem; }

@media (max-width: 900px) {
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
    .footer-bottom .footer-links { order: 2; }
}

@media (max-width: 600px) {
    .site-footer { background: #0b0b0d; padding: 28px 4% 18px; }
    .footer-bottom { background: #0b0b0d; padding: 16px 4% calc(18px + 56px); }
    .whatsapp-float { bottom: 86px; }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,var(--purple), #6a2db8);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(75,0,130,0.25);
    z-index: 2200;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(75,0,130,0.28); }
.whatsapp-float img { width: 22px; height: 22px; }

@media (max-width: 480px) {
    .whatsapp-float { right: 12px; bottom: 12px; width: 48px; height: 48px; }
}

/* Scoped listing styles used by `location.html` to ensure consistent, professional cards */
.location-list .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.location-list .property-card {
    background: linear-gradient(180deg,#ffffff,#fbfbff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(18,18,18,0.06);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms ease;
}
.location-list .property-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(18,18,18,0.12); }

.location-list .property-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 420ms cubic-bezier(.2,.9,.3,1);
}
.location-list .property-card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.12)); }
.location-list .property-card:hover .thumb { transform: scale(1.03); }

.location-list .property-card .meta { padding: 14px; display:flex; flex-direction:column; gap:10px; }
.location-list .property-card .title { font-weight: 800; margin: 0; font-size: 1.02rem; color: var(--black); }
.location-list .property-card .price { color: var(--purple); font-weight: 800; font-size: 0.98rem; }
.location-list .property-card .location { font-size: 0.9rem; color: #6f6f6f; }
.location-list .property-card .specs { font-size: 0.9rem; color: #666; display:flex; gap:10px; }
.location-list .property-card .meta-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.location-list .property-card .cta { background: var(--purple); color:#fff; border: none; padding: 8px 12px; border-radius: 8px; font-weight:700; cursor:pointer; text-decoration:none; }

@media (max-width: 900px) {
    .location-list .properties-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
    .location-list .properties-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:12px; }
}

/* Polished hero and back button for location pages */
.location-hero { padding: 0; }
.location-hero .hero-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 36px 20px; display: flex; gap: 12px; align-items: flex-start; }
.location-hero nav[aria-label="breadcrumb"] { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.location-hero #locTitle { color: #fff; font-size: 2.4rem; margin: 0; }
.location-hero #locSummary { color: rgba(255,255,255,0.92); margin: 8px 0 0; }

.back-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg,#fff,#f6efe4);
    color: var(--vintage-ochre);
    border-radius: 10px;
    border: 2px solid rgba(139,94,60,0.12);
    box-shadow: 0 10px 26px rgba(16,12,8,0.08);
    font-weight: 700;
    text-decoration: none;
}
.back-btn:hover, .back-btn:focus { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,12,8,0.12); }
.back-btn:active { transform: translateY(-1px); }

/* small breadcrumb link styling */
.loc-breadcrumb { color: rgba(255,255,255,0.85); }

/* Improve property card footer layout */
.location-list .property-card .meta-row .location { color: #777; font-weight:600; }
.location-list .property-card .price-badge { left: 10px; right: auto; top: 10px; background: rgba(255,255,255,0.9); color: var(--purple); font-weight:800; box-shadow: 0 6px 18px rgba(16,12,8,0.06); }

/* subtle entrance for grid */
.properties-grid { animation: fadeUp 420ms ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

@media (max-width: 700px) {
    .location-hero .hero-inner { flex-direction: column; align-items: stretch; }
    .back-btn { margin-left: 0; justify-self: end; }
}

/* Slightly reduce emphasis when on the right so it doesn't compete with title */
.hero-inner .back-btn { padding: 8px 12px; font-size: 0.95rem; }

/* Remove white nav bar on location pages (transparent over hero) */
.location-page nav {
    background: transparent !important;
    box-shadow: none !important;
}

.location-page .site-title { pointer-events: auto; }

/* Locations section & vintage-styled buttons */
.locations-section { padding: 18px 5%; background: transparent; }
.locations-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--vintage-ochre);
    margin: 0;
    transform: translateX(-100%);
    opacity: 0;
    animation: slideInCenter 700ms cubic-bezier(.2,.9,.3,1) forwards;
}

@keyframes slideInCenter {
    to { transform: translateX(0); opacity: 1; }
}

.locations-list { margin-top: 12px; }

.location-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--vintage-paper), #fff7ec);
    color: var(--vintage-muted);
    border: 2px solid rgba(139,94,60,0.08);
    box-shadow: 0 8px 18px rgba(16,12,8,0.06);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    transition: background 160ms ease, color 140ms ease, transform 140ms ease, box-shadow 160ms ease;
}

.location-btn:hover,
.location-btn:focus,
.location-btn:active {
    background: linear-gradient(180deg, var(--purple), #5a1f86);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(75,0,130,0.18);
}

@media (max-width: 600px) {
    .locations-title { text-align: center; }
    .locations-list { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
}