/* ============================================
    CS DIGITAL HUB REALTY OPC - Main Stylesheet
    ============================================ */

/* CSS Variables */
:root {
    --primary-color: #1a3a5c;
    --secondary-color: #c9a227;
    --accent-color: #2d5a87;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    /* Safe area insets for notched devices (iPhone X+) */
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
    --safe-area-right: env(safe-area-inset-right);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-white);
}

/* New overall body design: soft gradient background with centered card containers */
body {
    background: linear-gradient(180deg, #f3f6fb 0%, #eef4fb 40%, #ffffff 100%);
    color: var(--text-dark);
}

/* Carded sections: give main section containers a card look for improved readability */
section:not(.page-header) .container {
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(28, 45, 65, 0.06);
    border: 1px solid rgba(26, 58, 92, 0.03);
}

/* Increase spacing for policy and about content */
.about-content,
.mv-grid {
    gap: 40px;
}

/* Make images sit inside cards and scale pleasantly */
.about-image img,
.about-image .card-img {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
}

/* Improve CTA contrast on card background */
.cta-section {
    padding: 100px 0;
    background: #1a3a5c;
    text-align: center;
}

.cta-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: #fff;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-content {
    flex: 1;
    min-width: 0;
    max-width: 640px;
    text-align: left;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    section:not(.page-header) .container {
        padding: 24px;
    }
    .cta-section .container {
        flex-direction: column;
        text-align: center;
    }
    .cta-content {
        text-align: center;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b8911f;
    border-color: #b8911f;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 420px;
    padding: 18px 20px;
    border-radius: 18px;
    background-color: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10020;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.toast-icon i {
    font-size: 18px;
    color: #ffffff;
}

.toast-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.toast-content p {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.toast.success .toast-icon {
    background: rgba(72, 187, 120, 0.18);
}

.toast.error .toast-icon {
    background: rgba(245, 101, 101, 0.18);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(100%, 940px);
    background: rgba(15, 23, 42, 0.98);
    color: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    padding: 20px 24px;
    z-index: 10015;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    animation: slideUp 0.35s ease-out;
}

.cookie-content {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-cookie-decline {
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    background: transparent;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--secondary-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 24px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.header.scrolled .nav-links a {
    color: var(--text-dark);
}

.header.scrolled .logo h1 {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition);
}

.logo h1 span {
    color: var(--secondary-color);
}

/* New logo/link styles for compact branding */
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 44px;
    height: auto;
    display: block;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.logo-accent {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Scrolled / compact header variants */
.header.scrolled .logo-img {
    width: 34px;
}

.header.scrolled .logo-text {
    font-size: 15px;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-img { width: 36px; }
    .logo-text { font-size: 14px; }
    .navbar { padding: 14px 20px; }
}

@media (max-width: 480px) {
    .logo-img { width: 30px; }
    .header.scrolled .logo-img { width: 28px; }
    .logo-text { display: none; }
    .navbar { padding: 10px 12px; }
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links > li > a:hover {
    color: var(--secondary-color);
}

.nav-links > li > a i {
    font-size: 10px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--text-white);
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: var(--text-dark);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.nav-actions .btn {
    padding: 12px 25px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background-color: var(--text-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100); /* iOS viewport fix */
    min-height: 700px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.24), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(94, 162, 255, 0.2), transparent 26%),
        linear-gradient(125deg, #061523 0%, #0c2841 45%, #081728 100%);
}

.hero-slider {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 120px 70px 70px;
    position: relative;
    z-index: 2;
}

.hero-ambient {
    position: relative;
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-ambient-one {
    width: 340px;
    height: 340px;
    top: 12%;
    left: -120px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.7), rgba(201, 162, 39, 0));
}

.hero-ambient-two {
    width: 460px;
    height: 460px;
    right: -140px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(75, 144, 226, 0.55), rgba(75, 144, 226, 0));
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 680px;
    color: var(--text-white);
    transform: translateZ(0);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 18px rgba(201, 162, 39, 0.8);
}

.hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 25px;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.hero-copy h1 span {
    color: var(--secondary-color);
}

.hero-copy p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 620px;
    opacity: 0.92;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-metric {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-metric strong {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 32px;
    line-height: 1;
}

.hero-metric span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

.hero-stage {
    position: relative;
    perspective: 2200px;
    perspective-origin: center center;
    transform-style: preserve-3d;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
}

.hero-stage-shell {
    position: relative;
    min-height: 536px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
    transition: transform 0.35s ease;
}

.hero-card-stack {
    position: relative;
    width: min(100%, 464px);
    height: 496px;
    transform-style: preserve-3d;
}

.hero-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #8b8b8b;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.34);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, filter 0.6s ease;
    opacity: 0;
    filter: saturate(0.65) brightness(0.72);
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 20, 34, 0.02) 0%, rgba(5, 15, 28, 0.78) 100%);
}

.hero-card-image,
.hero-card-gloss,
.hero-card-body {
    position: absolute;
    inset: 0;
}

.hero-card-image {
    background-size: cover;
    background-position: center;
    transform: scale(1.02) translateZ(0);
}

.hero-card-gloss {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02) 40%, transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.6;
}

.hero-card-body {
    inset: auto 0 0 0;
    padding: 28px;
    z-index: 2;
    color: var(--text-white);
    transform: translateZ(70px);
}

.hero-card-label {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 12px;
}

.hero-card-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-card-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-card.is-active {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translate3d(0, 0, 180px) rotateY(0deg) scale(1);
    z-index: 5;
}

.hero-card.is-prev {
    opacity: 0.92;
    transform: translate3d(-22%, 4%, 10px) rotateY(54deg) rotateZ(-4deg) scale(0.86);
    z-index: 4;
}

.hero-card.is-next {
    opacity: 0.92;
    transform: translate3d(22%, 4%, 10px) rotateY(-54deg) rotateZ(4deg) scale(0.86);
    z-index: 4;
}

.hero-card.is-far-prev {
    opacity: 0.42;
    transform: translate3d(-36%, 8%, -180px) rotateY(68deg) scale(0.72);
    z-index: 2;
}

