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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Better keyboard focus styling */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
}

::selection {
    background: rgba(212, 175, 55, 0.35);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    /* Updated gradient to a deep navy overlay */
    background: linear-gradient(rgba(20, 29, 54, 0.4), rgba(7, 11, 21, 0.7)),
        url('https://media-public.canva.com/6Nlm8/MAHBM56Nlm8/1/s3.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.navbar {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

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

@media (max-width: 600px) {
    .logo-img {
        height: 30px;
    }
}

.phone-number {
    font-weight: 600;
    letter-spacing: 1px;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
}

.phone-number a:hover {
    text-decoration: underline;
}

.nav-consult {
    display: inline;
    color: var(--nav-action-color, inherit);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    padding: 0;
    border: none;
}

.nav-consult:hover {
    text-decoration: underline;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

.main-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5.5vw, 6rem);
    line-height: 1.1;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    white-space: normal;
}

.hero-subheadline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 24px;
    max-width: 900px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.15s forwards;
}

.hero-links {
    gap: 0;
}

.hero-links a {
    padding: 0 14px;
}

.hero-links a + a {
    position: relative;
}

.hero-links a + a::before {
    content: '|';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -52%);
    color: rgba(255, 255, 255, 0.75);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-right: -2px; /* Fixes optical off-centering caused by letter-spacing applying to the right side of the last character */
    transition: opacity 0.3s;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: rgba(7, 11, 21, 0.46);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 4px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: #ffffff;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.search-submit {
    background: transparent;
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
}

