/* CSS Variables - Deep Navy Blue and White Theme */
:root {
    --primary-color: #0a1f3a;
    --secondary-color: #ffffff;
    --accent-color: #1a3a5f;
    --toggle-active: #0a1f3a;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 768px) {

    /* Show desktop-only elements */
    .desktop-only {
        display: flex !important;
    }

    /* Hide mobile-only elements */
    .mobile-only {
        display: none !important;
    }

    /* Hide mobile bottom navigation on desktop */
    .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure mobile-only class works for other elements */
    .mobile-only:not(.mobile-bottom-nav) {
        display: none !important;
    }

    .nav-content {
        justify-content: space-between;
        width: 100%;
    }

    .nav-left {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links {
        gap: 2rem;
        margin-left: 0;
        padding-left: 0;
    }

    .nav-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        flex-shrink: 0;
        flex-grow: 0;
    }

    /* Hide mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .nav-left {
        gap: 2.5rem;
        flex: 1 1 auto;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.75rem;
        margin-left: 0;
        padding-left: 0;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    margin-right: 0;
    padding-right: 0;
}

.city-selector-wrapper {
    position: relative;
    margin-left: -0.5rem;
    z-index: 1001;
    pointer-events: auto;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.city-selector:hover {
    border-color: var(--primary-color);
}

.city-selector.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.city-selector.active .fa-chevron-down {
    transform: rotate(180deg);
}

.city-selector-text {
    font-weight: 500;
    color: var(--text-color);
}

.city-selector .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    max-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 10002;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.city-dropdown.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.city-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.city-option:hover {
    background: #f8f9fa;
}

.city-option.active {
    background: #f0f7ff;
    color: var(--primary-color);
}

.city-option.active .fa-check {
    display: inline-block !important;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f5f5f5;
}

.user-dropdown-item button {
    background: none;
    border: none;
    color: #dc3545;
    text-align: left;
    cursor: pointer;
    font-size: inherit;
    width: 100%;
    padding: 0;
}

.user-dropdown-item button:hover {
    background-color: #f5f5f5;
}

.btn-login,
.btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--bg-color);
    border-color: var(--accent-color);
}

.btn-register {
    background: transparent;
    color: var(--text-color);
    border: none;
    padding: 0.5rem 0;
}

.btn-register:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
    pointer-events: auto;
    z-index: 1002;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle:active {
    opacity: 0.7;
}

/* Mobile Menu - Hidden on Desktop by default */
.mobile-menu-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

.mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    pointer-events: auto;
}

