/*
Theme Name: WRS Theme
Theme URI: https://wrs.llc
Author: WRS LLC
Author URI: https://wrs.llc
Description: Premium custom theme for WRS property listings and real estate management
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wrs-theme
Tags: real-estate, properties, listings, custom-post-types
*/

/* LUXURY REDESIGN: Playfair Display + Lato font pairing */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Playfair+Display:wght@400;600;700;800;900&display=swap');

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

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

:root {
    --navy: #1a2332;
    --gold: #c9a84c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2c3e50;
    --text-dark: #333333;
    --text-light: #6c757d;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    /* Add padding to prevent fixed header from overlapping content */
    padding-top: 340px;
}

/* Remove body padding on homepage (has hero section) */
body.home {
    padding-top: 0;
}

/* Fix page title banner overlap on inner pages - override inline styles */
.entry-header {
    padding-top: 80px !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* Remove any pseudo-element overlays on entry-header */
.entry-header::before,
.entry-header::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Ensure title text is clearly visible */
.entry-header h1 {
    position: relative;
    z-index: 10;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3) !important;
    color: var(--white) !important;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   FLUID TYPOGRAPHY (320px to 1440px)
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
h4 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem); }
h5 { font-size: clamp(1.125rem, 1vw + 0.5rem, 1.25rem); }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: clamp(0.9375rem, 0.5vw + 0.875rem, 1rem);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.property-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

/* ==========================================================================
   LUXURY HEADER - CENTERED LOGO WITH NAVIGATION BELOW
   ========================================================================== */

.luxury-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-header.scrolled {
    background: rgba(26, 35, 50, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.75rem, 2vw, 1rem) 0;
}

/* Logo and Company Name - Centered */
.site-branding-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.site-logo-link {
    display: block;
    transition: transform 0.4s ease;
}

.site-logo-link:hover {
    transform: scale(1.05);
}

.site-logo-large {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.site-company-name-large {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: clamp(0.5rem, 1vw, 0.75rem) 0 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Luxury Navigation - Centered Below Logo */
.luxury-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.luxury-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.luxury-nav-list li {
    display: flex;
    align-items: center;
}

.nav-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
}

.luxury-nav a {
    color: #ffffff !important;
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.875rem, 1vw, 1rem);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.luxury-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-nav a:hover,
.luxury-nav a.current {
    color: var(--gold);
}

.luxury-nav a:hover::after,
.luxury-nav a.current::after {
    width: 100%;
}

/* Mobile Menu Toggle - Hamburger Icon */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    flex-direction: column;
    gap: 5px;
}

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

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

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

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

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

/* LUXURY REDESIGN: Parallax Hero with Enhanced Styling */
.hero-slider-container {
    position: relative;
    height: 85vh;
    min-height: 750px;
    max-height: 900px;
    overflow: hidden;
    background: var(--navy);
}

.hero-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 35, 50, 0.15) 0%,
        rgba(26, 35, 50, 0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: heroFade 18s infinite;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none; /* Disable clicks on invisible slides */
}

.hero-slide:nth-child(1) { animation-delay: 0s; animation-name: heroFadeWithPointer; }
.hero-slide:nth-child(2) { animation-delay: 6s; animation-name: heroFadeWithPointer; }
.hero-slide:nth-child(3) { animation-delay: 12s; animation-name: heroFadeWithPointer; }

@keyframes heroFade {
    0% { opacity: 0; transform: scale(1); }
    3% { opacity: 1; }
    33.33% { opacity: 1; transform: scale(1.08); }
    36.33% { opacity: 0; }
    100% { opacity: 0; transform: scale(1); }
}