.hero-stacked-headline {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

.hero-stacked-headline .hero-line {
    display: block;
}

.hero-stacked-headline .hero-keep-together {
    white-space: nowrap;
}

.btn-contact {
    padding: 15px 45px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-contact:hover {
    background: white;
    color: black;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-cta-row .btn-contact {
    min-width: 220px;
    box-sizing: border-box;
}

.hero-cta-row .btn-contact-primary {
    background: #ffffff;
    color: #141d36;
}

.hero-cta-row .btn-contact-primary:hover {
    background: #bdae82;
    border-color: #bdae82;
    color: #141d36;
}

.city-page .main-content h1 {
    max-width: 1180px;
    font-size: clamp(2.15rem, 4.6vw, 5rem);
    line-height: 1.03;
    margin-bottom: 16px;
}

.city-page .search-container {
    margin-bottom: 18px;
}

.city-page .hero-cta-row .btn-contact {
    padding: 14px 28px;
}

@media (max-width: 700px) {
    .city-page .main-content h1 {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .city-page .hero-cta-row .btn-contact {
        width: min(100%, 340px);
        min-width: 0;
        padding: 13px 18px;
        font-size: 0.72rem;
        line-height: 1.45;
    }
}







/* --- SCROLL ANIMATION STATES --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- TYPOGRAPHY & STATS --- */
.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: #bdae82;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 25px;
}




.stats-row {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

/* --- KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Per-word blur + fade — eased like overdamped spring (ref: stiffness ~400, damping ~75, mass 1: smooth settle, no bounce) */
.headline-word-reveal {
    --headline-spring-ease: cubic-bezier(0.22, 0.92, 0.28, 1);
}

.headline-word-reveal .headline-word {
    display: inline-block;
    opacity: 0;
    filter: blur(5px);
    transform: translateY(0.12em);
    will-change: opacity, filter, transform;
}

.headline-word-reveal.is-visible .headline-word {
    animation: headlineWordBlurIn var(--headline-duration, 1.08s) var(--headline-spring-ease) forwards;
    animation-delay: var(--headline-delay, 0s);
}

.headline-word-reveal--eyebrow .headline-word {
    filter: blur(3px);
    transform: translateY(0.08em);
}

@keyframes headlineWordBlurIn {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(0.12em);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.headline-word-reveal--eyebrow.is-visible .headline-word {
    animation-name: headlineWordBlurInEyebrow;
    animation-duration: var(--headline-duration, 0.88s);
    animation-timing-function: var(--headline-spring-ease);
    animation-fill-mode: forwards;
}

@keyframes headlineWordBlurInEyebrow {
    0% {
        opacity: 0;
        filter: blur(3px);
        transform: translateY(0.08em);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .headline-word-reveal .headline-word,
    .headline-word-reveal.is-visible .headline-word {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        animation: none !important;
    }
}

.page-carlsbad .main-content h1.headline-word-reveal {
    opacity: 1;
    animation: none;
    white-space: normal;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* --- RESPONSIVE --- */


@media (max-width: 600px) {
    .phone-number {
        display: none;
    }

    .nav-consult {
        display: none;
    }

    .nav-right > * + * {
        padding-left: 0;
    }

    .nav-right > * + *::before {
        content: '';
    }

    .nav-links {
        gap: 15px;
    }

    .hero-links a {
        padding: 0 10px;
    }
}

/* New Specialties Styling */
.specialties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 25px 0;
}

.spec-item {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bdae82;
    padding-left: 15px;
    position: relative;
}

.spec-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #bdae82;
}

.experience-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure stats row fits 3 items on larger screens */
.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* Adjusting for Mobile */
@media (max-width: 600px) {
    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.center-text {
    text-align: center;
    display: block;
}

.center-divider {
    margin: 0 auto 50px auto;
}

/* Oceanside market snapshot */
.oceanside-market {
    padding: 88px 5%;
    color: #141d36;
    background: #f7f5f0;
}

.oceanside-market__inner {
    max-width: 1080px;
}

.oceanside-market__heading {
    max-width: 700px;
    margin-bottom: 42px;
}

.oceanside-market__heading h2 {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    line-height: 1.08;
}

.oceanside-market__heading p {
    color: #596071;
}

.oceanside-market__table {
    border-top: 3px solid #bdae82;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 29, 54, 0.09);
}

.oceanside-market__row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: center;
    min-height: 86px;
    border-bottom: 1px solid rgba(20, 29, 54, 0.11);
}

.oceanside-market__row > div {
    padding: 18px 26px;
}

.oceanside-market__row > div + div {
    border-left: 1px solid rgba(20, 29, 54, 0.09);
}

.oceanside-market__row--header {
    min-height: 58px;
    color: #fff;
    background: #141d36;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.oceanside-market__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oceanside-market__row strong {
    display: block;
    color: #141d36;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    line-height: 1.15;
}

.oceanside-market__row span {
    display: block;
    margin-top: 3px;
    color: #727785;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.oceanside-market__yoy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 26px;
    background: rgba(189, 174, 130, 0.3);
    border: 1px solid rgba(189, 174, 130, 0.3);
}

.oceanside-market__yoy article {
    padding: 28px 24px;
    background: #141d36;
}

.oceanside-market__yoy strong {
    display: block;
    color: #d4c08a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    line-height: 1;
}

.oceanside-market__yoy span {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.oceanside-market__note {
    margin-top: 14px;
    color: #737783;
    font-size: 0.72rem;
}

@media (max-width: 680px) {
    .oceanside-market {
        padding: 64px 4%;
    }

    .oceanside-market__row {
        grid-template-columns: 1.15fr 1fr 1fr;
        min-height: 76px;
    }

    .oceanside-market__row > div {
        padding: 15px 10px;
    }

    .oceanside-market__row--header {
        min-height: 54px;
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .oceanside-market__label {
        font-size: 0.66rem;
        letter-spacing: 0.04em;
    }

    .oceanside-market__row strong {
        font-size: clamp(1rem, 4.4vw, 1.3rem);
    }

    .oceanside-market__row span {
        font-size: 0.58rem;
    }

    .oceanside-market__yoy {
        grid-template-columns: 1fr;
    }

    .oceanside-market__yoy article {
        padding: 22px;
    }
}

/* City market snapshots */
.city-market {
    padding: 88px 5%;
    color: #141d36;
    background: #f7f5f0;
}

.city-market__inner {
    max-width: 1080px;
}

.city-market__heading {
    max-width: 700px;
    margin-bottom: 42px;
}

.city-market__heading h2 {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    line-height: 1.08;
}

.city-market__heading p {
    color: #596071;
}

.city-market__table {
    overflow: hidden;
    border-top: 3px solid #bdae82;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 29, 54, 0.09);
}

.city-market__row {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) repeat(3, minmax(145px, 1fr));
    align-items: center;
    min-height: 82px;
    border-bottom: 1px solid rgba(20, 29, 54, 0.11);
}

.city-market__row > div {
    min-width: 0;
    padding: 18px 22px;
}

.city-market__row > div + div {
    border-left: 1px solid rgba(20, 29, 54, 0.09);
}

.city-market__row--header {
    min-height: 58px;
    color: #fff;
    background: #141d36;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.city-market__label {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.city-market__row strong {
    display: block;
    color: #141d36;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.08rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.city-market__change {
    display: inline-block;
    min-width: 82px;
    padding: 7px 10px;
    border: 1px solid rgba(20, 29, 54, 0.14);
    color: #141d36;
    background: #f7f5f0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
}

.city-market__change--up {
    border-color: rgba(189, 174, 130, 0.55);
    color: #7d6a36;
    background: rgba(189, 174, 130, 0.14);
}

.city-market__change--down {
    color: #596071;
}

.city-market__change--flat {
    color: #596071;
    background: #fff;
}

.city-market__note {
    margin-top: 14px;
    color: #737783;
    font-size: 0.72rem;
}

@media (max-width: 760px) {
    .city-market {
        padding: 64px 4%;
    }

    .city-market__heading {
        margin-bottom: 30px;
    }

    .city-market__table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .city-market__row {
        grid-template-columns: 150px repeat(3, 132px);
        min-width: 546px;
        min-height: 72px;
    }

    .city-market__row > div {
        padding: 14px 11px;
    }

    .city-market__row--header {
        min-height: 54px;
        font-size: 0.56rem;
        letter-spacing: 0.06em;
    }

    .city-market__label {
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .city-market__row strong {
        font-size: 1rem;
    }

    .city-market__change {
        min-width: 70px;
        padding: 6px 7px;
        font-size: 0.68rem;
    }
}

/* --- PROPERTIES SECTION --- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.grid-pagination-wrapper {
    position: relative;
    width: 100%;
}

.grid-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

.show-more-btn {
    pointer-events: all;
    padding: 13px 45px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.show-more-btn:hover {
    background: #000;
    color: #fff;
}

.properties-section {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    /* Darker navy for contrast */
    color: #000000;

}

.city-listing-filters {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto 44px;
    padding: 0 5%;
    scroll-margin-top: 24px;
}

.city-filter-panel {
    background: #fff;
    border: 1px solid rgba(20, 29, 54, 0.1);
    box-shadow: 0 18px 48px rgba(20, 29, 54, 0.08);
    padding: 24px;
}

.city-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
}

.city-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.city-filter-group label,
.city-sort-select-wrapper label {
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.city-filter-group select,
.city-sort-select-wrapper select {
    width: 100%;
    border: 1.5px solid #d9d9d9;
    border-radius: 0;
    background-color: #fafafa;
    color: #222;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    min-height: 44px;
    outline: none;
    padding: 10px 36px 10px 12px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.city-filter-group select:focus,
.city-sort-select-wrapper select:focus {
    background-color: #fff;
    border-color: #141d36;
}

.city-filter-button,
.city-filter-reset {
    align-self: end;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    height: 44px;
    letter-spacing: 1.4px;
    padding: 0 20px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.city-filter-button {
    background: #141d36;
    border: 1.5px solid #141d36;
    color: #fff;
}

.city-filter-button:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #141d36;
}

.city-filter-reset {
    background: transparent;
    border: 1.5px solid #d9d9d9;
    color: #555;
}

.city-filter-reset:hover {
    border-color: #141d36;
    color: #141d36;
}

.city-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.city-filter-pill {
    align-items: center;
    background: #141d36;
    color: #fff;
    display: inline-flex;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.5px;
    padding: 6px 12px;
}

.city-filter-pill button {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.city-filter-pill button:hover {
    color: #fff;
}

.city-results-bar {
    align-items: center;
    border-top: 1px solid rgba(20, 29, 54, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
}

.city-results-count {
    color: #5d626e;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.city-results-count strong {
    color: #141d36;
}

.city-sort-select-wrapper {
    align-items: center;
    display: flex;
    gap: 10px;
}

.city-sort-select-wrapper select {
    min-width: 178px;
}

@media (max-width: 1050px) {
    .city-filter-bar {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .city-filter-button,
    .city-filter-reset {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .city-listing-filters {
        margin-bottom: 32px;
        padding: 0 6%;
    }

    .city-filter-panel {
        padding: 18px;
    }

    .city-filter-bar {
        grid-template-columns: 1fr;
    }

    .city-results-bar,
    .city-sort-select-wrapper {
        align-items: stretch;
        flex-direction: column;
    }

    .city-sort-select-wrapper select {
        min-width: 0;
    }
}

.properties-section-subline {
    max-width: 680px;
    margin: -12px auto 44px;
    color: #6c6f77;
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: center;
}

.background-text {
    position: absolute;
    top: 20%;
    left: 0;
    transform: translateY(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 25vw;
    /* Scales with the screen width */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    /* Very light grey/black */
    pointer-events: none;
    /* Allows users to click buttons 'through' the text */
    z-index: 0;
    line-height: 1;
}

.property-card {
    background: #ffffff;
    /* Rich navy card background */
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Softer shadow for the blue theme */
    border-color: rgba(0, 0, 0, 0.3);
    /* Crisp white border on hover */
}

.property-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.property-card:hover .property-img {
    transform: scale(1.08);
    /* Slow zoom effect on hover */
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffffff;
    color: #000;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.property-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #000000;
    margin-bottom: 8px;
}

.property-address {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #000000;
}

.property-stats {
    font-size: 0.75rem;
    color: #000000;
    margin-bottom: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    letter-spacing: 1px;
}

.property-stats span {
    color: #000000;
    font-weight: 600;
}

.property-date-listed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #666;
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.property-date-listed::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23bdae82" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #000000;
    color: #000000;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #000000;
    color: #ffffff;
}

/* --- FOOTER SECTION --- */
.site-footer {
    background: #ffffff;
    /* Twilight blue */
    padding: 80px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-container,
.footer-left,
.footer-links-grid,
.footer-col {
    min-width: 0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Keep Torres Team + KW logos exactly the same size inside the footer */
.site-footer .footer-brand img.logo-img,
.site-footer .social-links img[alt="Keller Williams Metro"] {
    height: auto !important;
    width: 250px !important;
    max-width: 100% !important;
    object-fit: contain;
}

@media (max-width: 600px) {
    .site-footer .footer-brand img.logo-img,
    .site-footer .social-links img[alt="Keller Williams Metro"] {
        width: 180px !important;
    }
}

.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #000;
}

.footer-tagline {
    color: #000;
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.footer-brand-mark img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.9;
}





.footer-contact p {
    color: #000;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .footer-container {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
        gap: 36px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 34px 42px;
    }
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #000;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
}

.footer-col a:hover {
    color: #bdae82;
    /* Custom gold color for hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Grey divider instead of white */
    color: #000;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: left;
        /* Keep everything left aligned */
    }

    .footer-tagline {
        margin: 0;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* --- FULL-SCREEN MENU --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-right > * + * {
    position: relative;
    padding-left: 18px;
}

.nav-right > * + *::before {
    content: '|';
    position: absolute;
    left: 0;
    color: var(--nav-separator-color, rgba(255, 255, 255, 0.75));
}

.menu-trigger {
    background: transparent;
    border: none;
    color: var(--nav-action-color, #fff);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s;
}

.menu-trigger:hover {
    opacity: 0.7;
}

.menu-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: white;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background-color: rgba(7, 11, 21, 0.98); /* Deep Navy-Black */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    overflow-x: hidden;
}

.fullscreen-menu.active {
    transform: translateX(-100%); /* Slide in from right */
}

.menu-left-pane {
    width: 35%;
    height: 100%;
    position: relative;
    display: none;
    overflow: hidden;
}

@media (min-width: 901px) {
    .menu-left-pane {
        display: block;
    }
}

.menu-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.2s ease-out;
}

.fullscreen-menu.active .menu-bg-img {
    transform: scale(1);
}

.menu-right-pane {
    width: 100%;
    height: 100%;
    padding: 50px 8%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;

    /* Keep scroll working but hide the menu's scrollbar */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.menu-right-pane::-webkit-scrollbar {
    display: none;
}

@media (min-width: 901px) {
    .menu-right-pane {
        width: 65%;
        padding: 60px 8% 40px;
    }
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.fullscreen-menu.active .menu-header {
    opacity: 1;
    transform: translateY(0);
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 4px;
}

.menu-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

/* Staggered Content Animation */
.menu-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.fullscreen-menu.active .menu-col:nth-child(1) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.fullscreen-menu.active .menu-col:nth-child(2) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.fullscreen-menu.active .menu-col:nth-child(3) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.fullscreen-menu.active .menu-col:nth-child(4) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

.menu-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.fullscreen-menu.active .menu-footer {
    opacity: 1;
    transform: translateY(0);
}

/* Link Hover Animation */
.menu-col ul li a {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.menu-col ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.menu-col ul li a:hover::after {
    width: 100%;
}

.menu-col ul li a:hover {
    color: #d4af37;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.menu-col ul li {
    transition: transform 0.3s ease;
}

.menu-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .menu-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .menu-columns {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 1.45fr) minmax(0, 0.95fr);
        gap: 30px;
    }
}

.menu-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.menu-col ul {
    list-style: none;
    padding: 0;
}

.menu-col ul li {
    margin-bottom: 12px;
}

.menu-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
}

.menu-explore-grid a {
    overflow-wrap: normal;
}

@media (max-width: 600px) {
    .menu-explore-grid {
        grid-template-columns: 1fr;
    }

    .menu-explore-grid a {
        white-space: normal;
    }
}

.menu-footer {
    padding-top: 50px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-footer-contact a {
    color: white;
    text-decoration: none;
    margin-right: 35px;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.menu-footer-contact a:hover {
    opacity: 1;
}

.menu-social {
    display: flex;
    gap: 20px;
}

.menu-social a {
    transition: transform 0.3s ease;
}

.menu-social a:hover {
    transform: translateY(-4px);
}

.menu-social img {
    filter: none;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.9;
}

/* Make the KW logo read well on the dark fullscreen menu (its PNG has a white background). */
.menu-social img[alt="Keller Williams Metro"] {
    filter: invert(1) brightness(1.15) contrast(1.05);
    mix-blend-mode: screen;
    opacity: 0.95;
}

/* --- CONTACT SECTION --- */
.contact-section {
    position: relative;
    padding: 140px 0 120px;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(189, 174, 130, 0.25), transparent 55%),
        linear-gradient(rgba(16, 22, 42, 0.86), rgba(7, 11, 21, 0.92)),
        url('./images/beach.jpeg') center/cover fixed no-repeat;
    color: #fff;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

@media (min-width: 900px) {
    .contact-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.contact-content-left {
    flex: 1;
    max-width: 450px;
    padding-top: 20px;
}

.contact-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 34px;
}

.contact-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 30px;
    justify-content: center;
}

@media (min-width: 640px) {
    .contact-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-quick-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-quick-card::after {
    content: '→';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.25s ease, color 0.25s ease;
}

.contact-quick-card:hover,
.contact-quick-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(189, 174, 130, 0.45);
}

.contact-quick-card:hover::after,
.contact-quick-card:focus-visible::after {
    color: #ffffff;
    transform: translate(3px, -50%);
}

.contact-quick-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
    opacity: 0.95;
}

.contact-quick-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin: 0;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-address-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.contact-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}

.contact-info-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #fff;
}

.contact-info-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.social-icons-row {
    gap: 15px;
}

.social-icons-row a img {
    filter: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.contact-section .social-icons-row img[src*="zillowicon"] {
    filter: brightness(0) invert(1);
    opacity: 0.86;
}

.social-icons-row a:hover img {
    opacity: 1;
}

/* Torres Team May 2026 update sections */
.homepage-hero-copy h1 {
    display: flex;
    flex-direction: column;
    gap: 0.08em;
    white-space: normal;
    font-size: clamp(2.4rem, 7vw, 6.4rem);
    line-height: 0.94;
}

.homepage-hero-copy h1 span:first-child {
    font-size: 0.84em;
}

.homepage-hero-copy .hero-subheadline {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: none;
}

.buy-sell-cards-section,
.north-county-living-section,
.testimonials-section,
.buy-search-band {
    padding: 90px 5%;
    background: #fff;
}

.buy-sell-cards-inner,
.north-county-inner,
.testimonials-inner,
.buy-search-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.buy-sell-cards-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.testimonial-card,
.buy-search-inner {
    border: 1px solid rgba(20, 29, 54, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(20, 29, 54, 0.08);
}

.service-card {
    min-height: 640px;
    padding: 58px 46px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(20, 29, 54, 0.14);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.service-card::before {
    content: '';
    display: block;
    width: 86px;
    height: 1px;
    margin: 22px auto 24px;
    background: #bdae82;
    order: 2;
}

.service-card-icon {
    width: 104px;
    height: 104px;
    border: 1px solid rgba(189, 174, 130, 0.82);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    color: #141d36;
    order: 0;
}

.service-card-icon svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h2 {
    order: 1;
    color: #141d36;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    line-height: 1;
    margin: 0;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
    text-transform: uppercase;
}

.service-card .eyebrow,
.north-county-copy .eyebrow,
.testimonials-inner .eyebrow,
.buy-search-inner .eyebrow {
    display: inline-block;
    color: #bdae82;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.north-county-copy h2,
.testimonials-inner h2,
.buy-search-inner h2 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0;
}

.service-card p {
    order: 3;
    color: #293245;
}

.service-card p {
    max-width: 430px;
    line-height: 1.7;
    margin: 0 auto 34px;
    font-size: 1.02rem;
}

.service-card .btn-dark {
    order: 4;
    width: min(100%, 430px);
    padding: 17px 22px;
    margin-bottom: 46px;
    border-color: #141d36;
    color: #141d36;
}

.service-card .btn-dark:hover {
    background: #141d36;
    color: #fff;
}

.service-card-image {
    order: 5;
    width: calc(100% + 92px);
    min-height: 190px;
    margin: auto -46px 0;
    background-position: center;
    background-size: cover;
}

.service-card-buying .service-card-image {
    background-image: url('./images/section-buy.jpg');
}

.service-card-selling .service-card-image {
    background-image: url('./images/section-sell.jpg');
}

.who-we-are-photo {
    max-width: 760px;
    margin: 0 auto 48px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(20, 29, 54, 0.12);
    box-shadow: 0 24px 70px rgba(20, 29, 54, 0.14);
}

.who-we-are-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 22%;
}

.supporting-photo-section {
    padding: 0 5% 92px;
    background: #070104;
}

.supporting-photo-inner {
    max-width: 1120px;
    margin: 0 auto;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border: 1px solid rgba(189, 174, 130, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.supporting-photo-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.north-county-living-section {
    background: #f7f5f0;
}

.north-county-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 48px;
    align-items: center;
}

.north-county-copy h2,
.testimonials-inner h2,
.buy-search-inner h2 {
    color: #141d36;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.north-county-copy p {
    color: #333;
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 28px;
}

.city-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.city-link-grid a {
    display: block;
    padding: 12px 14px;
    border: 1px solid rgba(20, 29, 54, 0.12);
    border-radius: 4px;
    color: #141d36;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.city-link-grid a:hover,
.city-link-grid a.is-active {
    transform: translateY(-2px);
    border-color: rgba(189, 174, 130, 0.85);
    background: #fff;
    color: #8a7440;
}

.north-county-map {
    position: relative;
    min-height: 640px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(20, 29, 54, 0.12);
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.94), transparent 9%),
        radial-gradient(circle at 92% 12%, rgba(189, 174, 130, 0.32), transparent 24%),
        linear-gradient(135deg, #d7e7ee 0%, #edf4f5 34%, #eee5d0 35%, #f7f1e3 100%);
    box-shadow: 0 28px 80px rgba(20, 29, 54, 0.12);
}

.north-county-map {
    display: none;
}

.north-county-inner {
    grid-template-columns: minmax(0, 1fr);
}

.north-county-copy {
    max-width: 760px;
}

.north-county-map::before {
    content: '';
    position: absolute;
    inset: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    pointer-events: none;
}

.north-county-svg-map {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 45px rgba(20, 29, 54, 0.14));
}

.map-water {
    fill: url(#mapWater);
}

.map-land {
    fill: url(#mapLand);
    filter: url(#mapShadow);
}

.map-coast-shape {
    fill: none;
    stroke: rgba(20, 29, 54, 0.34);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 2 14;
}

.map-coast-accent {
    fill: none;
    stroke: rgba(255, 255, 255, 0.64);
    stroke-width: 10;
    stroke-linecap: round;
    opacity: 0.62;
}

.map-route {
    fill: none;
    stroke: rgba(20, 29, 54, 0.22);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 8 14;
}

.map-route-coast {
    stroke: rgba(20, 29, 54, 0.3);
    stroke-width: 4;
}

.map-location {
    cursor: pointer;
    transform-box: view-box;
    transform-origin: center;
    transition: transform 0.22s ease;
}

.map-hit {
    fill: transparent;
    pointer-events: all;
}

.map-pin {
    fill: #141d36;
    stroke: #fff;
    stroke-width: 4;
    transition: fill 0.22s ease, r 0.22s ease, filter 0.22s ease;
}

.map-island {
    fill: rgba(75, 119, 173, 0.72);
    stroke: rgba(255, 255, 255, 0.72);
    stroke-width: 4;
}

.map-label {
    fill: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    pointer-events: none;
    text-anchor: middle;
    text-transform: uppercase;
    paint-order: stroke;
    stroke: rgba(20, 29, 54, 0.78);
    stroke-width: 5;
    stroke-linejoin: round;
}

.map-label-left {
    text-anchor: end;
}

.map-location:hover,
.map-location.is-active {
    transform: scale(1.055);
}

.map-location:hover .map-pin,
.map-location.is-active .map-pin {
    fill: #bdae82;
    stroke: #fff;
    r: 10;
    filter: drop-shadow(0 13px 18px rgba(20, 29, 54, 0.25));
}

.editorial-boundary-map {
    background: #fbfaf6;
}

.editorial-map-ocean {
    fill: url(#editorialOceanFade);
}

.editorial-map-waves {
    fill: url(#editorialMapWaves);
}

.editorial-map-camp {
    fill: url(#editorialCampLines);
    opacity: 0.86;
}

.editorial-map-context-label {
    fill: rgba(20, 29, 54, 0.58);
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.03em;
    pointer-events: none;
    text-anchor: middle;
}

.editorial-map-context path {
    fill: #202d42;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.1;
    vector-effect: non-scaling-stroke;
}

.editorial-map-context text {
    fill: rgba(255, 255, 255, 0.92);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    pointer-events: none;
    text-anchor: middle;
}

.editorial-map-coastline {
    fill: none;
    stroke: #bdae82;
    stroke-width: 4.5;
    stroke-linecap: round;
    opacity: 0.68;
}

.editorial-map-region {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.editorial-map-region path,
.editorial-map-region circle {
    fill-rule: evenodd;
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
    transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.editorial-map-region.area-dark path {
    fill: #18223a;
}

.editorial-map-region.area-medium path {
    fill: #465167;
}

.editorial-map-region.area-light path {
    fill: #95885e;
}

.editorial-map-region.area-label-only path,
.editorial-map-region.area-label-only circle {
    fill: #141d36;
}

.editorial-map-region:hover,
.editorial-map-region.is-active {
    transform: scale(1.022);
}

.editorial-map-region:hover path,
.editorial-map-region.is-active path,
.editorial-map-region:hover circle,
.editorial-map-region.is-active circle {
    fill: #bdae82;
    filter: drop-shadow(0 12px 18px rgba(20, 29, 54, 0.24));
}

.editorial-map-region text {
    fill: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    pointer-events: none;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(20, 29, 54, 0.52);
    stroke-width: 2.1;
    stroke-linejoin: round;
}

.editorial-map-callout text {
    fill: #141d36;
    font-size: 12px;
    text-anchor: end;
    stroke: rgba(255, 255, 255, 0.96);
    stroke-width: 3;
}

.editorial-map-callout .callout-line {
    fill: none;
    stroke: #141d36;
    stroke-width: 1.3;
    filter: none;
    opacity: 0.85;
}

.editorial-map-region:hover .callout-line,
.editorial-map-region.is-active .callout-line {
    stroke: #bdae82;
    filter: none;
}

.editorial-map-ocean-label {
    fill: #bdae82;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.88;
}

.testimonials-section {
    background: #070104;
}

.testimonials-inner h2 {
    color: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    padding: 28px;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin-bottom: 18px;
}

.testimonial-card strong {
    color: #bdae82;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.buy-search-band {
    background: #f7f5f0;
}

.buy-search-inner {
    text-align: center;
    padding: 48px 28px;
}

@media (max-width: 900px) {
    .buy-sell-cards-inner,
    .north-county-inner,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .north-county-inner {
        gap: 30px;
    }

    .north-county-map {
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .buy-sell-cards-section {
        padding: 64px 5%;
    }

    .service-card {
        min-height: 570px;
        padding: 42px 24px 0;
    }

    .service-card-icon {
        width: 88px;
        height: 88px;
        margin-bottom: 26px;
    }

    .service-card-icon svg {
        width: 46px;
        height: 46px;
    }

    .service-card h2 {
        font-size: clamp(2.45rem, 13vw, 3.45rem);
    }

    .service-card p {
        font-size: 0.98rem;
        margin-bottom: 28px;
    }

    .service-card .btn-dark {
        width: 100%;
        padding: 15px 16px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
        margin-bottom: 36px;
    }

    .service-card-image {
        width: calc(100% + 48px);
        min-height: 170px;
        margin: auto -24px 0;
    }

    .homepage-hero-copy h1 {
        font-size: clamp(2rem, 14vw, 4rem);
    }

    .homepage-hero-copy h1 span:first-child {
        font-size: 0.88em;
    }

    .city-link-grid {
        grid-template-columns: 1fr;
    }

    .map-city span {
        font-size: 0.62rem;
        padding: 5px 7px;
    }

    .editorial-map-region text {
        font-size: 11px;
        stroke-width: 2.6;
    }

    .editorial-map-ocean-label {
        font-size: 20px;
    }

    .editorial-map-region path {
        stroke-width: 1.1;
    }
}

.contact-form-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    min-width: 0;
}

#contact-form {
    scroll-margin-top: 28px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

@media (min-width: 600px) {
    .form-row {
        flex-direction: row;
    }
}

.half-width {
    flex: 1;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    padding: 12px 34px;
    background-color: #fff;
    color: #000;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    border-radius: 999px;
    margin-top: 10px;
}

.contact-privacy-note {
    margin: 6px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
}

.validation-msg {
    display: none;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.validation-msg.valid {
    display: block;
    color: #4CAF50;
    /* Green success text */
}

/* --- FORM SUCCESS MESSAGE --- */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-success-message.active {
    display: flex;
    opacity: 1;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
}

.success-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* --- WHO WE ARE SECTION --- */
.who-we-are-section {
    padding: 80px 0;
    background: #ffffff;
    color: #000;
}

.who-we-are-container {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 0 5%;
}

.who-we-are-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-top: 24px;
}

.who-we-are-section .btn-dark {
    margin-top: 36px;
}

/* Dark Button Variant */
.btn-dark {
    display: inline-block;
    padding: 15px 45px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s;
}

.btn-dark:hover {
    background: #000;
    color: #fff;
}

/* --- WORK WITH US SECTION --- */
.work-with-us-section {
    padding: 95px 0;
    background: #ffffff;
    color: #000;
}

.work-with-us-section .work-copy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 0 5%;
}

.work-with-us-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-top: 24px;
}

/* --- INSTAGRAM SECTION --- */
.instagram-section {
    padding: 100px 0;
    position: relative;
    background-color: #ffffff;
    color: #000;
}

.instagram-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    text-align: center;
}

.instagram-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.instagram-title-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.instagram-header .section-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.instagram-handle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #bdae82;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.instagram-handle:hover {
    color: #000;
}

/* LightWidget embed sizing (prevents a collapsed/blank iframe if the widget JS can’t auto-resize) */
.instagram-widget-fullwidth {
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
}

.instagram-widget-fullwidth .lightwidget-widget {
    display: block;
    width: 100%;
    border: 0;
    overflow: hidden;
    height: clamp(460px, 62vh, 760px);
}

@media (max-width: 600px) {
    .instagram-widget-fullwidth .lightwidget-widget {
        height: clamp(520px, 72vh, 920px);
    }
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

.instagram-post {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.instagram-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.instagram-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-hover-icon {
    width: 45px;
    height: 45px;
    color: white;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.instagram-post:hover .instagram-img {
    transform: scale(1.08);
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-post:hover .instagram-hover-icon {
    transform: scale(1);
}

.instagram-footer {
    display: flex;
    justify-content: center;
}

.btn-instagram {
    display: inline-block;
    padding: 15px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.btn-instagram:hover {
    background: #fff;
    color: #000;
}

/* --- PROPERTY DETAILS SPLIT PAGE --- */
.property-details-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.split-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }
}

.split-left {
    position: relative;
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 900px) {
    .split-left {
        width: 50%;
        height: 100vh;
    }
}

.property-gallery,
.property-gallery-image {
    position: absolute;
    inset: 0;
}

.property-gallery {
    z-index: 1;
    overflow: hidden;
    background: #10162a;
}

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

.property-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    background: rgba(7, 11, 21, 0.56);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.property-gallery-nav:hover,
.property-gallery-nav:focus-visible {
    background: rgba(7, 11, 21, 0.8);
    border-color: #d6b84a;
    transform: translateY(-50%) scale(1.04);
}

.property-gallery-prev {
    left: 22px;
}

.property-gallery-next {
    right: 22px;
}

.property-gallery-count {
    position: absolute;
    right: 26px;
    bottom: 126px;
    z-index: 12;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(7, 11, 21, 0.62);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.property-gallery-thumbs {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    z-index: 12;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 10px;
    scrollbar-width: thin;
}

.property-gallery-thumb {
    flex: 0 0 76px;
    height: 56px;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.42);
    border-radius: 4px;
    background: rgba(255,255,255,0.14);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.property-gallery-thumb.active,
.property-gallery-thumb:hover,
.property-gallery-thumb:focus-visible {
    opacity: 1;
    border-color: #d6b84a;
    transform: translateY(-2px);
}

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

.split-left-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 30%, rgba(0,0,0,0.4) 100%);
}

.hero-logo {
    position: absolute;
    top: 30px; left: 30px;
    z-index: 10;
}
.hero-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.hero-bottom-brand {
    position: absolute;
    bottom: 30px; left: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    font-weight: 600;
    z-index: 10;
}

.property-details-page .hero-bottom-brand {
    bottom: 112px;
}

.split-right {
    width: 100%;
    background: #fafafa;
    overflow-y: auto;
}

@media (min-width: 900px) {
    .split-right {
        width: 50%;
        height: 100vh;
    }
}

.split-right-inner {
    padding: 60px 8% 100px 8%;
    width: 100%;
}

.property-details-page .contact-section {
    padding: 80px 8% 90px;
    background:
        radial-gradient(900px 460px at 15% 10%, rgba(189, 174, 130, 0.2), transparent 55%),
        linear-gradient(rgba(16, 22, 42, 0.88), rgba(7, 11, 21, 0.94)),
        url('./images/beach.jpeg') center/cover no-repeat;
}

.property-details-page .contact-container {
    max-width: 760px;
    padding: 0;
    flex-direction: column;
    gap: 34px;
}

.property-details-page .contact-content-left {
    max-width: none;
    padding-top: 0;
}

.property-details-page .contact-form-wrapper {
    max-width: 100%;
    padding: clamp(24px, 5vw, 36px);
}

.property-details-page .contact-form {
    max-width: none;
    margin-left: 0;
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.split-header .menu-trigger .hamburger span {
    background-color: #000;
}

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

.header-phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #444;
}

.header-contact img {
    filter: grayscale(100%) opacity(0.5);
    transition: 0.3s;
}
.header-contact a:hover img {
    filter: none;
    opacity: 1;
}

.split-address {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.split-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 24px;
    font-weight: 400;
}

.property-sticky-cta {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(16, 22, 42, 0.12);
    border-left: 4px solid #10162a;
    border-radius: 6px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 12px 30px rgba(16, 22, 42, 0.12);
    backdrop-filter: blur(12px);
}

.property-cta-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2px;
    background: #10162a;
}

.property-cta-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.property-cta-copy {
    text-align: center;
}

.property-cta-name {
    margin: 0 0 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16, 22, 42, 0.14);
    color: #10162a;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
    line-height: 1.1;
}

.property-cta-eyebrow {
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #10162a;
}

.property-cta-contact {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

.property-cta-contact a {
    display: block;
    color: #333;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.property-cta-contact a:hover,
.property-cta-contact a:focus-visible {
    color: #10162a;
    text-decoration: underline;
}

.property-cta-contact span {
    display: none;
}

.property-cta-button {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid #d6b84a;
    border-radius: 4px;
    background: #d6b84a;
    color: #10162a;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(214, 184, 74, 0.24);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.property-cta-button:hover,
.property-cta-button:focus-visible {
    background: #10162a;
    border-color: #10162a;
    color: #fff;
    transform: translateY(-1px);
}

.property-cta-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding-top: 10px;
    border-top: 1px solid rgba(16, 22, 42, 0.14);
    color: #10162a;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.property-cta-map-link:hover,
.property-cta-map-link:focus-visible {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.property-body-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.property-main-column {
    min-width: 0;
}

.property-body-layout .split-details-grid {
    margin-bottom: 0;
}

.property-cta-column {
    order: -1;
    align-self: stretch;
}

@media (min-width: 1500px) {
    .property-body-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .property-cta-column {
        order: initial;
    }
}

@media (max-width: 1499px) {
    .property-sticky-cta {
        max-width: 460px;
        margin-left: auto;
    }
}

@media (max-width: 620px) {
    .property-sticky-cta {
        max-width: none;
        margin-left: 0;
        padding: 18px;
    }

    .property-cta-photo {
        max-width: 190px;
        aspect-ratio: 1 / 1;
    }
}

.split-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-bottom: 50px;
}

.split-detail-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.split-detail-item strong {
    color: #000;
    font-weight: 600;
}

.split-description h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
}

.split-description p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 50px;
}

.split-description .listing-courtesy {
    margin-top: -28px;
    margin-bottom: 50px;
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(20, 29, 54, 0.48);
}

.btn-book-tour {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

.btn-book-tour:hover {
    background: #000;
    color: #fff;
}

.split-bottom-row {
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .split-bottom-row {
        display: block;
    }
    .bottom-left-desc {
        max-width: 100%;
    }
}

.split-map-module {
    margin-top: 50px;
}

@media (min-width: 900px) {
    .split-map-module {
        margin-top: 0;
        flex: 1;
    }
}

.split-map-module h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}

.split-map-module iframe {
    width: 100%;
    height: 350px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Subtle depth */
    filter: contrast(0.9) grayscale(0.1); /* Slightly mute the map colors to feel more premium */
}

.property-location-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid rgba(20, 29, 54, 0.12);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.property-location-address {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.property-location-link {
    align-self: flex-start;
}

/* --- Area guide pages (e.g. Carlsbad) — spotlight slideshow, guide table, insights --- */
.neighborhood-spotlights .container {
    max-width: 1440px;
}

.spotlight-slideshow {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Split layout: one static image + text-only horizontal track */
.spotlight-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(20, 29, 54, 0.12);
    background: #fff;
    border: 1px solid rgba(20, 29, 54, 0.06);
}

.spotlight-split-image {
    position: relative;
    min-height: clamp(260px, 40vw, 440px);
    background: #e8ecf0;
}

.spotlight-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-split-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.spotlight-text-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: clamp(200px, 32vw, 340px);
    min-width: 0;
}

.spotlight-slideshow-track {
    display: flex;
    flex: 1;
    min-height: 0;
    transition: transform 0.55s cubic-bezier(0.22, 0.92, 0.28, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .spotlight-slideshow-track {
        transition: none;
    }
}

.spotlight-text-panel {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-top: 5px solid #d4af37;
    text-align: left;
}

.spotlight-panel__inner h3 {
    color: #141d36 !important;
    margin: 0 0 16px 0;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.spotlight-panel__inner p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    max-width: 36em;
}

.spotlight-split-text .spotlight-slideshow-controls {
    margin-top: auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 768px) {
    .spotlight-split-card {
        grid-template-columns: 1fr;
    }

    .spotlight-split-image {
        min-height: clamp(200px, 45vw, 260px);
        max-height: 320px;
    }

    .spotlight-text-viewport {
        min-height: min(240px, 48vw);
    }
}

.spotlight-slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.spotlight-slideshow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #141d36;
    background: #fff;
    color: #141d36;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.spotlight-slideshow-btn:hover {
    background: #141d36;
    color: #fff;
}

.spotlight-slideshow-btn:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
}

.spotlight-slideshow-btn svg {
    width: 22px;
    height: 22px;
}

.spotlight-slideshow-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.spotlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #c5cdd6;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.spotlight-dot:hover {
    background: #141d36;
    transform: scale(1.15);
}

.spotlight-dot.is-active {
    background: #d4af37;
    transform: scale(1.2);
}

.spotlight-dot:focus-visible {
    outline: 2px solid #141d36;
    outline-offset: 2px;
}

.area-guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.area-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    color: #444;
    line-height: 1.6;
}

.area-guide-table th,
.area-guide-table td {
    padding: clamp(16px, 1.5vw, 24px) clamp(20px, 2vw, 36px);
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.area-guide-table th {
    font-family: 'Playfair Display', serif;
    color: #141d36;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f4f7f9;
}

.area-guide-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 700px) {
    .area-guide-table-wrap {
        overflow-x: visible;
    }

    .area-guide-table,
    .area-guide-table thead,
    .area-guide-table tbody,
    .area-guide-table tr,
    .area-guide-table th,
    .area-guide-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .area-guide-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .area-guide-table tbody tr {
        padding: 18px 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .area-guide-table tbody tr:last-child {
        border-bottom: none;
    }

    .area-guide-table th,
    .area-guide-table td {
        padding: 0;
        border-bottom: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .area-guide-table td + td {
        margin-top: 14px;
    }

    .area-guide-table td::before {
        display: block;
        margin-bottom: 5px;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.11em;
        line-height: 1.35;
        text-transform: uppercase;
        color: #bdae82;
    }

    .area-guide-table td:nth-child(1)::before {
        content: "What you're looking for";
    }

    .area-guide-table td:nth-child(2)::before {
        content: "Neighborhoods to explore";
    }

    .area-guide-table td:nth-child(3)::before {
        content: "Why it fits";
    }
}

.city-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.city-insight-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.city-insight-card--known {
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.city-insight-card--tip {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid #d4af37;
}

.city-insight-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.city-insight-label--gold {
    color: #d4af37;
}

.city-insight-label--muted {
    color: #ffffff;
    opacity: 0.7;
}

.city-insight-label--tip {
    color: #d4af37;
    font-weight: 800;
}

.city-insight-body {
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
}

.city-insight-card--known .city-insight-body {
    color: #ffffff;
    font-style: italic;
}

.city-insight-card:not(.city-insight-card--known):not(.city-insight-card--tip) .city-insight-body {
    color: #e0e0e0;
}

.city-insight-card--tip .city-insight-body {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.15rem;
    font-style: normal;
}

/* Soft full-bleed background image (Carlsbad spotlights — add .neighborhood-spotlights--soft-bg on section) */
.neighborhood-spotlights--soft-bg {
    position: relative;
    overflow: hidden;
    background-color: #eef1f5;
}

.neighborhood-spotlights--soft-bg::before {
    content: '';
    position: absolute;
    inset: -2%;
    background: url('images/11.jpg') center / cover no-repeat;
    opacity: 0.2;
    filter: blur(18px) saturate(0.82);
    transform: scale(1.06);
    z-index: 0;
    pointer-events: none;
}

.neighborhood-spotlights--soft-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(244, 247, 249, 0.88) 0%,
        rgba(244, 247, 249, 0.92) 42%,
        rgba(236, 241, 246, 0.94) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.neighborhood-spotlights--soft-bg > .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .neighborhood-spotlights--soft-bg::before {
        filter: saturate(0.88);
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .neighborhood-spotlights--soft-bg::before {
        opacity: 0.14;
        filter: blur(12px) saturate(0.85);
    }
}

/* Carlsbad page — tighter spacing & type for area content only */
.page-carlsbad .neighborhood-spotlights .container {
    max-width: 1100px;
}

.page-carlsbad .spotlight-split-card {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(20, 29, 54, 0.1);
}

.page-carlsbad .spotlight-split-image {
    min-height: clamp(180px, 32vw, 300px);
}

.page-carlsbad .spotlight-text-panel {
    padding: clamp(1rem, 2.5vw, 1.65rem);
    border-top-width: 4px;
}

.page-carlsbad .spotlight-panel__inner h3 {
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.page-carlsbad .spotlight-panel__inner p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
}

.page-carlsbad .spotlight-text-viewport {
    min-height: clamp(160px, 30vw, 260px);
}

.page-carlsbad .spotlight-split-text .spotlight-slideshow-controls {
    padding-left: clamp(1rem, 2.5vw, 1.65rem);
    padding-right: clamp(1rem, 2.5vw, 1.65rem);
}

.page-carlsbad .spotlight-slideshow-controls {
    margin-top: 16px;
    gap: 12px;
}

.page-carlsbad .spotlight-slideshow-btn {
    width: 40px;
    height: 40px;
}

.page-carlsbad .spotlight-slideshow-btn svg {
    width: 18px;
    height: 18px;
}

.page-carlsbad .spotlight-dot {
    width: 8px;
    height: 8px;
}

.page-carlsbad .area-guide-table {
    font-size: 0.88rem;
    line-height: 1.4;
}

.page-carlsbad .area-guide-table th,
.page-carlsbad .area-guide-table td {
    padding: 8px 10px;
}

.page-carlsbad .area-guide-table th {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.page-carlsbad .city-insights-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.page-carlsbad .city-insight-card {
    padding: 18px 20px;
    border-radius: 12px;
}

.page-carlsbad .city-insight-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

.page-carlsbad .city-insight-body {
    font-size: 0.9rem;
    line-height: 1.5;
}

.page-carlsbad .city-insight-card--tip .city-insight-body {
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .page-carlsbad .spotlight-split-image {
        min-height: clamp(160px, 48vw, 220px);
    }
}
