/*
Theme Name: Cabarete Palm Beach
Theme URI: https://realtalkrealtyrd.com
Author: Real Talk Realty
Author URI: https://realtalkrealtyrd.com
Description: A modern real estate theme for Cabarete properties. Real Talk, No Bulto.
Version: 2.5.1
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabarete-palm-beach
*/

/* ==========================================================================
   Design tokens (matched to the Lovable prototype)
   ========================================================================== */

:root {
    /* Real Talk Realty RD brand palette (2026 rebrand). Token names kept for
       backwards compatibility; values remapped: gold -> coral accent, teal -> ocean. */
    --navy: #244B5A;        /* Tracy Blue */
    --navy-dark: #16323D;   /* deep Tracy Blue */
    --ocean: #4F7887;       /* Ocean Blue */
    --teal: #4F7887;        /* brand has no teal -> Ocean Blue */
    --teal-light: #83A6B2;  /* light ocean */
    --sand: #F3E8D2;        /* Sun Bleached (cream) */
    --sand-light: #FAF4E9;  /* light cream */
    --ink: #171918;         /* Ink Black */
    --gold: #F05A47;        /* Coral Red (brand accent) */
    --gold-dark: #D6412E;   /* coral hover */
    --gold-text: #C23826;   /* coral for text contrast */
    --whatsapp: hsl(142, 70%, 40%);

    --background: hsl(0, 0%, 100%);
    --foreground: var(--ink);
    --muted: hsl(197, 20%, 97%);
    --muted-foreground: hsl(197, 32%, 40%);
    --border: hsl(197, 20%, 90%);
    --input: hsl(197, 20%, 95%);

    --radius: 0.75rem;
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-card-hover: 0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-display: 'Bebas Neue', 'Montserrat', system-ui, sans-serif; /* brand display type */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-script: 'Permanent Marker', cursive; /* hand-drawn accents / "NO BULTO." */
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--ocean);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--navy); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header .kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.bg-muted { background: var(--muted); }
.bg-sand { background: var(--sand-light); }
.bg-navy {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--ocean) 100%);
    color: #fff;
}
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: hsl(30, 45%, 88%); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip-link:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 200;
    width: auto;
    height: auto;
    clip: auto;
    background: var(--navy-dark);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: calc(var(--radius) - 0.25rem);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.quiz-option:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ocean);
    outline-offset: 2px;
}

/* Links inside body copy must not rely on color alone */
.entry-content a,
.term-intro a,
.rt-faq a,
.quiz-result a,
.archive-escape a,
.guide-cta-alt a,
.form-notice a {
    text-decoration: underline;
}

/* Anchored sections land below the sticky header */
:target,
#main {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Buttons and forms
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: calc(var(--radius) - 0.25rem);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
    background: var(--navy);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--ocean);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgb(255 255 255 / 0.7);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--navy-dark);
}