@keyframes heroFadeWithPointer {
    0% { opacity: 0; transform: scale(1); pointer-events: none; }
    3% { opacity: 1; pointer-events: auto; }
    33.33% { opacity: 1; transform: scale(1.08); pointer-events: auto; }
    36.33% { opacity: 0; pointer-events: none; }
    100% { opacity: 0; transform: scale(1); pointer-events: none; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.35) 0%,
        rgba(26, 35, 50, 0.3) 50%,
        rgba(26, 35, 50, 0.35) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.hero-content {
    max-width: 900px;
    text-align: center;
    animation: heroContentFade 1.2s ease-out;
    padding-top: 290px; /* Balanced: clears header without pushing CTA off-screen */
}

@keyframes heroContentFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--white);
    text-shadow: 3px 6px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-address {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
    font-weight: 300;
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: clamp(0.9375rem, 2vw, 1.875rem);
    margin: clamp(1.5rem, 3vw, 2.5rem) 0;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(0.625rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta-icon {
    font-size: 1.2rem;
    color: var(--gold);
}

.hero-cta {
    display: inline-block;
    margin-top: clamp(1rem, 2vw, 1.25rem);
    padding: clamp(0.875rem, 1.5vw, 1.125rem) clamp(2rem, 3vw, 3rem);
    background: var(--gold);
    color: var(--navy);
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

.hero-cta:hover {
    background: #d4b560;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 168, 76, 0.4);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: none;
}

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

/* Hero Slider Responsive Adjustments */
@media (max-width: 1024px) {
    /* Tablet: 650px min height, balanced padding-top */
    .hero-slider-container {
        min-height: 650px;
    }

    .hero-content {
        padding-top: 250px; /* Balanced: clears header without pushing CTA off-screen */
    }
}

@media (max-width: 768px) {
    /* Mobile: 600px min height, balanced padding-top */
    .hero-slider-container {
        min-height: 600px;
    }

    .hero-content {
        padding-top: 210px; /* Balanced: clears header without pushing CTA off-screen */
    }

    .hero-meta {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments - balanced padding-top */
    .hero-content {
        padding-top: 190px; /* Balanced: clears header without pushing CTA off-screen */
    }

    .hero-meta-item {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
}

/* ==========================================================================
   PROPERTIES SECTION
   ========================================================================== */

.properties-section {
    background: var(--light-gray);
    padding: clamp(3.75rem, 8vw, 7.5rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4.375rem);
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle-label {
    display: inline-block;
    font-size: clamp(0.75rem, 0.5vw + 0.625rem, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.9375rem;
}

.section-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    color: var(--navy);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.section-description {
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.property-image-wrapper {
    position: relative;
    height: clamp(200px, 40vw, 320px);
    overflow: hidden;
    display: block;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.15);
}

.property-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(201, 168, 76, 0.2);
}

.property-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: clamp(0.75rem, 0.5vw + 0.625rem, 0.875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
    z-index: 2;
}

.property-badge.rented {
    background: var(--dark-gray);
    color: var(--white);
}

.property-badge.pending {
    background: #e67e22;
    color: var(--white);
}

.property-info {
    padding: clamp(1.5rem, 3vw, 2.1875rem) clamp(1.25rem, 2vw, 1.875rem);
}

.property-title {
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
    margin-bottom: 1.25rem;
    color: var(--navy);
    font-weight: 700;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: var(--gold);
}

.property-meta {
    display: flex;
    gap: clamp(0.9375rem, 2vw, 1.25rem);
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
    font-weight: 500;
}

.property-meta-icon {
    font-size: 1.1rem;
    color: var(--gold);
}

.property-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5625rem;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
}

/* CLIENT REQ: Property action buttons */
.property-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-btn {
    display: inline-block;
    padding: clamp(0.75rem, 1.5vw, 0.875rem) clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    font-size: clamp(0.813rem, 0.5vw + 0.75rem, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.property-btn-primary {
    background: var(--navy);
    color: var(--white);
}

.property-btn-primary:hover {
    background: var(--dark-gray);
    transform: translateX(3px);
}

.property-btn-secondary {
    background: var(--gold);
    color: var(--navy);
}

.property-btn-secondary:hover {
    background: #d4b560;
    transform: translateX(3px);
}

.no-properties-message {
    text-align: center;
    grid-column: 1 / -1;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2.5rem);
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
    color: var(--text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(2rem, 4vw, 3.75rem);
    padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.3rem);
    color: var(--white);
    margin-bottom: 1.5625rem;
    font-weight: 600;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5625rem;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
}

.footer-logo {
    height: clamp(40px, 5vw, 50px);
    width: auto;
    margin-bottom: 1rem;
}

/* CLIENT REQ: Display company name prominently in footer */
.footer-company-name {
    color: var(--white);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 0.9375rem;
    margin-top: 1.5625rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 0.9375rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.9375rem;
    display: flex;
    align-items: start;
    gap: 0.625rem;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
}

.footer-contact-icon {
    color: var(--gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.1875rem) 0;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.813rem, 0.5vw + 0.75rem, 0.9rem);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 1.875rem);
}

.equal-housing-logo {
    height: clamp(40px, 5vw, 50px);
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.equal-housing-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .hero-scroll-indicator {
        display: none;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 1.875rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation a {
        display: block;
        padding: 0.9375rem 0;
        font-size: 1rem;
    }

    .main-navigation a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-slider-container {
        height: 90vh;
        min-height: 500px;
    }

    .hero-meta {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        min-height: 450px;
    }

    .property-image-wrapper {
        height: 200px;
    }

    .hero-meta {
        gap: 0.625rem;
    }

    .hero-meta-item {
        font-size: 0.813rem;
        padding: 0.5rem 1rem;
    }
}

/* Ensure no horizontal scrolling */
body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: clamp(0.75rem, 1.5vw, 0.875rem) clamp(1.5rem, 2vw, 2rem);
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: clamp(0.813rem, 0.5vw + 0.75rem, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

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

/* ==========================================================================
   CLIENT REQUIREMENT #3: LEAD GENERATION POP-UP
   Pop-up appears after 3 seconds on homepage
   Cookie-based (7 days) to prevent re-showing
   Emails to alicia@wrs.llc and erika@wrs.llc
   ========================================================================== */

.wrs-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.wrs-popup-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wrs-popup-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.wrs-popup-close:hover {
    background: var(--light-gray);
    color: var(--navy);
    transform: rotate(90deg);
}

.wrs-popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* POPUP MOBILE FIXES - Single unified ruleset */
@media (max-width: 768px) {
    /* Overlay positioning */
    .wrs-popup-overlay {
        padding: 0.5rem !important;
        align-items: flex-start !important;
    }

    /* Modal content - reduce top padding by 50% */
    .wrs-popup-content {
        padding: 0.25rem 1rem 1rem 1rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    /* Header - ensure visible with proper sizing */
    .wrs-popup-header {
        margin-bottom: 0.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .wrs-popup-header h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        color: var(--navy) !important;
        display: block !important;
    }

    .wrs-popup-header p {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        color: var(--text-light) !important;
        display: block !important;
    }

    /* Form spacing */
    .wrs-lead-form {
        margin-top: 0.75rem !important;
    }

    .wrs-form-group {
        margin-bottom: 1rem !important;
    }

    .wrs-form-group label {
        font-size: 0.875rem !important;
        margin-bottom: 0.25rem !important;
    }

    .wrs-form-group input,
    .wrs-form-group textarea {
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevent iOS zoom */
    }

    /* Submit button */
    .wrs-popup-submit {
        margin-top: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }

    /* Close button */
    .wrs-popup-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.75rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
    }

    /* Privacy text */
    .wrs-popup-privacy {
        font-size: 0.75rem !important;
        margin-top: 0.75rem !important;
    }
}

.wrs-popup-header h2 {
    color: var(--navy);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wrs-popup-header p {
    color: var(--text-light);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 0;
}

.wrs-lead-form {
    margin-top: 2rem;
}

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

.wrs-form-group label {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.wrs-form-group input,
.wrs-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wrs-form-group input:focus,
.wrs-form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.wrs-popup-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    margin-top: 1rem;
}

.wrs-popup-submit:hover {
    background: #d4b560;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.wrs-popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wrs-popup-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
}

#wrs-popup-message {
    margin: 1rem 0;
}

.wrs-success {
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    text-align: center;
    font-weight: 500;
}

.wrs-error {
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 640px) {
    .wrs-popup-content {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .wrs-popup-close {
        top: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   LUXURY DESIGN: SCROLL ANIMATIONS
   Elements fade and slide in as user scrolls
   ========================================================================== */

.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Property cards animation on scroll - vibrant colors maintained */
.property-card {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay for grid items */
.property-card:nth-child(1) { transition-delay: 0.1s; }
.property-card:nth-child(2) { transition-delay: 0.2s; }
.property-card:nth-child(3) { transition-delay: 0.3s; }
.property-card:nth-child(4) { transition-delay: 0.1s; }
.property-card:nth-child(5) { transition-delay: 0.2s; }
.property-card:nth-child(6) { transition-delay: 0.3s; }

/* Gold accent underlines for headings */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto 0;
}

/* Testimonial section luxury styling */
.testimonials-section {
    background: linear-gradient(135deg, var(--navy) 0%, #243447 100%);
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateY(-8px);
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-style: italic;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-role {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: 3rem;
}

/* Parallax effect for hero (handled by CSS) */
@media (prefers-reduced-motion: no-preference) {
    .hero-slide {
        will-change: transform;
    }
}

/* Enhanced gold accents */
.hero-cta,
.property-btn-secondary,
.wrs-popup-submit {
    position: relative;
    overflow: hidden;
}

.hero-cta::before,
.property-btn-secondary::before,
.wrs-popup-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before,
.property-btn-secondary:hover::before,
.wrs-popup-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* ==========================================================================
   LUXURY HEADER - MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* iPad and below - Logo adjustment */
@media (max-width: 1024px) {
    .site-logo-large {
        height: 140px;
    }

    .site-company-name-large {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }

    .hero-content {
        padding-top: clamp(80px, 12vh, 140px);
    }
}

/* Mobile - Hamburger Menu and 150px Logo */
@media (max-width: 768px) {
    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile header */
    .header-inner {
        padding: 1rem 0 0.75rem 0;
        position: relative;
    }

    .site-logo-large {
        height: 120px;
        max-width: 200px;
        object-fit: contain;
    }

    .site-company-name-large {
        font-size: 0.9375rem;
        letter-spacing: 1px;
    }

    /* Mobile hero adjustments - balanced spacing */
    .hero-content {
        padding-top: clamp(160px, 25vh, 220px); /* Balanced: clears header, keeps CTA visible */
    }

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

    .hero-address {
        font-size: 0.9375rem;
    }

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

    /* Full-width mobile dropdown */
    .luxury-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: var(--navy) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 6rem 2rem 2rem !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
    }

    .luxury-nav.active {
        right: 0 !important;
    }

    .luxury-nav-list {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .luxury-nav-list li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav-divider {
        display: none !important;
    }

    .luxury-nav a {
        display: block !important;
        padding: 1.25rem 0 !important;
        font-size: 1.125rem !important;
        text-align: center !important;
    }

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

    /* Hero no gap */
    .hero-slider-container {
        margin-top: 0 !important;
    }
}

/* Small mobile - Smaller logo */
@media (max-width: 480px) {
    .site-logo-large {
        height: 100px !important;
        max-width: 180px !important;
    }

    .site-company-name-large {
        font-size: 0.8125rem !important;
    }

    .hero-content {
        padding-top: 160px !important; /* Balanced: clears header, keeps CTA visible */
    }

    .hero-title {
        font-size: 1.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }

    .hero-address {
        font-size: 0.875rem !important;
    }

    .hero-subtitle {
        font-size: 0.8125rem !important;
    }

    .hero-cta {
        width: auto !important;
        padding: 0.35rem 1rem !important;
        font-size: 11px !important;
        margin-top: 0.5rem !important;
    }
}

/* Smooth sticky header shrink on scroll */
.luxury-header.scrolled .header-inner {
    padding: 1rem 0 0.75rem 0 !important;
}

.luxury-header.scrolled .site-logo-large {
    height: 120px !important;
    transition: height 0.4s ease;
}

.luxury-header.scrolled .site-company-name-large {
    font-size: 1rem !important;
    transition: font-size 0.4s ease;
}

@media (max-width: 768px) {
    .luxury-header.scrolled .site-logo-large {
        height: 80px !important;
    }
}

@media (max-width: 480px) {
    .luxury-header.scrolled .site-logo-large {
        height: 70px !important;
    }
}
/* ==========================================================================
   LUXURY UPGRADES: WHY CHOOSE US SECTION
   ========================================================================== */

.why-choose-us-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--light-gray);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.why-card {
    background: var(--white);
    padding: clamp(2rem, 4vw, 2.5rem);
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

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

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #d4b560);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.4s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

.why-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: clamp(0.9375rem, 1vw, 1rem);
}

/* ==========================================================================
   LUXURY UPGRADES: ABOUT WRS SECTION
   ========================================================================== */

.about-wrs-section {
    background: var(--navy);
    color: var(--white);
    padding: clamp(5rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.about-wrs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.9) 100%);
    z-index: 0;
}

.about-wrs-section .container {
    position: relative;
    z-index: 1;
}

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

.about-wrs-section .section-subtitle-label {
    color: var(--gold);
}

.about-wrs-section .section-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.gold-accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #d4b560);
    margin: 1.5rem 0 2rem 0;
    border-radius: 2px;
}

.about-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.875rem, 1vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   LUXURY UPGRADES: SCROLL ANIMATIONS
   ========================================================================== */

.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Stagger animation delays for child elements */
.why-card[data-delay="100"] {
    transition-delay: 0.1s;
}

.why-card[data-delay="200"] {
    transition-delay: 0.2s;
}

.why-card[data-delay="300"] {
    transition-delay: 0.3s;
}

.why-card[data-delay="400"] {
    transition-delay: 0.4s;
}

/* ==========================================================================
   LUXURY UPGRADES: TRANSPARENT HEADER ON HERO
   ========================================================================== */

body.home .luxury-header {
    position: fixed;
    background: transparent;
    box-shadow: none;
}

body.home .luxury-header.scrolled {
    background: var(--navy);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure header is always visible with proper z-index */
.luxury-header {
    z-index: 1000;
}

/* ==========================================================================
   LUXURY UPGRADES: PARALLAX HERO EFFECT
   ========================================================================== */

.hero-slide {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Disable parallax on mobile for performance */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   LUXURY UPGRADES: ENHANCED TESTIMONIALS
   ========================================================================== */

.testimonial-quote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
    opacity: 0.3;
}

.testimonial-card {
    position: relative;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        /* Reduce animation distance on mobile */
        transform: translateY(20px);
    }

    .fade-in-left {
        transform: translateX(-20px);
    }

    .fade-in-right {
        transform: translateX(20px);
    }

    /* ========================================================================
       MOBILE FIX: White text on all dark backgrounds
       Comprehensive override for all dark text on dark background issues
       ======================================================================== */

    /* Hero sections - homepage slider and all hero overlays */
    .hero-overlay,
    .hero-overlay *,
    .hero-content,
    .hero-content *,
    .hero-title,
    .hero-address,
    .hero-subtitle,
    .hero-meta,
    .hero-meta-item {
        color: #ffffff !important;
    }

    /* Property hero overlay on single property pages */
    .property-hero-overlay,
    .property-hero-overlay *,
    .property-hero-title {
        color: #ffffff !important;
    }

    /* Page heroes - contact, services, about pages */
    .page-hero,
    .page-hero *,
    .page-hero h1,
    .page-hero h2,
    .page-hero h3,
    .page-hero p {
        color: #ffffff !important;
    }

    /* Archive pages - properties listing header */
    .archive-header,
    .archive-header *,
    .archive-header h1,
    .archive-header h2,
    .archive-header .archive-title,
    .archive-header .archive-description {
        color: #ffffff !important;
    }

    /* Testimonials section - all text */
    .testimonials-section .section-subtitle-label {
        color: var(--gold) !important;
    }

    .testimonials-section .section-title,
    .testimonials-section .section-description,
    .testimonials-section .testimonial-card,
    .testimonials-section .testimonial-card *,
    .testimonials-section .testimonial-quote {
        color: #ffffff !important;
    }

    .testimonials-section .testimonial-author {
        color: var(--gold) !important;
    }

    .testimonials-section .testimonial-role {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* Property Details card sidebar */
    .property-info-card,
    .property-info-card *:not(a):not(button),
    .property-info-card h1,
    .property-info-card h2,
    .property-info-card h3,
    .property-detail-label,
    .property-detail-value,
    .property-detail-item,
    .property-detail-item span {
        color: #ffffff !important;
    }

    /* Colored status badges */
    .property-detail-value.available {
        color: #4caf50 !important;
    }

    .property-detail-value.rented {
        color: #95a5a6 !important;
    }

    .property-detail-value.pending {
        color: #f39c12 !important;
    }

    /* Back to listings button */
    .property-back-link,
    .property-back-link:visited {
        color: #ffffff !important;
    }

    /* Navigation menu */
    .luxury-nav a,
    .luxury-nav li,
    .luxury-nav * {
        color: #ffffff !important;
    }

    /* Company name header - WHITE on mobile with dark background */
    .site-company-name,
    .site-company-name-large,
    .luxury-header .site-company-name {
        color: #ffffff !important;
        text-shadow: none !important;
    }

    /* Hide tagline on mobile to reduce header height */
    .site-tagline,
    .site-tagline-item {
        display: none !important;
    }

    /* Section labels (like "WHAT OUR CLIENTS SAY") */
    .section-subtitle-label {
        color: var(--gold) !important;
    }

    /* Dark background section labels specifically */
    .testimonials-section .section-subtitle-label,
    .hero-content .section-subtitle-label,
    [style*="background: linear-gradient"] .section-subtitle-label {
        color: var(--gold) !important;
    }

    /* Universal catch-all for any overlay or banner - EXCLUDE POPUP */
    [class*="overlay"]:not(.wrs-popup-overlay) *:not(a):not(button),
    [class*="banner"] *:not(a):not(button),
    [class*="hero"] *:not(a):not(button) {
        color: #ffffff !important;
    }

    /* Entry headers on single pages */
    .entry-header,
    .entry-header *,
    .entry-title {
        color: #ffffff !important;
    }

    /* ========================================================================
       MOBILE FIX: Hero banner image sizing and visibility
       ======================================================================== */

    /* Homepage hero slider - ensure images are visible */
    .hero-slider-container {
        min-height: 500px;
        height: 70vh;
    }

    .hero-slide {
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Disable parallax on mobile */
    }

    /* Property hero images on single pages */
    .property-hero-image {
        height: 400px;
        min-height: 300px;
    }

    .property-hero-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Ensure hero overlays don't hide content */
    .hero-overlay {
        padding: 2rem 1rem;
    }

    .property-hero-overlay {
        padding: 2rem 1rem;
    }

    /* ========================================================================
       MOBILE LAYOUT FIXES - 5 Critical Issues - ULTRA AGGRESSIVE
       ======================================================================== */

    /* FIX 1: Popup modal - REMOVED DUPLICATE RULES (now at line 1117) */

    /* FIX 2: Hero banner - PREVENT LOGO OVERLAP */
    /* Make header STATIC on mobile with dark background */
    .luxury-header,
    body .luxury-header,
    html body .luxury-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        background: #1a2332 !important;
        padding: 0.25rem 1rem !important;
    }

    .luxury-header .site-logo-large,
    body .luxury-header .site-logo-large,
    html body .luxury-header .site-logo-large {
        height: 70px !important;
        max-height: 70px !important;
        width: auto !important;
    }

    .site-company-name-large,
    body .site-company-name-large,
    html body .site-company-name-large {
        font-size: 0.7rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-inner,
    body .header-inner,
    html body .header-inner {
        padding: 0.25rem 0 !important;
    }

    .site-branding-centered {
        margin-bottom: 0.25rem !important;
    }

    /* Increase hero height so content is visible */
    .hero-slider-container,
    body .hero-slider-container,
    html body .hero-slider-container {
        min-height: 500px !important;
        height: 75vh !important;
        margin-top: 0 !important;
    }

    .hero-content,
    body .hero-content,
    html body .hero-content {
        padding-top: 140px !important; /* Balanced: clears header, keeps CTA visible */
        padding-bottom: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 1rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .hero-title,
    body .hero-title,
    html body .hero-title {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }

    .hero-address {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-subtitle {
        font-size: 0.65rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-meta {
        gap: 0.25rem !important;
        margin-bottom: 0.5rem !important;
        flex-wrap: wrap !important;
    }

    .hero-meta-item {
        padding: 0.25rem 0.6rem !important;
        font-size: 11px !important;
        margin: 0.15rem !important;
    }

    .hero-cta {
        width: auto !important;
        padding: 0.35rem 1rem !important;
        font-size: 11px !important;
        margin-top: 0.5rem !important;
    }

    /* FIX 3: Property badge - MUCH SMALLER */
    .property-badge,
    body .property-badge,
    html body .property-badge {
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
    }

    /* FIX 4: Hamburger menu - MUCH LARGER AND MORE VISIBLE */
    .mobile-menu-toggle,
    body .mobile-menu-toggle,
    html body .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        padding: 0.75rem !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        z-index: 10001 !important;
        background: rgba(201, 168, 76, 0.2) !important;
        border-radius: 6px !important;
    }

    .mobile-menu-toggle span,
    body .mobile-menu-toggle span,
    html body .mobile-menu-toggle span {
        width: 36px !important;
        height: 5px !important;
        background: var(--gold) !important;
        border-radius: 3px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    }

    /* FIX 5: Property page - REDUCE WHITE SPACE AND TITLE SIZE */
    .property-hero-image,
    body .property-hero-image,
    html body .property-hero-image {
        height: 250px !important;
        max-height: 250px !important;
        margin-bottom: 1rem !important;
        margin-top: 0 !important;
    }

    .property-hero-title,
    body .property-hero-title,
    html body .property-hero-title {
        font-size: 1.375rem !important;
        max-font-size: 1.375rem !important;
        line-height: 1.2 !important;
        padding: 0 0.75rem !important;
        margin: 0 !important;
    }

    .property-hero-overlay,
    body .property-hero-overlay,
    html body .property-hero-overlay {
        padding: 1rem 0.75rem !important;
    }

    .property-single-container,
    body .property-single-container,
    html body .property-single-container {
        padding: 0 0.75rem 1.5rem !important;
    }

    .property-content-wrapper {
        margin-bottom: 1.5rem !important;
    }

    /* Force property pages to start at top */
    body.single-property_listing .property-hero-image,
    body.single .property-hero-image {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Remove desktop header padding on ALL mobile pages except home */
    body:not(.home) {
        padding-top: 0 !important;
    }

    /* Remove excessive top padding from page hero sections */
    .page-hero {
        padding-top: 1rem !important;
    }

    /* Ensure navigation menu is accessible on mobile */
    .luxury-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
    }

    .luxury-nav.active {
        right: 0;
    }

    .luxury-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .luxury-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .luxury-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        color: #ffffff !important;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================================================
   GLOBAL FIX: Force white text on all headings over dark backgrounds
   Overrides the default h1-h6 { color: var(--navy); } rule
   ======================================================================== */

/* Hero sections - homepage slider */
.hero-overlay h1,
.hero-overlay h2,
.hero-overlay h3,
.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-title,
.hero-address,
.hero-subtitle {
    color: #ffffff !important;
}

/* Page heroes - contact, services, about, etc. */
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p {
    color: #ffffff !important;
}

/* Single property page - hero overlay */
.property-hero-overlay h1,
.property-hero-overlay h2,
.property-hero-title {
    color: #ffffff !important;
}

/* Archive pages - properties listing */
.archive-header h1,
.archive-header h2,
.archive-header .archive-title,
.archive-header .archive-description {
    color: #ffffff !important;
}

/* Property info card sidebar (dark navy background) - ALL text must be white */
.property-info-card h1,
.property-info-card h2,
.property-info-card h3,
.property-info-card,
.property-info-card *:not(a):not(button) {
    color: #ffffff !important;
}

/* Specific property detail elements */
.property-detail-label,
.property-detail-value,
.property-detail-item,
.property-detail-item span {
    color: #ffffff !important;
}

/* Ensure colored status badges remain visible */
.property-detail-value.available {
    color: #4caf50 !important;
}

.property-detail-value.rented {
    color: #95a5a6 !important;
}

.property-detail-value.pending {
    color: #f39c12 !important;
}

/* Property info card action buttons - ensure text is visible */
.property-back-link,
.property-back-link:visited {
    color: #ffffff !important;
}

/* ========================================================================
   Testimonials Section - Force white/gold text on dark background
   ======================================================================== */

/* Section header text */
.testimonials-section .section-subtitle-label {
    color: var(--gold) !important;
}

.testimonials-section .section-title,
.testimonials-section .section-title h1,
.testimonials-section .section-title h2 {
    color: #ffffff !important;
}

.testimonials-section .section-description,
.testimonials-section .section-description p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Testimonial card text - future-proof for all cards */
.testimonials-section .testimonial-card,
.testimonials-section .testimonial-card * {
    color: #ffffff !important;
}

.testimonials-section .testimonial-quote {
    color: #ffffff !important;
}

.testimonials-section .testimonial-author {
    color: var(--gold) !important;
}

.testimonials-section .testimonial-role {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Any heading inside elements with dark background classes */
[style*="background: linear-gradient"][style*="var(--navy)"] h1,
[style*="background: linear-gradient"][style*="var(--navy)"] h2,
[style*="background: linear-gradient"][style*="var(--navy)"] h3,
[style*="background: linear-gradient"][style*="var(--dark-gray)"] h1,
[style*="background: linear-gradient"][style*="var(--dark-gray)"] h2,
[style*="background: linear-gradient"][style*="var(--dark-gray)"] h3 {
    color: #ffffff !important;
}

/* Future-proof: any heading with class containing "overlay" or "banner" */
[class*="overlay"] h1,
[class*="overlay"] h2,
[class*="overlay"] h3,
[class*="banner"] h1,
[class*="banner"] h2,
[class*="banner"] h3 {
    color: #ffffff !important;
}


/* ==========================================================================
   TEAM MEMBERS PAGE
   ========================================================================== */

.team-page-wrapper {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.team-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.team-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.team-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff !important;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .team-subtitle {
        white-space: normal;
    }
}

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

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.team-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-photo img {
    filter: grayscale(0%);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
}

.team-photo-placeholder-text {
    font-size: 1.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 20px;
}

.team-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.team-position {
    font-size: 1.125rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
}

.team-department {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.team-bio p {
    margin-bottom: 1.25rem; /* 20px - Better spacing between paragraphs */
}

.team-bio p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.team-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--navy);
    padding: 8px 12px;
    background-color: var(--light-gray);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.team-contact-link:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateX(4px);
}

.team-contact-link svg {
    flex-shrink: 0;
}

.no-team-members {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-team-members p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.no-team-members a {
    color: var(--gold);
    text-decoration: underline;
}

.no-team-members a:hover {
    color: var(--navy);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .team-hero {
        padding: 60px 20px 40px;
        margin-bottom: 40px;
    }

    .team-photo {
        height: 280px;
    }

    .team-info {
        padding: 24px;
    }

    .team-name {
        font-size: 1.5rem;
    }

    .team-container {
        padding-bottom: 60px;
    }
}

.team-position-placeholder {
    font-size: 1.125rem;
    color: #bbb;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 6px;
}

/* ==========================================================================
   CAREERS / JOB OPENINGS PAGE
   ========================================================================== */

.careers-page-wrapper {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.careers-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.careers-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.careers-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #ffffff !important;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 300;
}

@media (min-width: 768px) {
    .careers-subtitle {
        white-space: nowrap;
    }
}

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

/* Search/Filter Bar */
.careers-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    align-items: center;
}

@media (max-width: 768px) {
    .careers-filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-clear-filters {
        width: 100%;
    }
}

.careers-filters input[type="text"],
.careers-filters select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.careers-filters input[type="text"]:focus,
.careers-filters select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* Clear Filters Button */
.btn-clear-filters {
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-message h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.no-results-message p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.reset-link {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

.reset-link:hover {
    color: #b8964a;
}

/* Location Sections */
.location-section {
    margin-bottom: 50px;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--white);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.location-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-icon {
    font-size: 1.5rem;
}

.location-count {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    padding: 6px 16px;
    background: var(--light-gray);
    border-radius: 20px;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

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

.job-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    margin-bottom: 15px;
}

.job-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.job-title a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: var(--gold);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.job-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

.job-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-actions {
    display: flex;
    gap: 10px;
}

.btn-apply,
.btn-details {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-apply {
    background: var(--gold);
    color: var(--white);
}

.btn-apply:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.btn-details {
    background: var(--light-gray);
    color: var(--navy);
}

.btn-details:hover {
    background: var(--navy);
    color: var(--white);
}

/* Empty State */
.careers-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.careers-empty-state h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.careers-empty-state p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 15px;
}

.careers-empty-state a {
    color: var(--gold);
    text-decoration: underline;
}

.careers-empty-state a:hover {
    color: var(--navy);
}

/* ==========================================================================
   SINGLE JOB DETAIL PAGE
   ========================================================================== */

.job-detail-wrapper {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.job-detail-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-gray) 100%);
    padding: 40px 20px 60px;
    color: var(--white);
}

.job-breadcrumb {
    margin-bottom: 20px;
}

.job-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.job-breadcrumb a:hover {
    color: var(--white);
}

.job-detail-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 20px;
    line-height: 1.2;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.job-detail-meta .meta-item {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.job-detail-container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

.job-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 968px) {
    .job-detail-content {
        grid-template-columns: 1fr;
    }
}

.job-main-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-excerpt {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.job-section {
    margin-bottom: 35px;
}

.job-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.job-description,
.job-requirements,
.job-benefits {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.job-description ul,
.job-requirements ul,
.job-benefits ul {
    padding-left: 25px;
    margin: 15px 0;
}

.job-description li,
.job-requirements li,
.job-benefits li {
    margin-bottom: 8px;
}

.job-address {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Job Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.job-apply-box,
.job-info-box {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-apply-box h3,
.job-info-box h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    margin-bottom: 20px;
}

.apply-deadline {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.apply-instructions {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-apply-large {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--gold);
    color: var(--white);
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-apply-large:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.apply-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

.job-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-info-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.job-info-list li:last-child {
    border-bottom: none;
}

.job-info-list strong {
    color: var(--navy);
}

/* Job Detail Footer */
.job-detail-footer {
    text-align: center;
    padding: 30px 0;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--navy);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .careers-hero,
    .job-detail-hero {
        padding: 60px 20px 40px;
    }

    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-main-content,
    .job-apply-box,
    .job-info-box {
        padding: 25px;
    }

    .job-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   HOMEPAGE-ONLY SPACING REDUCTIONS (May 25, 2026)
   ========================================================================== */

/* Issue 1: Reduce Hero → "Our Listings" gap by 50% (homepage only) */
.home .properties-section {
    padding: clamp(1.875rem, 4vw, 3.75rem) 0;
}

/* Issue 2: Reduce Property Cards → "Our Difference" gap by 75% (homepage only) */
.home .why-choose-us-section {
    padding: clamp(1rem, 2vw, 1.75rem) 0;
}
