/* ============================================
   GOLD COAST REALTY LLC - STYLESHEET
   Color Scheme: Black, Yellow, White
   ============================================ */

/* CSS Variables */
:root {
    --color-black: #000000;
    --color-yellow: #FFD700;
    --color-yellow-light: #FFE55C;
    --color-yellow-dark: #E6C200;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray: #999999;
    --color-gray-dark: #333333;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success::before {
    content: "✓";
    color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-error::before {
    content: "✕";
    color: #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-warning::before {
    content: "⚠";
    color: #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-info::before {
    content: "ℹ";
    color: #17a2b8;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure consistent box-sizing across browsers */
*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Fix for older browsers */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html {
    scroll-behavior: smooth;
    /* Fallback for browsers that don't support smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Ensure containers don't overflow */
.container,
section,
header,
footer {
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Image and Media Responsiveness */
img,
video,
embed,
object {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframes */
iframe {
    max-width: 100%;
    width: 100%;
}

/* Video containers should be responsive */
.hero-video-player,
.video-player,
.area-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-player iframe,
.video-player iframe,
.area-video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure all containers respect viewport */
* {
    box-sizing: border-box;
}

/* Navigation - Oppenheim Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Backdrop filter with vendor prefixes for browser compatibility */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background-color: #000000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    height: 60px;
    gap: 3rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.9;
}

.logo-image {
    height: 45px;
    width: auto;
    min-width: 150px; /* Ensure full logo text is visible */
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.02);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    display: none; /* Hide by default, logo image used instead */
}

@media (max-width: 768px) {
    .logo-image {
        height: 38px;
        min-width: 152px; /* Maintain aspect ratio: 38px * (240/60) = 152px */
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 56px;
    }
}

.logo .tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    letter-spacing: 3px;
    margin-top: 4px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a {
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
    font-family: var(--font-secondary);
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--color-yellow);
}

.nav-plus {
    font-size: 1.75rem !important;
    font-weight: 300 !important;
    text-transform: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 0.5rem;
}

.nav-plus:hover {
    color: var(--color-yellow);
    transform: rotate(90deg);
}

.nav-plus:focus {
    outline: 2px solid #F5C400;
    outline-offset: 4px;
}

/* Responsive adjustments for larger screens */
@media (min-width: 1400px) {
    .nav-menu {
        gap: 3rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
}

.nav-plus:hover {
    color: #F5C400;
}

.nav-plus::after {
    display: none !important;
}

.dropdown-arrow {
    font-size: 0.625rem;
    transition: var(--transition);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: rgba(0, 0, 0, 0.98);
    min-width: 200px;
    list-style: none;
    padding: 1rem 0;
    margin-top: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    /* Create invisible bridge to prevent hover gap */
    padding-top: 0.75rem;
    margin-top: -0.5rem;
}

/* Invisible bridge to keep dropdown open when moving mouse */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.75rem;
    background: transparent;
    z-index: 999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-white);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--color-yellow);
    padding-left: 2rem;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background-color: var(--color-yellow);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

/* Ensure hero is full height on mobile */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 100vh; /* Force full viewport height on mobile */
    }
}

/* Hero video background player */
.hero-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Prevent interaction with video */
    overflow: hidden;
}

.hero-video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale video to completely cover the hero section - zoomed to hide details */
    /* Use large dimensions to ensure full coverage on all screen sizes */
    transform: translate(-50%, -50%);
    /* For desktop/landscape: cover width, scale height */
    /* For mobile portrait: cover height, scale width */
    width: max(177.78vh, 100vw); /* Cover height (portrait) or width (landscape) */
    height: max(100vh, 56.25vw); /* Cover height or maintain 16:9 for width */
    min-width: 100%;
    min-height: 100%;
    border: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Featured Layout */
.hero-featured {
    padding: 0;
}

.hero-featured-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 4rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-featured-left {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-featured-title-section {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-yellow);
}

.hero-featured-role {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-family: var(--font-secondary);
}

.hero-featured-name-first {
    font-size: 5rem;
    font-weight: 600;
    line-height: 0.9;
    color: var(--color-yellow);
    margin: 0;
    letter-spacing: -2px;
    font-family: var(--font-primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-featured-name-last {
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--color-yellow);
    margin: 0;
    letter-spacing: -2px;
    font-family: var(--font-primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-featured-image {
    margin-top: 2rem;
}

.hero-featured-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--color-yellow);
}

.hero-featured-right {
    position: relative;
}

.hero-featured-bio {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-featured-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.hero-featured-bio p:last-child {
    margin-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--color-gray-light);
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-yellow);
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
}

.btn-primary:hover {
    background-color: var(--color-yellow-dark);
    border-color: var(--color-yellow-dark);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

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

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

/* Quick Stats */
.quick-stats {
    padding: 4rem 0;
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    margin: 0;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
}

/* Services Preview */
.services-preview {
    background-color: var(--color-white);
    padding: 6rem 0;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-yellow);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.services-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 0;
}

.services-preview .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-yellow);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-yellow-dark) 100%);
    transform: scale(1.1);
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--color-yellow);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--color-black);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.service-card p {
    color: var(--color-gray-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-black);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--color-yellow);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* Responsive Services */
@media (max-width: 1024px) {
    .services-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .services-preview {
        padding: 4rem 0;
    }
    
    .services-header {
        margin-bottom: 3rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        gap: 0.75rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.8125rem;
    }
    
    .service-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 24px;
        height: 24px;
    }
}

/* Video Section */
.video-section {
    padding: 0;
    background-color: var(--color-black);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-wrapper {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-black);
    min-height: 600px;
    max-height: 80vh;
}

/* Autoplay video player - covers entire space */
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Prevent interaction with video */
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale video to completely cover the container - zoomed to hide details */
    /* Scale up to ensure no edges or black bars are visible */
    transform: translate(-50%, -50%) scale(1.3);
    min-width: 100%;
    min-height: 100%;
    width: 140%;
    height: 140%;
    border: none;
    /* Ensure video fills entire space without revealing details */
}

/* Dark overlay for text readability */
.video-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content overlay on top of video */
.video-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    z-index: 3;
    pointer-events: none; /* Allow clicks to pass through */
}