.btn-whatsapp {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-whatsapp:hover {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #fff;
    transform: translateY(-2px);
}

/* Header "Chat on WhatsApp" pill (Tracy Blue) */
.btn-header-wa {
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    gap: 0.55rem;
    line-height: 1.05;
}
.btn-header-wa:hover {
    background: var(--navy-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.btn-header-wa .wa-ico { width: 24px; height: 24px; fill: #fff; flex: none; }
.btn-header-wa .wa-txt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-header-wa .wa-txt strong { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em; }
.btn-header-wa .wa-num { font-size: 0.76rem; font-weight: 500; opacity: 0.85; }

.bg-navy .btn-whatsapp {
    color: #fff;
    border-color: rgb(255 255 255 / 0.7);
}

.bg-navy .btn-whatsapp:hover {
    background: var(--whatsapp);
    border-color: var(--whatsapp);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.25rem);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgb(79 120 135 / 0.2);
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field { margin-bottom: 1rem; }

.form-notice {
    padding: 0.85rem 1.2rem;
    border-radius: calc(var(--radius) - 0.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-notice.is-success {
    background: hsl(142, 70%, 95%);
    color: hsl(142, 70%, 22%);
    border: 1px solid hsl(142, 70%, 75%);
}

.form-notice.is-error {
    background: hsl(0, 84%, 97%);
    color: hsl(0, 72%, 38%);
    border: 1px solid hsl(0, 84%, 85%);
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    max-width: 520px;
}

.inline-form input[type="email"] { flex: 1; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(250 244 233 / 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
}

.site-logo img {
    height: 58px;
    width: auto;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: var(--ocean);
    border-bottom-color: var(--gold);
}

.nav-buttons { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    margin: 5px 0;
    transition: var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background: var(--sand-light);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 480px);
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    max-width: 1180px;
    margin-inline: auto;
    min-height: 0;
    padding: 2rem 1.25rem 2.5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-eyebrow {
    font-family: var(--font-script);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0.4rem 0 1rem;
    display: inline-block;
    position: relative;
    line-height: 1.2;
    font-style: italic;
    transform: rotate(-2.5deg);
    transform-origin: left center;
}
.hero-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 6px;
    background: var(--gold);
    border-radius: 3px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 7.5vw, 6.75rem);
    line-height: 0.86;
    color: var(--ink);
    margin: 0 0 1rem;
    letter-spacing: 0.005em;
}
.hero-title .hero-title-accent { color: var(--navy); }
.hero-title .dot { color: var(--gold); }

.hero-sub {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1rem;
    display: inline-block;
    border-bottom: 4px solid var(--gold);
    padding-bottom: 3px;
}

.hero-body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 460px;
    margin: 0 0 1.35rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
}
.hero-note {
    font-family: var(--font-script);
    color: var(--gold);
    font-size: 1.1rem;
}

.hero-photo {
    position: relative;
    overflow: hidden;
    height: 560px;
    /* fade the framed photo into the cream on all four edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 15%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 15%, #000 94%, transparent 100%);
    mask-composite: intersect;
}
.hero-photo > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    transform: scale(1.02);
    transform-origin: 50% 45%;
    display: block;
    border-radius: 0;
}
.hero-stamp {
    position: absolute;
    left: 7%;
    bottom: 14px;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.55)) drop-shadow(0 4px 12px rgb(0 0 0 / 0.28));
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; padding: 2rem 1.5rem 2.5rem; }
    .hero-photo { max-width: 420px; }
    .hero-stamp { width: 92px; left: -8px; bottom: 14px; }
}

/* Neighborhood intro below the hero */
.term-intro {
    max-width: 760px;
    margin: 0 0 2.25rem;
}

.term-intro p {
    color: var(--muted-foreground);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 1.75rem;
}

.breadcrumbs a { font-weight: 600; }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumbs span:last-child { color: var(--muted-foreground); }

/* Inner page hero: light and sunny, navy does the talking */
.page-hero {
    background: var(--sand-light);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 0 3.25rem;
    text-align: center;
}

.page-hero h1 { color: var(--navy-dark); margin-bottom: 0.75rem; }
.page-hero p {
    color: var(--muted-foreground);
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ==========================================================================
   Newsletter strip
   ========================================================================== */

.newsletter-strip {
    background: var(--sand-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    padding: 2.25rem 0;
}

.newsletter-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-strip h2 {
    color: var(--navy-dark);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.newsletter-strip p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.95rem;
}

.newsletter-strip form { flex: 1; min-width: 300px; max-width: 480px; }

/* ==========================================================================
   Property cards
   ========================================================================== */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.property-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.property-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.property-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-media img { transform: scale(1.05); }

.property-price-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: var(--navy-dark);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.35rem 0.9rem;
    border-radius: calc(var(--radius) - 0.35rem);
}

.property-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

.property-status-badge.is-sold { background: hsl(0, 72%, 45%); color: #fff; }

.property-card-body { padding: 1.4rem 1.4rem 1.5rem; }

.property-card-title { font-size: 1.15rem; margin-bottom: 0.3rem; }
.property-card-title a { color: var(--ink); }
.property-card-title a:hover { color: var(--ocean); }

.property-card-location {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.property-card-features {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
    font-size: 0.88rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.section-cta { text-align: center; margin-top: 2.75rem; }

/* ==========================================================================
   Who I Help
   ========================================================================== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.audience-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--gold);
}

.audience-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: var(--sand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.audience-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.audience-card p { color: var(--muted-foreground); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   How It Works
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 1.8rem 2rem;
    text-align: center;
}

.step-card .step-number {
    position: absolute;
    top: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 { margin-bottom: 0.6rem; }
.step-card p { color: var(--muted-foreground); font-size: 0.95rem; margin: 0; }

/* 5-up grids (What Makes Different + How It Works) */
.audience-grid.is-five,
.steps-grid.is-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.4rem;
}
.steps-grid.is-five { gap: 1.4rem; row-gap: 2.4rem; }
@media (max-width: 1024px) {
    .audience-grid.is-five,
    .steps-grid.is-five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .audience-grid.is-five,
    .steps-grid.is-five { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .audience-grid.is-five,
    .steps-grid.is-five { grid-template-columns: 1fr; }
}

/* Trust bar */
.trust-bar {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--ocean) 100%);
}
.trust-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem 1.75rem;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.trust-item .t-ico { flex-shrink: 0; color: var(--gold); display: flex; }
.trust-item .t-ico svg { width: 34px; height: 34px; display: block; }

/* Line icons (What Makes Different) */
.audience-card .line-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.15rem;
    color: var(--navy);
}
.audience-card .line-icon svg { width: 100%; height: 100%; display: block; }

/* Line icons inside existing card badges (Who I Help, Guides, Facts) */
.audience-card .icon,
.guide-card .icon { color: var(--navy); }
.audience-card .icon svg { width: 28px; height: 28px; display: block; }
.guide-card .icon svg { width: 26px; height: 26px; display: block; }
.fact-card .icon { color: var(--navy); line-height: 0; }
.fact-card .icon svg { width: 34px; height: 34px; display: block; }
.step-card .step-number svg { width: 1.15rem; height: 1.15rem; display: block; }
.trust-item .t-txt { display: flex; flex-direction: column; }
.trust-item .t-txt strong {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}
.trust-item .t-txt span {
    font-size: 0.8rem;
    color: hsl(30, 45%, 88%);
    line-height: 1.2;
}
@media (max-width: 768px) {
    .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
}
@media (max-width: 420px) {
    .trust-bar .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Neighborhoods
   ========================================================================== */

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.neighborhood-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.neighborhood-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.neighborhood-card:hover img { transform: scale(1.06); }

.neighborhood-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--navy-dark) 100%);
}

.neighborhood-card .card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.4rem;
    z-index: 2;
}

.neighborhood-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.2rem; }
.neighborhood-card .tagline { color: hsl(30, 45%, 88%); font-size: 0.88rem; margin-bottom: 0.5rem; }
.neighborhood-card .price-from {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.neighborhood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.neighborhood-tags span {
    background: rgb(255 255 255 / 0.15);
    border: 1px solid rgb(255 255 255 / 0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* ==========================================================================
   Guides
   ========================================================================== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.guides-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin-inline: auto; }
@media (max-width: 900px) { .guides-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guides-grid.cols-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Casa Linda page
   ========================================================================== */
.casa-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0 5rem;
}
.casa-eyebrow {
    font-family: var(--font-script);
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
}
.casa-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 0.92;
    color: #fff;
    margin: 0 0 1.1rem;
    max-width: 16ch;
}
.casa-lead {
    font-size: 1.15rem;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 0 1.75rem;
    color: hsl(30, 45%, 92%);
}
.btn-outline-light { border-color: rgb(255 255 255 / 0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-dark); }

.casa-amenities { margin-top: 2.5rem; }

.villa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.villa-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.villa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--gold);
}
.villa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.villa-head h3 { font-size: 1.2rem; margin: 0; }
.villa-price { font-size: 0.82rem; color: var(--muted-foreground); white-space: nowrap; text-align: right; }
.villa-price strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--gold-text); line-height: 1.1; }
.villa-specs { list-style: none; display: flex; gap: 1.1rem; margin: 0 0 0.85rem; padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.villa-specs li { position: relative; }
.villa-specs li + li::before { content: "·"; position: absolute; left: -0.7rem; color: var(--muted-foreground); }
.villa-card p { color: var(--muted-foreground); font-size: 0.92rem; line-height: 1.5; margin: 0 0 1.1rem; flex: 1; }
.villa-cta { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--gold-text); margin-top: auto; }
.villa-cta:hover { color: var(--gold); }
.villa-note { text-align: center; color: var(--muted-foreground); font-size: 0.9rem; margin-top: 2rem; }

