@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #4B0082;
    --primary-light: #6B00B6;
    --primary-soft: rgba(75, 0, 130, 0.1);
    --accent: #FFD700;
    --white: #FFFFFF;
    --black: #0F172A;
    --text-main: #334155;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --border-color: rgba(255, 255, 255, 0.2);
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4B0082 0%, #6B00B6 100%);
    --grad-overlay: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--black);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glass);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TOP UTILITY BAR ===== */
.top-utility-bar {
    background: var(--primary);
    color: white;
    padding: 7px 0;
    font-size: 12.5px;
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.top-utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tub-left {
    display: flex;
    gap: 24px;
}

.tub-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tub-link {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    transition: var(--transition);
    text-decoration: none;
}

.tub-link:hover { color: #fff; }

.tub-link i { font-size: 14px; }

.tub-register {
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.tub-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.tub-add-btn:hover {
    background: var(--accent);
    color: var(--black);
}

/* ===== MAIN HEADER ===== */
.header {
    height: 85px;
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img { height: 50px; }

.logo-text-fallback {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: #f8f4ff;
}

.nav-caret {
    font-size: 12px;
    transition: var(--transition);
}

.has-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 999;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-main);
}

.dropdown-link:hover {
    background: #f8f4ff;
    color: var(--primary);
}

.dropdown-link i {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f8f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.dl-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
}

/* Mobile Nav Overlay (Base) */
.mobile-nav {
    display: none; /* Controlled by JS and Media Query */
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.mobile-nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background: #f8f4ff;
    color: var(--primary);
}

.mobile-nav-footer {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-outline-sm, .btn-primary-sm {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-outline-sm {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 0, 130, 0.4);
}

.btn-add-property {
    background: var(--primary);
    color: white;
}

/* Hero Section - Compact & High-Impact */
.hero {
    position: relative;
    height: 80vh; /* Reduced from 90vh */
    min-height: 600px; /* Reduced from 700px */
    display: flex;
    align-items: flex-start; /* Moved from center to flex-start */
    padding-top: 100px; /* Specific top space */
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0; /* Changed to 0 to be behind content but visible */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-overlay);
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-title {
    font-size: 52px; /* Slightly smaller for sleekness */
    font-weight: 800;
    margin-bottom: 30px; /* Tighter spacing */
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--white); /* Fixed: Ensure text is white */
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Stronger shadow for legibility */
}

/* Search Interface - Fixed & Sleek */
.search-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-tabs {
    display: flex;
    justify-content: center;
}

.search-tab {
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    margin: 0 1px;
}

.search-tab:first-child { border-top-left-radius: 12px; }
.search-tab:last-child { border-top-right-radius: 12px; }

.search-tab.active {
    background: var(--primary);
    border-color: var(--primary);
}

.search-panel {
    background: white;
    padding: 25px; /* Tighter Padding */
    border-radius: 15px; /* Professional Radius */
    box-shadow: var(--shadow-lg);
}

.search-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 140px;
    gap: 12px; /* Tighter Gap */
    margin-bottom: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--primary);
    font-size: 18px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 50px; /* Tighter Height */
    padding: 0 15px 0 42px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    border-radius: 8px;
}

.search-input:focus {
    border-color: var(--primary);
    background: white;
}

.btn-search {
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.advanced-toggle {
    display: block;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin: 15px auto 0;
}

.advanced-filters {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Sections */
.featured-section {
    padding: 80px 0;
    background: #faf8ff;
}

.section-tinted {
    background: #faf8ff;
    border-top: 1px solid #f3eeff;
    border-bottom: 1px solid #f3eeff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Property Card - Professional Premium */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.property-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--text-muted);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.diamond-badge {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.platinum-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Featured remains purple */
.property-badge:not(.diamond-badge):not(.platinum-badge) {
    background: var(--primary);
}

.property-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3B82F6;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.property-price {
    font-size: 19px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f8fafc;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.spec-item i {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.8;
}

/* Browse More Button */
.browse-more-wrapper {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 5;
}

.btn-browse-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.btn-browse-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(75, 0, 130, 0.2);
}

.btn-browse-more i {
    transition: transform 0.3s ease;
}

.btn-browse-more:hover i {
    transform: translateX(5px);
}

/* Browse Section - Professional Minimalist */
.browse-section {
    padding: 60px 0;
    background: #fff;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-soft);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

/* Classic Internal Tabs */
.inner-tabs {
    display: flex;
    justify-content: space-between; /* Centered tabs */
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
}

.inner-tab {
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    flex: none;
    text-align: left;
}

.inner-tab:hover {
    color: var(--primary);
}

.inner-tab.active {
    color: var(--primary);
    background: transparent;
    box-shadow: none;
}

.inner-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Quick Link Grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.link-grid-content {
    display: none;
}

.link-grid-content.active {
    display: grid;
}

.mobile-category-tabs {
    display: none; /* Hidden on desktop */
}

.link-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.link-box:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.link-box::before { display: none; }

.link-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

/* Agency Section */
.agency-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    border-top: 1px solid #f3eeff;
    border-bottom: 1px solid #f3eeff;
}

.agency-container {
    position: relative;
    padding: 0 50px;
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 40px;
}

.agency-card {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.agency-card:hover {
    transform: translateX(5px);
}

.agency-logo-box {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.agency-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.agency-info {
    flex: 1;
}

.agency-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
    line-height: 1.3;
}

.agency-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.agency-location i {
    color: var(--primary);
    font-size: 14px;
}

/* Agency Nav Arrows */
.agency-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    z-index: 10;
    color: var(--primary);
}

.agency-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.agency-nav.prev { left: 0; }
.agency-nav.next { right: 0; }

/* Popular Locations Section */
.popular-locations-section {
    padding: 60px 0;
    background: #faf8ff;
    border-top: 1px solid #f3eeff;
    border-bottom: 1px solid #f3eeff;
}

.locations-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eef2f6;
}

.location-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.location-tab.active { color: var(--primary); }

.location-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.locations-tab-content { display: none; }
.locations-tab-content.active { display: block; }

.location-category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.location-city-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.location-links { list-style: none; padding: 0; margin: 0; }

.location-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px dashed #f1f5f9;
}

.location-link-item:hover { color: var(--primary); padding-left: 4px; }
.location-link-item i { font-size: 12px; flex-shrink: 0; }
.location-link-item .link-text { flex: 1; }
.location-link-item .link-count { color: var(--text-muted); font-size: 12px; font-weight: 500; }

/* Animations & Utilities */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInDown 0.8s ease forwards; }

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
}

.scroll-top.show { opacity: 1; visibility: visible; }

/* ===== APP BANNER - COMPACT ===== */
.app-banner-section {
    position: relative;
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.app-banner-bg-shapes { display: none; }

.app-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Left Side */
.app-banner-tag { display: none; }

.app-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.app-banner-accent { color: var(--primary); }

.app-banner-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 300px;
}

/* Feature List — hidden in compact mode */
.app-banner-features { display: none; }

/* Store Badge Images */
.app-store-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-store-badge-link {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.app-store-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Apple badge — no extra padding, 40px looks right */
.app-store-badge-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Google Play badge has ~18% built-in whitespace top/bottom — compensate */
.app-store-badge-img.google-badge {
    height: 60px;
    margin: -10px 0;
}

/* Center: Phone Image */
.app-banner-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
}

.app-phone-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 30px;
    background: rgba(75, 0, 130, 0.12);
    filter: blur(20px);
    border-radius: 50%;
}

.app-phone-img {
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(75,0,130,0.2));
    animation: phoneFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}


/* QR Side */
.app-banner-qr-side { text-align: right; }

.qr-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.qr-box {
    width: 90px;
    height: 90px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 7px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    width: 100%;
}

.qr-cell {
    width: 100%;
    aspect-ratio: 1;
    background: #f1f5f9;
    border-radius: 2px;
}

.qr-cell.filled { background: var(--primary); }

