/* ============================================================
   MY BATTICALOA - MAIN STYLE SHEET
   Version: 3.0 - Dark Blue Theme (#031f57)
   ============================================================ */

/* ============================================================
   1. GLOBAL RESET & VARIABLES
   ============================================================ */
:root {
    --primary: #031f57;
    --primary-light: #0a3a7a;
    --primary-dark: #021540;
    --secondary: #1a4f8a;
    --secondary-light: #2a6aaa;
    --secondary-dark: #0d3a6a;
    --gold: #FFC107;
    --gold-light: #FFD54F;
    --gold-dark: #E6A800;
    --cream: #F0F4FA;
    --dark: #0a1628;
    --text: #1a2a3a;
    --text-light: #5a7a8a;
    --white: #ffffff;
    --gray-light: #9CA3AF;
    --gray-medium: #6B7280;
    --gray-dark: #4B5563;
    --shadow-sm: 0 4px 20px rgba(3, 31, 87, 0.08);
    --shadow-md: 0 12px 40px rgba(3, 31, 87, 0.12);
    --shadow-lg: 0 24px 60px rgba(3, 31, 87, 0.16);
    --shadow-xl: 0 40px 80px rgba(3, 31, 87, 0.2);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */
body, html, *:not(i):not(.bi):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: var(--font-primary) !important;
}

i, .bi, .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'bootstrap-icons', var(--font-primary) !important;
}

h1, h2, h3, h4, .playfair, .hero-title, .section-header h2, 
.about-section .title, .about-section-2 .title, 
.private-hideout .hideout-title, .listing-title, 
.land-title, .property-card .body .title,
.modal-title, .contact-form-card .form-title, 
.stat-card .number, .pane-title, .callout-title,
.east-coast-callout .callout-title, .navbar-brand {
    font-family: var(--font-heading) !important;
    font-weight: 700;
}

h5, h6, .h5, .h6, .stat-label, .section-title, 
.feature-card-mini h6, .why-card h5, .contact-info-card h5, 
.quick-link-card h6, .historical-card .historical-content h5 {
    font-family: var(--font-primary) !important;
    font-weight: 600;
}

p, .description, .text-muted, .hero-subtitle, .hero-text,
.about-section .description, .about-section-2 .description,
.testimonial-card .text, .footer, .currency-note {
    font-family: var(--font-primary) !important;
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-secondary { color: var(--secondary); }
.text-primary { color: var(--primary); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-primary-dark { background: var(--primary-dark); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-custom { border-radius: var(--border-radius); }

.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(3, 31, 87, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.6s;
}

.btn-primary-custom:hover::before { left: 100%; }
.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(3, 31, 87, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--primary-dark) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-secondary-custom::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
    transition: 0.6s !important;
}

.btn-secondary-custom:hover::before { left: 100% !important; }
.btn-secondary-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 35px rgba(255, 193, 7, 0.4) !important;
    color: var(--primary-dark) !important;
}

.btn-outline-primary-custom {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 0.7rem 2.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-primary-custom:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 193, 7, 0.25);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.3);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.4);
    color: var(--primary-dark);
}

.btn-buy {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--primary-dark) !important;
    border: none;
    padding: 0.5rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    color: var(--primary-dark);
}

.btn-lease {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold) !important;
    padding: 0.5rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-lease:hover {
    background: var(--gold) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--primary-dark) !important;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    width: 100%;
    margin-top: 6px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    color: var(--primary-dark);
}

.btn-hero {
    background: linear-gradient(135deg, #FFC107, #E6A800) !important;
    color: #021540 !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3) !important;
}

.btn-haven {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-haven:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,71,161,0.3);
    color: white;
}

.btn-outline-haven {
    background: transparent;
    color: #0D47A1;
    border: 2px solid #0D47A1;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline-haven:hover {
    background: #0D47A1;
    color: white;
    border-color: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13,71,161,0.25);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 90vh;
    padding: 0.5em 0 2rem;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 4.5rem;
}

.hero-section .hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-section .hero-bg-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-section .hero-bg-slider .slide.active { opacity: 1; }

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 31, 87, 0.85), rgba(2, 21, 64, 0.75), rgba(10, 58, 122, 0.60));
    z-index: 1;
    backdrop-filter: saturate(1.05);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding-left: 4rem;
    padding-right: 3rem;
}

.hero-section .hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, var(--secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-section .hero-blob-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blobFloat 20s ease-in-out infinite;
    z-index: 1;
}

.hero-section .hero-blob-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 31, 87, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blobFloat 25s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-badge {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: white;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .gold-text { 
    color: var(--gold) !important; 
    -webkit-text-fill-color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 100px;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.hero-stat .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-brand-fullwidth {
    width: 100%;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 5.5rem;
    position: relative;
    z-index: 2;
}

.hero-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-brand-logo {
    height: 65px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.hero-brand-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
}

/* ============================================================
   6. SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(3, 31, 87, 0.08);
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 10px rgba(3,31,87,0.05);
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
}

.section-header h2 .gold-text { color: var(--gold); }

.section-header p {
    color: var(--text-light);
    max-width: 550px;
    margin: 0.5rem auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================================
   7. ABOUT SECTION
   ============================================================ */
.about-section, .about-section-2 {
    padding: 80px 0;
    position: relative;
}

.about-section { background: var(--cream); }
.about-section-2 { background: white; }

.about-section .pre-title,
.about-section-2 .pre-title {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(3, 31, 87, 0.08);
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    margin-bottom: 0.75rem;
}

.about-section .title,
.about-section-2 .title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1.1;
}

.about-section .description,
.about-section-2 .description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-bg-deco {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,193,7,0.03), transparent 70%);
    border-radius: 50%;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fc, #ffffff);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-card.gold { border-left: 5px solid var(--gold); }