@media (max-width: 900px) { .villa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .villa-grid { grid-template-columns: 1fr; }
    .casa-hero { padding: 4rem 0 3.5rem; }
}

/* ==========================================================================
   Article + lead-magnet sidebar (guides, blog posts)
   ========================================================================== */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
    max-width: 1080px;
    margin-inline: auto;
}
.post-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.lm-box {
    background: var(--sand-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.lm-box h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.lm-box p { font-size: 0.9rem; color: var(--muted-foreground); margin: 0 0 1rem; line-height: 1.5; }
.lm-box form { display: flex; flex-direction: column; gap: 0.6rem; }
.lm-box input[type="email"] { width: 100%; }
.lm-box .btn { width: 100%; text-align: center; justify-content: center; }
.lm-box.lm-cl {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--ocean) 100%);
    color: #fff;
    border: none;
}
.lm-box.lm-cl h3 { color: #fff; }
.lm-box.lm-cl p { color: hsl(30, 45%, 90%); }
.lm-box.lm-cl .btn { margin-bottom: 0.85rem; }
.lm-wa-link { display: inline-block; color: #fff; font-weight: 600; font-size: 0.88rem; }
.lm-wa-link:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .post-sidebar { position: static; }
}

.guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    transition: var(--transition);
    display: block;
}