.mobile-menu.active {
    right: 0 !important;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.mobile-menu-header .logo-img {
    max-height: 40px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.mobile-menu-content {
    padding: 1rem 0;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--bg-color);
    color: var(--primary-color);
    padding-left: 2rem;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 3rem;
}

.hero-banner-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.hero-faded-title {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-search {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

.hero-search input,
.hero-search select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.hero-search input:focus,
.hero-search select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-search:hover {
    background: var(--accent-color);
}

/* Property Types Section */
.property-types {
    padding: 3rem 0;
    background: var(--white);
}

.property-types h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.property-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.property-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.property-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.property-type-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.property-type-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Map Section */
.map-section {
    padding: 3rem 0;
    background: var(--white);
}

.map-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.properties-map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Featured Listings */
.featured-listings {
    padding: 3rem 0;
    background: var(--bg-color);
}

.featured-listings h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    width: 100%;
    height: 200px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-image i {
    font-size: 3rem;
    color: var(--text-light);
}

.listing-info {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.listing-location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.listing-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.listing-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.listing-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-badge.rent {
    background: #10b981;
    color: white;
}

.listing-badge.sale {
    background: var(--primary-color);
    color: white;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #e91e63;
}

.favorite-btn.active i {
    color: #e91e63;
}

.listing-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-specs {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.listing-specs span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.listing-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Quick View Button Overlay on Image */
.listing-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.listing-card:hover .listing-image-overlay {
    opacity: 1;
}

.quick-view-btn-overlay {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-view-btn-overlay:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.quick-view-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.quick-view-btn:hover {
    background: var(--accent-color);
}

.listing-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

/* Statistics Section */
/* Modern Statistics Section - AI Design */
.stats-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a1f3a 0%, #1a3a5f 50%, #0a1f3a 100%);
    color: var(--white);
    overflow: hidden;
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.stats-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

.stats-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(26, 58, 95, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(10, 31, 58, 0.5) 0%, transparent 50%);
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stats-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stats-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card-modern {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-modern:hover::before {
    opacity: 1;
}

.stat-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card-modern:hover .stat-card-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.stat-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    transform: rotate(45deg);
    transition: transform 0.4s ease;
}

.stat-card-modern:hover .stat-icon-bg {
    transform: rotate(45deg) scale(1.1);
}

.stat-icon {
    position: relative;
    font-size: 2.5rem;
    color: var(--white);
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.stat-card-modern:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-content {
    text-align: center;
}

.stat-number-modern {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.stat-number-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.stat-number-suffix {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.stat-label-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-change-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-change-modern i {
    font-size: 0.75rem;
}

.stat-change-modern.positive {
    color: #4ade80;
}

.stat-change-modern.positive i {
    color: #4ade80;
}

.stat-card-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-modern:hover .stat-card-decoration {
    opacity: 1;
    animation: decorationSlide 2s ease-in-out infinite;
}

@keyframes decorationSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive Stats */
@media (max-width: 968px) {
    .stats-title {
        font-size: 2.5rem;
    }

    .stats-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .stat-card-modern {
        padding: 2rem 1.5rem;
    }

    .stat-number-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 4rem 0;
    }

    .stats-title {
        font-size: 2rem;
    }

    .stats-subtitle {
        font-size: 1rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number-value {
        font-size: 2.5rem;
    }

    .stat-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .stat-icon {
        font-size: 2rem;
    }
}

/* Popular Locations Section */
.popular-locations-section {
    padding: 3rem 0;
    background: var(--white);
}

.popular-locations-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.location-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.location-card p {
    color: var(--text-light);
    text-align: center;
}

.location-count {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.why-choose-us-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* How It Works Section */
.how-it-works-section {
    padding: 3rem 0;
    background: var(--white);
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 12px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: #b8941f;
    border-color: #b8941f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 200;
}

.footer-content-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-legal-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.footer-language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-arabic-text {
    color: #4a4a4a;
    font-size: 0.9rem;
}

.footer-country-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.footer-country-selector:hover {
    border-color: #b0b0b0;
}

.footer-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.footer-country-selector span {
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-country-selector i {
    color: #4a4a4a;
    font-size: 0.75rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icon i {
    font-size: 1rem;
}

/* Legacy footer styles for backward compatibility */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* CEO Section */
.footer-ceo-section {
    margin: 3rem 0 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.ceo-card {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ceo-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ceo-image-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.ceo-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ceo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ceo-info {
    flex: 1;
    color: var(--white);
}

.ceo-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.ceo-title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ceo-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.ceo-achievements {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.achievement-item i {
    font-size: 1.5rem;
    color: #ffd700;
}

.achievement-item span {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

/* Responsive CEO Section */
@media (max-width: 968px) {
    .ceo-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .ceo-name {
        font-size: 2rem;
    }

    .ceo-achievements {
        justify-content: center;
    }

    .footer-ceo-section {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .ceo-image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .ceo-name {
        font-size: 1.75rem;
    }

    .ceo-title {
        font-size: 1rem;
    }

    .ceo-description {
        font-size: 0.9rem;
    }

    .achievement-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content-new {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-language-selector {
        justify-content: center;
    }
}

/* Filters */
.filters {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filters h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Post Ad Form */
.post-ad-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
    margin-top: 0.25rem;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.progress-step.active .step-label {
    color: var(--text-color);
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    color: var(--white);
}

.progress-step.completed .step-label {
    color: var(--text-color);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin-top: -20px;
    transition: background 0.3s ease;
}

.progress-step.completed+.progress-line {
    background: var(--primary-color);
}

.form-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-save-draft {
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save-draft:hover {
    background: var(--primary-color);
    color: var(--white);
}

.auto-save-status {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.form-step {
    display: none !important;
}

.form-step.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-next,
.btn-prev {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-next {
    background: var(--primary-color);
    color: var(--white);
    margin-left: auto;
}

.btn-next:hover {
    background: var(--accent-color);
}

.btn-prev {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-prev:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.input-with-counter,
.textarea-with-counter {
    position: relative;
}

.char-counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.textarea-with-counter .char-counter {
    top: auto;
    bottom: 0.75rem;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.price-input-wrapper input {
    padding-left: 3rem;
    width: 100%;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.3s ease;
}

.price-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.1);
}

.price-input-wrapper input::placeholder {
    color: #999;
}

/* Ensure disabled selects are still visible but not clickable */
select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

select:not(:disabled) {
    cursor: pointer;
    background-color: var(--white);
    opacity: 1;
}

.validation-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
}

.upload-placeholder p {
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.upload-placeholder span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.image-preview-single {
    display: none;
}

.image-preview-single img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-preview-single:has(img) {
    display: block;
}

.file-upload-area:has(.image-preview-single:has(img)) .upload-placeholder {
    display: none;
}

.multi-image-upload {
    margin-top: 1rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.upload-slot {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-slot:hover {
    border-color: var(--primary-color);
}

.upload-slot input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-color);
}

.upload-placeholder-small i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.upload-placeholder-small span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.image-preview-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.image-preview-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-slot:has(.image-preview-small:has(img)) .upload-placeholder-small {
    display: none;
}

.upload-slot:has(.image-preview-small:has(img)) .image-preview-small {
    display: block;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: var(--white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0.75rem;
}

.upload-slot:has(.image-preview-small:has(img)) .remove-image {
    display: flex;
}

.btn-add-more-images {
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-more-images:hover {
    background: var(--primary-color);
    color: var(--white);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.preview-section {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.btn-preview {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: var(--primary-color);
    color: var(--white);
}

.submit-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .progress-indicator {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .progress-line {
        width: 30px;
    }

    .form-actions-top {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .step-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-next,
    .btn-prev {
        width: 100%;
        justify-content: center;
    }

    .submit-buttons {
        flex-direction: column;
    }

    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Map Section Styles */
.map-instruction-text {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.property-location-map {
    width: 100%;
    height: 400px;
    background: #e0e0e0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-text {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: transparent;
    border-radius: 8px;
    margin: 0;
    font-size: 0.95rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
}

.property-location-map.active .map-placeholder-text {
    display: none;
}

.property-location-map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.coordinates-display {
    display: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.coordinates-display.show {
    display: block;
}

.coordinates-display i {
    margin-right: 0.5rem;
    color: #28a745;
}

.detailed-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Form Container Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container-large {
    max-width: 800px;
}

.form-container h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-section-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.password-strength.weak .strength-bar::after {
    width: 33%;
    background: #dc3545;
}

.password-strength.medium .strength-bar::after {
    width: 66%;
    background: #ffc107;
}

.password-strength.strong .strength-bar::after {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.password-strength.weak .strength-text {
    color: #dc3545;
}

.password-strength.medium .strength-text {
    color: #ffc107;
}

.password-strength.strong .strength-text {
    color: #28a745;
}

.password-match {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.password-match.match {
    color: #28a745;
}

.password-match.no-match {
    color: #dc3545;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.radio-label i {
    color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--accent-color);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-light);
    margin: 0;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container-large {
        max-width: 100%;
        padding: 1.5rem;
    }

    .radio-group {
        gap: 0.5rem;
    }
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.file-upload-wrapper {
    margin-bottom: 1rem;
}

.file-upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.submit-section {
    text-align: center;
    margin-top: 2rem;
}

.submit-section button {
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-section button:hover {
    background: var(--accent-color);
}

/* Listing Detail */
.listing-detail {
    padding: 3rem 0;
    background: var(--bg-color);
}

.listing-detail-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.listing-detail-image-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.listing-detail-image {
    width: 100%;
    height: 400px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.gallery-thumbnail {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.image-gallery img:hover {
    opacity: 1;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.property-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-badge,
.listing-type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.property-badge {
    background: var(--bg-color);
    color: var(--primary-color);
}

.listing-type-badge {
    background: var(--secondary-color);
    color: var(--white);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.property-specs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-specs>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.spec-item-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.spec-item-grid i {
    font-size: 1.5rem;
    color: var(--text-color);
    width: 30px;
    text-align: center;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-content strong {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.spec-content span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.property-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.property-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white);
}

.btn-contact:hover {
    background: var(--accent-color);
}

.btn-call {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-call:hover {
    background: #b8941f;
}

.details-table {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: var(--text-light);
}

.detail-row strong {
    color: var(--text-color);
    font-weight: 600;
}

.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

/* Property Details Section */
.property-details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Trust Message Card */
.trust-message-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trust-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(255, 107, 53, 0.5) 100%);
}

.trust-message-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.trust-message-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.trust-message-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.trust-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-benefit-item {
    text-align: center;
    padding: 0.5rem;
}

.trust-benefit-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-benefit-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.trust-benefit-description {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.trust-message-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-message-note {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.trust-message-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .trust-message-card {
        padding: 1.5rem 1rem;
    }

    .trust-message-title {
        font-size: 1.1rem;
    }

    .trust-message-subtitle {
        font-size: 0.9rem;
    }

    .trust-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .trust-benefit-icon {
        font-size: 1.5rem;
    }

    .trust-benefit-title {
        font-size: 0.85rem;
    }

    .trust-benefit-description {
        font-size: 0.8rem;
    }

    .trust-message-note {
        font-size: 0.85rem;
    }
}

/* Listing Meta - Views and Age */
.listing-views,
.listing-age {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.listing-views i,
.listing-age i {
    color: var(--primary-color);
}

/* Action Buttons Row */
.listing-actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-action-secondary {
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-secondary:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

.btn-directions {
    background: #4285F4;
    color: white;
    border: none;
}

.btn-directions:hover {
    background: #357AE8;
}

/* Mortgage Calculator */
.mortgage-calculator,
.roi-calculator {
    margin-top: 1rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-inputs .form-group {
    margin-bottom: 0;
}

.calculator-inputs input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-inputs .form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.pmi-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #ffc107;
    color: #856404;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pmi-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #d1ecf1;
    border-radius: 8px;
    border-left: 4px solid #0dcaf0;
    margin-top: 1rem;
    color: #055160;
    font-size: 0.9rem;
}

.pmi-info i {
    color: #0dcaf0;
    font-size: 1rem;
    flex-shrink: 0;
}

.calculator-results {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border: none;
}

.result-item.highlight span,
.result-item.highlight strong {
    color: white;
}

/* Price Per Sqft */
.price-per-sqft {
    margin-top: 1rem;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comparison-item strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Schedule Viewing Modal */
.viewing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.viewing-modal.active {
    display: flex;
}

.viewing-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.viewing-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.viewing-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.viewing-modal-content .form-group {
    margin-bottom: 1rem;
}

.viewing-modal-content input,
.viewing-modal-content select,
.viewing-modal-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-submit-viewing {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-submit-viewing:hover {
    background: #e55a2b;
}

/* Schools List */
.schools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.school-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.school-info p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.school-rating {
    text-align: center;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9rem;
}

/* Transport Routes */
.transport-routes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transport-route-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.route-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.route-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.route-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Floor Plan Viewer */
.floor-plan-viewer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.floor-plan-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floor-plan-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Maintenance Charges */
.maintenance-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.maintenance-item span {
    color: #666;
}

.maintenance-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Owner Verification Badge */
.verification-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #28a745;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.verification-badge i {
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .listing-actions-row {
        flex-direction: column;
    }

    .btn-action-secondary {
        width: 100%;
        justify-content: center;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .school-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .transport-route-item {
        flex-direction: column;
        text-align: center;
    }

    .floor-plan-viewer {
        grid-template-columns: 1fr;
    }
}

/* Neighborhood Information Styles */
.neighborhood-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.neighborhood-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.neighborhood-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.neighborhood-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.neighborhood-section h4 i {
    font-size: 1rem;
}

.neighborhood-section p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Demographics Grid */
.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.demographic-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.demographic-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.demographic-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Lifestyle Tags */
.lifestyle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lifestyle-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #e7f3ff;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lifestyle-tag i {
    font-size: 0.8rem;
    color: #28a745;
}

/* Landmarks List */
.landmarks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landmark-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.landmark-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.landmark-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landmark-item strong {
    color: #333;
    margin-bottom: 0.25rem;
}

.landmark-item span {
    color: #666;
    font-size: 0.9rem;
}

/* Safety Info */
.safety-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.safety-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.safety-label {
    font-weight: 600;
    color: #333;
}

.safety-stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.safety-text {
    color: #28a745;
    font-weight: 600;
    margin-left: auto;
}

.safety-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.safety-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.safety-features li i {
    color: #28a745;
    font-size: 0.8rem;
}

/* Characteristics List */
.characteristics-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.characteristic-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.characteristic-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.characteristic-item span {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Neighborhood Styles */
@media (max-width: 768px) {
    .demographics-grid {
        grid-template-columns: 1fr;
    }

    .lifestyle-tags {
        flex-direction: column;
    }

    .lifestyle-tag {
        width: 100%;
    }

    .safety-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .safety-text {
        margin-left: 0;
    }

    .safety-features {
        grid-template-columns: 1fr;
    }

    .characteristics-list {
        grid-template-columns: 1fr;
    }
}

/* Additional Information Styles */
.additional-info-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-section h4 i {
    font-size: 1rem;
}

/* Highlights List */
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.highlights-list li i {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #e7f3ff;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: #28a745;
    font-size: 0.8rem;
}

/* Notes Box */
.notes-box,
.instructions-box,
.terms-box,
.negotiation-box,
.history-box,
.reason-box,
.general-info-box,
.terms-conditions-box {
    padding: 1.25rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    line-height: 1.8;
    font-size: 0.95rem;
}

.instructions-box {
    background: #d1ecf1;
    border-left-color: #0dcaf0;
    color: #055160;
}

.terms-box,
.terms-conditions-box {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.negotiation-box {
    background: #e7f3ff;
    border-left-color: var(--primary-color);
    color: #004085;
}

.history-box,
.reason-box {
    background: #f8f9fa;
    border-left-color: #6c757d;
    color: #495057;
}

.general-info-box {
    background: #f8f9fa;
    border-left-color: var(--primary-color);
    color: #333;
}

/* Requirements List */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    font-size: 0.95rem;
}

.requirements-list li i {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Documents List */
.documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.documents-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    font-size: 0.95rem;
}

.documents-list li i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Contact Preference */
.contact-preference {
    padding: 1rem;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-preference p {
    margin: 0;
    color: #004085;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-preference i {
    color: var(--primary-color);
}

/* Response Time */
.response-time {
    padding: 1rem;
    background: #d1ecf1;
    border-radius: 8px;
    border-left: 4px solid #0dcaf0;
}

.response-time p {
    margin: 0;
    color: #055160;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.response-time i {
    color: #28a745;
}

/* Responsive Additional Info */
@media (max-width: 768px) {
    .additional-info-content {
        gap: 1.5rem;
    }

    .info-section {
        padding-bottom: 1rem;
    }

    .info-section h4 {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .highlights-list li,
    .requirements-list li,
    .documents-list li {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }

    .notes-box,
    .instructions-box,
    .terms-box,
    .negotiation-box,
    .history-box,
    .reason-box,
    .general-info-box,
    .terms-conditions-box {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Parking & Storage Styles */
.parking-storage-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.parking-section,
.storage-section {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.parking-section:last-child,
.storage-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.parking-section h4,
.storage-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.parking-section h4 i,
.storage-section h4 i {
    font-size: 1rem;
}

.parking-details,
.storage-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.parking-detail-item,
.storage-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.parking-detail-item:hover,
.storage-detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.parking-icon,
.storage-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.parking-info,
.storage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.parking-info strong,
.storage-info strong {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.parking-info span,
.storage-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Parking Notes */
.parking-notes {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.parking-notes h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #28a745;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.parking-notes h4 i {
    font-size: 0.9rem;
}

.notes-content {
    color: #666;
    line-height: 1.8;
}

.notes-content p {
    margin: 0.5rem 0;
}

.notes-content strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Parking & Storage */
@media (max-width: 768px) {

    .parking-details,
    .storage-details {
        grid-template-columns: 1fr;
    }

    .parking-detail-item,
    .storage-detail-item {
        flex-direction: column;
        text-align: center;
    }

    .parking-icon,
    .storage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .parking-info,
    .storage-info {
        align-items: center;
    }
}

/* Detailed Specifications Styles */
.detailed-specs-table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.specs-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.specs-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.specs-category-title i {
    font-size: 1rem;
}

.specs-category-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.spec-row:hover {
    background: #f0f0f0;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
}

.spec-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
    max-width: 60%;
    word-break: break-word;
}

/* Responsive Detailed Specs */
@media (max-width: 768px) {
    .detailed-specs-table {
        gap: 1.5rem;
    }

    .specs-category {
        padding: 1rem;
    }

    .specs-category-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
    }

    .spec-value {
        text-align: left;
        max-width: 100%;
        width: 100%;
    }
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-card h3 i {
    color: var(--primary-color);
}

.detail-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Share Options */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-option-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid #000;
    border-radius: 6px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.share-option-btn:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.share-option-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.share-option-btn .fab.fa-facebook {
    background: #000;
    color: var(--white);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Toggle Switch Component */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    outline: none;
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-switch-slider {
    transform: translateX(22px);
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: var(--text-light);
}

.summary-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Amenities Display */
.amenities-display {
    margin-top: 1rem;
}

.amenities-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: #e8f0fe;
    transform: translateX(5px);
}

.amenity-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.amenity-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Building Info */
.building-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.building-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.building-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.building-info-item div {
    display: flex;
    flex-direction: column;
}

.building-info-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.building-info-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Property Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.highlight-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Price Analysis */
.price-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.price-analysis-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 10px;
}

.price-analysis-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.price-analysis-item div {
    display: flex;
    flex-direction: column;
}

.price-analysis-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.price-analysis-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Virtual Tour */
.virtual-tour-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

/* Nearby Amenities */
.nearby-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.nearby-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.nearby-amenity-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.amenity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amenity-info strong {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.amenity-type {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.amenity-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.amenity-distance i {
    font-size: 0.8rem;
}

/* Transportation */
.transportation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.transport-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.transport-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.transport-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* Parking Info */
.parking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.parking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.parking-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.parking-item div {
    display: flex;
    flex-direction: column;
}

.parking-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.parking-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Utilities */
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.utility-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.utility-item div {
    display: flex;
    flex-direction: column;
}

.utility-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.utility-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Investment Info */
.investment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.investment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
}

.investment-item i {
    font-size: 2rem;
    width: 40px;
    text-align: center;
}

.investment-item div {
    display: flex;
    flex-direction: column;
}

.investment-item strong {
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.investment-item span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Neighborhood */
.neighborhood-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.neighborhood-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.neighborhood-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.neighborhood-item span {
    color: var(--text-color);
}

/* Documents */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
}

.document-item i {
    font-size: 2rem;
    color: #dc3545;
}

.document-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.document-item strong {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.document-item span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-download {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: var(--accent-color);
}

/* Detailed Specs */

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
}

/* Property ID Display */
.property-id-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.property-id-display strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.property-id-display span {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Similar Properties */
.similar-properties-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.similar-property-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-property-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.similar-property-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.similar-property-image i {
    font-size: 2rem;
    color: var(--text-light);
}

.similar-property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.similar-property-info h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.similar-property-price {
    color: #2563eb;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.similar-property-location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Styles for New Detail Sections */
@media (max-width: 768px) {

    .highlights-grid,
    .price-analysis-grid,
    .nearby-amenities-grid,
    .transportation-grid,
    .parking-info-grid,
    .utilities-grid,
    .investment-info-grid {
        grid-template-columns: 1fr;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .spec-value {
        text-align: left;
    }

    .virtual-tour-container iframe,
    .virtual-tour-container video {
        height: 300px;
    }

    .similar-property-item {
        flex-direction: column;
    }

    .similar-property-image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   ENHANCED HOMEPAGE STYLES
   ============================================ */

/* Enhanced Hero Search */
.hero-advanced-search {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.advanced-search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range-inputs input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.price-range-inputs span {
    color: var(--text-light);
}

.search-field select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.hero-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-toggle-advanced {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-advanced:hover,
.btn-toggle-advanced.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.popular-searches {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.popular-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.popular-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Enhanced Property Types */
.property-type-stats {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.property-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.property-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.property-type-price {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.property-type-price span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Enhanced Featured Listings */
.listings-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-color);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.featured-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Enhanced Statistics */
.stat-change {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat-change.positive {
    color: #28a745;
}

/* Enhanced Locations */
.location-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-image:hover img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.location-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.9;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.location-content {
    padding: 1.5rem;
}

.location-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.location-count {
    font-weight: 700;
    color: var(--primary-color);
}

.location-price {
    color: var(--text-light);
}

.location-trend {
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}



/* Developers Showcase Section - Professional Design */
.developers-showcase-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a1f3a 0%, #1a3a5f 50%, #0a1f3a 100%);
    color: var(--white);
    overflow: hidden;
}

.developers-showcase-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.developers-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.developers-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.developers-showcase-section .container {
    position: relative;
    z-index: 1;
}

.developers-showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.developers-showcase-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.developers-showcase-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Developers Logo Carousel */
.developers-logo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 3rem 0;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.developers-logo-carousel {
    display: flex;
    gap: 4rem;
    animation: scrollLogos 40s linear infinite;
    width: fit-content;
}

.developers-logo-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.developer-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
    min-width: 180px;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.developer-logo-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.developer-logo-container {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* Special handling for logos that need dark background (like white logos) */
.developer-logo-item[data-logo-type="white"] .developer-logo-container {
    background: linear-gradient(135deg, #1a3a5f 0%, #0a1f3a 100%);
}

.developer-logo-item:hover .developer-logo-container {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.developer-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.developer-logo-item:hover .developer-logo-img {
    filter: drop-shadow(0 4px 16px rgba(255, 255, 255, 0.3));
    transform: scale(1.1);
}

.developer-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
}

.developer-logo-fallback span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
}

.developer-logo-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.developer-logo-item:hover .developer-logo-name {
    opacity: 1;
}

.developers-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: none;
    /* Hide grid, show carousel instead */
}

.developer-showcase-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.developer-showcase-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.developer-showcase-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.developer-showcase-card:hover .developer-showcase-glow {
    opacity: 1;
}

.developer-showcase-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.developer-showcase-card:hover .developer-showcase-logo {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.developer-showcase-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.developer-showcase-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
}

.developer-showcase-fallback span {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
}

.developer-showcase-content {
    text-align: center;
}

.developer-showcase-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    letter-spacing: -0.01em;
}

.developer-showcase-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 3em;
}

.developer-showcase-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.dev-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.dev-stat-item i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.developer-showcase-year {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.developer-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.developer-showcase-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.developer-showcase-link i {
    transition: transform 0.3s ease;
}

.developer-showcase-link:hover i {
    transform: translateX(4px);
}

.developers-showcase-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all-developers {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-view-all-developers:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-view-all-developers i {
    transition: transform 0.3s ease;
}

.btn-view-all-developers:hover i {
    transform: translateX(6px);
}

/* Responsive Developers Showcase */
@media (max-width: 968px) {
    .developers-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .developers-showcase-title {
        font-size: 2.5rem;
    }

    .developer-logo-item {
        min-width: 150px;
        padding: 1.25rem 1.5rem;
    }

    .developer-logo-container {
        width: 100px;
        height: 100px;
        padding: 1.25rem;
    }

    .developers-logo-carousel {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .developers-showcase-section {
        padding: 4rem 0;
    }

    .developers-showcase-title {
        font-size: 2rem;
    }

    .developers-showcase-subtitle {
        font-size: 1.1rem;
    }

    .developers-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .developer-showcase-card {
        padding: 2rem;
    }

    .developer-showcase-logo {
        width: 100px;
        height: 100px;
    }

    .developer-logo-item {
        min-width: 120px;
        padding: 1rem 1.25rem;
    }

    .developer-logo-container {
        width: 80px;
        height: 80px;
        padding: 1rem;
    }

    .developer-logo-fallback span {
        font-size: 2.5rem;
    }

    .developer-logo-name {
        font-size: 0.85rem;
    }

    .developers-logo-carousel {
        gap: 2rem;
        animation-duration: 30s;
    }

    .developers-logo-carousel-wrapper {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
}


/* Developers Page Styles - Professional Design */
.developers-hero {
    background: linear-gradient(135deg, #0a1f3a 0%, #1a3a5f 50%, #2d5a8a 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.developers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-pattern {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-color);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.developers-hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #ffd700;
}

.developers-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Developers Filters Section */
.developers-filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.developers-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
}

.developer-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.developer-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 31, 58, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(10, 31, 58, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.developers-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.developer-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.developer-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.developer-card-header {
    position: relative;
}

.developer-badge-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0a1f3a;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.developer-badge-top i {
    font-size: 0.85rem;
}

.developer-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: transform 0.4s ease;
}

.developer-card:hover .developer-image {
    transform: scale(1.05);
}

.developer-image.has-logo {
    background: linear-gradient(135deg, #1a3a5f 0%, #0a1f3a 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.developer-image.has-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.developer-image.has-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-initial {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0;
    line-height: 1;
}

/* Developer icon hover effect */
.developer-card:hover .developer-image.has-icon {
    transform: scale(1.05);
}

.developer-card:hover .developer-initial {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.developer-card:hover .developer-image img {
    transform: scale(1.1);
}

.developer-info {
    padding: 2rem;
}

.developer-header-info {
    margin-bottom: 1rem;
}

.developer-info h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.developer-year {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.25rem;
}

.developer-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.developer-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(10, 31, 58, 0.03) 0%, rgba(26, 58, 95, 0.02) 100%);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.developer-locations {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(10, 31, 58, 0.02);
    border-radius: 8px;
}

.developer-locations i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.developer-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(10, 31, 58, 0.08) 0%, rgba(26, 58, 95, 0.05) 100%);
    border: 1px solid rgba(10, 31, 58, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.developer-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-view-projects {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-view-projects:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 31, 58, 0.3);
}

.btn-view-projects i {
    transition: transform 0.3s ease;
}

.developer-card:hover .btn-view-projects i {
    transform: translateX(4px);
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results-message i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-developers {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-developers i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-developers h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-developers p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}



/* Chart Cards */
.chart-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.chart-header h3 i {
    color: var(--primary-color);
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9rem;
}

.chart-btn:hover,
.chart-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

.chart-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.chart-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-value.positive {
    color: #28a745;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Responsive Charts */
@media (max-width: 768px) {
    .insights-charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-stats {
        flex-direction: column;
        align-items: center;
    }
}

/* Investment Calculator */
.calculator-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-field label {
    font-weight: 600;
    color: var(--text-color);
}

.calc-field input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.calc-result-card {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-result-card i {
    font-size: 2rem;
}

.calc-result-card div {
    display: flex;
    flex-direction: column;
}

.calc-result-card strong {
    font-size: 0.9rem;
    opacity: 0.9;
}

.calc-result-card span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Budget Categories */
.budget-categories-section {
    padding: 4rem 0;
    background: white;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.budget-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.budget-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.budget-card.luxury {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.budget-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.budget-card.luxury i {
    color: white;
}

.budget-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.budget-card.luxury h3 {
    color: white;
}

.budget-card p {
    color: var(--text-light);
    font-weight: 600;
}

.budget-card.luxury p {
    color: rgba(255, 255, 255, 0.9);
}

/* Quick Actions */
.quick-actions-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-action-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quick-action-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-action-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.quick-action-card p {
    color: var(--text-light);
}

/* Trust Indicators */
.trust-section {
    padding: 3rem 0;
    background: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-search-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .listings-controls {
        flex-direction: column;
        width: 100%;
    }

    .featured-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .calculator-inputs,
    .calculator-results {
        grid-template-columns: 1fr;
    }
}

/* Contact Details */
.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-detail-item span {
    color: var(--text-color);
}

.btn-full {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Map Container Detail */
.map-container-detail {
    width: 100%;
    height: 300px;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-color);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.location-details {
    margin-bottom: 1rem;
}

.location-details p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.location-details p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-contact-seller {
    background: var(--primary-color);
    color: var(--white);
    flex: 0 0 auto;
}

.btn-contact-seller:hover {
    background: var(--accent-color);
}

.btn-call-now {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    flex: 1;
}

.btn-call-now:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: var(--text-color);
}

.listing-detail-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.listing-detail-meta>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-detail-meta i {
    color: var(--primary-color);
}

.listing-detail-price {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0.5rem 0 1rem 0;
    opacity: 0.8;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    min-width: 120px;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-item strong {
    font-size: 1.2rem;
    color: var(--text-color);
}

.spec-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Property Header Styling */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.property-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-badge {
    padding: 0.4rem 0.8rem;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.listing-type-badge {
    padding: 0.4rem 0.8rem;
    background: #28a745;
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.listing-type-badge.for-sale {
    background: #ff6b35;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#propertyTitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 0;
    line-height: 1.3;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.btn-contact-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-contact-primary:hover {
    background: var(--accent-color);
}

.contact-message-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

.contact-message-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-message-input::placeholder {
    color: var(--text-light);
}

/* Map Popup Styles */
.map-popup-content {
    min-width: 200px;
}

.map-popup-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-popup-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.map-popup-location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.map-popup-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.map-popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.map-popup-link:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 968px) {

    /* Hide desktop navigation */
    .nav-links {
        display: none !important;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Show mobile menu on mobile only */
    .mobile-menu-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        z-index: 9999;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .listing-detail-header {
        grid-template-columns: 1fr;
    }

    .property-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .stats-grid,
    .locations-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {

    /* Base Container */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-content {
        flex-wrap: nowrap;
        gap: 1rem;
        position: relative;
    }

    .nav-left {
        flex: 0 0 auto;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .logo-img {
        max-height: 48px;
        width: auto;
    }

    /* Hide nav-right on mobile - only show logo and menu toggle */
    .nav-right.desktop-only {
        display: none !important;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-left {
        flex: 1;
    }

    .mobile-menu-toggle {
        flex-shrink: 0;
        padding: 0.5rem;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        pointer-events: auto !important;
        z-index: 1002 !important;
        position: relative;
        cursor: pointer !important;
    }

    /* Mobile Search Section */
    .mobile-search-section {
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 0;
        position: sticky;
        top: 56px;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .mobile-search-bar {
        display: flex;
        align-items: center;
        background: var(--bg-color);
        border-radius: 8px;
        padding: 0.5rem 1rem;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .mobile-search-bar .search-icon {
        color: var(--text-light);
        font-size: 1rem;
        flex-shrink: 0;
    }

    .mobile-search-input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 0.95rem;
        color: var(--text-color);
        outline: none;
    }

    .mobile-search-input::placeholder {
        color: var(--text-light);
    }

    .mobile-filter-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.5rem 0.75rem;
        margin: 0;
        background: #fff;
    }

    .mobile-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-bar .mobile-filter-btn,
    .mobile-filter-bar .mobile-category-btn,
    .mobile-filter-bar .mobile-category-selector select {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.375rem !important;
        padding: 0 0.75rem !important;
        background: #fff !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        font-size: 0.8125rem !important;
        font-weight: 500 !important;
        color: #374151 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        height: 36px !important;
        min-height: 36px !important;
        width: auto !important;
        margin-bottom: 0 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .mobile-filter-bar .mobile-filter-btn:active,
    .mobile-filter-bar .mobile-category-btn:active,
    .mobile-filter-bar .mobile-category-selector select:active {
        background: #f9fafb !important;
        border-color: #9ca3af !important;
    }

    .mobile-filter-btn i {
        color: #2563eb;
        font-size: 0.875rem;
    }

    .filter-badge {
        background: #2563eb;
        color: #fff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        min-width: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem;
        font-weight: 700;
        margin-left: 0.125rem;
        line-height: 1;
        flex: 0 0 16px;
    }

    .mobile-category-selector {
        position: relative;
        flex-shrink: 0;
    }

    .mobile-category-select {
        width: auto;
        min-width: 80px;
        appearance: none;
        outline: none;
        padding-right: 2.25rem !important;
    }

    .mobile-category-selector i {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        pointer-events: none;
        font-size: 0.8rem;
    }

    .mobile-category-btn {
        background: #fff;
    }

    .mobile-category-btn i {
        font-size: 0.8rem;
        color: #64748b;
    }


    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-decoration: none;
        color: var(--text-light);
        font-size: 0.7rem;
        font-weight: 500;
        flex: 1;
        padding: 0.25rem;
        transition: color 0.3s ease;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
    }

    .bottom-nav-item i {
        font-size: 1.25rem;
        color: var(--text-light);
        transition: color 0.3s ease;
    }

    .bottom-nav-item span {
        font-size: 0.7rem;
        line-height: 1;
    }

    .bottom-nav-item.active {
        color: var(--primary-color);
    }

    .bottom-nav-item.active i {
        color: var(--primary-color);
    }

    .bottom-nav-item:hover {
        color: var(--primary-color);
    }

    .bottom-nav-item:hover i {
        color: var(--primary-color);
    }

    /* Post an ad button - prominent red circle */
    .bottom-nav-post-ad {
        position: relative;
        flex: 1;
    }

    .post-ad-icon {
        width: 48px;
        height: 48px;
        background: #dc3545;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .post-ad-icon i {
        color: var(--white);
        font-size: 1.5rem;
    }

    .bottom-nav-post-ad:hover .post-ad-icon {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

    .bottom-nav-post-ad span {
        margin-top: 0.25rem;
        color: var(--text-color);
        font-weight: 600;
    }

    /* Add padding to content to prevent overlap with bottom nav on mobile */
    @media (max-width: 768px) {
        body {
            padding-bottom: 60px;
        }

        /* Ensure mobile bottom nav is always visible */
        .mobile-bottom-nav {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }

    /* Hero Section */
    .hero-banner-container {
        height: 400px;
        border-radius: 0;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .hero-content {
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .hero-faded-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-main-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-search {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-search input,
    .hero-search select {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem;
        min-height: 44px;
        /* Touch-friendly */
    }

    .btn-search {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 44px;
        /* Touch-friendly */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-search i {
        font-size: 1rem;
    }

    /* Listings Grid */
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .listings-grid[data-view="list"] .listing-card {
        grid-template-columns: 1fr;
    }

    .listings-grid[data-view="list"] .listing-image {
        min-height: 250px;
        height: 250px;
    }

    .listings-grid[data-view="list"] .listing-info {
        padding: 1.5rem;
    }

    .listings-grid[data-view="list"] .listing-title {
        font-size: 1.3rem;
    }

    .listings-grid[data-view="list"] .listing-price {
        font-size: 1.6rem;
    }

    .listings-grid[data-view="list"] .listing-specs {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .listings-grid[data-view="list"] .quick-view-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }

    /* Listings Header */
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .results-info {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .sort-controls {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .sort-controls select {
        width: 100%;
    }

    /* Filter Sidebar */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 1rem !important;
        background: var(--white);
    }

    .filters-sidebar.active {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .filter-overlay.active {
        display: block;
    }

    .filter-toggle-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 1rem;
    }

    /* Property Types */
    .property-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .property-type-card {
        padding: 1.5rem 1rem;
    }

    .property-type-card i {
        font-size: 2.5rem;
    }

    /* Stats Grid */
    .stats-grid,
    .locations-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Listing Detail */
    .listing-detail-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .listing-detail-image-container {
        order: -1;
    }

    .listing-detail-image {
        height: 300px;
    }

    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    /* Property Details Section - Stack on Mobile */
    .property-details-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-card {
        padding: 1.5rem;
    }

    .detail-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .detail-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .details-sidebar {
        order: -1;
        /* Show sidebar first on mobile */
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .sidebar-card h3 {
        font-size: 1.1rem;
    }

    /* Property Specs Grid */
    .property-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .spec-item-grid {
        padding: 1rem;
    }

    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-contact-seller,
    .btn-call-now {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .listing-detail-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-buttons {
        gap: 0.5rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    /* Summary Items */
    .summary-item {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .summary-item strong {
        font-size: 1rem;
    }

    /* Contact Card */
    .contact-card {
        padding: 1.5rem;
    }

    .contact-detail-item {
        padding: 0.75rem 0;
        font-size: 0.95rem;
    }

    .contact-message-input {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .btn-contact-primary {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    /* Details Table */
    .details-table {
        padding: 1.5rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .detail-label {
        font-weight: 600;
        font-size: 0.9rem;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    /* Building Info Grid */
    .building-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Amenities Display */
    .amenities-display {
        font-size: 0.95rem;
    }

    /* Map Container */
    .map-container-detail {
        height: 250px;
        margin-top: 1rem;
    }

    .map-placeholder {
        padding: 2rem 1rem;
    }

    /* Forms */
    .form-container-large {
        padding: 1.5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Add extra padding to footer on mobile to account for bottom nav */
    .footer {
        padding-bottom: 4rem;
    }

    /* Modals */
    .login-modal-content,
    .registration-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }

    .login-modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .login-modal-left {
        display: none;
    }

    /* Map */
    .properties-map {
        height: 300px;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Cards */
    .feature-card,
    .step-card {
        padding: 1.5rem;
    }

    /* Touch-friendly elements */
    button,
    .btn-primary,
    .btn-secondary,
    .city-option,
    .filter-section-header {
        min-height: 44px;
        min-width: 44px;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }

    .mobile-search-section.mobile-only {
        display: block !important;
    }

}

/* Extra Small Devices */
@media (max-width: 480px) {
    .nav-content {
        gap: 0.5rem;
    }

    .logo-img {
        max-height: 44px;
    }

    .city-selector-wrapper {
        max-width: 150px;
    }

    .city-selector {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
    }

    .city-selector-text {
        max-width: 100px;
    }

    .btn-login,
    .btn-secondary {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-banner-container {
        height: 350px;
    }

    .hero-content {
        padding: 1.25rem 0.75rem;
        padding-top: 1.5rem;
    }

    .hero-faded-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .hero-main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-search {
        padding: 1rem;
        gap: 0.625rem;
    }

    .hero-search input,
    .hero-search select {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .btn-search {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .listings-grid[data-view="list"] .listing-title {
        font-size: 1.1rem;
    }

    .listings-grid[data-view="list"] .listing-price {
        font-size: 1.4rem;
    }

    .property-types-grid {
        grid-template-columns: 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .city-dropdown {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.login-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.login-tab:hover {
    color: var(--primary-color);
}

.login-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.login-tab-content {
    display: none;
}

.login-tab-content.active {
    display: block;
}

.login-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.login-modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.login-modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Tab-based modal body styling */
.login-modal-body:has(.login-tabs) {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Fallback for browsers that don't support :has() */
.login-modal-body .login-tabs {
    margin-bottom: 1.5rem;
}

.login-modal-body .login-tabs~.login-tab-content {
    padding: 0;
}

.modal-login-form {
    margin-top: 1.5rem;
}

.modal-login-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.modal-login-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.1);
}

.form-group-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-google {
    color: #db4437;
}

.btn-google:hover {
    background: #fef5f4;
    border-color: #db4437;
}

.btn-facebook {
    color: #4267B2;
}

.btn-facebook:hover {
    background: #f0f4fb;
    border-color: #4267B2;
}

.login-modal.active {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    flex-direction: column;
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Registration Modal Styles */
.registration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.registration-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.registration-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.registration-modal-close:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.registration-modal-body {
    padding: 2.5rem;
}

.registration-modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.registration-modal-body>p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.registration-modal-body .form-group {
    margin-bottom: 1.25rem;
}

.registration-modal-body .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.registration-modal-body .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.registration-modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.1);
}

.registration-modal-body .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.registration-modal-body .btn-block {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.registration-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.registration-note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.login-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

/* Tab-based login modal body (for layout) - override grid layout */
.login-modal-body:has(.login-tabs),
.login-modal-body>.login-tabs {
    display: block !important;
    grid-template-columns: none !important;
    min-height: auto !important;
    padding: 0 !important;
}

/* Ensure tab-based modal body doesn't use grid */
.login-modal-content:has(.login-tabs) .login-modal-body {
    display: block !important;
    grid-template-columns: none !important;
    min-height: auto !important;
}

.login-modal-left {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-illustration {
    position: relative;
    height: 200px;
    margin-bottom: 2rem;
}

.illustration-house,
.illustration-sun,
.illustration-people {
    position: absolute;
}

.illustration-house {
    width: 80px;
    height: 80px;
    background: #4a90e2;
    border-radius: 8px;
    bottom: 20px;
    left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.illustration-house::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 30px solid #4a90e2;
}

.illustration-sun {
    width: 50px;
    height: 50px;
    background: #ffd700;
    border-radius: 50%;
    top: 10px;
    right: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.illustration-people {
    width: 30px;
    height: 30px;
    background: #ff6b6b;
    border-radius: 50%;
    bottom: 40px;
    right: 50px;
}

.login-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.login-modal-right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-modal-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.login-modal-right h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.social-login-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.google-btn {
    background: #4285f4;
    color: var(--white);
}

.google-btn:hover {
    background: #357ae8;
}

.facebook-btn {
    background: #1877f2;
    color: var(--white);
}

.facebook-btn:hover {
    background: #166fe5;
}

.social-login-btn i {
    font-size: 1.2rem;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-login-form {
    margin-bottom: 1.5rem;
}

.modal-login-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.modal-login-form input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.modal-login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-continue {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: #c82333;
}

.login-terms {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.login-terms a {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-terms a:hover {
    color: var(--accent-color);
}

/* Responsive Login Modal */
@media (max-width: 968px) {
    .login-modal-body {
        grid-template-columns: 1fr;
    }

    .login-modal-left {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .login-illustration {
        height: 150px;
    }

    .login-modal-right {
        padding: 2rem 1.5rem;
    }

    .login-modal-content {
        max-width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .login-modal-right h2 {
        font-size: 1.5rem;
    }

    .login-benefits {
        gap: 0.75rem;
    }

    .benefit-item {
        font-size: 0.85rem;
    }
}

/* Enhanced Listings Page Styles */
.listings-page {
    padding: 2.5rem 0;
    background: var(--bg-color);
}

.listings-container-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.listings-subtitle {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Extra highlights for Buy page */
.listings-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.listings-highlights .highlight-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    color: #1f2937;
    font-size: 0.85rem;
}

.listings-highlights .highlight-item i {
    color: #2563eb;
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.view-btn:hover {
    color: var(--primary-color);
}

.view-btn.active:hover {
    color: var(--white);
}

.listings-layout {
    display: block;
}

/* Standard responsive breakpoints (matching Dubizzle-style) */
/* Mobile: max-width: 767px */
/* Tablet: 768px - 1023px */
/* Desktop: min-width: 1024px */
/* Large Desktop: min-width: 1200px */

/* Desktop: Hide sidebar, show horizontal filter */
@media (min-width: 1024px) {
    .filters-sidebar.mobile-only {
        display: none !important;
    }

    .listings-main {
        width: 100%;
    }

    .horizontal-filter-bar {
        display: block !important;
    }

    .popular-areas-section {
        display: block !important;
    }

    .mobile-filters-toggle {
        display: none !important;
    }
}

/* Tablet: Show horizontal filter, hide sidebar */
@media (min-width: 768px) and (max-width: 1023px) {
    .filters-sidebar.mobile-only {
        display: none !important;
    }

    .horizontal-filter-bar {
        display: block !important;
    }

    .popular-areas-section {
        display: block !important;
    }

    .mobile-filters-toggle {
        display: none !important;
    }
}

/* Mobile: Hide horizontal filter, show sidebar */
@media (max-width: 767px) {
    .filters-sidebar.mobile-only {
        display: block;
    }

    .horizontal-filter-bar {
        display: none !important;
    }

    .popular-areas-section {
        display: none !important;
    }

    .save-search-btn {
        display: none !important;
    }
}

.listings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filters-sidebar {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    height: fit-content;
    position: sticky;
    top: 90px;
    max-height: none;
    overflow: visible;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .filters-sidebar {
        overflow-y: visible !important;
        overflow-x: visible !important;
        max-height: none !important;
    }

    .filters-sidebar form {
        overflow: visible !important;
        max-height: none !important;
    }
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 0;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.filters-header h3 {
    font-size: 0.9375rem;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.filters-header h3 i {
    font-size: 0.875rem;
    color: var(--primary-color);
    opacity: 1;
}

.clear-filters-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.clear-filters-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.close-filters-btn {
    display: flex !important;
}

.filter-section {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.filter-section:hover {
    background: #fafbfc;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section-header {
    margin: 0;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    user-select: none;
    transition: all 0.2s ease;
    background: transparent;
}

.filter-section-header h4 {
    font-size: 0.8125rem;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.filter-section-header h4 i {
    color: var(--primary-color);
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    opacity: 0.9;
}

.filter-section-toggle {
    color: #6b7280;
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(10, 31, 58, 0.05);
}

.filter-section-header:hover .filter-section-toggle {
    background: rgba(10, 31, 58, 0.1);
    color: var(--primary-color);
}

.filter-section.active .filter-section-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
    background: rgba(10, 31, 58, 0.1);
}

.filter-section-content {
    padding: 0 1.25rem 1rem 1.25rem;
    background: transparent;
    display: block;
}

/* Desktop: always show content, no scrolling */
@media (min-width: 769px) {
    .filter-section.mobile-accordion .filter-section-content {
        max-height: none !important;
        padding: 0 1.25rem 1rem 1.25rem !important;
        display: block !important;
        overflow: visible !important;
    }

    .filter-section.mobile-accordion .filter-section-toggle {
        display: none !important;
    }

    .filter-section.mobile-accordion .filter-section-header {
        cursor: default !important;
    }

    .filters-sidebar {
        overflow-y: visible !important;
        overflow-x: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .filters-sidebar form {
        display: flex;
        flex-direction: column;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .filter-section {
        overflow: visible !important;
    }

    .filter-group {
        overflow: visible !important;
    }
}

.filter-group {
    margin-bottom: 0;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #1f2937;
    font-weight: 400;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.08);
    background: #ffffff;
}

.filter-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.filter-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
    font-weight: normal;
    color: var(--text-color);
    transition: background 0.2s ease;
}

.filter-group .checkbox-label:hover {
    background: transparent;
}

.filter-group .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.filter-group .checkbox-label span {
    flex: 1;
    font-size: 0.95rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-inputs input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.625rem;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1f2937;
}

.price-inputs input:focus {
    box-shadow: none;
    background: transparent;
    outline: none;
}

.price-inputs:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.08);
}

.price-inputs span {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.checkbox-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkbox-filters .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    position: relative;
}

.checkbox-filters .checkbox-label:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.checkbox-filters .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    border-radius: 4px;
}

.checkbox-filters .checkbox-label input[type="checkbox"]:checked+span {
    color: var(--primary-color);
    font-weight: 500;
}

.checkbox-filters .checkbox-label:has(input[type="checkbox"]:checked) {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.checkbox-filters .checkbox-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.8125rem;
    color: #374151;
}

.checkbox-filters .checkbox-label span i {
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.75;
    width: 14px;
    text-align: center;
}

.filter-section .radio-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.filter-section .radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(10, 31, 58, 0.08) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.filter-section .radio-label:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-section .radio-label:hover::before {
    width: 4px;
}

.filter-section .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.filter-section .radio-label span {
    font-size: 0.8125rem;
}

.filter-section .radio-label:has(input[type="radio"]:checked) {
    background: linear-gradient(90deg, rgba(10, 31, 58, 0.06) 0%, rgba(10, 31, 58, 0.02) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(10, 31, 58, 0.1), 0 2px 8px rgba(10, 31, 58, 0.08);
}

.filter-section .radio-label:has(input[type="radio"]:checked)::before {
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.filter-section .radio-label:has(input[type="radio"]:checked) span {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-apply-filters {
    width: calc(100% - 2.5rem);
    margin: 1rem 1.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(10, 31, 58, 0.15);
    position: relative;
    z-index: 5;
}

/* Hide apply button on desktop - filters apply automatically */
@media (min-width: 769px) {
    .btn-apply-filters {
        display: none !important;
    }
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 31, 58, 0.3);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.btn-apply-filters:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(10, 31, 58, 0.2);
}

.btn-apply-filters i {
    font-size: 0.9rem;
}

.listings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal Filter Bar */
.horizontal-filter-bar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    display: block;
}

.filter-bar-row {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.filter-dropdown {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.filter-dropdown.filter-location {
    flex: 1.5;
    min-width: 220px;
}

.filter-dropdown.filter-more {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-dropdown label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-dropdown label i {
    margin-right: 0.375rem;
    color: var(--primary-color);
    font-size: 0.75rem;
}

.filter-dropdown select,
.filter-dropdown input[type="text"] {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    font-weight: 500;
}

.filter-dropdown.filter-location input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-position: left 0.875rem center;
    padding-left: 2.75rem;
    padding-right: 0.875rem;
    cursor: text;
}

.filter-dropdown select:focus,
.filter-dropdown input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.08);
}

.filter-more-btn {
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    white-space: nowrap;
}

.filter-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 58, 0.2);
}

.filter-more-btn i {
    font-size: 0.875rem;
}

.custom-price-range {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.custom-price-range input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #ffffff;
}

.custom-price-range input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.08);
}

.custom-price-range span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
}

.advanced-filters-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.advanced-filters-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.filter-section-advanced {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.filter-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.filter-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.filter-tag {
    padding: 0.625rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.filter-tag:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.filter-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.filter-tag.active:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.view-more-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.view-more-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.filter-keywords-input {
    width: 100%;
}

.filter-keywords-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    transition: all 0.2s ease;
}

.filter-keywords-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 31, 58, 0.08);
}

.filter-keywords-input input::placeholder {
    color: #9ca3af;
}

.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem 0;
}

.filter-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.filter-checkbox-label span {
    user-select: none;
}

.advanced-filters-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

.btn-clear-filters {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-clear-filters:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.btn-apply-filters-advanced {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-apply-filters-advanced:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 31, 58, 0.2);
}

/* Popular Areas Tags */
.popular-areas-section {
    margin-bottom: 1.5rem;
}

.popular-areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.area-tag {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.area-tag:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.area-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.results-count {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.results-count strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sort-btn i {
    color: var(--primary-color);
}

.sort-btn #sortSelect {
    display: none;
}

.save-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-search-btn:hover {
    background: #f9fafb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.save-search-btn i {
    color: var(--primary-color);
}

.mobile-filters-toggle {
    display: none;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    gap: 0.5rem;
    align-items: center;
}


.mobile-filters-toggle i {
    font-size: 0.9rem;
}

.listings-container {
    min-height: 400px;
}

.listings-grid[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.listings-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.listings-grid[data-view="list"] .listing-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    max-width: 100%;
    padding: 0;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.listings-grid[data-view="list"] .listing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.listings-grid[data-view="list"] .listing-image {
    height: 100%;
    min-height: 240px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.listings-grid[data-view="list"] .listing-badges {
    top: 1rem;
    left: 1rem;
}

.listings-grid[data-view="list"] .favorite-btn {
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.listings-grid[data-view="list"] .listing-link {
    display: contents;
}

.listings-grid[data-view="list"] .listing-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.listings-grid[data-view="list"] .listing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-color);
}

.listings-grid[data-view="list"] .listing-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.listings-grid[data-view="list"] .listing-location {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.listings-grid[data-view="list"] .listing-location i {
    color: var(--primary-color);
    font-size: 1rem;
}

.listings-grid[data-view="list"] .listing-specs {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.listings-grid[data-view="list"] .listing-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.listings-grid[data-view="list"] .listing-specs i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.listings-grid[data-view="list"] .listing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.listings-grid[data-view="list"] .listing-category {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    background: var(--bg-color);
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.listings-grid[data-view="list"] .listing-date {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listings-grid[data-view="list"] .listing-date i {
    color: var(--text-light);
}

.listings-grid[data-view="list"] .quick-view-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    opacity: 1;
    z-index: 2;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Enhanced Listing Card */
.listing-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.listing-card .listing-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.listing-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.listing-badge.rent {
    background: #28a745;
}

.listing-badge.sale {
    background: #ff6b35;
}

.listing-badge.featured {
    background: #ffd700;
    color: var(--text-color);
}

.listing-card .favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.listing-card .favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.listing-card .favorite-btn.active {
    color: #dc3545;
}

.listing-card .favorite-btn i {
    font-size: 1.1rem;
}

.listing-card .quick-view-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.listing-card:hover .quick-view-btn {
    opacity: 1;
}

.listing-card .quick-view-btn:hover {
    background: var(--accent-color);
}

.listing-card .listing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-specs {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.listing-specs span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-specs i {
    color: var(--primary-color);
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.listing-category {
    color: var(--text-light);
    text-transform: capitalize;
}

.listing-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Listings Page */
@media (max-width: 968px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 0 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        border: none;
    }

    .filters-sidebar * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .filters-sidebar form {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-bottom: 60px;
    }

    .filters-sidebar.active {
        left: 0;
    }

    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(4px);
        transition: opacity 0.3s ease;
    }

    .filter-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .mobile-filters-toggle {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 12px;
        font-weight: 700;
        cursor: pointer;
        font-size: 1rem;
        transition: all 0.3s ease;
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        min-height: 48px;
    }

    .mobile-filters-toggle:active {
        background: var(--accent-color);
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    }

    .mobile-filters-toggle i {
        font-size: 1.1rem;
    }

    .close-filters-btn:hover {
        background: #f0f0f0 !important;
        color: var(--primary-color) !important;
    }

    .close-filters-btn:active {
        transform: scale(0.9);
    }

    .listings-toolbar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-section {
        padding: 0 !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .filter-section.mobile-accordion:not(.active) .filter-section-content {
        padding: 0 0.875rem !important;
    }

    .filter-section.mobile-accordion.active .filter-section-content {
        padding: 0 0.875rem 0.625rem 0.875rem !important;
    }

    .filter-section .radio-label {
        padding: 0.4375rem 0.625rem !important;
        margin-bottom: 0.3125rem !important;
        font-size: 0.6875rem !important;
        min-height: 36px !important;
    }

    .filter-section .radio-label input[type="radio"] {
        width: 15px !important;
        height: 15px !important;
    }

    .filter-section .radio-label span {
        font-size: 0.6875rem !important;
    }

    .filter-section-header {
        padding: 0.5rem 0.875rem !important;
        margin-bottom: 0 !important;
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.2s ease;
        min-height: 36px;
        background: transparent;
    }

    .filter-section-header:active {
        background: rgba(10, 31, 58, 0.03) !important;
    }

    .filter-section-header h4 {
        margin: 0 !important;
        flex: 1;
        font-size: 0.625rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        text-transform: uppercase;
        letter-spacing: 0.01em;
    }

    .filter-section-header h4 i {
        font-size: 0.6875rem !important;
        width: 12px !important;
    }

    .filter-section-toggle {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #6b7280;
        font-size: 0.6rem;
        background: rgba(10, 31, 58, 0.05);
        flex-shrink: 0;
    }

    .filter-section-header:active .filter-section-toggle {
        background: rgba(10, 31, 58, 0.12);
        transform: scale(0.95);
    }

    .filter-section.active .filter-section-toggle {
        background: rgba(10, 31, 58, 0.1);
        color: var(--primary-color);
        transform: rotate(180deg);
    }

    .filter-section-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        padding: 0 0.875rem;
    }

    .filter-section.active .filter-section-content {
        max-height: 2000px;
        padding: 0 0.875rem 0.625rem 0.875rem;
    }

    .filter-section.mobile-accordion:not(.active) .filter-section-content {
        max-height: 0;
        padding: 0 1.25rem;
    }

    .filter-section.mobile-accordion.active .filter-section-content {
        max-height: 2000px;
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    /* Desktop: always show content */
    @media (min-width: 768px) {
        .filter-section.mobile-accordion .filter-section-content {
            max-height: none !important;
            padding: 0 1.25rem 1.25rem 1.25rem !important;
        }

        .filter-section.mobile-accordion .filter-section-header {
            cursor: default;
        }

        .filter-section-toggle {
            display: none;
        }
    }

    .filter-section:last-child {
        margin-bottom: 1rem !important;
    }

    .filters-header {
        padding: 0.625rem 0.875rem !important;
        margin-bottom: 0 !important;
        box-sizing: border-box;
        width: 100%;
        background: linear-gradient(135deg, #0a1f3a 0%, #1a3a5f 100%);
        border-bottom: none;
        position: sticky;
    }

    .filters-header h3 {
        font-size: 0.8125rem !important;
        gap: 0.4375rem !important;
        font-weight: 600 !important;
    }

    .filters-header h3 i {
        font-size: 0.8125rem !important;
    }

    .clear-filters-btn {
        padding: 0.3125rem 0.5rem !important;
        font-size: 0.6875rem !important;
        gap: 0.3125rem !important;
    }

    .close-filters-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0.3125rem !important;
        font-size: 0.875rem !important;
    }


    .filters-header h3 {
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .filters-header h3 i {
        font-size: 1.25rem;
    }

    .clear-filters-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.5rem 1rem !important;
        background: #f0f0f0 !important;
        color: #666 !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .clear-filters-btn:hover {
        background: #e0e0e0 !important;
        color: var(--primary-color) !important;
    }

    .clear-filters-btn i {
        font-size: 0.85rem;
    }

    .filter-section-header {
        margin-bottom: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-section-header h4 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #1a1a1a !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .filter-section-header h4 i {
        color: var(--primary-color);
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    .filter-group {
        margin-bottom: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-group input[type="text"],
    .filter-group input[type="number"],
    .filter-group select {
        padding: 1rem !important;
        font-size: 1rem !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        min-height: 48px !important;
    }

    .filter-group input:focus,
    .filter-group select:focus {
        border-color: var(--primary-color) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    }

    .filter-group .checkbox-label {
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 10px !important;
        background: #f8f9fa !important;
        border: 2px solid transparent !important;
        transition: all 0.2s ease !important;
        min-height: 56px !important;
        display: flex !important;
        align-items: center !important;
    }

    .filter-group .checkbox-label:active {
        background: #e9ecef !important;
        transform: scale(0.98);
    }

    .filter-group .checkbox-label input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
    }

    .filter-group .checkbox-label span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: calc(100% - 40px) !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #1a1a1a !important;
    }

    .checkbox-filters .checkbox-label {
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        padding: 0.4375rem 0.625rem !important;
        margin-bottom: 0.3125rem !important;
        border-radius: 6px !important;
        background: white !important;
        border: 1px solid #e5e7eb !important;
        transition: all 0.2s ease !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        font-weight: 400 !important;
        gap: 0.4375rem !important;
    }

    .checkbox-filters .checkbox-label:active {
        transform: scale(0.98) !important;
        background: #f8f9fa !important;
    }

    .checkbox-filters .checkbox-label span {
        font-size: 0.6875rem !important;
    }

    .checkbox-filters .checkbox-label span i {
        font-size: 0.625rem !important;
        width: 11px !important;
    }

    .checkbox-filters .checkbox-label input[type="checkbox"] {
        width: 15px !important;
        height: 15px !important;
    }

    .checkbox-filters {
        gap: 0.3125rem !important;
    }

    .checkbox-filters .checkbox-label:active {
        background: #e9ecef !important;
        transform: scale(0.98);
    }

    .checkbox-filters .checkbox-label input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
    }

    .checkbox-filters .checkbox-label span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: calc(100% - 40px) !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #1a1a1a !important;
    }

    .checkbox-filters .checkbox-label input[type="checkbox"]:checked+span {
        color: var(--primary-color) !important;
        font-weight: 600 !important;
    }

    .checkbox-filters .checkbox-label:has(input[type="checkbox"]:checked) {
        background: rgba(37, 99, 235, 0.1) !important;
        border-color: var(--primary-color) !important;
    }

    .filter-section .radio-label {
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .filter-section .radio-label span {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: calc(100% - 30px) !important;
    }

    .btn-apply-filters {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0.625rem 0.875rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
        color: var(--white) !important;
        border: none !important;
        border-radius: 0 !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        cursor: pointer;
        z-index: 1001 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4375rem !important;
        transition: all 0.2s ease !important;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        min-height: 44px;
    }

    .btn-apply-filters:active {
        transform: scale(0.98);
    }

    .btn-apply-filters i {
        font-size: 0.75rem;
    }

    .price-inputs {
        gap: 0.4375rem !important;
        padding: 0.3125rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        background: white !important;
    }

    .price-inputs input {
        padding: 0.375rem 0.4375rem !important;
        font-size: 0.75rem !important;
        min-height: 36px !important;
        border: none !important;
        background: transparent !important;
    }

    .price-inputs span {
        font-size: 0.625rem !important;
        font-weight: 500 !important;
        flex-shrink: 0 !important;
        padding: 0 0.1875rem !important;
    }
}

@media (max-width: 768px) {
    .listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .listings-grid[data-view="list"] .listing-card {
        grid-template-columns: 1fr;
    }

    .listings-grid[data-view="list"] .listing-image {
        min-height: 250px;
        height: 250px;
    }

    .listings-grid[data-view="list"] .listing-info {
        padding: 1.5rem;
    }

    .listings-grid[data-view="list"] .listing-title {
        font-size: 1.3rem;
    }

    .listings-grid[data-view="list"] .listing-price {
        font-size: 1.6rem;
    }

    .listings-grid[data-view="list"] .listing-specs {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .listings-grid[data-view="list"] .quick-view-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
}

/* Disclaimer Page Styles */
.disclaimer-section {
    background: var(--bg-color);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.disclaimer-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.disclaimer-content .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.disclaimer-section-content {
    margin-bottom: 2.5rem;
}

.disclaimer-section-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer-section-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.disclaimer-section-content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-color);
    line-height: 1.8;
}

.disclaimer-section-content li {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .disclaimer-content {
        padding: 2rem 1.5rem;
    }

    .disclaimer-content h1 {
        font-size: 2rem;
    }

    .disclaimer-section-content h2 {
        font-size: 1.3rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top-btn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

/* Owner Declaration Section Styles */
.owner-declaration-section .checkbox-label:hover {
    background: #e9ecef;
}

.owner-declaration-section input[type="checkbox"]:checked {
    accent-color: #2196F3;
}

.owner-notice-box {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .owner-notice-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .owner-notice-box i {
        font-size: 1.25rem;
    }

    .owner-declaration-section {
        padding: 1rem !important;
    }
}

@media (max-width: 767px) {

    /* Mobile Bottom Navigation Bar Styles - Only for Mobile */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        z-index: 10000;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        height: 65px;
        width: 100%;
        border-top: 1px solid #e5e7eb;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #9ca3af;
        font-size: 0.6875rem;
        font-weight: 500;
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
        position: relative;
        padding: 0.5rem 0;
        cursor: pointer;
    }

    .bottom-nav-item i {
        font-size: 1.35rem;
        margin-bottom: 0.3rem;
        transition: all 0.2s ease;
    }

    .bottom-nav-item:active {
        transform: scale(0.95);
    }

    .bottom-nav-item.active {
        color: var(--primary-color);
    }

    .bottom-nav-item.active i {
        color: var(--primary-color);
    }

    .bottom-nav-item span {
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .bottom-nav-post-ad {
        color: var(--primary-color);
        font-weight: 600;
    }

    .post-ad-icon {
        background: linear-gradient(135deg, #0a1f3a 0%, #1a3a5f 100%);
        color: white;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.2rem;
        box-shadow: 0 6px 20px rgba(10, 31, 58, 0.3), 0 2px 8px rgba(10, 31, 58, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        top: -12px;
        border: 3px solid white;
    }

    .bottom-nav-post-ad:active .post-ad-icon {
        transform: scale(0.9);
        box-shadow: 0 3px 10px rgba(10, 31, 58, 0.25), 0 1px 4px rgba(10, 31, 58, 0.15);
    }

    .post-ad-icon i {
        font-size: 1.3rem;
        margin-bottom: 0;
        font-weight: 600;
    }

    .bottom-nav-item button {
        background: none;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        gap: 0.15rem;
    }

    /* Menu button specific styling */
    #bottomNavMenuBtn {
        color: #6b7280;
    }

    #bottomNavMenuBtn:active {
        color: var(--primary-color);
    }

    #bottomNavMenuBtn i {
        font-size: 1.4rem;
    }

    .bottom-nav-post-ad span {
        font-size: 0.65rem;
    }
}