.feature-card.blue { border-left: 5px solid #0D47A1; }
.feature-card.green { border-left: 5px solid #2E7D32; }

.feature-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card.gold .feature-card-icon {
    background: rgba(255,193,7,0.12);
    color: var(--gold);
}

.feature-card.blue .feature-card-icon {
    background: rgba(13,71,161,0.10);
    color: #0D47A1;
}

.feature-card.green .feature-card-icon {
    background: rgba(46,125,50,0.10);
    color: #2E7D32;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.about-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.about-thumbnail-wrapper {
    position: relative;
}

.about-thumbnail-wrapper .main-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-thumbnail-wrapper .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-thumbnail-wrapper .small-image {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
    width: 180px;
    height: 180px;
}

.about-thumbnail-wrapper .small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: 20px;
    right: -15px;
    background: var(--gold);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255,193,7,0.25);
    text-align: center;
    height: 70px; 
    width:170px;
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.7rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   8. ESTATES SECTION (SANCTUARY & HAVEN)
   ============================================================ */
.estates-section {
    background: var(--cream);
    padding: 60px 0;
}

.estate-card {
    display: flex;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.estate-card:last-child {
    margin-bottom: 0;
}

.estate-image {
    flex: 0 0 50%;
    position: relative;
    min-height: 400px;
}

.estate-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}

.estate-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3,31,87,0.3), rgba(2,21,64,0.5));
}

.estate-overlay-blue {
    background: linear-gradient(135deg, rgba(13,71,161,0.3), rgba(2,21,64,0.5));
}

.estate-logo-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.estate-logo-overlay img {
    height: 50px;
    width: auto;
}

.estate-logo-right {
    left: auto;
    right: 30px;
}

.estate-badge-top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255,193,7,0.92);
    color: var(--primary-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(255,193,7,0.2);
}

.estate-badge-top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(13,71,161,0.92);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(13,71,161,0.2);
}

.estate-count {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.estate-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estate-content {
    flex: 1;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.estate-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    width: fit-content;
}

.estate-tag.gold {
    background: rgba(255,193,7,0.10);
    color: var(--gold);
}

.estate-tag.blue {
    background: rgba(13,71,161,0.10);
    color: #0D47A1;
}

.estate-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blue-text { color: #0D47A1; }

.estate-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.estate-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.estate-meta span i { color: var(--gold); }
.estate-meta span strong { color: var(--primary); }

.estate-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.estate-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
/* ============================================================
   ESTATE LOGO & BADGE STYLES - FULLY RESPONSIVE
   ============================================================ */

/* Logo Overlay - Desktop */
.estate-logo-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
}

.estate-logo-overlay img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 180px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.estate-logo-right {
    left: auto;
    right: 30px;
}

/* Badge Top Right - Desktop (Sanctuary) */
.estate-badge-top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 193, 7, 0.92);
    color: var(--primary-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.2);
    z-index: 5;
    min-width: 110px;
}

/* Badge Top Left - Desktop (Haven - Mirrored) */
.estate-badge-top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(13, 71, 161, 0.92);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(13, 71, 161, 0.2);
    z-index: 5;
    min-width: 110px;
}