.guide-card:hover {
    border-color: var(--ocean);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.guide-card .icon {
    width: 48px;
    height: 48px;
    border-radius: calc(var(--radius) - 0.25rem);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.guide-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.guide-card p { color: var(--muted-foreground); font-size: 0.9rem; margin: 0; }
.guide-card .read-more {
    display: inline-block;
    margin-top: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ocean);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* With only a couple of real testimonials, center them instead of left-aligning in a 3-col grid. */
.testimonials-grid.is-few {
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
}

.testimonial-card .stars {
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: auto;
}

.testimonial-author .avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-author h4 { font-size: 0.98rem; }
.testimonial-author p { font-size: 0.85rem; color: var(--muted-foreground); margin: 0; }

/* ==========================================================================
   Sell CTA and cheatsheet
   ========================================================================== */

.sell-cta { text-align: center; }

.sell-cta .cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.75rem 0 2.25rem;
}

.sell-cta .cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: hsl(30, 45%, 90%);
}

.sell-cta .cta-feature::before {
    content: "✓";
    color: var(--gold);
    font-weight: 800;
}

.cheatsheet { text-align: center; }
.cheatsheet .inline-form { margin: 1.75rem auto 0; }
.cheatsheet p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-dark);
    color: hsl(207, 30%, 82%);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-col .footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: hsl(207, 30%, 82%); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold); }