.hero-card.is-far-next {
    opacity: 0.42;
    transform: translate3d(36%, 8%, -180px) rotateY(-68deg) scale(0.72);
    z-index: 2;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(16px);
    transform: translateY(-50%);
    cursor: pointer;
    transition: var(--transition);
}

.hero-nav:hover {
    background: rgba(201, 162, 39, 0.22);
    border-color: rgba(201, 162, 39, 0.5);
}

.hero-nav-prev {
    left: -12px;
}

.hero-nav-next {
    right: -12px;
}

.hero-slider-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 28px;
}

.hero-spotlight {
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    backdrop-filter: blur(14px);
}

.hero-spotlight-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.hero-spotlight-title {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.hero-spotlight-meta {
    color: rgba(255, 255, 255, 0.74);
}

.hero-dots {
    display: none;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
    width: 46px;
    background: linear-gradient(90deg, var(--secondary-color), #f0d67e);
    transform: translateY(-1px);
}

.hero.hero-depth .hero-copy {
    will-change: transform;
}

/* ── Large tablet / small laptop (iPad Pro landscape, Surface) ── */
@media (max-width: 1180px) {
    .hero-slider {
        grid-template-columns: 1fr 0.85fr;
        gap: 20px;
        padding: 100px 40px 60px;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-stage-shell {
        min-height: 480px;
    }

    .hero-card-stack {
        width: min(100%, 420px);
        height: 460px;
    }
}

/* ── Tablet portrait / large phone landscape (~900px) ── */
@media (max-width: 960px) {
    .hero-slider {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 100px 36px 48px;
    }

    .hero {
        height: auto;
        min-height: 0;
    }

    .hero-copy {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-kicker {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        max-width: 560px;
        margin: 0 auto;
    }

    .hero-stage-shell {
        min-height: 440px;
        margin-top: 32px;
    }

    .hero-card-stack {
        width: min(100%, 460px);
        height: 420px;
    }
}

/* ── Standard mobile / tablet portrait (≤768px) ── */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 0;
    }

    .hero-slider {
        grid-template-columns: 1fr;
        padding: 80px 16px 40px;
        gap: 0;
    }

    .hero-copy {
        text-align: center;
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 7vw, 42px);
        margin-bottom: 18px;
    }

    .hero-kicker {
        justify-content: center;
        letter-spacing: 0.12em;
        font-size: 10px;
        padding: 8px 14px;
        margin-bottom: 20px;
    }

    .hero-copy p {
        font-size: 15px;
        margin-bottom: 22px;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: min(100%, 340px);
        text-align: center;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .hero-stage-shell {
        min-height: 390px;
        margin-top: 28px;
    }

    .hero-card-stack {
        width: min(100%, 400px);
        height: 360px;
    }

    .hero-card.is-active {
        transform: translate3d(0, 0, 110px) scale(1);
    }

    .hero-card.is-prev {
        transform: translate3d(-20%, 6%, -20px) rotateY(52deg) scale(0.8);
    }

    .hero-card.is-next {
        transform: translate3d(20%, 6%, -20px) rotateY(-52deg) scale(0.8);
    }

    .hero-card.is-far-prev,
    .hero-card.is-far-next {
        opacity: 0;
    }

    .hero-card-body {
        padding: 20px;
    }

    .hero-card-body h2 {
        font-size: 24px;
    }

    .hero-slider-footer {
        margin-top: 20px;
    }

    .hero-dots {
        justify-content: center;
    }

    .hero-nav {
        width: 46px;
        height: 46px;
    }

    .hero-nav-prev { left: -2px; }
    .hero-nav-next { right: -2px; }
}

/* ── Phone (≤480px) ── */
@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 0;
    }

    .hero-slider {
        padding: 80px 16px 36px;
    }

    .hero-stage-shell {
        min-height: 330px;
    }

    .hero-card-stack {
        width: min(100%, 320px);
        height: 300px;
    }

    .hero-card.is-active {
        transform: translate3d(0, 0, 90px) scale(1);
    }

    .hero-card.is-prev {
        transform: translate3d(-22%, 6%, -10px) rotateY(50deg) scale(0.76);
    }

    .hero-card.is-next {
        transform: translate3d(22%, 6%, -10px) rotateY(-50deg) scale(0.76);
    }

    .hero-card-body h2 {
        font-size: 20px;
    }

    .hero-card-label {
        font-size: 10px;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
    .hero-slider {
        padding: 76px 12px 30px;
    }

    .hero-stage-shell {
        min-height: 290px;
    }

    .hero-card-stack {
        width: min(100%, 280px);
        height: 268px;
    }

    .hero-card-body h2 {
        font-size: 18px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

/* Social Sidebar */
.social-sidebar {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-sidebar a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.social-sidebar a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 100px 0;
    background-color: var(--text-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-text h2 span {
    color: var(--secondary-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
    max-width: 70ch;
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.about-buttons .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.about-buttons .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

/* ============================================
   Community Location Map Section
   ============================================ */
.community-location-map {
    padding: 0 0 80px;
}

.community-map-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.99), rgba(241,247,252,0.96));
    border: 1px solid rgba(45, 90, 135, 0.14);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.community-map-card.golden-border {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 20px 50px rgba(201, 162, 39, 0.18);
}

.community-map-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community-map-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.community-map-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 36px);
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.community-map-copy h2 span {
    color: var(--secondary-color);
}

.community-map-copy p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

.community-map-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.community-map-actions .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.community-map-actions .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.community-map-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(45, 90, 135, 0.08);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
}

.community-map-frame {
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #e9eef3;
    box-shadow: inset 0 0 0 1px rgba(45, 90, 135, 0.08);
}

.community-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

@media (max-width: 900px) {
    .community-map-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .community-location-map {
        padding: 0 0 60px;
    }

    .community-map-card {
        padding: 20px;
    }

    .community-map-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-map-frame,
    .community-map-frame iframe {
        min-height: 280px;
    }
}

.locations-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.locations-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

.locations-section h2 span {
    color: var(--secondary-color);
}

/* ============================================
   Locations 3D Card Stack
   ============================================ */
.loc-stage {
    position: relative;
    perspective: 2000px;
    perspective-origin: center 45%;
    padding: 20px 0 40px;
}

.loc-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.loc-ambient-left {
    width: 320px;
    height: 320px;
    top: 0;
    left: 4%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.75), transparent 70%);
}

.loc-ambient-right {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 4%;
    background: radial-gradient(circle, rgba(45, 90, 135, 0.65), transparent 70%);
}

.loc-card-wrap {
    position: relative;
    height: 490px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    z-index: 1;
}

.loc-card {
    position: absolute;
    width: 320px;
    height: 440px;
    border-radius: 26px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, filter 0.6s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    pointer-events: none;
    filter: brightness(0.65) saturate(0.65);
    box-shadow: 0 30px 60px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
    border: 2px solid rgba(201, 162, 39, 0.55);
    background: linear-gradient(135deg, rgba(255, 234, 164, 0.16), rgba(201, 162, 39, 0.08));
}

.loc-card::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 222, 131, 0.7);
    pointer-events: none;
}