/* Count Number */
.estate-count {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

/* Label Text */
.estate-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

/* ============================================================
   RESPONSIVE - ESTATE BADGES & LOGOS
   ============================================================ */

/* Tablet */
@media (max-width: 992px) {
    .estate-logo-overlay img {
        height: 40px;
        max-width: 150px;
    }
    
    .estate-logo-overlay {
        bottom: 25px;
        left: 25px;
    }
    
    .estate-logo-right {
        left: auto;
        right: 25px;
    }
    
    .estate-badge-top-right,
    .estate-badge-top-left {
        top: 25px;
        padding: 0.6rem 1.2rem;
        border-radius: 14px;
        min-width: 90px;
    }
    
    .estate-badge-top-right {
        right: 25px;
        
    }
    
    .estate-badge-top-left {
        left: 25px;
    }
    
    .estate-count {
        font-size: 1.6rem;
    }
    
    .estate-label {
        font-size: 0.55rem;
    }
}

/* Mobile Landscape & Tablet */
@media (max-width: 768px) {
    /* Logo */
    .estate-logo-overlay {
        bottom: 20px;
        left: 20px;
    }
    
    .estate-logo-overlay img {
        height: 35px;
        max-width: 130px;
    }
    
    .estate-logo-right {
        left: auto;
        right: 20px;
    }
    
    /* Badges - Move to bottom corners on mobile */
    .estate-badge-top-right,
    .estate-badge-top-left {
        top: auto;
        bottom: 80px;
        padding: 0.5rem 1rem;
        border-radius: 12px;
        min-width: 80px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        margin-bottom: 55px;
    }
    
    .estate-badge-top-right {
        right: 20px;
        background: rgba(255, 193, 7, 0.92);
    }
    
    .estate-badge-top-left {
        left: 20px;
        background: rgba(13, 71, 161, 0.92);
    }
    
    .estate-count {
        font-size: 1.3rem;
    }
    
    .estate-label {
        font-size: 0.5rem;
        letter-spacing: 0.3px;
    }
    
    /* Adjust image overlay gradient to show badges clearly */
    .estate-image-overlay {
        background: linear-gradient(0deg, rgba(3,31,87,0.6) 0%, rgba(3,31,87,0.2) 50%, rgba(3,31,87,0.1) 100%);
    }
    
    .estate-overlay-blue {
        background: linear-gradient(0deg, rgba(13,71,161,0.6) 0%, rgba(13,71,161,0.2) 50%, rgba(13,71,161,0.1) 100%);
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .estate-logo-overlay {
        bottom: 15px;
        left: 15px;
    }
    
    .estate-logo-overlay img {
        height: 28px;
        max-width: 100px;
    }
    
    .estate-logo-right {
        left: auto;
        right: 15px;
    }
    
    .estate-badge-top-right,
    .estate-badge-top-left {
        bottom: 65px;
        padding: 0.4rem 0.8rem;
        border-radius: 10px;
        min-width: 65px;
        margin-bottom: 55px;
    }
    
    .estate-badge-top-right {
        right: 15px;
    }
    
    .estate-badge-top-left {
        left: 15px;
    }
    
    .estate-count {
        font-size: 1.1rem;
    }
    
    .estate-label {
        font-size: 0.4rem;
        letter-spacing: 0.2px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .estate-logo-overlay {
        bottom: 12px;
        left: 12px;
    }
    
    .estate-logo-overlay img {
        height: 24px;
        max-width: 80px;
    }
    
    .estate-logo-right {
        left: auto;
        right: 12px;
    }
    
    .estate-badge-top-right,
    .estate-badge-top-left {
        bottom: 52px;
        padding: 0.3rem 0.6rem;
        border-radius: 8px;
        min-width: 55px;
        margin-bottom: 55px;
    }
    
    .estate-badge-top-right {
        right: 12px;
    }
    
    .estate-badge-top-left {
        left: 12px;
    }
    
    .estate-count {
        font-size: 0.9rem;
    }
    
    .estate-label {
        font-size: 0.35rem;
        letter-spacing: 0.1px;
    }
}

/* ============================================================
   LANDSCAPE MODE
   ============================================================ */
@media (max-height: 700px) and (max-width: 768px) {
    .estate-logo-overlay {
        bottom: 12px;
        left: 15px;
    }
    
    .estate-logo-overlay img {
        height: 25px;
        max-width: 90px;
    }
    
    .estate-logo-right {
        left: auto;
        right: 15px;
    }
    
    .estate-badge-top-right,
    .estate-badge-top-left {
        bottom: 50px;
        padding: 0.3rem 0.7rem;
        border-radius: 8px;
        min-width: 60px;
    }
    
    .estate-badge-top-right {
        right: 15px;
    }
    
    .estate-badge-top-left {
        left: 15px;
    }
    
    .estate-count {
        font-size: 1rem;
    }
    
    .estate-label {
        font-size: 0.4rem;
    }
}
/* ============================================================
   9. HISTORICAL CARDS
   ============================================================ */
.historical-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(3, 31, 87, 0.06);
    height: 100%;
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.historical-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.historical-card .historical-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #E8F0FE, #D6E4F8);
}

.historical-card .historical-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.historical-card:hover .historical-image-wrapper img {
    transform: scale(1.08);
}

.historical-card .historical-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 193, 7, 0.9);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.historical-card .historical-content {
    padding: 1.2rem 1.5rem 1.5rem;
}

.historical-card .historical-content h5 {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.historical-card .historical-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.historical-card .historical-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(3, 31, 87, 0.06);
}

.historical-card .historical-meta span {
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.historical-card .historical-meta span i {
    color: var(--gold);
}

.historical-card::after {
    content: 'Click to learn more';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(3, 31, 87, 0.9);
    color: white;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.historical-card:hover::after {
    transform: translateY(0);
}

/* ============================================================
   10. ESTATE LOGO STYLES
   ============================================================ */
.estate-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.estate-logo-wrapper img {
    height: 70px;
    width: auto;
    object-fit: contain;
    max-width: 220px;
}

.estate-logo-wrapper .estate-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.2;
}

.estate-logo-wrapper .estate-name .gold-text {
    color: var(--gold);
}

.estate-logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.estate-logo-large img {
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 280px;
}

.estate-logo-large .estate-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.estate-logo-large .estate-name .gold-text {
    color: var(--gold);
}

.estate-card-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.estate-card-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 160px;
}

.estate-card-logo .estate-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
}