.footer-logo img { height: 66px; width: auto; }
.footer-tagline { margin: 1rem 0 1.25rem; font-size: 0.95rem; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-social a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-partner { margin-top: 1.5rem; }
.footer-partner img { height: 44px; width: auto; opacity: 0.85; }
.footer-partner p { font-size: 0.75rem; margin: 0.4rem 0 0; opacity: 0.7; }

.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.12);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: hsl(207, 20%, 62%);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 99;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.25);
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Mobile sticky action bar (hidden on desktop) */
.mobile-action-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    background: var(--navy-dark);
    box-shadow: 0 -4px 12px rgb(0 0 0 / 0.2);
}

.mobile-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.95rem 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: #fff;
}
.mobile-action-bar a + a { border-left: 1px solid rgb(255 255 255 / 0.14); }

.mobile-action-bar a.is-primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-left-color: transparent;
}

/* Property sidebar inquiry form */
.sidebar-form {
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.sidebar-form .sidebar-heading { font-size: 0.95rem; margin-bottom: 0.75rem; }
.sidebar-form .form-field { margin-bottom: 0.75rem; }
.sidebar-form .btn { width: 100%; margin-bottom: 0; }

.listing-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--navy-dark);
    margin: 0 0 1.6rem;
}

/* ==========================================================================
   Property archive (Browse Listings)
   ========================================================================== */

.filters-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
}

.filters-bar form {
    display: grid;
    grid-template-columns: repeat(6, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.filters-bar label { font-size: 0.8rem; }

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.archive-toolbar .result-count { color: var(--muted-foreground); font-size: 0.95rem; }
.archive-toolbar .sort-form { display: flex; align-items: center; gap: 0.5rem; }
.archive-toolbar select { width: auto; }
.archive-toolbar .sort-form label { margin: 0; }

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted-foreground);
}

/* Quick-narrowing pills on the listings archive */
.quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.quick-pills a {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    transition: var(--transition);
}

.quick-pills a:hover {
    border-color: var(--gold);
    background: var(--sand-light);
    color: var(--navy-dark);
}

.archive-escape {
    text-align: center;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
}

/* Guide-page cheatsheet opt-in */
.guide-cta {
    background: var(--sand-light);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}

.guide-cta h2 { margin: 0 0 0.5rem !important; }
.guide-cta p { color: var(--muted-foreground); }
.guide-cta .inline-form { margin: 1.25rem auto 0; }
.guide-cta-alt { font-size: 0.92rem; margin-top: 1rem !important; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 0.3rem);
    font-weight: 600;
    color: var(--ink);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ==========================================================================
   Single property
   ========================================================================== */

.property-hero img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-item {
    display: block;
    padding: 0;
    border: none;
    border-radius: calc(var(--radius) - 0.35rem);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--muted);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.cpb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgb(2 16 28 / 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpb-lightbox[hidden] { display: none; }

.cpb-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: calc(var(--radius) - 0.25rem);
}

.cpb-lightbox button {
    position: absolute;
    background: rgb(255 255 255 / 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
}

.cpb-lightbox button:hover { background: rgb(255 255 255 / 0.25); }
.cpb-lightbox .lb-close { top: 1.25rem; right: 1.25rem; }
.cpb-lightbox .lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.cpb-lightbox .lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

.property-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.property-main h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.5rem; }
.property-main .property-card-location { font-size: 1.05rem; }

.property-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    background: var(--muted);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.property-meta-bar .meta-item { text-align: center; }
.property-meta-bar .meta-item .value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
    display: block;
}
.property-meta-bar .meta-item .label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-caveat {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin: -1rem 0 2rem;
    padding: 0.75rem 1rem;
    background: var(--sand-light);
    border-left: 3px solid var(--gold);
    border-radius: calc(var(--radius) - 0.45rem);
}

.property-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.8rem;
    position: sticky;
    top: 100px;
}