/* ===== FOOTER ===== */
.site-footer {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* Brand */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    object-fit: contain;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact-list li i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Columns */
.footer-heading {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-soft);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Newsletter */
.footer-newsletter-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-newsletter-form {
    display: flex;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.footer-email-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 13px;
    background: #f8fafc;
}

.footer-email-btn {
    padding: 10px 15px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.footer-email-btn:hover {
    background: var(--primary-light);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    background: var(--grad-primary);
    padding: 70px 0;
    overflow: hidden;
}

/* Decorative background shapes */
.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.cta-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: 10%;
    background: rgba(255, 215, 0, 0.06);
}

.cta-shape-3 {
    width: 150px;
    height: 150px;
    top: 20px;
    left: 40%;
    background: rgba(255, 255, 255, 0.04);
}

/* Feature Badges */
.cta-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 22px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.cta-feature-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cta-feature-badge i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* CTA Content */
.cta-inner { position: relative; z-index: 2; }

.cta-content { text-align: center; }

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.cta-highlight {
    color: var(--accent);
    position: relative;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.cta-btn i { font-size: 20px; }

.cta-btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-btn-primary:hover {
    background: var(--accent);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.cta-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet & Smaller (991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }

    /* Header */
    .top-utility-bar {
        display: none;
    }

    .header {
        height: 70px;
    }

    .logo img { height: 42px; }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: clamp(28px, 6vw, 42px);
    }

    /* Grids to 2 columns */
    .property-grid,
    .browse-grid,
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .agency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA Banner */
    .cta-banner-inner {
        padding: 40px 20px;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }

    /* Hero Section */
    .hero-title {
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .search-tab {
        padding: 10px 20px;
        font-size: 11px;
    }

    .search-panel {
        padding: 20px;
    }

    .search-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .advanced-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Browse Section Redesign for Mobile */
    .mobile-category-tabs {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .m-cat-tab {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 5px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-muted);
        border-bottom: 2px solid #eee;
        transition: var(--transition);
    }

    .m-cat-tab.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

    .m-cat-tab i { font-size: 18px; }

    .browse-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        display: none; /* Hide all by default on mobile */
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .category-card.active {
        display: block; /* Show only active one */
    }

    .category-header {
        display: none; /* Hide internal header on mobile as we have category tabs */
    }

    /* Pill Styles for Internal Tabs */
    .inner-tabs {
        border-bottom: none;
        gap: 10px;
        margin-bottom: 25px;
        padding: 5px;
    }

    .inner-tab {
        background: #f1f5f9;
        padding: 10px 18px;
        border-radius: 30px;
        font-size: 12px;
        border: 1px solid transparent;
    }

    .inner-tab.active {
        background: #eef2ff;
        color: var(--primary);
        border-color: var(--primary-soft);
    }

    .inner-tab.active::after {
        display: none;
    }

    .link-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile as requested */
        gap: 8px;
    }

    .link-box {
        padding: 10px 5px;
    }

    .link-label { font-size: 11px; }
    .link-subtext { font-size: 9px; }

    /* Other Grids */
    /* Featured Properties Slider on Mobile */
    .property-grid {
        display: flex; /* Switch to flex for horizontal scrolling */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 5px 25px;
        scrollbar-width: none; /* Hide scrollbar */
        margin: 0 -20px; /* Bleed to edges */
        padding-left: 20px;
        padding-right: 20px;
    }

    .property-grid::-webkit-scrollbar {
        display: none;
    }

    .property-card {
        flex: 0 0 280px; /* Fixed width for slider cards */
        scroll-snap-align: center;
        margin-bottom: 0;
    }

    .property-img-wrapper {
        height: 160px;
    }

    .property-content {
        padding: 15px;
    }

    .property-title {
        font-size: 14px;
        margin-bottom: 5px;
        white-space: normal;
    }

    .property-location {
        font-size: 11px;
        margin-bottom: 10px;
        gap: 4px;
    }

    .property-price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .property-specs {
        padding-top: 10px;
        flex-wrap: wrap; /* Allow items to wrap if they don't fit */
        justify-content: flex-start;
        gap: 10px 15px;
    }

    .spec-item {
        font-size: 10.5px; /* Slightly larger for legibility */
        gap: 4px;
    }

    .spec-item i { font-size: 13px; }

    .locations-grid,
    .agency-grid {
        grid-template-columns: 1fr;
    }

    .agency-container {
        padding: 0 10px;
    }

    .agency-nav {
        display: none;
    }

    /* App Banner */
    .app-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .app-banner-content {
        order: 1;
    }

    .app-banner-qr-side {
        order: 2;
        text-align: center;
    }

    .qr-box {
        margin: 0 auto;
    }

    .app-banner-phone {
        height: auto;
        order: 3;
        margin-top: 20px;
    }

    .app-phone-img {
        height: 240px;
    }

    /* CTA Section */
    .cta-features {
        display: none; /* Removed from mobile as requested to clean up UI */
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Global */
    .section-title {
        font-size: 26px;
    }
}

/* Extra Small (480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .advanced-filters {
        grid-template-columns: 1fr;
    }

    .app-store-btns {
        flex-direction: column;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr); /* Back to 2 columns on very small screens */
    }
}

/* ==========================================================================
   PROPERTIES LISTING PAGE
   ========================================================================== */

.properties-hero-section {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    margin-top: 2px;
}

.search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.search-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.search-breadcrumb a:hover { color: var(--primary); }
.search-breadcrumb i { font-size: 10px; }

.properties-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}

.properties-seo-text {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.properties-count {
    font-size: 14px;
    color: var(--text-muted);
}

.listing-main-section {
    padding: 40px 0 80px;
    background: #f8fafc;
}

.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    align-self: start;
}

.filter-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.filter-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.filter-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input-box i {
    position: absolute;
    left: 12px;
    color: var(--primary);
}

.filter-input-box input {
    width: 100%;
    height: 44px;
    padding: 0 15px 0 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
}

.filter-select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.range-inputs input, .range-inputs select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
}