.estate-card-logo .estate-name .gold-text {
    color: var(--gold);
}

.estate-logo-dark {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.estate-logo-dark img {
    height: 55px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
    filter: brightness(0) invert(1);
}

.estate-logo-dark .estate-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
    line-height: 1.2;
}

.estate-logo-dark .estate-name .gold-text {
    color: var(--gold);
}

.estate-overlay-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.5rem;
}

.estate-overlay-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 130px;
}

.estate-overlay-logo .estate-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.2;
}

.estate-overlay-logo .estate-sub {
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   11. WHY CARDS
   ============================================================ */
.why-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(3, 31, 87, 0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: var(--transition);
}

.why-card:hover::before { opacity: 1; }

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.why-card .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(3, 31, 87, 0.06), rgba(26, 79, 138, 0.06));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: var(--secondary);
    transition: var(--transition);
}

.why-card:hover .icon {
    transform: scale(1.05) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.why-card h5 {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(3, 31, 87, 0.06);
    height: 100%;
    transition: var(--transition);
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(3, 31, 87, 0.12);
}

.testimonial-card .quote {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card .text {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
    font-style: italic;
}

.testimonial-card .client {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(3, 31, 87, 0.06);
}

.testimonial-card .client .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-card .client .name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.testimonial-card .client .role {
    font-size: 0.8rem;
    color: var(--text-light);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================================================
   13. CONTACT SECTION
   ============================================================ */
.contact-info-card {
    background: var(--primary);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(3, 31, 87, 0.2);
}

.contact-info-card .contact-info-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.contact-info-card .contact-info-header i {
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-info-card .contact-info-header img {
    max-height: 80px;
    width: auto;
    margin-bottom: 0.5rem;
}

.contact-info-card .contact-info-header h5 {
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-size: 1.2rem;
}

.contact-info-card .contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-card .info-item .info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-info-card .info-item:hover .info-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #FFFFFF;
}

.contact-info-card .info-item .info-content .info-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.contact-info-card .info-item .info-content .info-value {
    display: block;
    font-size: 0.95rem;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.5;
}

.contact-info-card .contact-info-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info-card .contact-info-footer a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.contact-info-card .contact-info-footer a:hover {
    background: rgba(255, 193, 7, 0.15);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-form-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(3, 31, 87, 0.06);
    height: 100%;
    transition: var(--transition);
}

.contact-form-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-form-card .form-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-form-card .form-title i {
    color: var(--gold);
    margin-right: 10px;
}

.contact-form-card .form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.contact-form-card .form-group.full-name { grid-column: 1 / -1; }
.contact-form-card .form-group.full-width { grid-column: 1 / -1; }
.contact-form-card .form-row-grid.single { grid-template-columns: 1fr 1fr; }

.contact-form-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(3, 31, 87, 0.08);
    transition: var(--transition);
    font-size: 0.9rem;
    background: #FFFFFF;
    color: var(--text);
    width: 100%;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(3, 31, 87, 0.08);
    outline: none;
}

.contact-form-card .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A7A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
}

.contact-form-card textarea.form-control {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
}

.contact-form-card .btn-secondary-custom {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--primary-dark) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.8rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25) !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100%;
    margin-top: 6px;
    cursor: pointer !important;
}

.contact-form-card .btn-secondary-custom::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
    transition: 0.6s !important;
}

.contact-form-card .btn-secondary-custom:hover::before {
    left: 100% !important;
}

.contact-form-card .btn-secondary-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 35px rgba(255, 193, 7, 0.35) !important;
    color: var(--primary-dark) !important;
}

.contact-simple-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(3, 31, 87, 0.04);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.contact-simple-note i { color: var(--gold); font-size: 1rem; }

/* ============================================================
   14. CONTACT TABLE STYLES
   ============================================================ */
.contact-table-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(3, 31, 87, 0.06);
}

.contact-table-wrapper .table-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-table-wrapper .table-title i {
    color: var(--gold);
    margin-right: 10px;
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
}

.contact-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(3, 31, 87, 0.04);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(3, 31, 87, 0.08);
}

.contact-table td {
    padding: 14px 16px;
    color: var(--text);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(3, 31, 87, 0.06);
    vertical-align: middle;
}

.contact-table tr:hover td {
    background: rgba(255, 193, 7, 0.03);
}

.contact-table tr:last-child td {
    border-bottom: none;
}

.contact-table .label-cell {
    font-weight: 600;
    color: var(--primary);
    width: 180px;
}

.contact-table .value-cell {
    color: var(--text-light);
}

.contact-table .value-cell a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-table .value-cell a:hover {
    color: var(--gold);
}

.contact-table .icon-cell {
    width: 45px;
    text-align: center;
    color: var(--gold);
    font-size: 1.2rem;
}

/* ============================================================
   15. GALLERY SECTION
   ============================================================ */