.video-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.video-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--color-gray-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Featured Listings */
.featured-listings {
    background-color: var(--color-white);
    padding: 5rem 0;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.listings-header-left {
    flex: 1;
}

.listings-exclusive-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-black);
    margin: 0 0 0.5rem 0;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.listings-exclusive-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-yellow);
}

.listings-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin: 0;
    font-family: var(--font-secondary);
    letter-spacing: -1px;
}

.listings-header-right {
    margin-left: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.listings-count {
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.btn-view-all {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-view-all:hover {
    background-color: #c9a020;
    transform: translateY(-2px);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.listing-card-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.listing-card-modern:hover {
    transform: translateY(-5px);
}

.listing-card-modern:hover .listing-image {
    transform: scale(1.05);
}

.listing-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
}

.listing-image,
.listing-image-placeholder-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.listing-image-placeholder-modern {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.listing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: var(--color-white);
}

.listing-price-overlay {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

.listing-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-yellow);
    margin: 0.75rem 0;
}

.listing-address-overlay {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 2;
}

/* Listings Pagination */
.listings-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.pagination-btn:hover:not(.disabled) {
    color: var(--color-black);
    border-color: var(--color-yellow);
    background-color: rgba(255, 215, 0, 0.1);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn span {
    font-size: 1.25rem;
    line-height: 1;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.pagination-number:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--color-yellow-dark);
}

.pagination-number.active {
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-weight: 600;
}

.pagination-ellipsis {
    color: var(--color-black);
    padding: 0 0.5rem;
}

/* Listings Disclaimer */
.listings-disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.listings-disclaimer p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

.listings-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Legacy listing styles for backward compatibility */
.listing-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--color-yellow);
}

.listing-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.listing-image-placeholder::after {
    content: '🏠';
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
}

.listing-content {
    padding: 1.5rem;
}

.listing-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.listing-detail-item {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
}

.listing-location {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

.listing-btn {
    width: 100%;
    text-align: center;
}

/* Team Preview */
.team-preview {
    background-color: var(--color-gray-light);
    padding: 5rem 0;
}

/* Team Featured Member */
.team-featured-member {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 3rem;
    padding: 0;
    background-color: transparent;
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.team-featured-left {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.team-featured-title-section {
    position: relative;
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 0;
    border-left: none;
    z-index: 2;
    width: 100%;
}

.team-featured-role {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-yellow);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.team-featured-name-first {
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 0.95;
    color: var(--color-black);
    margin: 0;
    letter-spacing: -2px;
    font-family: var(--font-primary);
    margin-bottom: 0.15rem;
}

.team-featured-name-last {
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.95;
    color: var(--color-black);
    margin: 0;
    letter-spacing: -2px;
    font-family: var(--font-primary);
    margin-bottom: 0;
}

/* Joseph's photo: round display, same style as Laura's (circular, yellow border) */
.team-featured-image {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    z-index: 1;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

.team-featured-photo {
    width: 300px;
    height: 300px;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 3px solid var(--color-yellow);
    transition: var(--transition);
}

.team-featured-photo:hover {
    transform: scale(1.05);
}

.team-featured-right {
    position: relative;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-featured-bio {
    padding: 0;
    max-width: 600px;
    margin-bottom: 3rem;
}

.team-featured-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.team-featured-bio p:last-child {
    margin-bottom: 0;
}

/* Team Featured Action Buttons */
.team-featured-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
}

.team-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 8px;
    width: fit-content;
}

.team-action-primary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    justify-content: center;
}

.team-action-primary:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.team-action-primary svg {
    color: var(--color-black);
    flex-shrink: 0;
}

.team-action-video {
    background-color: transparent;
    color: var(--color-black);
    padding-left: 0;
}

.team-action-video:hover {
    color: var(--color-yellow);
}

.team-action-video strong {
    color: var(--color-yellow);
    font-weight: 700;
}

.team-action-video:hover strong {
    color: var(--color-yellow-dark);
}

.team-play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-yellow);
    flex-shrink: 0;
    transition: var(--transition);
}

.team-action-video:hover .team-play-icon {
    background-color: var(--color-yellow);
    color: var(--color-black);
    transform: scale(1.1);
}

.team-play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* Video Modal - Inline Style */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Backdrop filter with vendor prefixes */
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    z-index: 10001;
    background-color: var(--color-black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.video-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    z-index: 10002;
    transition: var(--transition);
}

.video-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: rotate(90deg);
}

.video-modal-player {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-modal-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Zillow Profile Modal - browse in-page */
.profile-modal .profile-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: 85vh;
    max-height: 800px;
    z-index: 10001;
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.profile-modal .video-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 600;
    flex-shrink: 0;
}

.profile-modal-open-external {
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}

.profile-modal-open-external:hover {
    text-decoration: underline;
}

.profile-modal-frame {
    flex: 1;
    min-height: 0;
    background: #f5f5f5;
}

.profile-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member-card {
    background-color: var(--color-white);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.member-photo-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-gray) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    text-align: center;
}

.member-photo-placeholder.large {
    width: 300px;
    height: 300px;
}

/* Member photo images */
.member-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    border: 4px solid var(--color-yellow);
    background-color: var(--color-white);
}

.member-photo-preview {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-yellow);
    background-color: var(--color-white);
    transition: var(--transition);
}

.member-photo-preview:hover {
    transform: scale(1.05);
}