.loc-card:hover,
.loc-card.is-active {
    border-color: #f1c95b;
    box-shadow: 0 35px 70px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255, 221, 115, 0.25);
}

.loc-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.loc-card-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.loc-card:hover .loc-card-bg {
    transform: scale(1.09);
}

.loc-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.loc-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    color: white;
    transform: translateZ(40px);
    background: transparent;
}

.loc-card-kicker {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.loc-card-body h3 {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    color: white;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
}

.loc-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

/* Card states */
.loc-card.is-active {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    transform: translate3d(0, 0, 160px) rotateY(0deg) scale(1);
    z-index: 5;
}

.loc-card.is-prev {
    opacity: 0.88;
    pointer-events: auto;
    filter: brightness(0.72) saturate(0.72);
    transform: translate3d(-56%, 5%, -60px) rotateY(50deg) scale(0.88);
    z-index: 4;
}

.loc-card.is-next {
    opacity: 0.88;
    pointer-events: auto;
    filter: brightness(0.72) saturate(0.72);
    transform: translate3d(56%, 5%, -60px) rotateY(-50deg) scale(0.88);
    z-index: 4;
}

.loc-card.is-far-prev,
.loc-card.is-far-next {
    opacity: 0;
    transform: translate3d(0, 0, -320px) scale(0.6);
    z-index: 2;
}

/* Pill tabs */
.loc-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 38px;
    padding: 10px 14px;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.loc-tab {
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.loc-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.loc-tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.locations-cta {
    text-align: center;
    margin-top: 40px;
}

/* ── Loc stack: tablet portrait (~900px) ── */
@media (max-width: 960px) {
    .loc-card-wrap {
        height: 460px;
    }

    .loc-card {
        width: 290px;
        height: 400px;
    }

    .loc-card.is-prev {
        transform: translate3d(-48%, 5%, -50px) rotateY(48deg) scale(0.85);
    }

    .loc-card.is-next {
        transform: translate3d(48%, 5%, -50px) rotateY(-48deg) scale(0.85);
    }

    .loc-card-body h3 {
        font-size: 28px;
    }

    .loc-ambient-left,
    .loc-ambient-right {
        width: 220px;
        height: 220px;
    }
}

/* ── Loc stack: mobile (≤768px) ── */
@media (max-width: 768px) {
    .loc-card-wrap {
        height: 400px;
    }

    .loc-card {
        width: 240px;
        height: 350px;
    }

    .loc-card.is-prev {
        transform: translate3d(-46%, 5%, -40px) rotateY(48deg) scale(0.84);
    }

    .loc-card.is-next {
        transform: translate3d(46%, 5%, -40px) rotateY(-48deg) scale(0.84);
    }

    .loc-card-body {
        padding: 20px 18px;
    }

    .loc-card-body h3 {
        font-size: 24px;
    }

    .loc-card-desc {
        font-size: 13px;
    }

    .loc-tabs {
        gap: 8px;
        margin-top: 28px;
    }

    .loc-tab {
        padding: 10px 18px;
        font-size: 13px;
    }

    .loc-ambient-left,
    .loc-ambient-right {
        width: 180px;
        height: 180px;
        opacity: 0.25;
    }
}

/* ── Loc stack: small phone (≤480px) ── */
@media (max-width: 480px) {
    .loc-card-wrap {
        height: 360px;
    }

    .loc-card {
        width: 210px;
        height: 300px;
    }

    .loc-card.is-prev {
        transform: translate3d(-46%, 5%, -30px) rotateY(46deg) scale(0.82);
    }

    .loc-card.is-next {
        transform: translate3d(46%, 5%, -30px) rotateY(-46deg) scale(0.82);
    }

    .loc-card-body h3 {
        font-size: 20px;
    }

    .loc-card-kicker {
        font-size: 10px;
    }

    .loc-card-desc {
        display: none;
    }

    .loc-tab {
        padding: 9px 14px;
        font-size: 12px;
    }

    .loc-ambient-left,
    .loc-ambient-right {
        display: none;
    }
}

/* ============================================
   Properties Section
   ============================================ */
.properties-section {
    padding: 100px 0;
    background-color: var(--text-white);
}

.properties-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

.properties-section h2 span {
    color: var(--secondary-color);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background-color: var(--text-white);
    border: 2px solid rgba(201, 162, 39, 0.45);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.18);
}

.property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-image.sold::before {
    content: 'SOLD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    color: var(--text-white);
    z-index: 3;
}

.property-badge.sale {
    background-color: var(--secondary-color);
}

.property-badge.rent {
    background-color: var(--accent-color);
}

.property-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.property-location:hover {
    color: var(--secondary-color);
}

.property-location i {
    color: var(--secondary-color);
    margin-right: 5px;
    transition: var(--transition);
}

.property-location:hover i {
    transform: scale(1.2);
}

.property-address {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.property-features span {
    font-size: 13px;
    color: var(--text-light);
}

.property-features i {
    color: var(--primary-color);
    margin-right: 5px;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.property-content .btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.property-content .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.properties-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(19, 42, 67, 0.04), rgba(240, 196, 34, 0.08));
}

.news-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 40px;
}

.news-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