.gallery-scroll-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.gallery-scroll-wrapper::before,
.gallery-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.gallery-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.gallery-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 20px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: rgba(3, 31, 87, 0.06);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.gallery-item {
    flex: 0 0 280px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    background: white;
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.2rem 1rem;
    background: linear-gradient(0deg, rgba(3, 31, 87, 0.85), rgba(3, 31, 87, 0.3) 50%, transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .overlay h6 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item .overlay p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-item .click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(3, 31, 87, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 5;
}

.gallery-item:hover .click-hint {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   16. GALLERY LIGHTBOX
   ============================================================ */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 31, 87, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gallery-lightbox.active {
    display: flex;
    animation: lightboxFade 0.4s ease;
}

@keyframes lightboxFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-lightbox .close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-lightbox .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.gallery-lightbox .lightbox-content {
    max-width: 950px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox .lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: imageZoom 0.4s ease;
}

@keyframes imageZoom {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-lightbox .lightbox-content .caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
    width: 100%;
}

.gallery-lightbox .lightbox-content .caption h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox .lightbox-content .caption p {
    opacity: 0.8;
    font-size: 1rem;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-lightbox .lightbox-content .counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 10px;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.gallery-lightbox .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.gallery-lightbox .nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.gallery-lightbox .nav-btn.prev { left: 25px; }
.gallery-lightbox .nav-btn.next { right: 25px; }

/* ============================================================
   17. PRIVATE HIDEOUT
   ============================================================ */
.private-hideout {
    padding: 120px 0;
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.private-hideout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(3, 31, 87, 0.85), rgba(2, 21, 64, 0.80), rgba(10, 58, 122, 0.70));
    z-index: 0;
}

.private-hideout .hideout-wrapper {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.private-hideout .hideout-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    background: rgba(255, 193, 7, 0.12);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 193, 7, 0.15);
    margin-bottom: 1rem;
}

.private-hideout .hideout-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.private-hideout .hideout-title .gold-text { color: var(--gold); }

.private-hideout .hideout-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 0.8rem;
}

.private-hideout .hideout-text:last-of-type { margin-bottom: 2rem; }

.private-hideout .hideout-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.private-hideout .hideout-actions .btn-outline-primary-custom {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.private-hideout .hideout-actions .btn-outline-primary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.private-hideout .hideout-features {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.private-hideout .feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.private-hideout .feature-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.private-hideout .feature-pill i {
    color: var(--gold);
    font-size: 1rem;
}

/* ============================================================
   18. MODAL
   ============================================================ */
.modal-content {
    background: var(--primary);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFFFFF;
}

.modal-header .modal-title i {
    color: var(--gold);
    margin-right: 10px;
}

.modal-header .btn-close {
    background: none;
    font-size: 1.5rem;
    color: #fff;
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-header .btn-close i {
    color: #fff;
}

.modal-body {
    padding: 1.5rem 2rem 1rem;
}

.modal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    display: block;
}

.modal-form .form-label i {
    color: var(--gold);
    margin-right: 6px;
}

.modal-form .form-select {
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
}

.modal-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.modal-form .form-select option {
    background: var(--primary);
    color: #FFFFFF;
    padding: 10px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 2rem 1.5rem;
    gap: 12px;
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   19. ALERT MESSAGES
   ============================================================ */
.alert-success {
    background: rgba(255, 193, 7, 0.06);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--primary-dark);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 6px solid var(--primary);
}

.alert-success i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.alert-success h5 {
    font-weight: 700;
    color: var(--primary);
}

.alert-success p {
    color: var(--text-light);
    margin-bottom: 0;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.06);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #C62828;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 6px solid #dc3545;
}

.alert-danger i {
    font-size: 2rem;
    color: #dc3545;
    display: block;
    margin-bottom: 0.5rem;
}

.alert-danger h5 {
    font-weight: 700;
    color: #dc3545;
}

.alert-danger p {
    color: #721c24;
}

/* ============================================================
   20. MAP SECTION
   ============================================================ */
.map-section {
    padding: 60px 0;
    background: var(--cream);
}

.map-wrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(3, 31, 87, 0.06);
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    border: 1px solid rgba(3, 31, 87, 0.05);
    transition: var(--transition);
}

.map-overlay:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.98);
}

.map-overlay i {
    color: var(--gold);
    font-size: 1.2rem;
}