.property-sidebar .price {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.property-sidebar .btn { width: 100%; margin-bottom: 0.75rem; }

.agent-mini {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.agent-mini img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-mini .sidebar-heading { font-size: 0.95rem; margin-bottom: 0; }
.agent-mini p { font-size: 0.82rem; color: var(--muted-foreground); margin: 0; }

.back-link {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Features / amenities grid */
.property-features {
    margin-top: 2.5rem;
}

.property-features h2 {
    margin-bottom: 1.25rem;
}

.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem 1.5rem;
}

.feature-grid li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--navy-dark);
    line-height: 1.4;
}

.feature-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--gold);
    /* white check mark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

/* "The honest numbers" rental block */
.honest-numbers {
    margin-top: 2.5rem;
    background: var(--sand-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.honest-numbers h2 {
    margin-bottom: 1.25rem;
}

.honest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-bottom: 1.25rem;
}

.honest-item .value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy);
    display: block;
}

.honest-item .label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.honest-caveat {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
}

.honest-numbers .btn {
    margin-bottom: 0;
}

/* Related listings */
.related-listings {
    margin-top: 3.5rem;
}

.related-listings h2 {
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.about-photo img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
}

.about-content h2 { margin-bottom: 1rem; }
.about-content .lead { font-size: 1.15rem; color: var(--muted-foreground); }

.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.collage-grid img {
    border-radius: calc(var(--radius) - 0.25rem);
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

/* Meet Tracy band and fact cards */
.meet-tracy .about-photo img {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 50% 16%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
    mask-composite: intersect;
}

/* Meet Tracy: photo on the right, text on the left, photo matches text height (desktop) */
@media (min-width: 769px) {
    .meet-tracy .about-layout { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
    .meet-tracy .about-content { order: 1; }
    .meet-tracy .about-photo { order: 2; position: relative; }
    .meet-tracy .about-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: 50% 28%;
    }
}

.meet-eyebrow {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 0 0.5rem;
    line-height: 1;
}

.meet-creds {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}
.meet-creds li {
    position: relative;
    padding-left: 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}
.meet-creds li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.15rem;
    height: 1.15rem;
    background: var(--gold);
    -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    transition: var(--transition);
}

.fact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.fact-card .icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.fact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.fact-card p { color: var(--muted-foreground); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-info-card ul { list-style: none; margin-top: 1.25rem; }
.contact-info-card .ci-ico { display: inline-flex; color: var(--gold); flex-shrink: 0; }
.contact-info-card .ci-ico svg { width: 20px; height: 20px; display: block; }
.contact-info-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.25rem;
}

/* ==========================================================================
   Neighborhood quiz
   ========================================================================== */

.quiz-container { max-width: 680px; }

.quiz-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
}

.quiz-progress {
    height: 6px;
    background: var(--muted);
    border-radius: 999px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--ocean));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.quiz-step h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--muted);
    border: 2px solid transparent;
    border-radius: calc(var(--radius) - 0.25rem);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--gold);
    background: var(--sand-light);
    transform: translateX(4px);
}

.quiz-smallprint {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.75rem;
}

.quiz-result {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
}

.quiz-result .kicker {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.quiz-result h2 { font-size: 2rem; margin: 0.5rem 0 1.5rem; }

.quiz-result img {
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Blog and generic content
   ========================================================================== */

.content-area { padding: 3.5rem 0 4.5rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.4rem; }
.post-card-body .post-date { font-size: 0.8rem; color: var(--muted-foreground); }
.post-card-body h3 { margin: 0.4rem 0 0.6rem; font-size: 1.1rem; }
.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--ocean); }
.post-card-body p { color: var(--muted-foreground); font-size: 0.92rem; }

.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 0.75rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.25rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
    border-left: 4px solid var(--gold);
    background: var(--muted);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-style: italic;
}