.pill-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-item {
    padding: 8px 15px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.pill-item.active, .pill-item:hover {
    background: var(--primary);
    color: white;
}

.btn-apply-filters {
    width: 100%;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-filters {
    width: 100%;
    height: 46px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-ad {
    margin-top: 20px;
    background: var(--grad-primary);
    padding: 24px;
    border-radius: 16px;
    color: white;
    text-align: center;
}

.sidebar-ad span { font-size: 11px; text-transform: uppercase; opacity: 0.8; }
.sidebar-ad h4 { font-size: 18px; margin: 10px 0; color: white; }
.sidebar-ad a {
    display: block;
    margin-top: 15px;
    padding: 8px;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

/* Listing Controls */
.listing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    margin-bottom: 25px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.sort-box select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--black);
    outline: none;
    cursor: pointer;
}

.view-toggles {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #eef2f6;
    background: white;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Wishlist Btn */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-btn:hover { color: #ef4444; }

/* Property Footer */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.agent-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-mini span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-contact-mini {
    padding: 6px 15px;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact-mini:hover {
    background: var(--primary);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.page-link.active, .page-link:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots { color: var(--text-muted); }

/* Mobile Filter Trigger */
.mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: auto;
}

.mobile-filter-trigger button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(75, 0, 130, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-mobile-header { display: none; }

/* Properties Responsive */
/* Grid / List View Styles */
.properties-grid.view-list {
    grid-template-columns: 1fr;
    gap: 20px;
}

.view-list .property-card {
    display: flex;
    flex-direction: row;
    height: 240px;
}

.view-list .property-img-wrapper {
    width: 320px;
    height: 100%;
}

.view-list .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.view-list .property-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.view-list .property-footer {
    margin-top: auto;
}

@media (max-width: 767px) {
    .view-list .property-card {
        flex-direction: column;
        height: auto;
    }
    .view-list .property-img-wrapper {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 1200px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .listing-layout { grid-template-columns: 1fr; }
    
    .filter-sidebar { 
        display: block; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 1000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        overflow-y: auto;
        transform: translateX(-100%);
    }

    .filter-sidebar.open {
        transform: translateX(0);
    }

    .filter-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: white;
        border-bottom: 1px solid #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .filter-mobile-header h3 {
        font-size: 18px;
        font-weight: 800;
        margin: 0;
    }

    .filter-mobile-header button {
        background: #f1f5f9;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
    }

    .filter-card {
        border: none;
        box-shadow: none;
        padding: 20px;
        margin-bottom: 80px; /* Space for scroll */
    }

    .mobile-filter-trigger { display: block; }
    .properties-hero-section { padding: 30px 0; text-align: center; }
    .properties-seo-text { margin: 0 auto 20px; }
    .search-breadcrumb { justify-content: center; }

    /* Mobile Nav Drawer Styles */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: white;
        z-index: 2000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        transform: translateX(110%);
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav-header {
        padding: 20px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-nav-close, #close-filters-mobile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--black);
        cursor: pointer;
        transition: var(--transition);
        z-index: 100;
    }

    .mobile-nav-close:hover, #close-filters-mobile:hover {
        background: #e2e8f0;
        color: var(--primary);
    }

    .mobile-nav-links {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex: 1;
        overflow-y: auto;
    }

    .mobile-nav-links a {
        font-size: 15px;
        font-weight: 700;
        color: var(--black);
        text-decoration: none;
        padding: 10px 0;
        border-bottom: 1px solid #f8fafc;
    }

    .mobile-nav-footer {
        padding: 20px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .listing-main-section { padding: 30px 0 60px; }
    .properties-grid { 
        grid-template-columns: repeat(2, 1fr); /* 2 columns like index page */
        gap: 12px; 
    }
    .property-img-wrapper { height: 140px; }
    .property-title { font-size: 13px; }
    .property-price { font-size: 15px; }
    .property-specs { gap: 5px 10px; }
    .spec-item { font-size: 10px; }
    .agent-mini span { display: none; } /* Hide name on small mobile to save space */
    
    .listing-cta-inner { padding: 40px 20px; }
    .cta-title { font-size: 28px; }
}

@media (max-width: 576px) {
    .properties-page-title { font-size: 20px; }
    .listing-controls { padding: 8px 12px; }
    .view-toggles { display: none; }
}

@media (max-width: 480px) {
    .properties-grid { grid-template-columns: 1fr; } /* Back to 1 col for very small screens if needed */
}

/* SEO Bottom Info Section */
.properties-seo-info {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.seo-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.seo-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
}

.seo-text-col p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.seo-sub-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
}

.seo-faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f8fafc;
}

.faq-q {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.faq-a {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 991px) {
    .seo-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Bottom CTA Section on Listing Page */
.listing-cta-section {
    padding: 60px 0;
    background: #f8fafc;
}

.listing-cta-inner {
    background: var(--grad-primary);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.listing-cta-inner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* ===== PROPERTY DETAIL PAGE ===== */
.property-detail-page {
    padding-bottom: 80px;
    background: #f8fafc;
}

.detail-header-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-breadcrumb a { color: var(--primary); font-weight: 600; }
.detail-breadcrumb span { color: var(--black); font-weight: 600; }

.detail-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.detail-location {
    font-size: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-badges {
    display: flex;
    gap: 10px;
}

.badge-purpose, .badge-status, .badge-featured {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-purpose { background: #eef2ff; color: var(--primary); }
.badge-status { background: #f0fdf4; color: #16a34a; }
.badge-featured { background: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }

.detail-price-box { text-align: right; }
.price-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.detail-price { font-size: 42px; font-weight: 800; color: var(--primary); margin-top: 5px; }
.detail-price small { font-size: 18px; color: var(--text-muted); font-weight: 700; }

/* Main Content Area */
.detail-main-content { padding: 50px 0 100px; }
.detail-layout { 
    display: grid; 
    grid-template-columns: minmax(0, 1fr) 380px; 
    gap: 40px; 
    align-items: flex-start; 
}

.detail-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--primary);
    color: var(--black);
}

/* Gallery Slider */
.detail-gallery-wrapper { 
    background: white; 
    padding: 12px; 
    border-radius: 24px; 
    border: 1px solid #f1f5f9; 
    margin-bottom: 30px; 
    box-shadow: var(--shadow-sm); 
}

.main-gallery-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    max-height: 550px;
    margin-bottom: 15px;
}

.slider-container { width: 100%; height: 100%; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.slide { flex: 0 0 100%; min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-nav:hover { background: white; color: var(--primary); }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    min-width: 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumb-item.active { border-color: var(--primary); opacity: 1; transform: scale(1.05); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Specs Grid */
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #eef2ff;
}

.spec-box i { font-size: 26px; color: var(--primary); }
.spec-info span { display: block; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.spec-info strong { display: block; font-size: 16px; font-weight: 800; color: var(--black); }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--black);
    font-weight: 600;
}

.amenity-item i { color: #10b981; font-size: 20px; }

/* Sidebar Agent Card */
.agent-card-wrapper {
    background: white;
    border-radius: 30px;
    padding: 30px;
    position: sticky;
    top: 100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.agent-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.agent-avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: #f1f5f9; border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center; }
.agent-avatar i { font-size: 40px; color: var(--text-muted); }
.agent-meta h4 { font-size: 18px; font-weight: 800; color: var(--black); margin-bottom: 3px; }
.agent-meta span { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.btn-agent-contact {
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary-agent { background: var(--primary); color: white; }
.btn-whatsapp-agent { background: #25d366; color: white; }
.btn-agent-contact:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.agent-sidebar-note {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.agent-sidebar-note i { color: var(--primary); margin-right: 5px; }

.safety-tip-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.tip-icon { font-size: 24px; color: #d97706; }
.tip-text strong { display: block; font-size: 14px; color: #92400e; margin-bottom: 2px; }
.tip-text p { font-size: 13px; color: #b45309; line-height: 1.4; }

/* Related Properties Section */
.similar-properties-section { padding: 80px 0; border-top: 1px solid #f1f5f9; background: white; }

/* Detail Page Responsive */
@media (max-width: 991px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-header-section { padding: 30px 0; }
    .detail-title-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
    .detail-price-box { text-align: left; }
    .detail-price { font-size: 32px; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .agent-card-wrapper { position: static; }
}

@media (max-width: 576px) {
    .detail-title { font-size: 26px; }
    .gallery-thumbnails { gap: 8px; }
    .thumb-item { min-width: 80px; height: 60px; }
    .detail-card { padding: 25px; }
    .specs-grid { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: 1fr; }
}

/* ===== AGENCIES PAGE ===== */
.agencies-page { background: #f8fafc; }

/* Agencies Hero */
.agencies-hero { 
    padding: 100px 0; 
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.agencies-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

.agencies-hero .hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.agencies-hero .hero-title { font-size: 52px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.1; }
.agencies-hero .hero-subtitle { font-size: 20px; opacity: 0.85; margin-bottom: 50px; font-weight: 500; }

.agency-search-box {
    background: white;
    padding: 12px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.agency-search-box .search-input, .agency-search-box .search-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: var(--text-main);
}

.agency-search-box i { color: var(--primary); font-size: 22px; }
.agency-search-box input, .agency-search-box select {
    width: 100%;
    height: 55px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
}

.btn-search-agencies {
    background: var(--grad-primary);
    color: white;
    padding: 0 40px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search-agencies:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(79,70,229,0.3); }

/* Agencies Listing Layout */
.agencies-listing { padding: 60px 0; }
.agencies-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }

.agencies-sidebar .filter-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.filter-title { font-size: 15px; font-weight: 800; margin-bottom: 20px; color: var(--black); border-bottom: 2px solid #f8fafc; padding-bottom: 12px; }
.filter-options { display: flex; flex-direction: column; gap: 15px; }

/* Agencies Grid */
.agencies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.agency-card { 
    background: white; 
    border-radius: 20px; 
    border: 1px solid #f1f5f9; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
}

.agency-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--primary); }

.agency-card-inner { 
    padding: 22px; 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
    height: 100%; 
    width: 100%;
}
.agency-header { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }

.agency-logo-wrapper {
    position: relative;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.agency-logo-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }

.agency-info { flex: 1; }
.agency-info h3 { font-size: 15px; font-weight: 800; color: var(--black); margin-bottom: 2px; line-height: 1.2; }
.agency-info p { font-size: 11px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 4px; }

.agency-stats { 
    display: flex; 
    width: 100%;
    justify-content: space-between; 
    background: #f8faff; 
    padding: 12px 10px; 
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #eef2ff;
    margin-top: auto;
}

.stat-item { text-align: center; flex: 1; }
.stat-item:not(:last-child) { border-right: 1px solid #eef2ff; }
.stat-item strong { display: block; font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.stat-item span { display: block; font-size: 9px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.agency-actions { display: flex; align-items: center; gap: 10px; width: 100%; }
.btn-view-agency { 
    flex: 1; 
    background: #f8fafc; 
    color: var(--black); 
    text-align: center; 
    padding: 11px; 
    border-radius: 10px; 
    font-weight: 800; 
    font-size: 13px; 
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}
.btn-view-agency:hover { background: var(--primary); color: white; border-color: var(--primary); }

.btn-agency-contact {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--grad-primary);
    color: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(79,70,229,0.15);
}

/* ===== CONTACT PAGE ===== */
.contact-page { background: #f8fafc; }

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
}

.contact-hero-content h1 { 
    font-size: 56px; 
    font-weight: 800; 
    margin-bottom: 24px; 
    color: white;
    letter-spacing: -1px;
}
.contact-hero-content p { 
    font-size: 19px; 
    color: rgba(255,255,255,0.85); 
    max-width: 650px; 
    margin: 0 auto; 
    line-height: 1.7; 
}

/* Contact Grid */
.contact-main-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: 60px; }

/* Info Cards */
.contact-info-cards { display: flex; flex-direction: column; gap: 30px; }
.info-card-premium {
    background: white;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.info-card-premium:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: var(--primary); }

.info-card-premium .icon-box {
    width: 60px;
    height: 60px;
    background: #f8faff;
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.info-content h3 { font-size: 18px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.info-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; font-weight: 500; }

.social-connect { padding: 40px 30px; background: white; border-radius: 24px; border: 1px solid #f1f5f9; }
.social-connect h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.social-links-row { display: flex; justify-content: center; gap: 20px; }
.social-links-row a { 
    font-size: 24px; 
    color: var(--text-muted); 
    width: 50px; 
    height: 50px; 
    background: #f8fafc; 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: var(--transition);
}
.social-links-row a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* Contact Form */
.contact-form-wrapper { background: white; padding: 50px; border-radius: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.05); }
.form-header { margin-bottom: 40px; }
.form-header h2 { font-size: 32px; font-weight: 800; color: var(--black); margin-bottom: 10px; }
.form-header p { color: var(--text-muted); font-size: 15px; font-weight: 500; }

.landsfy-contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.input-group input:focus, .input-group textarea:focus { 
    background: white; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1); 
    outline: none; 
}

.btn-submit-contact {
    width: 100%;
    padding: 18px;
    background: var(--grad-primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79,70,229,0.25);
    transition: var(--transition);
}
.btn-submit-contact:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(79,70,229,0.35); }

/* FAQ CTA */
.faq-cta-section { padding-bottom: 100px; }
.faq-cta-inner {
    background: var(--grad-primary);
    padding: 80px 60px;
    border-radius: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(79,70,229,0.2);
}
.faq-cta-inner h2 { font-size: 36px; font-weight: 800; margin-bottom: 15px; color: white; }
.faq-cta-inner p { font-size: 17px; opacity: 0.9; margin-bottom: 35px; color: rgba(255,255,255,0.9); }
.btn-faq-white { 
    background: white; 
    color: var(--primary); 
    padding: 16px 45px; 
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 15px; 
    display: inline-block; 
    transition: var(--transition);
}
.btn-faq-white:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

@media (max-width: 991px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-cards { order: 2; }
    .contact-form-wrapper { order: 1; padding: 30px; }
    .contact-hero-content h1 { font-size: 36px; }
}

@media (max-width: 576px) {
    .landsfy-contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== ABOUT PAGE ===== */
.about-page { background: #f8fafc; }

/* About Hero */
.about-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 120px 0;
    text-align: center;
    color: white;
}
.about-hero-content h1 { font-size: 56px; font-weight: 800; margin-bottom: 25px; color: white; letter-spacing: -1.5px; }
.about-hero-content p { font-size: 20px; color: rgba(255,255,255,0.85); max-width: 750px; margin: 0 auto; line-height: 1.7; }

/* Mission Section */
.mission-section { padding: 100px 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }

.mission-image { position: relative; }
.premium-rounded-img { width: 100%; border-radius: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    padding: 30px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(253, 224, 71, 0.3);
    border: 4px solid white;
}
.experience-badge strong { display: block; font-size: 32px; font-weight: 900; color: var(--black); line-height: 1; }
.experience-badge span { font-size: 13px; font-weight: 700; color: var(--black); opacity: 0.8; }

.section-tag { 
    display: inline-block; 
    padding: 8px 20px; 
    background: #eef2ff; 
    color: var(--primary); 
    border-radius: 50px; 
    font-size: 13px; 
    font-weight: 800; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.mission-text h2 { font-size: 42px; font-weight: 800; color: var(--black); margin-bottom: 25px; line-height: 1.2; }
.mission-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 35px; }

.mission-cards { display: grid; gap: 20px; }
.m-card { 
    display: flex; 
    gap: 20px; 
    padding: 25px; 
    background: white; 
    border-radius: 20px; 
    border: 1px solid #f1f5f9; 
    transition: var(--transition);
}
.m-card:hover { transform: translateX(10px); border-color: var(--primary); }
.m-card i { font-size: 32px; color: var(--primary); }
.m-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.m-card p { font-size: 14px; margin-bottom: 0; line-height: 1.5; }

/* About Stats */
.about-stats-section { background: white; padding: 80px 0; border-bottom: 1px solid #f1f5f9; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.about-stat-item { text-align: center; }
.about-stat-item strong { display: block; font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.about-stat-item span { font-size: 14px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Values Section */
.values-section { padding: 100px 0; }
.section-header-centered { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header-centered h2 { font-size: 38px; font-weight: 800; margin-bottom: 15px; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: var(--primary); }
.value-card .v-icon { 
    width: 70px; 
    height: 70px; 
    background: #f8faff; 
    color: var(--primary); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 32px; 
    margin: 0 auto 25px; 
}
.value-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 15px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Team CTA */
.team-cta { padding-bottom: 100px; }
.team-cta-inner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 50px rgba(30, 27, 75, 0.2);
}
.team-cta-inner h2 { font-size: 42px; font-weight: 800; margin-bottom: 20px; color: white; }
.team-cta-inner p { font-size: 18px; opacity: 0.9; max-width: 700px; margin: 0 auto 40px; color: rgba(255,255,255,0.85); }

/* Philosophy Section */
.philosophy-section { padding: 100px 0; background: white; }
.philosophy-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.philosophy-text h2 { font-size: 32px; font-weight: 800; color: var(--black); margin-bottom: 25px; line-height: 1.3; }
.philosophy-text p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; text-align: justify; }

@media (max-width: 991px) {
    .philosophy-content-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Why Us Section */
.why-us-section { padding: 120px 0; background: #f8fafc; }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.check-list { list-style: none; padding: 0; margin-top: 30px; }
.check-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; color: var(--black); font-size: 15px; }
.check-list li i { color: #10b981; font-size: 20px; }

.why-us-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}
.why-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.why-card i { font-size: 40px; color: var(--primary); margin-bottom: 15px; display: block; }
.why-card h4 { font-size: 16px; font-weight: 800; color: var(--black); }

.cta-buttons { display: flex; justify-content: center; gap: 20px; }
.btn-cta-primary { 
    background: var(--accent); 
    color: var(--black); 
    padding: 16px 40px; 
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 16px; 
    transition: var(--transition);
}
.btn-cta-outline { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.3); 
    padding: 16px 40px; 
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 16px; 
    transition: var(--transition);
}
.btn-cta-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(253,224,71,0.2); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 991px) {
    .mission-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-hero-content h1 { font-size: 42px; }
}

@media (max-width: 576px) {
    .values-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .team-cta-inner { padding: 40px 20px; }
    .experience-badge { right: 0; bottom: -20px; padding: 20px; }
}

/* ===== AGENTS DIRECTORY ===== */
.agents-directory-page { background: #f8fafc; }

/* Agents Hero */
.agents-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.agents-hero-content h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; color: white; letter-spacing: -1px; }
.agents-hero-content p { font-size: 19px; color: rgba(255,255,255,0.85); margin-bottom: 45px; }

/* Agent Search Bar */
.agent-search-bar {
    max-width: 950px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 200px;
    gap: 0;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    align-items: center;
}

.search-input-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 15px 25px; 
    border-right: 1px solid #f1f5f9; 
}
.search-input-group:nth-child(2) { border-right: none; }
.search-input-group i { font-size: 22px; color: var(--primary); opacity: 0.8; }
.search-input-group input, .search-input-group select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
}
.search-input-group input::placeholder { color: #94a3b8; }

.btn-search-agents {
    height: 58px;
    background: var(--grad-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}
.btn-search-agents:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(79,70,229,0.3); }

/* Filters Bar */
.agents-filters-bar { background: white; padding: 20px 0; border-bottom: 1px solid #f1f5f9; position: sticky; top: 0; z-index: 100; }
.filters-inner { display: flex; justify-content: space-between; align-items: center; }
.filter-tags { display: flex; gap: 12px; }
.tag { 
    padding: 10px 22px; 
    border-radius: 50px; 
    background: #f8fafc; 
    border: 1px solid #f1f5f9; 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text-muted); 
    cursor: pointer; 
    transition: var(--transition);
}
.tag.active { background: var(--primary); color: white; border-color: var(--primary); }
.tag:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.sort-agents { font-size: 14px; color: var(--text-muted); font-weight: 700; }
.sort-agents select { border: none; font-weight: 800; color: var(--black); cursor: pointer; margin-left: 8px; }

/* Agents Grid */
.agents-grid-section { padding: 40px 0 100px; }
.agents-directory-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    margin-bottom: 50px; 
}

.agent-card { 
    background: white; 
    border-radius: 18px; 
    border: 1px solid #f1f5f9; 
    transition: var(--transition); 
    display: flex;
    flex-direction: column;
}
.agent-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); border-color: var(--primary); }
.agent-card-inner { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }

.agent-top-info { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.agent-photo-wrapper { position: relative; width: 55px; height: 55px; flex-shrink: 0; }
.agent-photo-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #f8fafc; background: #f1f5f9; }

.agent-badge-gold, .agent-badge-silver {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1.5px solid white;
}
.agent-badge-gold { background: #fbbf24; color: white; }
.agent-badge-silver { background: #94a3b8; color: white; }

.agent-main-details { overflow: hidden; }
.agent-main-details h3 { font-size: 15px; font-weight: 800; color: var(--black); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-specialty { font-size: 11px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.agent-agency-link { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted); font-weight: 600; }

.agent-stats-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    background: #f8faff; 
    padding: 8px 2px; 
    border-radius: 10px; 
    text-align: center; 
    margin-bottom: 12px;
}
.a-stat strong { display: block; font-size: 13px; font-weight: 800; color: var(--black); line-height: 1.1; }
.a-stat span { font-size: 8px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.a-stat:not(:last-child) { border-right: 1px solid #eef2ff; }

.agent-tags-box { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 15px; min-height: 20px; }
.a-tag { padding: 4px 10px; background: #f1f5f9; color: var(--text-muted); font-size: 10px; font-weight: 800; border-radius: 50px; }

.agent-actions { display: flex; gap: 10px; margin-top: auto; }
.btn-view-profile { 
    flex: 1; 
    background: #f8fafc; 
    color: var(--black); 
    text-align: center; 
    padding: 10px; 
    border-radius: 10px; 
    font-weight: 800; 
    font-size: 13px; 
    border: 1px solid #f1f5f9; 
    transition: var(--transition);
}
.btn-view-profile:hover { background: var(--primary); color: white; border-color: var(--primary); }

.btn-agent-whatsapp {
    width: 42px;
    height: 42px;
    background: #25d366;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}
.btn-agent-whatsapp:hover { transform: scale(1.05); }

@media (max-width: 991px) {
    .agents-directory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .agents-directory-grid { grid-template-columns: 1fr; }
}

/* Global Pagination */
.landsfy-pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 12px; 
    margin-top: 60px; 
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}
.page-link { 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    border: 1px solid #f1f5f9; 
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 15px; 
    color: var(--black); 
    transition: var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.page-link.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 10px 20px rgba(79,70,229,0.2); }

.page-link i { font-size: 18px; }
.page-link:last-child { width: auto; padding: 0 20px; } /* For 'Next' button */

.page-dots { font-weight: 700; color: var(--text-muted); padding: 0 5px; }

/* Agencies Responsive */
@media (max-width: 1400px) {
    .agencies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .agencies-layout { grid-template-columns: 1fr; }
    .agencies-hero .hero-title { font-size: 38px; }
    .agency-search-box { flex-direction: column; padding: 20px; border-radius: 24px; }
    .btn-search-agencies { padding: 18px; }
    .agencies-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .agencies-grid { grid-template-columns: 1fr; }
}

/* ===== AGENCY DETAIL PAGE ===== */
.agency-detail-page { background: #f8fafc; }

/* Hero Minimal Section */
.agency-hero-minimal { 
    padding: 60px 0 0; 
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); 
    position: relative;
}

.agency-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 40px;
    position: relative;
    z-index: 5;
}

.agency-brand-info { display: flex; align-items: flex-end; gap: 30px; }

.detail-agency-logo {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: -20px;
}

.detail-agency-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.agency-main-meta { padding-bottom: 10px; color: white; }
.agency-name { font-size: 36px; font-weight: 800; margin-bottom: 6px; color: white; }
.agency-location { font-size: 15px; opacity: 0.9; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); }
.agency-location i { color: var(--accent); }

.agency-badges { display: flex; gap: 10px; }
.badge-status-active { background: #10b981; color: white; padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.badge-premium { background: var(--accent); color: var(--black); padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 700; }

.agency-header-actions { display: flex; gap: 15px; padding-bottom: 15px; }
.btn-share-agency, .btn-follow-agency {
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--black);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-contact-agency-main {
    height: 48px;
    padding: 0 25px;
    border-radius: 12px;
    border: none;
    background: var(--grad-primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(79,70,229,0.2);
}

/* Stats Bar */
.agency-stats-bar { background: white; padding: 30px 0; border-bottom: 1px solid #f1f5f9; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #f1f5f9;
}
.stat-item strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.stat-item span { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Navigation Tabs */
.agency-tabs-nav { background: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.tabs-list { display: flex; gap: 40px; padding: 20px 0; }
.tabs-list li { position: relative; }
.tabs-list li a { font-size: 15px; font-weight: 700; color: var(--text-muted); padding-bottom: 20px; }
.agency-tabs-nav .tabs-list li.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

/* Detail Content Layout */
.detail-content-layout { padding: 60px 0 100px; display: grid; grid-template-columns: 1fr 380px; gap: 50px; }

.content-section { margin-bottom: 60px; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 35px; color: var(--black); }

/* Agency Properties Grid */
.agency-properties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* Agents Cards */
.agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.agent-card-small {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}
.agent-card-small:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.agent-card-small img { width: 70px; height: 70px; border-radius: 15px; object-fit: cover; }
.agent-info h4 { font-size: 16px; font-weight: 800; color: var(--black); margin-bottom: 4px; }
.agent-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.agent-info a { font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: underline; }

/* Sidebar Cards */
.sidebar-card { background: white; border-radius: 24px; padding: 30px; border: 1px solid #f1f5f9; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 25px; color: var(--black); border-left: 4px solid var(--primary); padding-left: 15px; }

.contact-links { display: flex; flex-direction: column; gap: 15px; }
.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.contact-btn.phone { background: #f8faff; color: var(--primary); }
.contact-btn.whatsapp { background: #f0fdf4; color: #16a34a; }
.contact-btn.email { background: #fefce8; color: #854d0e; }
.contact-btn:hover { transform: scale(1.02); }

.info-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-main); margin-bottom: 18px; font-weight: 500; }
.info-list li i { font-size: 18px; color: var(--primary); }

.social-links-grid { display: flex; gap: 15px; margin-top: 30px; border-top: 1px solid #f1f5f9; padding-top: 25px; }
.social-links-grid a { font-size: 24px; color: var(--text-muted); transition: var(--transition); }
.social-links-grid a:hover { color: var(--primary); transform: translateY(-3px); }

.btn-load-more {
    display: block;
    margin: 40px auto 0;
    padding: 14px 40px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(79,70,229,0.15);
    transform: translateY(-2px);
}
@media (max-width: 991px) {
    .agency-profile-header { flex-direction: column; align-items: center; text-align: center; margin-top: -100px; }
    .agency-brand-info { flex-direction: column; align-items: center; }
    .agency-main-meta { color: var(--black); text-shadow: none; padding-top: 20px; }
    .agency-location { justify-content: center; }
    .agency-badges { justify-content: center; }
    .badge-premium { background: var(--primary); }
    .badge-exp { background: #f1f5f9; color: var(--text-main); border: none; }
    .agency-header-actions { padding-top: 30px; width: 100%; justify-content: center; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item::after { display: none; }
    
    .detail-content-layout { grid-template-columns: 1fr; }
    .agency-properties-grid, .agents-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .agency-name { font-size: 32px; }
    .detail-agency-logo { width: 120px; height: 120px; }
    .tabs-list { gap: 20px; overflow-x: auto; padding-bottom: 15px; }
    .tabs-list li a { font-size: 13px; white-space: nowrap; }
}

/* ===== AGENT DETAIL PAGE ===== */
.agent-detail-page { background: #f8fafc; }

/* Agent Hero Header */
.agent-hero-header { 
    padding: 80px 0 60px; 
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); 
    color: white;
}
.agent-profile-wrap { display: flex; justify-content: space-between; align-items: center; }
.agent-profile-main { display: flex; gap: 40px; align-items: center; }

.agent-avatar-large { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.agent-avatar-large img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255,255,255,0.1); padding: 5px; background: rgba(255,255,255,0.05); }

.v-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid #1e1b4b;
}

.a-specialty-tag { background: var(--accent); color: var(--black); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 800; display: inline-block; margin-bottom: 15px; }
.a-rating-mini { display: inline-flex; align-items: center; gap: 8px; margin-left: 15px; font-weight: 700; font-size: 14px; opacity: 0.9; }
.a-rating-mini i { color: #fbbf24; }

.a-name { font-size: 48px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; line-height: 1.1; color: white; }
.a-agency-name { font-size: 18px; opacity: 0.9; margin-bottom: 15px; color: rgba(255,255,255,0.9); }
.a-agency-name strong { color: white; border-bottom: 1px dashed rgba(255,255,255,0.4); }

.a-location-line { display: flex; align-items: center; gap: 8px; font-size: 15px; opacity: 0.8; color: rgba(255,255,255,0.8); }
.a-location-line i { color: var(--accent); }

.agent-header-actions { display: flex; flex-direction: column; gap: 15px; min-width: 220px; }
.btn-a-call, .btn-a-whatsapp {
    height: 52px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-a-call { background: white; color: var(--black); }
.btn-a-whatsapp { background: #25d366; color: white; }
.btn-a-call:hover, .btn-a-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Stats Bar */
.agent-stats-bar { background: white; padding: 30px 0; border-bottom: 1px solid #f1f5f9; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.a-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.a-stat-item strong { display: block; font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.a-stat-item span { font-size: 13px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Layout Content */
.agent-content-section { padding: 60px 0 100px; }
.agent-detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; }

/* Tabs */
.agent-tabs-nav { margin-bottom: 40px; border-bottom: 1px solid #f1f5f9; }
.agent-tabs-nav .tabs-list { display: flex; gap: 50px; padding: 0; }
.agent-tabs-nav .tabs-list li a { font-size: 16px; font-weight: 700; color: var(--text-muted); padding-bottom: 20px; display: block; position: relative; }
.agent-tabs-nav .tabs-list li.active a { color: var(--primary); }
.agent-tabs-nav .tabs-list li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: tabFadeIn 0.5s ease forwards; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.agent-properties-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.btn-load-more-a {
    display: block;
    margin: 40px auto 0;
    padding: 14px 40px;
    background: white;
    border: 2px solid #f1f5f9;
    color: var(--black);
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}
.btn-load-more-a:hover { border-color: var(--primary); color: var(--primary); }

/* About & Reviews Sections */
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; color: var(--black); }
.a-about-text p { font-size: 16px; color: var(--text-main); line-height: 1.8; margin-bottom: 20px; }

.a-skills-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
    background: #f8fafc; 
    padding: 30px; 
    border-radius: 20px; 
    margin-top: 30px;
}
.skill-item { font-size: 14px; color: var(--text-main); }
.skill-item strong { color: var(--black); font-weight: 800; display: block; margin-bottom: 5px; }

.a-reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-card { background: white; padding: 25px; border-radius: 20px; border: 1px solid #f1f5f9; }
.r-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.r-user-info { display: flex; align-items: center; gap: 12px; }
.r-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.r-user { font-weight: 800; color: var(--black); font-size: 15px; }
.r-date { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.r-stars { color: #fbbf24; font-weight: 800; font-size: 14px; }
.review-card p { font-size: 15px; color: var(--text-main); line-height: 1.6; }

/* Sidebar */
.a-agency-card-fixed { 
    background: white; 
    padding: 40px 30px; 
    border-radius: 24px; 
    border: 1px solid #f1f5f9; 
    text-align: center; 
    position: relative;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.agency-badge { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); background: #f0f9ff; color: #0369a1; padding: 5px 15px; border-radius: 50px; font-size: 11px; font-weight: 800; text-transform: uppercase; }

.sidebar-agency-logo { width: 100px; height: 100px; margin: 15px auto 20px; background: #f8fafc; padding: 15px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.sidebar-agency-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.a-agency-card-fixed h3 { font-size: 20px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.a-agency-card-fixed p { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; }

.agency-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.m-stat strong { display: block; font-size: 18px; font-weight: 800; color: var(--primary); }
.m-stat span { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

.btn-sidebar-agency-visit { display: block; width: 100%; padding: 14px; background: #f8fafc; color: var(--black); border-radius: 12px; font-weight: 800; font-size: 14px; border: 1px solid #f1f5f9; transition: var(--transition); }
.btn-sidebar-agency-visit:hover { background: var(--primary); color: white; border-color: var(--primary); }

.quick-contact-sidebar { background: var(--grad-primary); padding: 30px; border-radius: 24px; color: white; }
.quick-contact-sidebar h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: white; }
.quick-contact-sidebar p { font-size: 13px; opacity: 0.8; margin-bottom: 25px; line-height: 1.5; }

.sidebar-contact-btns { display: flex; flex-direction: column; gap: 12px; }
.btn-s-call, .btn-s-whatsapp { 
    height: 48px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    font-weight: 800; 
    font-size: 14px; 
    transition: var(--transition); 
}
.btn-s-call { background: white; color: var(--black); }
.btn-s-whatsapp { background: #25d366; color: white; }
.btn-s-call:hover, .btn-s-whatsapp:hover { transform: scale(1.03); }

@media (max-width: 1200px) {
    .agent-detail-layout { grid-template-columns: 1fr; }
    .agent-sidebar { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 991px) {
    .agent-profile-wrap { flex-direction: column; text-align: center; gap: 40px; }
    .agent-profile-main { flex-direction: column; gap: 25px; }
    .agent-avatar-large { width: 140px; height: 140px; }
    .a-name { font-size: 36px; }
    .a-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .agent-properties-grid { grid-template-columns: 1fr; }
}

/* ===== BLOG PAGE ===== */
.blog-page { background: #f8fafc; padding-bottom: 100px; }

/* Blog Hero - Featured Post */
.blog-hero-section { padding: 60px 0; background: white; border-bottom: 1px solid #f1f5f9; margin-bottom: 60px; }
.featured-post-card { 
    display: grid; 
    grid-template-columns: 1.2fr 1fr; 
    gap: 50px; 
    background: white; 
    border-radius: 30px; 
    overflow: hidden; 
    align-items: center;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
}
.featured-img-box { height: 500px; overflow: hidden; }
.featured-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.featured-post-card:hover .featured-img-box img { transform: scale(1.05); }

.featured-content { padding: 50px; }
.blog-badge { background: var(--primary-soft); color: var(--primary); padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.featured-title { font-size: 42px; font-weight: 800; color: var(--black); line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.featured-excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.7; margin-bottom: 30px; }

.blog-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); font-weight: 600; }
.meta-item i { color: var(--primary); font-size: 18px; }

.btn-read-featured { padding: 16px 35px; background: var(--grad-primary); color: white; border-radius: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); box-shadow: 0 10px 20px rgba(79,70,229,0.2); }
.btn-read-featured:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(79,70,229,0.3); }

/* Category Navigation */
.blog-nav-bar { margin-bottom: 50px; }
.blog-categories { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.cat-chip { padding: 12px 25px; background: white; border: 1px solid #f1f5f9; border-radius: 50px; color: var(--text-muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); }
.cat-chip.active, .cat-chip:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.blog-card { background: white; border-radius: 24px; overflow: hidden; border: 1px solid #f1f5f9; transition: var(--transition); }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.blog-card-img { height: 240px; position: relative; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.08); }

.card-category { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,0.95); padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--primary); text-transform: uppercase; }

.blog-card-body { padding: 30px; }
.blog-card-title { font-size: 22px; font-weight: 800; color: var(--black); margin-bottom: 15px; line-height: 1.4; transition: var(--transition); }
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.blog-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #f8fafc; }
.blog-date { font-size: 13px; color: var(--text-muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.btn-read-more { color: var(--primary); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 5px; }

@media (max-width: 1200px) {
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-img-box { height: 350px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .featured-title { font-size: 32px; }
    .featured-content { padding: 30px; }
}
/* ===== BLOG DETAIL PAGE ===== */
.blog-detail-page { background: white; padding-bottom: 100px; }

.blog-detail-header { padding: 80px 0 40px; text-align: center; background: #f8fafc; margin-bottom: 50px; border-bottom: 1px solid #f1f5f9; }
.blog-detail-category { background: var(--primary-soft); color: var(--primary); padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; display: inline-block; }
.blog-detail-title { font-size: 48px; font-weight: 800; color: var(--black); line-height: 1.2; max-width: 900px; margin: 0 auto 25px; letter-spacing: -1px; }

.blog-detail-meta-wrap { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 30px; }
.author-box-small { display: flex; align-items: center; gap: 10px; }
.author-box-small img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.author-box-small span { font-size: 14px; font-weight: 700; color: var(--black); }

.blog-main-img { width: 100%; max-width: 1100px; height: 550px; margin: 0 auto 60px; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15); }
.blog-main-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 60px; }

/* Article Content */
.article-content { font-size: 18px; line-height: 1.8; color: #334155; }
.article-content p { margin-bottom: 25px; }
.article-content h2 { font-size: 32px; font-weight: 800; color: var(--black); margin: 40px 0 20px; letter-spacing: -0.5px; }
.article-content h3 { font-size: 24px; font-weight: 700; color: var(--black); margin: 30px 0 15px; }

.article-content blockquote { 
    margin: 40px 0; 
    padding: 30px 40px; 
    background: #f8fafc; 
    border-left: 5px solid var(--primary); 
    border-radius: 0 20px 20px 0; 
    font-style: italic; 
    font-size: 22px; 
    color: var(--black); 
    font-weight: 600;
    line-height: 1.5;
}

.article-content img { width: 100%; border-radius: 20px; margin: 30px 0; }

/* Social Sharing */
.social-share-box { padding: 30px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin: 50px 0; display: flex; align-items: center; gap: 20px; }
.share-label { font-weight: 800; font-size: 14px; color: var(--black); text-transform: uppercase; }
.share-btns { display: flex; gap: 10px; }
.share-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }
.share-btn.li { background: #0A66C2; }
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* Sidebar Detail */
.blog-sidebar-widget { background: #f8fafc; padding: 30px; border-radius: 24px; margin-bottom: 30px; border: 1px solid #f1f5f9; }
.widget-title { font-size: 18px; font-weight: 800; color: var(--black); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.widget-title i { color: var(--primary); }

.related-post-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; text-decoration: none; }
.related-post-item:last-child { margin-bottom: 0; }
.related-img { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-info h4 { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.4; transition: var(--transition); }
.related-post-item:hover h4 { color: var(--primary); }
.related-date { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 5px; }

@media (max-width: 1100px) {
    .blog-detail-layout { grid-template-columns: 1fr; }
    .blog-detail-title { font-size: 32px; padding: 0 20px; }
    .blog-main-img { height: 350px; margin: 0 20px 40px; }
}

/* ===== PAGINATION & UTILITIES ===== */
.pagination-wrapper { 
    display: flex; 
    justify-content: center; 
    margin-top: 50px; 
}

.premium-pagination { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.page-link { 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    color: #64748b; 
    font-weight: 700; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

.page-link.active, .page-link:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3); 
    transform: translateY(-3px);
}

.page-dots { 
    color: #94a3b8; 
    font-weight: 800; 
    letter-spacing: 2px; 
}

/* Newsletter Refinements */
.newsletter-section { padding: 100px 0; background: #f8fafc; }
.newsletter-box { 
    background: var(--grad-primary); 
    padding: 80px 60px; 
    border-radius: 40px; 
    text-align: center; 
    color: white; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(79, 70, 229, 0.3);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.newsletter-box h2 { font-size: 42px; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; color: white; }
.newsletter-box p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

.newsletter-form { 
    max-width: 550px; 
    margin: 0 auto; 
    display: flex; 
    gap: 15px; 
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.newsletter-form input { 
    flex: 1; 
    padding: 18px 25px; 
    border-radius: 14px; 
    border: none; 
    font-weight: 600; 
    font-size: 16px;
    outline: none;
}

.btn-subscribe { 
    padding: 15px 35px; 
    border-radius: 14px; 
    background: var(--black); 
    color: white; 
    border: none; 
    font-weight: 800; 
    cursor: pointer; 
    transition: var(--transition);
}

.btn-subscribe:hover { background: #111; transform: scale(1.05); }

@media (max-width: 768px) {
    .newsletter-form { flex-direction: column; background: transparent; padding: 0; }
    .newsletter-box { padding: 50px 30px; }
    .newsletter-box h2 { font-size: 30px; }
}

/* ===== AUTHENTICATION PAGES (Login / Register) ===== */
.auth-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.auth-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.auth-shape-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--primary); }
.auth-shape-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #3b82f6; }

.auth-card {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 50px;
    border-radius: 32px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.8);
}

.auth-header { text-align: center; margin-bottom: 40px; }
.auth-icon { 
    width: 64px; height: 64px; 
    background: var(--primary-soft); 
    color: var(--primary); 
    border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 30px; margin: 0 auto 20px;
}

.auth-title { font-size: 28px; font-weight: 800; color: var(--black); margin-bottom: 10px; letter-spacing: -0.5px; }
.auth-subtitle { color: var(--text-muted); font-size: 15px; }

.form-group { margin-bottom: 25px; }
.form-label { display: block; font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 10px; }

.input-icon-wrapper { position: relative; }
.input-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 20px; transition: var(--transition); }
.input-action-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; cursor: pointer; transition: var(--transition); }

.form-control {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 16px;
    font-weight: 600;
    color: var(--black);
    transition: var(--transition);
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-soft);
}

.form-control:focus + .input-icon { color: var(--primary); }

.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.checkbox-wrapper { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrapper input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.forgot-link { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }

.btn-auth {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 15px 30px -10px rgba(79, 70, 229, 0.4);
}

.btn-auth:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.5); }

.auth-divider { 
    display: flex; align-items: center; gap: 15px; margin: 30px 0; 
    color: #cbd5e1; font-size: 12px; font-weight: 700; text-transform: uppercase; 
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

.btn-social {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-social img { width: 22px; }

.auth-footer-text { text-align: center; margin-top: 35px; font-size: 15px; color: var(--text-muted); }
.auth-footer-text a { color: var(--primary); font-weight: 800; text-decoration: none; }

/* Multi-column registration */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Role Selector for Registration */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-bottom: 25px; }
.role-item { position: relative; cursor: pointer; }
.role-item input { position: absolute; opacity: 0; }
.role-box { 
    background: #f1f5f9; padding: 20px 10px; border-radius: 16px; text-align: center; border: 2px solid transparent; transition: var(--transition); 
}
.role-box i { font-size: 24px; color: #94a3b8; display: block; margin-bottom: 8px; }
.role-box span { font-size: 13px; font-weight: 700; color: #64748b; }

.role-item input:checked + .role-box { border-color: var(--primary); background: var(--primary-soft); }
.role-item input:checked + .role-box i { color: var(--primary); }
.role-item input:checked + .role-box span { color: var(--primary); }

@media (max-width: 600px) {
    .auth-card { padding: 40px 25px; }
    .form-row { grid-template-columns: 1fr; }
}

.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after {
    content: ''; position: absolute; width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ===== HOME PAGE DYNAMIC SECTIONS ===== */
.home-blog-section { padding: 100px 0; background: white; }

.agencies-header-meta {
    margin-bottom: 25px;
    padding: 0 5px;
    display: flex;
    justify-content: flex-end;
}

#agenciesCountText {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:hover:not(.active) { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft); }

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    font-size: 18px;
    color: var(--gray);
}

/* Agencies Hero Section */
.agencies-hero {
    background: var(--grad-primary);
    padding: 100px 0 140px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.agencies-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('includes/assets/images/website/pattern-bg.png');
    opacity: 0.1;
    pointer-events: none;
}

.agencies-hero .hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.agencies-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.agency-search-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 5;
}

.agency-search-box .search-input {
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.agency-search-box .search-input i { color: var(--primary); font-size: 20px; }
.agency-search-box .search-input input {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.btn-search-agencies {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search-agencies:hover { background: var(--black); transform: scale(1.02); }

@media (max-width: 768px) {
    .agency-search-box { grid-template-columns: 1fr; padding: 20px; }
    .btn-search-agencies { height: 50px; }
    .agencies-hero .hero-title { font-size: 32px; }
}

/* Updated Agency Card UI */
.agency-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.agency-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(75, 0, 130, 0.08); }

.agency-card-inner { padding: 30px; }

.agency-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 25px;
}

.agency-logo-wrapper {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
    transition: var(--transition);
}

.agency-card:hover .agency-logo-wrapper { border-color: var(--primary-soft); transform: scale(1.05); }

.agency-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.agency-logo-wrapper i { font-size: 45px; color: #cbd5e1; }

.verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.agency-agent-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.agency-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--primary-soft);
}

.agent-photo-mini {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: #f8fafc;
    overflow: hidden;
}

.agent-photo-mini img { width: 100%; height: 100%; object-fit: cover; }

.agent-card-right h4 { font-size: 17px; font-weight: 800; color: var(--black); margin-bottom: 2px; }
.agent-card-right p { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }

.btn-view-agent-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f1f5f9;
    color: var(--black);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.btn-view-agent-mini:hover {
    background: var(--primary);
    color: white;
}

.btn-view-agent-mini i { transition: var(--transition); }
.btn-view-agent-mini:hover i { transform: translateX(4px); }

.agency-info h3 { font-size: 20px; font-weight: 800; color: var(--black); margin-bottom: 5px; line-height: 1.3; }
.agency-info p { font-size: 13px; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Agents Directory Grid */
.agents-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.agent-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    overflow: hidden;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: var(--primary-soft);
}

.agent-card-inner { padding: 30px; }

.agent-top-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.agent-photo-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 20px;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.agent-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.agent-badge-gold {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #fbbf24;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
}

.agent-main-details h3 { font-size: 19px; font-weight: 800; color: var(--black); margin-bottom: 4px; }
.agent-specialty { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }

.agent-agency-link {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.agent-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
    text-align: center;
    background: transparent !important;
}

.a-stat { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #f1f5f9; }
.a-stat:last-child { border-right: none; }
.a-stat strong { font-size: 20px; font-weight: 800; color: var(--black); line-height: 1; }
.a-stat span { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

.agent-actions { display: flex; gap: 12px; align-items: center; }

.btn-view-profile {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--black);
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.btn-view-profile:hover { background: var(--primary); color: white; border-color: var(--primary); }

.btn-agent-whatsapp-link {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agent-whatsapp-link:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }

.agency-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f8fafc;
    border-radius: 20px;
    padding: 15px 10px;
    margin-bottom: 25px;
    text-align: center;
    gap: 5px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child { border-right: none; }
.stat-item strong { font-size: 20px; font-weight: 900; color: var(--primary); }
.stat-item span { font-size: 10px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

.agency-actions { display: grid; grid-template-columns: 1fr 50px; gap: 10px; }
.btn-view-agency {
    padding: 12px;
    background: #f1f5f9;
    color: var(--black);
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.btn-view-agency:hover { background: var(--primary); color: white; }

.btn-agency-contact {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agency-contact:hover { background: var(--primary); color: white; transform: rotate(15deg); }

/* ===== AGENCY DETAIL PAGE ELITE STYLES ===== */
.agency-detail-page { background: #f8fafc; padding-bottom: 80px; }

.agency-hero-minimal {
    background: var(--grad-primary);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.agency-hero-minimal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('includes/assets/images/website/pattern-bg.png');
    opacity: 0.1;
    pointer-events: none;
}

/* ===== AGENT DETAIL PAGE ELITE STYLES ===== */
.agent-hero-header {
    background: var(--grad-primary);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.agent-hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('includes/assets/images/website/pattern-bg.png');
    opacity: 0.1;
}

.agent-profile-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.agent-profile-main { display: flex; align-items: center; gap: 40px; }

.agent-avatar-large {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.agent-avatar-large img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.agent-avatar-large i { font-size: 80px; color: #cbd5e1; }

.v-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 4px solid white;
}

.agent-intro-text { display: flex; flex-direction: column; gap: 10px; }

.agent-meta-top { display: flex; align-items: center; gap: 15px; }
.a-specialty-tag {
    background: #fbbf24;
    color: #78350f;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.a-rating-mini { display: flex; align-items: center; gap: 5px; font-weight: 700; color: rgba(255,255,255,0.9); }
.a-rating-mini i { color: #fbbf24; }

.a-name { font-size: 48px; font-weight: 900; color: white; letter-spacing: -1.5px; line-height: 1; }
.a-agency-name { font-size: 16px; color: rgba(255,255,255,0.8); }
.a-agency-name strong { color: white; text-decoration: underline; cursor: pointer; }

.a-location-line { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 14px; }

.agent-header-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-a-call, .btn-a-whatsapp {
    width: 220px;
    padding: 16px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-a-call { background: white; color: var(--black); }
.btn-a-whatsapp { background: #25d366; color: white; }

.btn-a-call:hover, .btn-a-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Stats Bar */
.agent-stats-bar {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
}

.a-stats-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
}

.a-stat-item { text-align: center; }
.a-stat-item strong { display: block; font-size: 38px; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.a-stat-item span { font-size: 13px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

.agent-content-section { padding: 60px 0; background: #f8fafc; }
.agent-detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; }

.agency-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
}

.agency-brand-info { display: flex; align-items: center; gap: 30px; }

.detail-agency-logo {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.detail-agency-logo img { width: 100%; height: 100%; object-fit: contain; }
.detail-agency-logo i { font-size: 60px; color: #cbd5e1; }

.agency-main-meta h1 { 
    font-size: 38px; 
    font-weight: 900; 
    color: white !important; 
    margin-bottom: 8px; 
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.agency-location { 
    font-size: 16px; 
    color: #ffffff !important; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 20px; 
    opacity: 1 !important;
}

.agency-location i { color: #ffffff !important; opacity: 1 !important; font-size: 18px; }

.detail-agency-logo i { font-size: 65px; color: #e2e8f0; opacity: 1; }

.badge-premium, .badge-status-active {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-premium { background: #fbbf24; color: #78350f; }
.badge-status-active { background: #10b981; color: white; }

.agency-header-actions { display: flex; gap: 15px; }
.btn-share-agency, .btn-contact-agency-main {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-share-agency { background: white; color: var(--black); }
.btn-contact-agency-main { background: var(--primary-light); color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.btn-share-agency:hover { transform: translateY(-3px); background: #f1f5f9; }
.btn-contact-agency-main:hover { transform: translateY(-3px); background: white; color: var(--primary); }

/* Stats Bar */
.agency-stats-bar {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-grid .stat-item { text-align: center; border-right: 1px solid #f1f5f9; }
.stats-grid .stat-item:last-child { border-right: none; }

.stats-grid .stat-item strong { display: block; font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.stats-grid .stat-item span { font-size: 13px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }

/* Tabs Nav */
.agency-tabs-nav { background: white; border-bottom: 1px solid #e2e8f0; position: sticky; top: 66px; z-index: 99; }
.tabs-list { display: flex; gap: 40px; }
.tabs-list li { position: relative; }
.tabs-list li a { display: block; padding: 25px 0; font-weight: 700; color: var(--gray); font-size: 15px; }
.tabs-list li.active a { color: var(--primary); }
.tabs-list li.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--primary); border-radius: 10px 10px 0 0; }

.detail-content-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0; }

/* Sidebar Filter UI Update */
.filter-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #f1f5f9;
}

.filter-title { font-size: 17px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.filter-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }

.filter-options { display: flex; flex-direction: column; gap: 12px; }

.check-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 15px;
    transition: var(--transition);
    border-radius: 12px;
}

.check-container:hover { background: #f8fafc; color: var(--primary); }

.check-container input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.btn-clear-agencies {
    width: 100%;
    padding: 12px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-clear-agencies:hover { background: #fee2e2; transform: scale(0.98); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-soft);
}

.blog-img-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.blog-img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img { transform: scale(1.1); }

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-content { padding: 30px; }
.blog-meta { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.blog-meta i { color: var(--primary); }

.blog-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 15px;
    transition: var(--transition);
}

.blog-card:hover .blog-title { color: var(--primary); }

.blog-excerpt {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading Skeleton & Skeletons */
.property-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
}

.property-loading p {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    animation: pulse 1.5s infinite;
}

/* ===== TITANIUM AGENCIES SECTION ===== */
.agency-section {
    padding: 100px 0;
    background: #fafafa;
    border-top: 1px solid #f1f1f1;
}

.agency-container {
    position: relative;
    padding: 0 40px;
}

.agency-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.agency-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.agency-card {
    min-width: 280px; /* Increased width */
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    display: flex; /* Enforce flex */
    flex-direction: column; /* Enforce vertical */
    align-items: center;
    justify-content: center;
}

.agency-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(75, 0, 130, 0.12);
    border-color: var(--primary-soft);
}

.agency-logo-box {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.agency-card:hover .agency-logo-box {
    background: white;
    box-shadow: inset 0 0 0 2px var(--primary-soft);
}

.agency-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.agency-info {
    width: 100%;
}

.agency-name {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
    text-align: center;
}

.agency-location {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.agency-location i {
    color: var(--primary);
    font-size: 14px;
}

/* Nav Arrows */
.agency-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.agency-nav:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(75, 0, 130, 0.2);
}

.agency-nav.prev { left: -10px; }
.agency-nav.next { right: -10px; }

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: #f8fafc;
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 700;
}

/* L1600+ Properties Listing Enhancements */
.no-results-state { grid-column: 1 / -1; text-align: center; padding: 80px 40px; background: #fdfdfd; border: 1px dashed #e0e0e0; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 20px; animation: fadeIn 0.6s ease-out; }
.no-results-icon { width: 100px; height: 100px; background: #f0f4ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 48px; border-radius: 50%; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.1); }
.no-results-state h3 { font-size: 24px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; }
.no-results-state p { color: #666; max-width: 450px; line-height: 1.6; margin-bottom: 32px; }
.btn-reset-filters-ui { background: var(--primary); color: white; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3); }
.btn-reset-filters-ui:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4); background: var(--secondary); }
.listing-controls { display: flex; justify-content: space-between; align-items: center; background: white; padding: 16px 24px; border-radius: 20px; margin-bottom: 30px; box-shadow: var(--shadow-sm); border: 1px solid #f0f0f0; }
.sort-box { display: flex; align-items: center; gap: 12px; }
#sortResults { border: none; background: #f8f9fb; padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--dark); outline: none; }
.view-btn { width: 40px; height: 40px; border: none; background: #f8f9fb; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #999; cursor: pointer; transition: all 0.2s ease; }
.view-btn.active { background: var(--primary); color: white; }

/* Active Filter Tags */
.active-filters-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; gap: 15px; }
.active-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { background: #f0f4ff; color: var(--primary); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(var(--primary-rgb), 0.1); transition: all 0.2s; }
.filter-chip i { cursor: pointer; font-size: 14px; opacity: 0.7; }
.filter-chip i:hover { opacity: 1; color: #ff4d4d; }
.clear-all-tags { background: none; border: none; color: #999; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; white-space: nowrap; }
.clear-all-tags:hover { color: var(--primary); }

/* ===== SAVE PROPERTY BUTTONS ===== */
.save-property-btn { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b; font-size: 18px; transition: all 0.3s ease; z-index: 5; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.save-property-btn:hover { transform: scale(1.1); color: #ef4444; background: #fff; }
.save-property-btn.active { color: #ef4444; background: #fff; }
.btn-save-detail { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; background: white; border: 1px solid #e2e8f0; color: #334155; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.3s ease; margin-top: 15px; width: 100%; justify-content: center; }
.btn-save-detail:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-save-detail.active { background: #fff5f5; border-color: #feb2b2; color: #e53e3e; }
.btn-save-detail i { font-size: 18px; }

/* ===== IMAGE PLACEHOLDERS ===== */
.card-img-placeholder, .generic-img-placeholder { width: 100%; height: 100%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 40px; border-radius: inherit; }
.generic-img-placeholder { font-size: 24px; }

/* ===== EMPTY STATE UTILITIES ===== */
.no-data-full, .no-results-full {
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: white;
    border-radius: var(--radius-md);
    border: 1px dashed #e2e8f0;
}

.no-data-full i, .no-results-full i {
    font-size: 64px;
    color: #94a3b8;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-data-full p, .no-results-full p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.no-results-full h3 {
    margin-bottom: 10px;
    color: var(--black);
}

.no-results-state {
    padding: 80px 20px;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 40px auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.no-results-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-results-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-reset-filters-ui {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-reset-filters-ui:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