.map-overlay span {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ============================================================
   21. RESPONSIVE - MEDIA QUERIES
   ============================================================ */

/* Tablet & Small Laptop */
@media (max-width: 992px) {
    .contact-form-card { padding: 1.8rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.05rem; max-width: 80%; }
    .hero-section .container { padding-left: 2rem; padding-right: 2rem; }
    
    .estate-logo-wrapper img { height: 55px; max-width: 160px; }
    .estate-logo-wrapper .estate-name { font-size: 1.8rem; }
    .estate-logo-large img { height: 65px; max-width: 220px; }
    .estate-logo-large .estate-name { font-size: 2.2rem; }
    .estate-card-logo img { height: 40px; max-width: 130px; }
    .estate-card-logo .estate-name { font-size: 1.3rem; }
    .estate-logo-dark img { height: 45px; max-width: 150px; }
    .estate-logo-dark .estate-name { font-size: 1.5rem; }
    
    .estate-card {
        flex-direction: column;
    }
    .estate-image {
        flex: unset;
        min-height: 300px;
    }
    .estate-content {
        padding: 2rem;
    }
    .estate-title {
        font-size: 2rem;
    }
    .estate-badge .count {
        font-size: 1.6rem;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section { padding: 9rem 0 2rem; min-height: auto; }
    .hero-section .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1rem; max-width: 90%; }
    .hero-stat { min-width: 80px; padding: 0.4rem 0.8rem; }
    .hero-stat .number { font-size: 1.6rem; }
    .hero-brand-logo { height: 50px; }
    
    .section-header h2 { font-size: 2.2rem; margin-bottom: 3.5rem; }
    .section-header p { font-size: 0.95rem; margin-bottom: 3.5rem; }
    
    .contact-info-card { padding: 1.5rem; }
    .contact-form-card { padding: 1.5rem; }
    .contact-form-card .form-row-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-table-wrapper { padding: 1.2rem; }
    .contact-table .label-cell { width: 120px; }
    
    .private-hideout { padding: 60px 0; }
    .private-hideout .hideout-title { font-size: 2.5rem; }
    .private-hideout .hideout-text { font-size: 1rem; }
    .private-hideout .hideout-actions { flex-direction: column; align-items: center; gap: 12px; }
    .private-hideout .hideout-features { flex-direction: column; align-items: center; gap: 8px; }
    .private-hideout .feature-pill { width: 100%; max-width: 280px; justify-content: center; }
    
    .gallery-lightbox .nav-btn { width: 40px; height: 40px; font-size: 1rem; }
    .gallery-lightbox .nav-btn.prev { left: 10px; }
    .gallery-lightbox .nav-btn.next { right: 10px; }
    .gallery-lightbox .close-btn { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.8rem; }
    .gallery-item { flex: 0 0 200px; }
    .gallery-item img { height: 150px; }
    .gallery-lightbox .lightbox-content img { max-height: 50vh; }
    
    .historical-card .historical-image-wrapper { height: 180px; }
    
    .about-thumbnail-wrapper .small-image { width: 100px; height: 100px; bottom: -15px; right: -15px; }
    .about-thumbnail-wrapper .experience-badge { bottom: 20px; left: -10px; padding: 1rem 1.5rem; }
    .about-thumbnail-wrapper .experience-badge .number { font-size: 1.8rem; }
    
    .estate-logo-wrapper { flex-direction: row; align-items: center; gap: 0.8rem; }
    .estate-logo-wrapper img { height: 45px; max-width: 140px; }
    .estate-logo-wrapper .estate-name { font-size: 1.3rem; }
    .estate-logo-large { flex-direction: row; align-items: center; }
    .estate-logo-large img { height: 50px; max-width: 170px; }
    .estate-logo-large .estate-name { font-size: 1.8rem; }
    .estate-card-logo img { height: 35px; max-width: 110px; }
    .estate-card-logo .estate-name { font-size: 1.1rem; }
    .estate-logo-dark { flex-direction: row; align-items: center; gap: 0.8rem; }
    .estate-logo-dark img { height: 40px; max-width: 130px; }
    .estate-logo-dark .estate-name { font-size: 1.3rem; }
    .estate-overlay-logo { padding: 0.4rem 1rem; gap: 8px; }
    .estate-overlay-logo img { height: 35px; max-width: 110px; }
    .estate-overlay-logo .estate-name { font-size: 0.9rem; }
    
    .estate-card {
        border-radius: 16px;
        margin-bottom: 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    }
    .estate-image {
        min-height: 250px;
        order: -1;
    }
    .estate-content {
        padding: 1.5rem 1.5rem 2rem;
        order: 0;
    }
    .estate-title {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    .estate-tag {
        font-size: 0.6rem;
        padding: 0.25rem 1rem;
        margin-bottom: 0.8rem;
    }
    .estate-meta {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    .estate-meta span {
        font-size: 0.75rem;
    }
    .estate-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.7;
    }
    .estate-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    .estate-actions .btn {
        justify-content: center;
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
    .estate-actions .btn-gold { padding: 0.7rem 1.5rem; }
    .estate-actions .btn-outline-primary-custom { padding: 0.7rem 1.5rem; }
    .estate-actions .btn-haven { padding: 0.7rem 1.5rem; justify-content: center; width: 100%; font-size: 0.85rem; }
    .estate-actions .btn-outline-haven { padding: 0.7rem 1.5rem; justify-content: center; width: 100%; font-size: 0.85rem; }
    
    .estate-logo { bottom: 15px; left: 15px; }
    .estate-logo img { height: 35px; }
    .estate-logo-right { left: auto; right: 15px; }
    
    .estate-badge { top: 15px; padding: 0.5rem 1rem; border-radius: 12px; }
    .estate-badge-right { right: 15px; }
    .estate-badge-left { left: 15px; }
    .estate-badge .count { font-size: 1.3rem; }
    .estate-badge .label { font-size: 0.5rem; letter-spacing: 0.3px; }
    
    .estate-image .overlay { background: linear-gradient(135deg, rgba(3,31,87,0.4), rgba(2,21,64,0.6)); }
    .estate-image .overlay-blue { background: linear-gradient(135deg, rgba(13,71,161,0.4), rgba(2,21,64,0.6)); }
    
    .experience-badge {
        top: 10px;
        right: -5px;
        padding: 0.8rem 1rem;
    }
    .experience-badge .number {
        font-size: 1.4rem;
    }
    .feature-card {
        padding: 1rem 1.2rem;
    }
    
    .map-wrapper iframe {
        height: 280px;
    }
    .map-overlay {
        padding: 0.5rem 1.2rem;
        gap: 8px;
        bottom: 15px;
    }
    .map-overlay span {
        font-size: 0.7rem;
    }
    .map-overlay i {
        font-size: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-section { padding: 8rem 0 1.5rem; }
    .hero-section .container { padding-left: 1rem; padding-right: 1rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.95rem; max-width: 100%; }
    .hero-stats { gap: 0.6rem; }
    .hero-stat { min-width: 70px; padding: 0.3rem 0.6rem; }
    .hero-stat .number { font-size: 1.3rem; }
    .hero-stat .label { font-size: 0.6rem; }
    .hero-brand-logo { height: 40px; }
    
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 0.9rem; margin-bottom: 3.5rem; }
    
    .contact-info-card { padding: 1.2rem; }
    .contact-form-card { padding: 1.2rem; }
    .contact-table-wrapper { padding: 1rem; overflow-x: auto; }
    .contact-table .label-cell { width: 100px; }
    .contact-table td, .contact-table th { padding: 10px 12px; font-size: 0.85rem; }
    
    .private-hideout .hideout-title { font-size: 2rem; }
    .private-hideout .hideout-subtitle { font-size: 0.65rem; padding: 0.3rem 1rem; }
    .private-hideout .hideout-text { font-size: 0.9rem; }
    
    .gallery-item { flex: 0 0 160px; }
    .gallery-item img { height: 120px; }
    
    .historical-card .historical-image-wrapper { height: 150px; }
    
    .about-thumbnail-wrapper .small-image { width: 80px; height: 80px; bottom: -10px; right: -10px; }
    .about-thumbnail-wrapper .experience-badge { bottom: 10px; left: -5px; padding: 0.8rem 1rem; }
    .about-thumbnail-wrapper .experience-badge .number { font-size: 1.4rem; }
    
    .estate-logo-wrapper img { height: 38px; max-width: 110px; }
    .estate-logo-wrapper .estate-name { font-size: 1.2rem; }
    .estate-logo-large img { height: 40px; max-width: 140px; }
    .estate-logo-large .estate-name { font-size: 1.4rem; }
    .estate-card-logo img { height: 30px; max-width: 90px; }
    .estate-card-logo .estate-name { font-size: 0.95rem; }
    .estate-logo-dark img { height: 32px; max-width: 100px; }
    .estate-logo-dark .estate-name { font-size: 1.1rem; }
    
    .estate-image { min-height: 200px; }
    .estate-content { padding: 1.2rem 1.2rem 1.8rem; }
    .estate-title { font-size: 1.3rem; }
    .estate-tag { font-size: 0.55rem; padding: 0.2rem 0.8rem; margin-bottom: 0.6rem; }
    .estate-meta { gap: 0.6rem; margin-bottom: 0.8rem; flex-direction: column; }
    .estate-meta span { font-size: 0.7rem; }
    .estate-description { font-size: 0.8rem; margin-bottom: 1rem; line-height: 1.6; }
    .estate-actions { gap: 0.6rem; }
    .estate-actions .btn { font-size: 0.75rem; padding: 0.6rem 1.2rem; }
    .estate-actions .btn-gold { padding: 0.6rem 1.2rem; }
    .estate-actions .btn-outline-primary-custom { padding: 0.6rem 1.2rem; }
    .estate-actions .btn-haven { font-size: 0.75rem; padding: 0.6rem 1.2rem; }
    .estate-actions .btn-outline-haven { font-size: 0.75rem; padding: 0.6rem 1.2rem; }
    
    .estate-logo { bottom: 12px; left: 12px; }
    .estate-logo img { height: 28px; }
    .estate-logo-right { left: auto; right: 12px; }
    
    .estate-badge { top: 12px; padding: 0.4rem 0.8rem; border-radius: 10px; }
    .estate-badge-right { right: 12px; }
    .estate-badge-left { left: 12px; }
    .estate-badge .count { font-size: 1.1rem; }
    .estate-badge .label { font-size: 0.45rem; letter-spacing: 0.2px; }
    
    .map-wrapper iframe { height: 220px; }
    .map-overlay { padding: 0.4rem 1rem; gap: 6px; bottom: 10px; border-radius: 30px; }
    .map-overlay span { font-size: 0.6rem; }
    .map-overlay i { font-size: 0.8rem; }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .hero-brand-fullwidth { margin-top: 5.5rem !important; }
    .hero-brand-logo { height: 30px !important; }
    .hero-brand-wrapper { padding: 0.15rem 0 !important; }
    .hero-section { padding: 0.2rem 0 0.8rem !important; }
    .hero-title { font-size: 1.6rem; }
    .hero-title .highlight,
    .hero-title .gold-text { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.75rem; }
    .hero-badge { font-size: 0.5rem; padding: 0.1rem 0.6rem; }
    .hero-stat { min-width: 45px; padding: 0.2rem 0.4rem; }
    .hero-stat .number { font-size: 0.9rem; }
    .hero-stat .label { font-size: 0.45rem; }
    .hero-section .btn-primary-custom,
    .hero-section .btn-outline-primary-custom { padding: 0.35rem 0.8rem; font-size: 0.65rem; }
    
    .section-header h2 { font-size: 1.5rem; margin-bottom: 3.5rem; }
    
    .historical-card .historical-image-wrapper { height: 120px; }
    
    .estate-logo-wrapper img { height: 30px; max-width: 90px; }
    .estate-logo-wrapper .estate-name { font-size: 1rem; }
    .estate-logo-large img { height: 32px; max-width: 110px; }
    .estate-logo-large .estate-name { font-size: 1.2rem; }
    .estate-overlay-logo { padding: 0.3rem 0.8rem; }
    .estate-overlay-logo img { height: 25px; max-width: 80px; }
    .estate-overlay-logo .estate-name { font-size: 0.75rem; }
    .estate-overlay-logo .estate-sub { font-size: 0.5rem; }
    
    .estate-image { min-height: 160px; }
    .estate-content { padding: 1rem 1rem 1.5rem; }
    .estate-title { font-size: 1.1rem; }
    .estate-tag { font-size: 0.5rem; padding: 0.15rem 0.6rem; }
    .estate-meta span { font-size: 0.65rem; }
    .estate-description { font-size: 0.75rem; }
    .estate-actions .btn { font-size: 0.7rem; padding: 0.5rem 1rem; }
    .estate-logo img { height: 24px; }
    .estate-badge .count { font-size: 1rem; }
    .estate-badge .label { font-size: 0.4rem; }
    .estate-badge { padding: 0.3rem 0.6rem; top: 10px; }
    
    .map-wrapper iframe { height: 180px; }
    .map-overlay { padding: 0.3rem 0.8rem; gap: 4px; bottom: 8px; border-radius: 20px; }
    .map-overlay span { font-size: 0.5rem; }
    .map-overlay i { font-size: 0.7rem; }
}

/* ============================================================
   22. LANDSCAPE MODE FIXES
   ============================================================ */
@media (max-height: 700px) and (max-width: 768px) {
    .hero-brand-fullwidth { margin-top: 5.5rem !important; }
    .hero-brand-logo { height: 30px !important; }
    .hero-brand-wrapper { padding: 0.15rem 0 !important; }
    .hero-section { padding: 0.2rem 0 0.8rem !important; }
    .hero-title { font-size: 1.8rem; margin-top: 0.1rem; }
    .hero-title .highlight,
    .hero-title .gold-text { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.8rem; margin-top: 0.2rem !important; }
    .hero-stats { gap: 0.5rem; margin-top: 0.5rem; }
    .hero-stat { padding: 0.2rem 0.5rem; min-width: 50px; }
    .hero-stat .number { font-size: 1rem; }
    .hero-section .d-flex.flex-wrap.gap-3.mt-4 { margin-top: 0.5rem !important; }
    .hero-section .btn-primary-custom,
    .hero-section .btn-outline-primary-custom { padding: 0.3rem 0.8rem; font-size: 0.65rem; }
    
    .estate-logo-wrapper img { height: 30px; max-width: 90px; }
    .estate-logo-wrapper .estate-name { font-size: 1rem; }
    .estate-overlay-logo { padding: 0.3rem 0.8rem; }
    .estate-overlay-logo img { height: 25px; max-width: 80px; }
    
    .estate-image { min-height: 150px; }
    .estate-content { padding: 1rem 1.2rem 1.5rem; }
    .estate-title { font-size: 1.2rem; }
    .estate-description { font-size: 0.8rem; margin-bottom: 0.8rem; }
    .estate-actions .btn { padding: 0.4rem 1rem; font-size: 0.7rem; }
    .estate-logo img { height: 25px; }
    .estate-badge .count { font-size: 1rem; }
    
    .map-wrapper iframe { height: 150px; }
}

/* ============================================================
   23. DESKTOP OPTIMIZATIONS
   ============================================================ */
@media (min-width: 992px) {
    .hero-brand-fullwidth { margin-top: 5.5rem; }
    .hero-section { min-height: 90vh; padding: 0.5em 0 2rem; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; max-width: 550px; }
}

@media (min-width: 1200px) {
    .hero-brand-fullwidth { margin-top: 5.5rem; }
    .hero-title { font-size: 4.5rem; }
    .hero-subtitle { font-size: 1.3rem; max-width: 600px; }
    
    .estate-logo-wrapper img { height: 75px; max-width: 240px; }
    .estate-logo-wrapper .estate-name { font-size: 2.2rem; }
    .estate-logo-large img { height: 90px; max-width: 300px; }
    .estate-logo-large .estate-name { font-size: 2.8rem; }
    .estate-card-logo img { height: 55px; max-width: 180px; }
    .estate-card-logo .estate-name { font-size: 1.6rem; }
    .estate-logo-dark img { height: 60px; max-width: 200px; }
    .estate-logo-dark .estate-name { font-size: 2rem; }
}