.news-heading h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.news-card {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 30px;
    background: var(--text-white);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.news-date {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
}

.news-card-content h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-card-side {
    background: linear-gradient(135deg, rgba(19, 42, 67, 0.06), rgba(240, 196, 34, 0.12));
    border-radius: 18px;
    padding: 28px;
}

.news-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.news-card-side h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.news-card-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-card-side li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.news-card-side li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .news-section {
        padding: 70px 0;
    }

    .news-heading {
        margin-bottom: 24px;
    }

    .news-heading h2 {
        font-size: 28px;
    }

    .news-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
        border-radius: 18px;
    }

    .news-card-content h3 {
        font-size: 22px;
    }

    .news-card-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .news-card-side {
        padding: 20px;
    }

    .news-card-side h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 60px 0;
    }

    .news-heading h2 {
        font-size: 24px;
    }

    .news-eyebrow {
        font-size: 12px;
        letter-spacing: 0.2em;
    }

    .news-card {
        padding: 18px;
    }

    .news-card-content h3 {
        font-size: 20px;
    }

    .news-card-content p {
        font-size: 14px;
    }

    .news-card-side {
        padding: 16px;
    }

    .news-card-side h4 {
        font-size: 18px;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--text-white);
}

.testimonials-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.3;
}

.testimonials-section h2 span {
    color: var(--secondary-color);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 3px solid var(--secondary-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.testimonial-stars {
    color: var(--secondary-color);
}

.testimonial-stars i {
    margin: 0 2px;
}

/* ============================================
   Services Cards Section
   ============================================ */
.services-cards-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--text-white);
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 32px;
    color: var(--text-white);
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */

/* Contact Page Section */
.contact-page-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-box {
    padding: 40px 30px;
}

.contact-info-box h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info-box h2 span {
    color: var(--secondary-color);
}

.contact-info-box > p {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 5px 0;
}

.info-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-content a:hover {
    text-decoration: underline;
}

.contact-form-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-box h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-dark);
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.form-buttons .contact-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 13px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
    background-color: var(--text-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info h2 span {
    color: var(--secondary-color);
}

.contact-info > p {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item a,
.contact-item p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--text-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: 20px;
    width: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.contact-form .btn {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-dark);
    padding: 80px 0 30px;
    color: var(--text-white);
}

.footer-logo {
    width: 56px;
    height: auto;
    display: block;
    margin: 0 0 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand h3 {
    margin-bottom: 2px !important;
    font-size: 18px !important;
}

.footer-tagline {
    font-size: 11px !important;
    letter-spacing: 1.5px;
    color: var(--secondary-color) !important;
    margin-bottom: 0 !important;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
}

.footer-newsletter-form input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 9px 14px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-newsletter-form input:focus {
    border-color: var(--secondary-color);
}

.footer-newsletter-form button {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.footer-newsletter-form button:hover {
    opacity: 0.85;
}

.footer-newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-nl-message {
    font-size: 12px;
    margin-top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header h2 span {
    color: var(--secondary-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.faq-question i {
    color: var(--secondary-color);
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px;
    padding-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

.faq-answer a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: var(--primary-color);
}

.faq-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-cta h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.faq-cta p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-cta {
        padding: 30px;
    }

    .faq-cta h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 14px;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question h3 {
        font-size: 15px;
    }

    .faq-answer p {
        padding: 0 18px;
        padding-bottom: 16px;
        font-size: 14px;
    }

    .faq-cta {
        padding: 20px;
    }

    .faq-cta h3 {
        font-size: 20px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--secondary-color);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ============================================
   Chat Widget - LEFT SIDE
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.chat-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.chat-button i {
    color: white;
    font-size: 20px;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.chat-popup {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    opacity: 0.8;
}

.chat-body {
    padding: 20px;
}

.chat-body p {
    margin: 0 0 15px 0;
    color: #333;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-options a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.chat-options a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.chat-options a i {
    font-size: 18px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .locations-grid {
        animation-duration: 30s;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        padding: 100px 40px;
        gap: 0;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links > li > a {
        color: var(--primary-color);
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        font-weight: 500;
    }
    
    .nav-links > li > a:hover {
        color: var(--secondary-color);
    }
    
    .nav-links > li > a i {
        color: var(--secondary-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .dropdown-menu a {
        color: var(--text-light);
        font-size: 14px;
    }
    
    .dropdown-menu a:hover {
        color: var(--secondary-color);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger span {
        background: var(--primary-color);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--primary-color);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--primary-color);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image::before {
        display: none;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 30px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 10vw, 48px);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .social-sidebar {
        display: none;
    }
    
    .about-section,
    .locations-section,
    .properties-section,
    .testimonials-section,
    .services-cards-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .about-text h2,
    .locations-section h2,
    .properties-section h2,
    .testimonials-section h2,
    .contact-info h2 {
        font-size: 32px;
    }
    
    .locations-grid {
        animation-duration: 26s;
    }
    
    .location-card {
        flex-basis: 320px;
        height: 210px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-slider {
        padding: 70px 12px 32px;
    }

    .hero-copy h1 {
        font-size: clamp(24px, 6vw, 34px);
        margin-bottom: 14px;
        line-height: 1.1;
    }

    .hero-kicker {
        font-size: 9px;
        padding: 6px 12px;
        margin-bottom: 16px;
        gap: 8px;
    }

    .hero-kicker::before {
        width: 8px;
        height: 8px;
    }

    .hero-copy p {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 12px;
        margin-bottom: 20px;
    }

    .hero-buttons .btn {
        width: min(100%, 280px);
        padding: 11px 16px;
        font-size: 12px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-metric {
        padding: 14px;
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .locations-grid {
        animation-duration: 22s;
    }

    .location-card {
        flex-basis: 280px;
        height: 190px;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    .about-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .chat-popup {
        width: 280px;
        right: -10px;
    }
}

/* ============================================
   Page-specific Styles
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(rgba(26, 58, 92, 0.9), rgba(26, 58, 92, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--text-white);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    margin-top: 25px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--secondary-color);
    margin: 0 10px;
}

/* Property Filters */
.property-filters {
    padding: 30px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--text-white);
}

/* ============================================
   About Page
   ============================================ */
.about-story {
    padding: 100px 0;
}
.about-story .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-story .about-text h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 25px;
}
.about-story .about-text h2 span {
    color: #c9a227;
}
.about-story .about-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}
.about-story .about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mission-vision {
    padding: 100px 0;
    background-color: #f8f9fa;
}
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mv-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.mv-card:hover {
    transform: translateY(-10px);
}
.mv-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #1a3a5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mv-icon i {
    font-size: 32px;
    color: #fff;
}
.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}
.mv-card p {
    color: #666;
    line-height: 1.7;
}

.team-section {
    padding: 100px 0;
}
.team-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}
.team-section h2 span {
    color: #c9a227;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.team-card {
    text-align: center;
}
.team-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.team-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: all 0.3s ease;
}
.team-card:hover .team-image img {
    transform: scale(1.1);
}
.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 58, 92, 0.9);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}
.team-card:hover .team-social {
    transform: translateY(0);
}
.team-social a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}
.team-social a:hover {
    background: #c9a227;
}
.team-info h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 5px;
}
.team-info p {
    color: #666;
}

@media (max-width: 992px) {
    .about-story .about-content {
        grid-template-columns: 1fr;
    }
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(rgba(26, 58, 92, 0.95), rgba(26, 58, 92, 0.95)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-item h3::after {
    content: '+';
}

.stat-item p {
    font-size: 16px;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 42px;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

/* ============================================
   Enhanced Mobile Responsiveness
   ============================================ */

/* Mobile Navigation Improvements */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        color: var(--primary-color);
        font-weight: 500;
    }
    
    .nav-links a:hover {
        color: var(--secondary-color);
    }
    
    .nav-links .dropdown > a i {
        color: var(--secondary-color);
    }
    
    .dropdown-menu {
        position: static;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0 20px;
        display: none;
        border-radius: 8px;
        margin: 5px 0;
    }
    
    .dropdown-menu a {
        color: var(--text-light);
        font-size: 14px;
        padding: 12px 0;
    }
    
    .dropdown-menu a:hover {
        color: var(--secondary-color);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        transition: var(--transition);
    }
    
    .header.scrolled .hamburger span {
        background: var(--primary-color);
    }
}

/* Page Header Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
}

/* Property Filters Mobile */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 12px 15px;
    }
}

/* Property Grid Mobile */
@media (max-width: 768px) {
    .properties-grid,
    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-card {
        margin-bottom: 0;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 20px;
    }
    
    .property-content h3 {
        font-size: 18px;
    }
    
    .property-content .price {
        font-size: 20px;
    }
}

/* Sort and Filter Bar Mobile */
@media (max-width: 768px) {
    .sort-filter-bar,
    .properties-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sort-filter-bar select,
    .properties-header select {
        width: 100%;
    }
}

/* About Page Mobile */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-box {
        padding: 20px 0;
    }
    
    .contact-info-box h2 {
        font-size: 28px;
    }
    
    .contact-form-box {
        padding: 30px 20px;
    }
    
    .contact-form-box h3 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-buttons .contact-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-items {
        gap: 20px;
    }
}

/* Contact Page Extra Mobile */
@media (max-width: 480px) {
    .contact-page-section {
        padding: 40px 0;
    }
    
    .contact-info-box h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .contact-info-box > p {
        margin-bottom: 30px;
        font-size: 14px;
    }
    
    .contact-form-box {
        padding: 20px 15px;
    }
    
    .contact-form-box h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .info-content h4 {
        font-size: 16px;
    }
}

/* Community Pages Mobile */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .community-content {
        padding: 20px;
    }
}