.member-title {
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Areas Preview */
.areas-preview {
    background-color: var(--color-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    padding: 3rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    border: 2px solid var(--color-yellow);
}

.area-card h3 {
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

/* Area card with video - for index page */
.area-card.area-card-with-video {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    min-height: 400px;
    background-color: var(--color-black) !important;
    border: 2px solid var(--color-yellow);
}

.area-card.area-card-with-video .area-card-content {
    position: relative;
    z-index: 3;
    padding: 3rem 2rem;
    color: var(--color-white);
    text-align: center;
}

.area-card.area-card-with-video .area-card-content h3 {
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

.area-card.area-card-with-video .area-card-content p {
    color: rgba(255, 255, 255, 0.95);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-gray-light);
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-black) 0%, #1a1a1a 100%);
    color: var(--color-white);
    text-align: center;
    margin-top: 70px;
    position: relative;
}

/* Page header with video background */
.page-header-video {
    padding: 0;
    height: 60vh;
    min-height: 500px;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Page header video player */
.page-header-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Prevent interaction with video */
    overflow: hidden;
}

.page-header-video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Scale video to completely cover the header - zoomed to hide details */
    transform: translate(-50%, -50%) scale(1.3);
    min-width: 100%;
    min-height: 100%;
    width: 140%;
    height: 140%;
    border: none;
    /* Ensure video fills entire space without revealing details */
}

/* Page header overlay for text readability */
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.page-header-video .container {
    position: relative;
    z-index: 3;
    padding: 2rem 20px;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--color-yellow);
    position: relative;
    z-index: 3;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* About Content */
.about-content {
    background-color: var(--color-white);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    padding: 2rem;
    background-color: var(--color-gray-light);
    border-left: 4px solid var(--color-yellow);
}

.feature-item h3 {
    color: var(--color-black);
    margin-bottom: 1rem;
}

.about-commitment {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-commitment h2 {
    margin-bottom: 1.5rem;
}

/* Team Section */
.team-section {
    background-color: var(--color-white);
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.team-member-full {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background-color: var(--color-gray-light);
}

.member-image-container {
    display: flex;
    justify-content: center;
}

.member-info h2 {
    margin-bottom: 0.5rem;
}

.member-title-large {
    font-size: 1.25rem;
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 2rem;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item strong {
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span,
.detail-item a {
    color: var(--color-black);
    font-size: 1.125rem;
}

.detail-item a:hover {
    color: var(--color-yellow);
}

/* Services Detail */
.services-detail {
    background-color: var(--color-white);
}

.service-detail-item {
    margin-bottom: 4rem;
    padding: 3rem;
    background-color: var(--color-gray-light);
    border-left: 5px solid var(--color-yellow);
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.service-detail-content h2 {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 2rem;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-yellow);
    font-weight: bold;
}

/* Areas Detail */
.areas-detail {
    background-color: var(--color-white);
}

.areas-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
}

.areas-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.area-detail-card {
    padding: 3rem;
    background-color: var(--color-gray-light);
    border-top: 4px solid var(--color-yellow);
}

.area-detail-card h2 {
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

/* Area card with video background */
.area-card-with-video {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    min-height: 600px;
    height: auto;
    background-color: var(--color-black) !important;
    border-top: 4px solid var(--color-yellow);
}

.area-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--color-black);
}

/* For detail page cards */
.area-card-with-video:not(.area-card) .area-video-player {
    min-height: 600px;
}

.area-video-player iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    min-width: 100%;
    min-height: 100%;
    width: 140%;
    height: 140%;
    border: none;
    object-fit: cover;
    display: block;
}

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

.area-card-content {
    position: relative;
    z-index: 3;
    padding: 3rem;
    color: var(--color-white);
}

.area-card-content h2 {
    color: var(--color-white);
}

.area-card-content p {
    color: rgba(255, 255, 255, 0.95);
}

.area-card-content .area-info h3 {
    color: var(--color-white);
}

.area-card-content .area-info li {
    color: rgba(255, 255, 255, 0.9);
}

.area-info {
    margin-top: 2rem;
}

.area-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.area-info ul {
    list-style: none;
}

.area-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.area-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-yellow);
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Ensure all forms are responsive */
@media (max-width: 768px) {
    .contact-grid,
    .form-row-buyers,
    .form-row-neighborhood,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    form {
        width: 100%;
        max-width: 100%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-grid {
        gap: 2rem;
    }
}

/* Mobile touch targets and spacing (768px and below) */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
    }

    .contact-form-container button[type="submit"],
    .btn-primary {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    .page-header {
        min-height: 50vh;
    }
}

.contact-form-container h2,
.contact-info-container h2 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--color-gray-light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-info-card {
    background-color: var(--color-gray-light);
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-info-card h3 {
    margin-bottom: 0.5rem;
}

.contact-title {
    color: var(--color-yellow);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-details p {
    margin: 0;
}

.contact-details a {
    color: var(--color-black);
}

.contact-details a:hover {
    color: var(--color-yellow);
}

.consultation-section {
    margin-top: 4rem;
    padding: 3rem;
    background-color: var(--color-gray-light);
    text-align: center;
}

.consultation-section h2 {
    margin-bottom: 1rem;
}

.consultation-section p {
    margin-bottom: 2rem;
}

.consultation-section .btn-secondary {
    color: var(--color-black);
    border-color: var(--color-black);
}

.consultation-section .btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--color-gray-light);
}

.footer-col a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--color-gray-light);
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: 100vh;
        padding: 0;
        padding-top: 80px;
        padding-right: 0;
        transition: var(--transition);
        gap: 0;
        overflow-y: auto;
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-menu li {
        width: 100%;
        text-align: right;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-menu a {
        display: block;
        padding: 1.25rem 1.5rem;
        padding-right: 2rem;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9375rem;
    }

    .nav-menu a:hover {
        background-color: rgba(212, 175, 55, 0.1);
        color: var(--color-yellow);
    }

    /* Remove permanent yellow line under SELLERS */
    .nav-menu li a[href="sellers.php"]::after,
    .nav-menu li a[href*="sellers"]::after,
    .nav-menu li:has(a[href*="sellers"]) a::after {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        content: none !important;
    }
    
    .nav-menu li a[href="sellers.php"].active::after,
    .nav-menu li a[href="sellers.php"]:hover::after,
    .nav-menu li a[href*="sellers"].active::after,
    .nav-menu li a[href*="sellers"]:hover::after {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        content: none !important;
    }

    .nav-dropdown {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        width: 100% !important;
        min-height: 60px;
    }

    .nav-dropdown > a {
        flex: 1 !important;
        min-width: 0 !important;
        position: relative !important;
        z-index: 1 !important;
        margin-left: auto;
    }

    .dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        right: auto !important;
        display: none;
        width: 50% !important;
        max-width: 220px !important;
        min-width: 180px !important;
        background-color: rgba(0, 0, 0, 0.95) !important;
        margin-top: 0 !important;
        padding: 0 !important;
        padding-top: 1.25rem !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5) !important;
        border: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        text-align: left !important;
    }

    .nav-menu.active .nav-dropdown:hover .dropdown-menu,
    .nav-menu.active .nav-dropdown.active .dropdown-menu,
    .nav-menu.active .nav-dropdown.active .dropdown-menu[style*="block"] {
        display: block !important;
    }

    .dropdown-menu a {
        padding: 1rem 1.5rem !important;
        padding-left: 1.5rem !important;
        font-size: 0.875rem !important;
        text-align: left !important;
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Move close button to left when menu is open */
    .mobile-menu-toggle.active {
        margin-left: 0;
        margin-right: auto;
        order: -1; /* Move before logo in flex order */
    }
    
    /* Hide nav-plus button on mobile when hamburger is shown */
    .nav-plus {
        display: none !important;
    }
    
    /* Ensure hamburger is visible and properly positioned */
    .nav-container {
        position: relative;
    }
    
    /* Add overlay when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: block;
    }
    
    /* Ensure navbar stays on top when menu is open */
    .navbar {
        z-index: 1001;
    }
    
    /* Make sure hamburger button is above menu */
    .mobile-menu-toggle {
        z-index: 1002;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .team-member-full {
        grid-template-columns: 1fr;
    }

    .areas-grid-full {
        grid-template-columns: 1fr;
    }

    .area-card-with-video {
        min-height: 350px;
    }

    .area-card.area-card-with-video {
        min-height: 350px;
    }

    .area-video-player {
        min-height: 350px;
    }

    .area-card-content {
        padding: 2rem 1.5rem;
    }

    .area-card.area-card-with-video .area-card-content {
        padding: 2rem 1.5rem;
    }

    .hero-featured-content {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-featured-name-first {
        font-size: 2.5rem;
    }

    .hero-featured-name-last {
        font-size: 3rem;
    }

    .hero-featured-bio {
        padding: 1.5rem;
    }

    .hero-featured-bio p {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-featured-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 6rem 2rem 4rem;
    }

    .hero-featured-name-first {
        font-size: 3rem;
    }

    .hero-featured-name-last {
        font-size: 3.5rem;
    }

    .hero-featured-bio {
        padding: 2rem;
    }

    .team-featured-member {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 0;
        min-height: auto;
    }

    .team-featured-title-section {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .team-featured-name-first {
        font-size: 3rem;
    }

    .team-featured-name-last {
        font-size: 4rem;
    }

    .team-featured-image {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 1.5rem;
        width: 280px;
        height: 280px;
    }

    .team-featured-photo {
        width: 280px;
        height: 280px;
        border-radius: 50%;
    }

    section {
        padding: 3rem 0;
    }

    .service-detail-item {
        padding: 2rem 1.5rem;
    }

    .video-title {
        font-size: 2.5rem;
    }

    .video-subtitle {
        font-size: 1.25rem;
    }

    .video-container {
        min-height: 400px;
    }

    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .listings-main-title {
        font-size: 2.5rem;
    }

    .listings-header-right {
        margin-left: 0;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .listing-image-container {
        height: 400px;
    }

    .listing-card-modern {
        max-width: 100%;
    }

    .listing-card {
        max-width: 100%;
    }

    .listings-pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   PROPERTIES PAGE STYLES
   ============================================ */
.properties-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.properties-section-alt {
    background-color: var(--color-gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.listing-card-sold {
    opacity: 0.85;
    cursor: default;
}

.listing-card-sold:hover {
    transform: none;
}

.listing-sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.no-listings {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-gray-dark);
    font-size: 1.125rem;
}

/* ============================================
   BUYERS PAGE STYLES
   ============================================ */
.buyers-hero-section {
    padding: 8rem 0 6rem;
    background-color: var(--color-white);
    text-align: center;
}

.buyers-hero-content-main {
    max-width: 1000px;
    margin: 0 auto;
}

.buyers-hero-label {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 2rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.buyers-hero-title {
    font-size: 5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 3rem;
    line-height: 1.1;
}

.buyers-title-word {
    display: block;
}

.buyers-hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-buyers-primary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-buyers-primary:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-buyers-secondary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background-color: transparent;
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid var(--color-black);
    transition: var(--transition);
    cursor: pointer;
}

.btn-buyers-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
}

.buyers-main-content {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.buyers-content-text {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.buyers-content-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-gray-dark);
    margin-bottom: 2rem;
    font-family: var(--font-secondary);
}

.buyers-content-text p:last-child {
    margin-bottom: 0;
}

.buyers-cta-section {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.buyers-contact-section {
    padding: 6rem 0;
    background-color: var(--color-gray-light);
}

.buyers-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.buyers-contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.buyers-contact-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.buyers-contact-header p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    font-family: var(--font-secondary);
}

.buyers-contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.form-group-buyers {
    margin-bottom: 1.5rem;
}

.form-group-buyers input,
.form-group-buyers textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--color-black);
    background-color: var(--color-white);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group-buyers input:focus,
.form-group-buyers textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.form-group-buyers textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
}

.btn-buyers-submit {
    width: 100%;
    padding: 1.25rem 2.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buyers-submit:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ============================================
   SELLERS PAGE STYLES
   ============================================ */
.sellers-hero {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.sellers-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sellers-hero-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.sellers-hero-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.buyers-services,
.sellers-services,
.concierge-services {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 1.25rem;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: none;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: var(--color-yellow);
}

.service-card h3 {
    font-size: 1.125rem;
    font-family: var(--font-primary);
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.service-card p {
    color: var(--color-gray-dark);
    line-height: 1.6;
    font-size: 0.875rem;
}

.buyers-process,
.sellers-process,
.concierge-process {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.process-step h3 {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    color: var(--color-black);
}

.process-step p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

.buyers-neighborhoods,
.sellers-concierge {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
}

.neighborhoods-content,
.concierge-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.neighborhoods-content h2,
.concierge-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.neighborhoods-content p,
.concierge-content p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   CONCIERGE PAGE STYLES
   ============================================ */
.concierge-hero {
    padding: 5rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
}

.concierge-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.concierge-hero-content .section-label {
    color: var(--color-yellow);
}

.concierge-hero-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    margin: 1rem 0 1.5rem;
    color: var(--color-white);
}

.concierge-hero-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.concierge-benefits {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    padding: 2rem;
    background-color: var(--color-gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--color-yellow);
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    color: var(--color-black);
}

.benefit-item p {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
/* ============================================
   PROPERTIES PAGE FILTERS & LAYOUT
   ============================================ */
.properties-page-header {
    padding: 6rem 0 2rem;
    background-color: var(--color-white);
    text-align: center;
}

.properties-page-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.properties-page-title {
    font-size: 3rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin: 0 0 0.5rem 0;
}

.properties-page-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin: 0;
}

.properties-filters {
    padding: 2rem 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 2fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-black);
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Price Range Slider */
.price-filter {
    grid-column: span 1;
}

.price-range-container {
    position: relative;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

/* Search Button */
.filter-search-btn {
    align-items: flex-end;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.search-button:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Listings Section */
.properties-listings-section {
    padding: 3rem 0;
    background-color: var(--color-white);
}

.properties-section-recent {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
}

.listings-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.listings-count {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-black);
    font-weight: 600;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-black);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-yellow);
}

/* Properties Grid - Luxury Style */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 100%;
}

.property-card-luxury {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border-radius: 16px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.property-card-luxury:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.property-image-wrapper-luxury {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.property-image-luxury {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card-luxury:hover .property-image-luxury {
    transform: scale(1.08);
}

.property-image-placeholder-luxury {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-light);
    color: var(--color-gray);
    font-size: 1rem;
}

.property-overlay-luxury {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
    padding: 0;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
}

.property-status-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.property-price-luxury {
    font-size: 3rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.property-name-luxury {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-secondary);
    max-width: 90%;
}

.no-listings-message {
    text-align: center;
    padding: 4rem 2rem;
}

.no-listings-message p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .buyers-hero-title {
        font-size: 3rem;
    }
    
    .buyers-hero-cta-buttons,
    .buyers-cta-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-buyers-primary,
    .btn-buyers-secondary {
        width: 100%;
        text-align: center;
    }
    
    .form-row-buyers {
        grid-template-columns: 1fr;
    }
    
    .buyers-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .buyers-hero-content h2,
    .sellers-hero-content h2,
    .concierge-hero-content h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-number {
        font-size: 3rem;
    }
    
    /* Properties Page Responsive */
    .properties-page-title {
        font-size: 2rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-search-btn {
        align-items: stretch;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .listings-header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-price-luxury {
        font-size: 2rem;
    }
    
    .property-name-luxury {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .property-overlay-luxury {
        padding: 1.5rem;
    }
    
    .property-status-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   RECENT SALES PAGE STYLES
   ============================================ */
.recent-sales-header {
    padding: 6rem 0 2rem;
    background-color: var(--color-white);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--color-yellow);
}

.breadcrumb-nav span {
    color: var(--color-gray);
}

.recent-sales-header h1 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.results-count-header {
    font-size: 1rem;
    color: var(--color-gray-dark);
    font-weight: 500;
}

.recent-sales-filters {
    padding: 2rem 0;
    background-color: var(--color-gray-light);
    border-bottom: 1px solid #ddd;
}

.filters-form-recent {
    width: 100%;
}

.filters-row-recent {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group-recent {
    display: flex;
    flex-direction: column;
}

.filter-label-recent {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-input-recent,
.filter-select-recent {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-black);
    transition: var(--transition);
}

.filter-input-recent:focus,
.filter-select-recent:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.filter-select-recent {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.price-filter-recent {
    grid-column: span 2;
}

.price-range-container-recent {
    position: relative;
}

.price-slider-recent {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-recent::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider-recent::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display-recent {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.filter-search-btn-recent {
    align-items: flex-end;
}

.search-button-recent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.search-button-recent:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.search-button-recent svg {
    width: 20px;
    height: 20px;
}

.recent-sales-listings {
    padding: 3rem 0 5rem;
    background-color: var(--color-white);
}

.recent-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recent-sales-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.recent-sales-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.recent-sales-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.recent-sales-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recent-sales-card:hover .recent-sales-image {
    transform: scale(1.05);
}

.recent-sales-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-light);
    color: var(--color-gray);
    font-size: 0.875rem;
}

.recent-sales-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-secondary);
}

.recent-sales-status-sold {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.recent-sales-status-pending {
    background-color: #FFA500;
    color: var(--color-white);
}

.recent-sales-gallery-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.recent-sales-gallery-count svg {
    width: 16px;
    height: 16px;
}

.recent-sales-card-content {
    padding: 1.5rem;
}

.recent-sales-address {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.recent-sales-price {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.recent-sales-date {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.recent-sales-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.recent-sales-details span {
    font-weight: 500;
}

.recent-sales-description {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recent-sales-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.recent-sales-link {
    color: var(--color-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.recent-sales-link:hover {
    color: var(--color-yellow-dark);
    text-decoration: underline;
}

.recent-sales-separator {
    color: var(--color-gray);
}

.recent-sales-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
}

.pagination-btn-recent {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn-recent:hover:not(.disabled) {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-btn-recent.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers-recent {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number-recent {
    padding: 0.75rem 1rem;
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
}

.pagination-number-recent:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-number-recent.active {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-ellipsis-recent {
    padding: 0.75rem 0.5rem;
    color: var(--color-gray);
}

.no-listings-recent {
    text-align: center;
    padding: 4rem 2rem;
}

.no-listings-recent p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

/* Responsive for Recent Sales Page */
@media (max-width: 768px) {
    .filters-row-recent {
        grid-template-columns: 1fr;
    }
    
    .price-filter-recent {
        grid-column: span 1;
    }
    
    .filter-search-btn-recent {
        align-items: stretch;
    }
    
    .search-button-recent {
        width: 100%;
        justify-content: center;
    }
    
    .recent-sales-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-sales-pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers-recent {
        flex-wrap: wrap;
    }
}

/* ============================================
   ZILLOW AGENT PROFILES SECTION
   ============================================ */
.zillow-agents-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.zillow-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.zillow-section-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.5rem;
}

.zillow-section-header p {
    color: #666;
    font-size: 1rem;
}

.zillow-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.zillow-agent-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.zillow-agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.zillow-agent-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.zillow-agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.zillow-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #006AFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.zillow-badge svg {
    width: 16px;
    height: 16px;
}

.zillow-agent-info {
    padding: 1.5rem;
}

.zillow-agent-info h3 {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.25rem;
}

.zillow-agent-title {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.zillow-agent-company {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.zillow-agent-contact {
    margin-bottom: 1.25rem;
}

.zillow-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.zillow-contact-link:hover {
    color: #d4af37;
}

.zillow-contact-link svg {
    color: #d4af37;
}

.zillow-agent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zillow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.zillow-btn-primary {
    background: #006AFF;
    color: white;
}

.zillow-btn-primary:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

.zillow-btn-secondary {
    background: transparent;
    color: #333;
    border: 1.5px solid #ddd;
}

.zillow-btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.zillow-disclaimer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.zillow-disclaimer p {
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .zillow-agents-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .zillow-section-header h2 {
        font-size: 1.5rem;
    }
    
    .zillow-agent-image {
        height: 180px;
    }
}

/* ============================================
   ACTIVE LISTINGS PAGE STYLES
   ============================================ */
.active-listings-header {
    padding: 6rem 0 2rem;
    background-color: var(--color-white);
}

.active-listings-filters {
    padding: 2rem 0;
    background-color: var(--color-gray-light);
    border-bottom: 1px solid #ddd;
}

.filters-form-active {
    width: 100%;
}

.filters-row-active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group-active {
    display: flex;
    flex-direction: column;
}

.filter-label-active {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-input-active,
.filter-select-active {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    background-color: var(--color-white);
    color: var(--color-black);
    transition: var(--transition);
}

.filter-input-active:focus,
.filter-select-active:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.filter-select-active {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.price-filter-active {
    grid-column: span 2;
}

.price-range-container-active {
    position: relative;
}

.price-slider-active {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider-active::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider-active::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
    cursor: pointer;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display-active {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

.filter-search-btn-active {
    align-items: flex-end;
}

.search-button-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.search-button-active:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.search-button-active svg {
    width: 20px;
    height: 20px;
}

.active-listings-listings {
    padding: 3rem 0 5rem;
    background-color: var(--color-white);
}

.active-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.active-listings-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.active-listings-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.active-listings-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.active-listings-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.active-listings-card:hover .active-listings-image {
    transform: scale(1.05);
}

.active-listings-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-light);
    color: var(--color-gray);
    font-size: 0.875rem;
}

.active-listings-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-secondary);
}

.active-listings-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-secondary);
}

.active-listings-gallery-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.active-listings-gallery-count svg {
    width: 16px;
    height: 16px;
}

.active-listings-card-content {
    padding: 1.5rem;
}

.active-listings-address {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.active-listings-price {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.active-listings-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.active-listings-details span {
    font-weight: 500;
}

.active-listings-type {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-listings-description {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.active-listings-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.active-listings-link {
    color: var(--color-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.active-listings-link:hover {
    color: var(--color-yellow-dark);
    text-decoration: underline;
}

.active-listings-separator {
    color: var(--color-gray);
}

.active-listings-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
}

.pagination-btn-active {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn-active:hover:not(.disabled) {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-btn-active.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers-active {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number-active {
    padding: 0.75rem 1rem;
    background-color: var(--color-white);
    color: var(--color-black);
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
}

.pagination-number-active:hover {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-number-active.active {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-black);
}

.pagination-ellipsis-active {
    padding: 0.75rem 0.5rem;
    color: var(--color-gray);
}

.no-listings-active {
    text-align: center;
    padding: 4rem 2rem;
}

.no-listings-active p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

/* Responsive for Active Listings Page */
@media (max-width: 768px) {
    .filters-row-active {
        grid-template-columns: 1fr;
    }
    
    .price-filter-active {
        grid-column: span 1;
    }
    
    .filter-search-btn-active {
        align-items: stretch;
    }
    
    .search-button-active {
        width: 100%;
        justify-content: center;
    }
    
    .active-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .active-listings-pagination {
        flex-wrap: wrap;
    }
    
    .pagination-numbers-active {
        flex-wrap: wrap;
    }
}

/* ============================================
   NEIGHBORHOOD GUIDES PAGE STYLES
   ============================================ */
.neighborhood-guides-hero {
    padding: 8rem 0 5rem;
    background-color: var(--color-white);
    text-align: center;
}

.breadcrumb-nav-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-family: var(--font-secondary);
}

.breadcrumb-nav-hero a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav-hero a:hover {
    color: var(--color-yellow);
}

.breadcrumb-nav-hero span {
    color: var(--color-gray);
}

.neighborhood-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.neighborhood-hero-title {
    font-size: 5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.neighborhood-title-word {
    display: block;
}

.neighborhood-hero-description {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-gray-dark);
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

/* Interactive Map/Region Selector */
.neighborhood-map-section {
    padding: 0;
    background-color: var(--color-black);
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.region-selector-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.neighborhood-google-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    filter: brightness(0.7) contrast(1.2);
}

.map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(44, 62, 80, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 60, 114, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-fallback-content {
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.map-fallback-content p {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}

.map-fallback-subtitle {
    font-size: 1rem !important;
    font-family: var(--font-secondary) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.region-labels-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.region-label-map {
    position: absolute;
    pointer-events: all;
    cursor: pointer;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    /* Backdrop filter with vendor prefixes */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.region-label-map:hover {
    background-color: rgba(0, 0, 0, 0.9);
    border-color: var(--color-yellow);
    color: var(--color-yellow);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.region-label-map.active {
    background-color: rgba(255, 215, 0, 0.9);
    border-color: var(--color-yellow);
    color: var(--color-black);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.region-label-ma {
    top: 45%;
    left: 15%;
    transform: translate(-50%, -50%);
}

.region-label-ri {
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
}

.region-label-map span {
    display: block;
}

.neighborhood-detail-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    scroll-margin-top: 100px;
}

.neighborhood-detail-section:nth-child(even) {
    background-color: var(--color-gray-light);
}

.neighborhood-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.neighborhood-detail-header h2 {
    font-size: 3rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.neighborhood-detail-header p {
    font-size: 1.25rem;
    color: var(--color-gray-dark);
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

.neighborhoods-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.neighborhood-card-detailed {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.neighborhood-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.neighborhood-card-image-detailed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.neighborhood-image-placeholder-detailed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
    color: var(--color-white);
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.neighborhood-card-content-detailed {
    padding: 2.5rem;
}

.neighborhood-card-content-detailed h3 {
    font-size: 2rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.neighborhood-card-content-detailed p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.neighborhood-link-detailed {
    display: inline-block;
    color: var(--color-yellow);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.25rem;
}

.neighborhood-link-detailed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: var(--transition);
}

.neighborhood-link-detailed:hover {
    color: var(--color-yellow-dark);
}

.neighborhood-link-detailed:hover::after {
    width: 100%;
}

/* Contact Form Styles for Neighborhood Guides */
.neighborhood-contact-section {
    padding: 6rem 0;
    background-color: var(--color-gray-light);
}

.neighborhood-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.neighborhood-contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.neighborhood-contact-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-bottom: 1rem;
}

.neighborhood-contact-header p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    font-family: var(--font-secondary);
}

.neighborhood-contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.form-group-neighborhood {
    margin-bottom: 1.5rem;
}

.form-group-neighborhood input,
.form-group-neighborhood textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    color: var(--color-black);
    background-color: var(--color-white);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group-neighborhood input:focus,
.form-group-neighborhood textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.form-group-neighborhood textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-group-neighborhood {
    margin-bottom: 2rem;
}

.checkbox-label-neighborhood {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-label-neighborhood input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label-neighborhood span {
    flex: 1;
}

.btn-neighborhood-submit {
    width: 100%;
    padding: 1.25rem 2.5rem;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-neighborhood-submit:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Responsive for Neighborhood Guides */
@media (max-width: 768px) {
    .neighborhood-hero-title {
        font-size: 3rem;
    }
    
    .neighborhood-hero-description {
        font-size: 1rem;
    }
    
    .neighborhood-map-section {
        min-height: 400px;
    }
    
    .region-selector-container {
        height: 400px;
    }
    
    .neighborhood-google-map {
        min-height: 400px;
    }
    
    .region-label-map {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .region-label-ma {
        top: 40%;
        left: 20%;
    }
    
    .region-label-ri {
        top: 50%;
        left: 30%;
    }
    
    .neighborhoods-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .neighborhood-detail-header h2 {
        font-size: 2rem;
    }
    
    .form-row-neighborhood {
        grid-template-columns: 1fr;
    }
    
    .neighborhood-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .offices-grid-full {
        grid-template-columns: 1fr;
    }
    
    .office-content {
        padding: 2rem 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .philanthropy-section {
        margin-bottom: 3rem;
    }
}

/* ============================================
   OFFICES PAGE STYLES
   ============================================ */
.offices-detail {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.offices-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
}

.offices-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.office-detail-card {
    background-color: var(--color-gray-light);
    border-top: 4px solid var(--color-yellow);
    overflow: hidden;
}

.office-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--color-black);
}

.office-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.office-content {
    padding: 3rem;
}

.office-content h2 {
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.office-contact {
    margin-top: 1.5rem;
}

.office-phone {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.office-phone a {
    color: var(--color-yellow);
    text-decoration: none;
}

.office-phone a:hover {
    color: var(--color-yellow-dark);
}

.office-address {
    font-size: 1rem;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.office-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-top: 1rem;
}

.offices-cta {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
    text-align: center;
}

.offices-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.offices-cta p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 2rem;
}

/* ============================================
   MEDIA PAGE STYLES
   ============================================ */
.media-detail {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.media-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.media-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.media-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.media-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.media-card-content {
    padding: 2rem;
}

.media-date {
    font-size: 0.875rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}

.media-card-content h3 {
    font-size: 1.5rem;
    color: var(--color-black);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.media-card-content p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.media-link {
    display: inline-block;
    color: var(--color-yellow);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.25rem;
}

.media-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: var(--transition);
}

.media-link:hover {
    color: var(--color-yellow-dark);
}

.media-link:hover::after {
    width: 100%;
}

.media-cta {
    padding: 5rem 0;
    background-color: var(--color-gray-light);
    text-align: center;
}

.media-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.media-cta p {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    margin-bottom: 2rem;
}

/* ============================================
   PHILANTHROPY PAGE STYLES
   ============================================ */
.philanthropy-detail {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.philanthropy-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.125rem;
}

.philanthropy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philanthropy-section {
    margin-bottom: 4rem;
}

.philanthropy-section:last-child {
    margin-bottom: 0;
}

.philanthropy-section h2 {
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.philanthropy-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
}

.philanthropy-section p:last-child {
    margin-bottom: 0;
}

.philanthropy-section .btn-primary {
    margin-top: 1rem;
}

/* Tablet adjustments for 2-column grid */
@media (min-width: 769px) and (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .property-price-luxury {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   FULL SCREEN MODAL MEGA-MENU (Plus Button)
   ============================================ */
.full-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-top: 2rem;
}

.full-menu-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: -1;
}

.full-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.full-menu-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 2rem 4rem 4rem;
    margin: 0 auto;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    z-index: 1;
    flex: 1;
}

.full-menu-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.full-menu-overlay.active .full-menu-content {
    transform: translateY(0);
}

.full-menu-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 10001;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
}

.full-menu-overlay.active .full-menu-close {
    opacity: 1;
    pointer-events: auto;
}

.full-menu-close:hover {
    color: #F5C400;
    transform: scale(1.1);
}

.full-menu-close:focus {
    outline: 2px solid #F5C400;
    outline-offset: 4px;
}

/* Full Menu Columns */
.full-menu-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.full-menu-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.full-menu-overlay.active .full-menu-column:nth-child(1) .full-menu-group:nth-child(1) { transition-delay: 0.1s; }
.full-menu-overlay.active .full-menu-column:nth-child(1) .full-menu-group:nth-child(2) { transition-delay: 0.2s; }
.full-menu-overlay.active .full-menu-column:nth-child(1) .full-menu-group:nth-child(3) { transition-delay: 0.3s; }
.full-menu-overlay.active .full-menu-column:nth-child(1) .full-menu-group:nth-child(4) { transition-delay: 0.4s; }
.full-menu-overlay.active .full-menu-column:nth-child(2) .full-menu-group:nth-child(1) { transition-delay: 0.2s; }
.full-menu-overlay.active .full-menu-column:nth-child(2) .full-menu-group:nth-child(2) { transition-delay: 0.3s; }
.full-menu-overlay.active .full-menu-column:nth-child(2) .full-menu-group:nth-child(3) { transition-delay: 0.4s; }
.full-menu-overlay.active .full-menu-column:nth-child(3) .full-menu-group { transition-delay: 0.5s; }

.full-menu-overlay.active .full-menu-group {
    opacity: 1;
    transform: translateY(0);
}

.full-menu-heading {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.full-menu-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.full-menu-submenu li {
    opacity: 0.9;
}

.full-menu-submenu a {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-secondary);
    line-height: 1.6;
}

.full-menu-submenu a {
    position: relative;
}

.full-menu-submenu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #F5C400;
    transition: width 0.3s ease;
}

.full-menu-submenu a:hover {
    color: #F5C400;
}

.full-menu-submenu a:hover::after {
    width: 100%;
}

/* Branding Column */
.full-menu-branding {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 4rem;
}

.full-menu-logo-section {
    margin-bottom: 3rem;
}

.full-menu-logo h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.full-menu-tagline {
    color: var(--color-white);
    font-size: 0.875rem;
    letter-spacing: 2px;
    display: block;
    text-align: center;
    font-family: var(--font-secondary);
}

.full-menu-contact-info {
    margin-top: 2rem;
    color: var(--color-white);
}

.full-menu-contact-info p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.full-menu-contact-info a {
    color: var(--color-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.full-menu-contact-info a:hover {
    color: var(--color-white);
}

/* CTA Buttons */
.full-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.full-menu-cta-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border: 2px solid #F5C400;
    color: #F5C400;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    position: relative;
    overflow: hidden;
}

.full-menu-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #F5C400;
    transition: left 0.3s ease;
    z-index: -1;
}

.full-menu-cta-btn:hover {
    color: #000;
    border-color: #F5C400;
}

.full-menu-cta-btn:hover::before {
    left: 0;
}

/* Location Tags */
.full-menu-locations {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.full-menu-location-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(245, 196, 0, 0.1);
    border: 1px solid rgba(245, 196, 0, 0.3);
    color: #F5C400;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-secondary);
}

.full-menu-offices {
    margin-bottom: 3rem;
}

.full-menu-office {
    margin-bottom: 2rem;
}

.full-menu-office h4 {
    margin-bottom: 0.5rem;
}

.office-state {
    color: var(--color-yellow);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-secondary);
}

.full-menu-office p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.full-menu-team-contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.full-menu-team-member h4 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: var(--font-secondary);
}

.full-menu-team-member .team-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-secondary);
}

.full-menu-team-member p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.full-menu-team-member a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.full-menu-team-member a:hover {
    color: var(--color-yellow);
}

.full-menu-contact {
    text-align: center;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s;
}

.full-menu-overlay.active .full-menu-contact {
    opacity: 1;
    transform: translateY(0);
}

.full-menu-contact h3 {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.full-menu-contact p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.full-menu-contact a {
    color: var(--color-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.full-menu-contact a:hover {
    color: var(--color-white);
}

/* Nav Plus Button Animation */
.nav-plus {
    transition: transform 0.3s ease;
}

.nav-plus.active {
    transform: rotate(45deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .full-menu-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .full-menu-branding {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 3rem;
    }
}

@media (max-width: 768px) {
    .full-menu-content {
        padding: 5rem 2rem 3rem;
    }
    
    .full-menu-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .full-menu-branding {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }
    
    .full-menu-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
    
    .full-menu-logo h2 {
        font-size: 2rem;
    }
    
    .full-menu-heading {
        font-size: 0.875rem;
    }
    
    .full-menu-submenu a {
        font-size: 0.8125rem;
    }
}

/* Additional Responsive Enhancements for All Screen Sizes */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-image {
        height: 36px;
        min-width: 144px; /* Maintain aspect ratio: 36px * (240/60) = 144px */
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-cta .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    /* Admin panel link in navbar */
    .admin-nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Grid layouts for small screens */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-preview .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .areas-grid,
    .areas-grid-full {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .quick-stats {
        padding: 2.5rem 0;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .listing-image-container {
        height: 300px;
    }
    
    .area-card-with-video {
        min-height: 300px;
    }
    
    .area-video-player {
        min-height: 300px;
    }
    
    .video-container {
        min-height: 300px;
    }
    
    .hero-video-player {
        height: 100vh !important; /* Force full viewport height on mobile */
        min-height: 100vh !important;
    }
    
    /* Ensure video covers full height on mobile - no black bars */
    /* On mobile portrait, scale video to cover full height (taller than wide) */
    .hero-video-player iframe {
        /* For 16:9 video to cover 100vh height, width needs to be 177.78vh */
        /* Use larger scale to ensure no black bars show */
        width: 200vh !important; /* Scale larger than needed to ensure coverage */
        height: 112.5vh !important; /* Maintain 16:9 aspect ratio (200vh * 9/16) */
        min-width: 177.78vh !important; /* Minimum width to cover height */
        min-height: 100vh !important; /* Minimum height to cover viewport */
        transform: translate(-50%, -50%) !important;
    }
    
    /* For landscape mobile, ensure width coverage */
    @media (max-width: 768px) and (orientation: landscape) {
        .hero-video-player iframe {
            width: 177.78vh !important; /* Scale based on viewport height */
            height: 100vh !important;
            min-width: 100vw !important; /* Ensure covers viewport width */
            transform: translate(-50%, -50%) !important;
        }
    }
    
    .listings-disclaimer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .listings-disclaimer p {
        font-size: 0.7rem;
        line-height: 1.7;
    }

    .listing-overlay {
        padding: 1.25rem 1rem;
    }

    .listing-price-overlay {
        font-size: 1.5rem;
    }

    .listing-address-overlay {
        font-size: 0.875rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 0;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .consultation-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer a {
        word-break: break-word;
    }

    .footer-col {
        text-align: center;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .team-featured-member {
        padding: 1.5rem 0;
    }
    
    .team-featured-name-first {
        font-size: 2rem;
    }
    
    .team-featured-name-last {
        font-size: 2.5rem;
    }
}

/* Small Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-preview .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .areas-grid-full {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .listing-image-container {
        height: 350px;
    }
    
    .area-card-with-video {
        min-height: 350px;
    }
}

/* Medium Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .services-preview .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
    }
    
    .areas-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem;
    }
}

/* Large Devices (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* Extra Large Devices (1441px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 1.25rem 1rem;
    }
    
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .mobile-menu-toggle,
    .admin-panel-link {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}