.entry-header { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.entry-header .entry-meta { color: var(--muted-foreground); font-size: 0.9rem; }

.entry-content .lead { font-size: 1.15rem; color: var(--muted-foreground); }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.entry-content th {
    background: var(--navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: 0.75rem 1rem;
}

.entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.entry-content tbody tr:nth-child(even) { background: var(--muted); }

/* "Real talk:" callout, Tracy's blunt aside inside professional content */
.real-talk {
    background: var(--sand-light);
    border-left: 4px solid var(--gold);
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.real-talk .rt-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 0.35rem;
}

.real-talk p {
    margin: 0;
    font-weight: 500;
    color: var(--ink);
}

/* No Bulto Promise */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.promise-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1.75rem 1.5rem;
}

.promise-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.promise-card p { color: var(--muted-foreground); font-size: 0.93rem; margin: 0; }

.rt-faq {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
}

.rt-faq h2 { margin-top: 0 !important; }

.rt-faq h3 {
    margin: 1.5rem 0 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
}

.rt-faq h2 + h3 { border-top: none; padding-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .properties-grid, .testimonials-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .audience-grid, .neighborhoods-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filters-bar form { grid-template-columns: repeat(3, 1fr); }
    .property-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .posts-grid, .fact-grid { grid-template-columns: repeat(2, 1fr); }
    .collage-grid { grid-template-columns: repeat(2, 1fr); }
    .property-gallery { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 3rem 0; }

    .nav-links,
    .nav-buttons { display: none; }

    .nav-toggle { display: block; }

    .site-nav.is-open {
        position: fixed;
        inset: 76px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card-hover);
        padding: 1.5rem;
        display: block;
        z-index: 99;
    }

    .site-nav.is-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }

    .site-nav.is-open .nav-links a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .site-nav.is-open .nav-buttons {
        display: flex;
        flex-direction: column;
        margin-top: 1rem;
    }

    .hero { min-height: 70vh; }
    .hero-content { padding: 4rem 0; }
    .hero-actions .btn { width: 100%; }

    .mobile-action-bar { display: flex; }
    body { padding-bottom: 56px; }
    .whatsapp-float { display: none; }

    .newsletter-strip .container { flex-direction: column; align-items: stretch; text-align: center; }
    .inline-form { flex-direction: column; max-width: none; }

    .properties-grid, .testimonials-grid, .steps-grid,
    .audience-grid, .guides-grid, .posts-grid, .fact-grid { grid-template-columns: 1fr; }
    .neighborhoods-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .filters-bar form { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .steps-grid { gap: 2.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .neighborhoods-grid { grid-template-columns: 1fr; }
    .filters-bar form { grid-template-columns: 1fr; }
}

/* ---- Guide author byline + bio (E-E-A-T) ---- */
.guide-byline { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.guide-byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.guide-byline__text { display: flex; flex-direction: column; line-height: 1.3; }
.guide-byline__by { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.guide-byline__name { font-weight: 700; color: var(--navy); }
.guide-byline__role { font-size: 0.8rem; color: var(--ocean); }

.author-bio { display: flex; gap: 1.25rem; margin-top: 3rem; padding: 1.5rem; background: var(--sand-light); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.author-bio__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author-bio__body { min-width: 0; }
.author-bio__name { font-family: var(--font-heading); font-weight: 800; color: var(--navy); margin: 0 0 0.35rem; }
.author-bio__text { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--foreground); }
.author-bio__contact { margin: 0; font-weight: 600; }
.author-bio__contact a { color: var(--gold-text); }
@media (max-width: 600px) { .author-bio { flex-direction: column; gap: 0.9rem; } }

/* ---- Guide "verify it yourself" sources block ---- */
.guide-sources { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-sources h3 { font-family: var(--font-heading); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 0 0 0.4rem; }
.guide-sources > p { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--muted-foreground); }
.guide-sources ul { margin: 0; padding-left: 1.1rem; }
.guide-sources li { margin-bottom: 0.35rem; font-size: 0.9rem; }
.guide-sources a { color: var(--gold-text); font-weight: 600; }