/* Blog Pages Mobile */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: 1;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured .blog-image {
        height: 250px;
    }
    
    .blog-card.featured h2 {
        font-size: 22px;
    }
}

/* Blog Post Mobile */
@media (max-width: 768px) {
    .article-header,
    .article-content,
    .article-footer,
    .author-box,
    .related-posts,
    .comments-section {
        padding: 20px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        margin: 0 20px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Services Pages Mobile */
@media (max-width: 768px) {
    .services-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        text-align: center;
    }
    
    .faq-section {
        padding: 40px 0;
    }
}

/* Property Details Mobile */
@media (max-width: 768px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .property-gallery {
        height: 250px;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .agent-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Forms Mobile */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
}

/* Tables Mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    th, td {
        padding: 10px;
        font-size: 14px;
    }
}

/* Footer Mobile Improvements */
@media (max-width: 576px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 13px;
    }
}

/* Utility Classes for Mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
}

/* Touch-friendly improvements */
@media (max-width: 992px) {
    a, button, .btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dropdown > a::after {
        content: ' ▼';
        font-size: 10px;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling for iOS */
.scroll-container {
    -webkit-overflow-scrolling: touch;
}

/* Improve tap targets */
@media (max-width: 768px) {
    .nav-links a,
    .footer a,
    .property-card a {
        padding: 12px;
    }
}

/* ============================================
   iPad & Tablet Specific Styles (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 15px 25px;
    }
    
    .hero-content {
        max-width: 600px;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .locations-grid {
        animation-duration: 28s;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 40px;
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* iPad Pro (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .navbar {
        padding: 18px 40px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Portrait iPad */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        height: auto;
        min-height: 0;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        padding: 100px 40px;
        gap: 0;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links > li > a {
        color: var(--primary-color);
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hamburger {
        display: flex;
    }
}

/* Landscape iPad */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hamburger {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }
}

/* ============================================
   Enhanced Mobile Responsiveness
   ============================================ */

/* Fix stats section on mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item h3 {
        font-size: 28px;
    }
    
    .stat-item p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix testimonials on mobile */
@media (max-width: 768px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-card p {
        font-size: 14px;
    }
}

/* Fix property cards on mobile */
@media (max-width: 768px) {
    .property-card {
        margin-bottom: 20px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    .property-content h3 {
        font-size: 18px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        /* Text truncation for mobile */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .property-features span {
        font-size: 12px;
    }
    
    .property-price {
        font-size: 20px;
    }
}

/* Property card titles for smaller mobile devices */
@media (max-width: 480px) {
    .property-content h3 {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        min-height: 40px;
    }
    
    .property-content {
        padding: 12px;
    }
    
    .property-location {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .property-features span {
        font-size: 11px;
    }
    
    .property-price {
        font-size: 18px;
    }
}

/* Extra small devices - iPhone SE, small Android phones */
@media (max-width: 375px) {
    .property-content h3 {
        font-size: 15px;
        line-height: 1.2;
        min-height: 36px;
    }
    
    .property-content {
        padding: 10px;
    }
    
    .property-location {
        font-size: 12px;
    }
    
    .property-features span {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .property-price {
        font-size: 16px;
    }
    
    .property-card .btn {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Very small devices - foldable phones, Galaxy Z Flip */
@media (max-width: 320px) {
    .property-content h3 {
        font-size: 14px;
        line-height: 1.2;
        min-height: 34px;
    }
    
    .property-content {
        padding: 8px;
    }
}

/* Fix page headers on mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 14px;
    }
}

/* Fix contact section on mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Fix about section on mobile */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Fix chat widget on mobile */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-button {
        width: 50px;
        height: 50px;
    }
    
    .chat-popup {
        width: calc(100vw - 30px);
        right: 0;
        max-width: 300px;
    }
}

/* Fix buttons on mobile */
@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .btn-primary,
    .btn-outline {
        display: block;
        margin-bottom: 10px;
    }
}

/* Fix filter section on mobile */
@media (max-width: 768px) {
    .filter-section {
        padding: 20px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
}

/* Fix admin/form pages on mobile */
@media (max-width: 768px) {
    .admin-container {
        margin: 100px auto 30px;
        padding: 0 15px;
    }
    
    .admin-card {
        padding: 20px;
    }
    
    .stats-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-display {
        grid-template-columns: 1fr;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix text overflow on mobile */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Fix tables on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Community pages on mobile */
@media (max-width: 768px) {
    .community-hero {
        min-height: 400px;
    }
    
    .community-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog pages on mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin-bottom: 20px;
    }
}

/* Property details page on mobile */
@media (max-width: 768px) {
    .property-content-grid {
        grid-template-columns: 1fr;
    }
    
    .property-gallery {
        margin-bottom: 20px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .similar-properties .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Enhanced Touch Device Support
   ============================================ */

/* Touch-friendly button and link sizes */
@media (pointer: coarse) {
    a, button, .btn, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links > li > a {
        padding: 12px 15px;
    }
    
    .dropdown-menu li a {
        padding: 14px 25px;
    }
    
    .property-card .btn {
        padding: 14px 20px;
    }
    
    .chat-button {
        width: 56px;
        height: 56px;
    }
    
    .social-sidebar a {
        width: 48px;
        height: 48px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .btn:hover {
        transform: none;
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .location-card:hover .location-image {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    /* Active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .property-card:active {
        transform: scale(0.99);
    }
    
    a:active {
        opacity: 0.7;
    }
}

/* Safe area support for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    .footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .chat-widget {
        bottom: calc(20px + env(safe-area-inset-bottom));
        left: calc(20px + env(safe-area-inset-left));
    }
    
    .social-sidebar {
        right: calc(30px + env(safe-area-inset-right));
    }
    
    .nav-links.active {
        padding-top: calc(100px + env(safe-area-inset-top));
        padding-right: env(safe-area-inset-right);
    }
}

/* ============================================
   Additional Mobile Optimizations
   ============================================ */

/* Improve form inputs on mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Improve scrolling */
.scroll-snap-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-item {
    scroll-snap-align: start;
}

/* Fix fixed header on iOS */
@supports (-webkit-touch-callout: none) {
    .header {
        position: fixed;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Improve property image loading */
.property-image,
.location-image {
    background-color: var(--bg-light);
}

/* Better card shadows on mobile */
@media (max-width: 768px) {
    .property-card,
    .service-card,
    .testimonial-card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
}

/* Fix hero section on short/wide mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-copy {
        padding-top: 30px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-copy h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-stage-shell {
        min-height: 280px;
    }

    .hero-card-stack {
        height: 240px;
    }
}

/* Very small phones (≤375px) */
@media (max-width: 375px) {
    .hero-slider {
        padding: 60px 10px 28px;
    }

    .hero-copy h1 {
        font-size: clamp(22px, 5.5vw, 28px);
        margin-bottom: 12px;
    }

    .hero-kicker {
        font-size: 8px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }

    .hero-kicker::before {
        width: 7px;
        height: 7px;
    }

    .hero-copy p {
        font-size: 12px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .hero-buttons {
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-buttons .btn {
        width: min(100%, 260px);
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* Very small phones (320px) */
@media (max-width: 360px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }
    
    .hero-content p {
        font-size: 14px;
    }

    .hero-copy p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .about-text h2,
    .locations-section h2,
    .properties-section h2 {
        font-size: 26px;
    }
    
    .chat-popup {
        width: calc(100vw - 20px);
    }
}

/* Foldable phones support */
@media (min-width: 280px) and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .property-card {
        margin: 0 5px 15px;
    }
}

/* Print styles */
@media print {
    .header,
    .hamburger,
    .chat-widget,
    .social-sidebar,
    .footer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .property-card,
    .location-card {
        break-inside: avoid;
    }
}

/* ============================================
   Enhanced Tablet & iPad Compatibility
   ============================================ */

/* iPad Pro 12.9" (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 95%;
        padding: 0 30px;
    }
    
    .navbar {
        padding: 18px 30px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links > li > a {
        font-size: 13px;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-content h1 {
        font-size: 44px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 36px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .services-grid {
        gap: 25px;
    }
    
    .service-card {
        padding: 40px 30px;
    }
    
    .testimonials-slider {
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 35px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

/* iPad Air / iPad 10th Gen / Standard Tablets (768px - 1024px) Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar {
        padding: 15px 25px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        padding: 100px 40px;
        gap: 0;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links > li > a {
        color: var(--primary-color);
        padding: 18px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        max-width: 85%;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: auto;
        padding: 14px 28px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text h2 {
        font-size: 36px;
    }
    
    .about-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .property-card {
        margin-bottom: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .service-card {
        padding: 40px 30px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 40px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .location-card {
        height: 220px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form {
        padding: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .social-sidebar {
        right: 15px;
        gap: 15px;
    }
    
    .social-sidebar a {
        width: 45px;
        height: 45px;
    }
}

/* iPad Landscape (1024px+) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .navbar {
        padding: 15px 40px;
    }
    
    .nav-links {
        display: flex;
        gap: 18px;
    }
    
    .nav-links > li > a {
        font-size: 12px;
        color: var(--text-white);
    }
    
    .hamburger {
        display: none;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 55%;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-buttons .btn {
        width: auto;
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 32px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 30px;
    }
    
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* iPad Mini (744px - 768px) */
@media (min-width: 744px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Samsung Galaxy Tab / Android Tablets (800px - 1280px) */
@media (min-width: 800px) and (max-width: 1280px) {
    .container {
        padding: 0 25px;
    }
    
    .property-card {
        min-height: auto;
    }
    
    .property-image {
        height: 200px;
    }
}

/* ============================================
   Mobile Phone Enhancements
   ============================================ */

/* Large phones (414px - 480px) - iPhone Plus/Max, large Androids */
@media (min-width: 414px) and (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .property-card {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 35px 25px;
    }
}

/* Standard phones (375px - 414px) - iPhone, standard Androids */
@media (min-width: 375px) and (max-width: 414px) {
    .navbar {
        padding: 12px 18px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .about-section,
    .locations-section,
    .properties-section,
    .testimonials-section,
    .services-cards-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .about-text h2,
    .locations-section h2,
    .properties-section h2,
    .testimonials-section h2 {
        font-size: 26px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .footer-column h4 {
        font-size: 16px;
    }
}

/* Small phones (320px - 375px) - iPhone SE, older devices */
@media (min-width: 320px) and (max-width: 375px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .hero {
        min-height: 550px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .about-text h2,
    .locations-section h2,
    .properties-section h2 {
        font-size: 24px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .property-content h3 {
        font-size: 18px;
    }
    
    .property-price {
        font-size: 18px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-content p {
        font-size: 14px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-column ul li {
        font-size: 13px;
    }
}

/* ============================================
   Universal Touch & Interaction Improvements
   ============================================ */

/* Better touch targets (minimum 44px as per Apple HIG) */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-links > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-menu li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .social-sidebar a,
    .chat-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .property-card .btn {
        min-height: 48px;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
    }
}

/* Improved scrolling for all mobile/tablet */
@media (max-width: 1024px) {
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    .properties-grid,
    .services-grid,
    .locations-grid,
    .testimonials-slider {
        scroll-behavior: smooth;
    }
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Better image display on all devices */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* Smooth transitions for responsive changes */
@media (prefers-reduced-motion: no-preference) {
    .hero-content,
    .about-content,
    .properties-grid,
    .services-grid,
    .contact-wrapper {
        transition: all 0.3s ease;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support (optional - follows system preference) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .property-card,
    .service-card,
    .testimonial-card {
        border: 2px solid var(--text-dark);
    }
}

/* ============================================
   Page Header Responsive
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 120px 0 50px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header p {
        font-size: 14px;
        padding: 0 15px;
    }
}

/* ============================================
   Property Filters Responsive
   ============================================ */
@media (max-width: 992px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid .btn {
        width: 100%;
    }
}

/* ============================================
   Blog Article Page - Full Responsive Styles
   ============================================ */

/* Base Blog Layout */
.blog-post-section {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.blog-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.article-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.article-header {
    padding: 30px 40px 20px;
}

.article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--secondary-color);
}

.article-content {
    padding: 0 40px 30px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.article-content p.lead {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 30px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-dark);
    margin: 35px 0 20px;
}

.article-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text-light);
}

.article-content blockquote {
    background: var(--bg-light);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-style: italic;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.article-content blockquote cite {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.article-cta h3 {
    color: #fff !important;
    margin: 0 0 10px !important;
}

.article-cta p {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 20px !important;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags span {
    color: var(--text-light);
    margin-right: 5px;
}

.article-tags a {
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--secondary-color);
    color: #fff;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-share span {
    color: var(--text-light);
}

.article-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: var(--transition);
}

.article-share a:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px 40px;
    margin: 0 40px 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 10px;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--secondary-color);
}

/* Related Posts */
.related-posts {
    padding: 30px 40px;
}

.related-posts h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.related-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.related-content {
    padding: 15px;
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
}

.related-content h4 {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
}

.related-content h4 a {
    color: var(--text-dark);
}

.related-content h4 a:hover {
    color: var(--secondary-color);
}

/* Comments Section */
.comments-section {
    padding: 30px 40px 40px;
    border-top: 1px solid var(--border-color);
}

.comments-section h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.comment {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-header h5 {
    font-size: 15px;
    color: var(--text-dark);
}

.comment-header span {
    font-size: 13px;
    color: var(--text-light);
}

.comment-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.reply-link {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comment-form-wrapper h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.comment-form textarea {
    margin-bottom: 15px;
    resize: vertical;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.sidebar-widget h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 12px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--secondary-color);
}

.recent-posts li {
    margin-bottom: 15px;
}

.recent-posts li a {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-posts .post-image {
    width: 70px;
    height: 55px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-posts h5 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-posts span {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   Blog Article - Tablet Responsive (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .article-header {
        padding: 25px 30px 20px;
    }
    
    .article-header h1 {
        font-size: 26px;
    }
    
    .article-content {
        padding: 0 30px 25px;
    }
    
    .article-content p.lead {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-footer {
        padding: 20px 30px;
    }
    
    .author-box {
        margin: 0 30px 25px;
        padding: 25px 30px;
    }
    
    .related-posts {
        padding: 25px 30px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comments-section {
        padding: 25px 30px 35px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Blog Article - Mobile Responsive (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .blog-post-section {
        padding: 40px 0;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-article {
        border-radius: 0;
        box-shadow: none;
    }
    
    .article-image {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .article-header {
        padding: 20px 20px 15px;
    }
    
    .article-category {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .article-header h1 {
        font-size: 22px;
        line-height: 1.35;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-meta span {
        font-size: 13px;
    }
    
    .article-content {
        padding: 0 20px 25px;
    }
    
    .article-content p {
        font-size: 15px;
    }
    
    .article-content p.lead {
        font-size: 16px;
        padding-left: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 25px 0 15px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 20px;
    }
    
    .article-content blockquote {
        padding: 20px;
        margin: 20px 0;
    }
    
    .article-content blockquote p {
        font-size: 16px;
    }
    
    .article-cta {
        padding: 25px 20px;
        margin: 25px 0;
    }
    
    .article-cta h3 {
        font-size: 18px !important;
    }
    
    .article-cta p {
        font-size: 14px !important;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }
    
    .article-tags {
        width: 100%;
    }
    
    .article-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        margin: 0 20px 25px;
        padding: 25px 20px;
        gap: 15px;
    }
    
    .author-image img {
        width: 80px;
        height: 80px;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .related-posts {
        padding: 25px 20px;
    }
    
    .related-posts h3 {
        font-size: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-card {
        display: flex;
        gap: 15px;
    }
    
    .related-image {
        width: 100px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    
    .related-content {
        padding: 5px 0;
    }
    
    .comments-section {
        padding: 25px 20px 30px;
    }
    
    .comments-section h3 {
        font-size: 20px;
    }
    
    .comment {
        gap: 15px;
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-form input,
    .comment-form textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 14px 16px;
    }
    
    /* Sidebar on mobile */
    .blog-sidebar {
        position: static;
        padding: 0 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 20px;
    }
}

/* ============================================
   Blog Article - Small Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .blog-post-section {
        padding: 30px 0;
    }
    
    .article-header {
        padding: 15px 15px 12px;
    }
    
    .article-header h1 {
        font-size: 20px;
    }
    
    .article-content {
        padding: 0 15px 20px;
    }
    
    .article-content p {
        font-size: 14px;
    }
    
    .article-content p.lead {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .article-content blockquote {
        padding: 15px;
    }
    
    .article-content blockquote p {
        font-size: 14px;
    }
    
    .article-cta {
        padding: 20px 15px;
    }
    
    .article-footer {
        padding: 15px;
    }
    
    .article-tags a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .article-share a {
        width: 32px;
        height: 32px;
    }
    
    .author-box {
        margin: 0 15px 20px;
        padding: 20px 15px;
    }
    
    .author-info h4 {
        font-size: 16px;
    }
    
    .author-info p {
        font-size: 13px;
    }
    
    .related-posts {
        padding: 20px 15px;
    }
    
    .related-image {
        width: 80px;
        height: 65px;
    }
    
    .related-content h4 {
        font-size: 13px;
    }
    
    .comments-section {
        padding: 20px 15px 25px;
    }
    
    .comment {
        gap: 12px;
    }
    
    .comment-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .comment-content p {
        font-size: 13px;
    }
    
    .blog-sidebar {
        padding: 0 15px;
    }
    
    .sidebar-widget {
        padding: 18px;
    }
    
    .sidebar-widget h4 {
        font-size: 16px;
    }
    
    .recent-posts .post-image {
        width: 60px;
        height: 45px;
    }
    
    .recent-posts h5 {
        font-size: 13px;
    }
}

/* ============================================
   Blog Article - Very Small Phones (max 360px)
   ============================================ */
@media (max-width: 360px) {
    .article-header h1 {
        font-size: 18px;
    }
    
    .article-content p {
        font-size: 13px;
    }
    
    .article-content h2 {
        font-size: 16px;
    }
    
    .article-cta h3 {
        font-size: 16px !important;
    }
    
    .related-card {
        flex-direction: column;
    }
    
    .related-image {
        width: 100%;
        height: 120px;
    }
    
    .comment-avatar {
        display: none;
    }
}

/* ============================================
   Global Responsive Consistency (All Pages)
   ============================================ */
@media (max-width: 1366px) {
    .container {
        max-width: 1140px;
    }

    .navbar {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar {
        padding: 14px 20px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 28px;
    }

    .footer-newsletter-form {
        max-width: 420px;
    }

    .about-content,
    .contact-wrapper,
    .property-details,
    .team-grid,
    .services-grid,
    .stats-grid {
        gap: 24px;
    }

    h1 {
        font-size: clamp(30px, 4.6vw, 44px);
    }

    h2 {
        font-size: clamp(26px, 4vw, 36px);
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    section,
    .about-section,
    .locations-section,
    .properties-section,
    .testimonials-section,
    .services-cards-section,
    .contact-section,
    .blog-section,
    .community-section,
    .cta-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .about-content,
    .contact-wrapper,
    .property-details,
    .services-grid,
    .testimonials-slider,
    .footer-grid,
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .properties-grid,
    .agents-grid,
    .communities-grid,
    .stats-grid,
    .filters-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding-top: 116px;
        padding-bottom: 56px;
    }

    .page-header h1 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .page-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn,
    .btn-primary,
    .btn-outline,
    .btn-dark {
        width: 100%;
        max-width: 360px;
        text-align: center;
    }

    .footer-newsletter-form {
        width: 100%;
        max-width: none;
    }

    .footer-newsletter-form input {
        min-height: 46px;
        font-size: 16px;
    }

    .footer-newsletter-form button {
        min-height: 46px;
        padding-left: 14px;
        padding-right: 14px;
        font-size: 14px;
    }

    .footer-social {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .table-wrap,
    .table-responsive,
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    iframe,
    video,
    .map,
    .map iframe {
        width: 100%;
        max-width: 100%;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 12px 14px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .nav-links {
        width: min(100vw, 320px);
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .footer-newsletter-form input,
    .footer-newsletter-form button {
        width: 100%;
        border-radius: 6px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-newsletter-form button {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .footer-bottom {
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .btn,
    .btn-primary,
    .btn-outline,
    .btn-dark {
        max-width: none;
        padding: 11px 16px;
        font-size: 13px;
    }

    .footer-brand h3 {
        font-size: 17px !important;
    }

    .footer-tagline {
        font-size: 10px !important;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

