/* Houzez Frontend Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Font - Lato Light 300, 14px (Houzez Standard) */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--body-bg);
}

/* Headings - Open Sans (Houzez Standard) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    color: var(--heading-color);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

/* Top Bar - Hidden */
.top-bar {
    display: none;
}

.top-bar-left ul,
.top-bar-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-left li,
.top-bar-right li {
    display: inline-block;
    margin-right: 20px;
}

.top-bar-left li:last-child,
.top-bar-right li:last-child {
    margin-right: 0;
}

.top-bar-right {
    text-align: right;
}

.top-bar-right a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin-left: 10px;
}

.top-bar-right a:hover {
    color: #007bff;
}

/* Main Header */
.header-main {
    background: var(--header-bg);
    padding: var(--header-padding);
    position: sticky;
    top: 0;
    z-index: 1019;
    /* أقل من شريط البحث */
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 25px;
    position: relative;
    gap: 30px;
}

/* Header Right Section - 50px from right edge */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Logo - Far Left */
.logo {
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-headings);
    font-weight: var(--font-weight-bold);
    font-size: 28px;
    letter-spacing: 0px;
    gap: 5px;
}

.logo span {
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0px;
    text-transform: none;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-list li a {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list li a i {
    font-size: 10px;
    margin-left: 3px;
}

.nav-list li a:hover {
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    color: var(--text-white);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    white-space: nowrap;
}

.contact-item i {
    margin-right: 8px;
    font-size: 16px;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #fff;
}

.user-icon i {
    color: #fff;
    font-size: 18px;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    z-index: 10001;
    /* أعلى من شريط البحث */
}

.user-dropdown {
    min-width: 250px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 10px;
    z-index: 10000 !important;
    /* أعلى من كل شيء */
    position: relative;
}

.user-dropdown .dropdown-header {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.user-dropdown .dropdown-header strong {
    color: #333;
    font-size: 14px;
}

.user-dropdown .dropdown-header small {
    color: #666;
    font-size: 12px;
}

.user-dropdown .dropdown-item {
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user-dropdown .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding-left: 25px;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
}

.user-dropdown .dropdown-divider {
    margin: 8px 0;
}

.create-listing-btn {
    background: var(--btn-create-listing, #00aaff);
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: var(--border-radius-btn);
    /* مستطيلة 3px */
    transition: var(--transition-base);
    white-space: nowrap;
}


.create-listing-btn:hover {
    background: var(--btn-create-listing-hover, #0099dd);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 170, 255, 0.3);
}

/* Sticky Search Bar */
.sticky-search-bar {
    position: sticky;
    top: 64px;
    /* نفس مكان الهيدر */
    z-index: 1020;
    /* أعلى من الهيدر، لكن أقل من user-menu */
    background: #ffffff;
    padding: 11px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* عند التمرير للأسفل */
.sticky-search-bar.scrolled {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--primary-color);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    /* Same as header container */
    margin: 0 auto;
    /* Center the container */
    position: relative;
    width: 100%;
    padding: 0 25px;
    /* Add padding to match header */
}

.search-field {
    position: relative;
    flex: 5.2;
    /* Increased width by 30% (4 * 1.3 = 5.2) */
    max-width: 2080px;
    /* Increased width by 30% (1600 * 1.3 = 2080) */
}

.search-input {
    width: 100%;
    height: 45px;
    padding: 12px 45px 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-input);
    /* مستطيلة 3px */
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 400;
    background: #ffffff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 110, 175, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.filter-btn {
    height: 45px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-btn);
    /* مستطيلة 3px */
    background: #ffffff;
    color: #333;
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 110, 175, 0.05);
}

.filter-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(26, 110, 175, 0.1);
}

.filter-btn i {
    font-size: 12px;
}

.search-btn {
    height: 45px;
    padding: 13px 47px;
    border: none;
    border-radius: var(--border-radius-btn);
    /* مستطيلة 3px */
    background: var(--btn-search, #ff8c00);
    color: var(--text-white);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    margin-left: auto;
    /* Push to the right to align with CREATE A LISTING */
    margin-right: -100px;
    /* Move 100px to the right */
}

.search-btn:hover {
    background: var(--btn-search-hover, #e07a00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

/* Additional Search Row */
.additional-search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 15px auto 0;
}

.search-field-small {
    flex: 1;
    min-width: 150px;
}

.search-field-small .form-control,
.search-field-small .form-select {
    height: 40px;
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    transition: all 0.3s ease;
}

.search-field-small .form-control:focus,
.search-field-small .form-select:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

/* Filter Groups */
.filter-group {
    position: relative;
}

/* Filter Dropdowns */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 250px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Status Options */
.status-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #333;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.status-checkbox:hover {
    color: #ff8c00;
}

.status-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #ff8c00;
    cursor: pointer;
}

.status-checkbox span {
    user-select: none;
    font-weight: 500;
}

.filter-dropdown h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.price-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.price-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-header i {
    font-size: 10px;
    color: #666;
}

.price-min,
.price-max {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.range-slider {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 15px 0;
}

.slider-track {
    position: relative;
    height: 100%;
    background: #e9ecef;
    border-radius: 3px;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: #007bff;
    border-radius: 3px;
    left: 0;
    right: 0;
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.slider-handle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider-handle:active {
    cursor: grabbing;
}

/* Position handles at start and end */
#minHandle {
    left: 0;
}

#maxHandle {
    right: 0;
}

.counter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.counter-display {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
}

.counter-display .number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.counter-display .label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-left: 5px;
}

.counter-buttons {
    display: flex;
    gap: 10px;
}

.counter-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #007bff;
    border-radius: 50%;
    background: #ffffff;
    color: #007bff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price dropdown specific styling */
.price-dropdown {
    min-width: 300px;
}

.price-dropdown .price-range {
    gap: 10px;
    margin-bottom: 15px;
}

.price-dropdown .range-slider {
    margin: 10px 0;
}

/* Beds and Baths dropdown specific styling */
#bedsDropdown,
#bathsDropdown {
    min-width: 200px;
    padding: 15px;
}

#bedsDropdown .counter-controls,
#bathsDropdown .counter-controls {
    margin-bottom: 8px;
}

#bedsDropdown .dropdown-actions,
#bathsDropdown .dropdown-actions {
    margin-top: 0;
}

.counter-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.counter-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.dropdown-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dropdown-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-btn.apply {
    background: #007bff;
    color: #ffffff;
}

.dropdown-btn.apply:hover {
    background: #0056b3;
}

.dropdown-btn.clear {
    background: #e9ecef;
    color: #6c757d;
}

.dropdown-btn.clear:hover {
    background: #dee2e6;
}

/* Advanced Filters */
.advanced-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.other-features-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.other-features-header {
    margin-bottom: 20px;
}

.other-features-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-features-header i {
    color: #ff8c00;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

.feature-checkbox:hover {
    color: #ff8c00;
}

.feature-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff8c00;
    cursor: pointer;
}

.feature-checkbox span {
    user-select: none;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.apply-filters-btn,
.clear-all-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.apply-filters-btn {
    background: #ff8c00;
    color: #ffffff;
}

.apply-filters-btn:hover {
    background: #e07a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.clear-all-btn {
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.clear-all-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

/* Responsive Search Bar */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-field {
        max-width: 100%;
        width: 100%;
    }

    .filter-buttons {
        justify-content: center;
        width: 100%;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
        height: 36px;
    }

    .search-btn {
        font-size: 12px;
        padding: 6px 20px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-top: -100px;
    /* Pull up to cover header */
    padding-top: 100px;
    /* Compensate for negative margin */
}

/* Hero Preloader */
.hero-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.hero-preloader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    margin: 0;
    padding: 0;
    z-index: 1;
    min-height: 100vh;
}

.hero-slide.active {
    opacity: 1;
}

/* Smooth loading for images */
.hero-slide:not(.loaded) {
    background-color: #1a1a1a;
}

.hero-slide.loaded {
    animation: fadeInSlide 0.5s ease-in-out forwards;
}

@keyframes fadeInSlide {
    0% {
        filter: blur(5px);
    }

    100% {
        filter: blur(0);
    }
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-slide::after {
    content: 'ARCH';
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'Roboto', sans-serif;
    font-size: 120px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
    letter-spacing: 20px;
    white-space: nowrap;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: left;
    max-width: 600px;
    margin-left: 60px;
    padding: 40px 0;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    color: #fff;
    opacity: 0.95;
    max-width: 500px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #ff8c00;
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.hero-btn:hover {
    background: #e07a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    color: #fff;
}

/* Hero Navigation - Removed */

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 8px;
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}

/* Additional visibility for dots on different backgrounds */
.hero-dots::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    border-radius: 22px;
    z-index: -1;
}

/* Force dots to always be visible - Enhanced */
#heroDots {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    gap: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

#heroDots .dot {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#heroDots .dot.active {
    background: #fff !important;
    border-color: #fff !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}

/* Force dots to always be visible */
.hero-dots,
.hero-dots * {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-dots .dot {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Additional CSS to force visibility */
#heroDots {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    gap: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

#heroDots .dot {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#heroDots .dot.active {
    background: #fff !important;
    border-color: #fff !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}

/* Ensure dots are visible on light backgrounds */
.dot {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.dot.active {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* Responsive dots for different screen sizes */
@media (max-width: 768px) {
    .hero-dots {
        bottom: 30px;
        padding: 6px 12px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active::after {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .hero-dots {
        bottom: 25px;
        padding: 5px 10px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active::after {
        width: 2px;
        height: 2px;
    }
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Why Choose Us */
.why-choose-us {
    background: #f8f9fa;
}

.features-list {
    padding-left: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: #007bff;
    margin-right: 30px;
    min-width: 80px;
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* Property Cards */
.property-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--property-card-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--property-card-shadow-hover);
}

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.property-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.property-badges .badge {
    display: block;
    margin-bottom: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.property-badges .badge.featured {
    background: #28a745;
    color: white;
}

.property-badges .badge.status {
    background: #6c757d;
    color: white;
}

.property-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.property-actions .action-btn {
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-actions .action-btn:hover {
    background: #ff8c00;
    color: white;
    transform: scale(1.1);
}

.property-content {
    padding: 25px;
}

.property-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.property-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-content h3 a:hover {
    color: var(--primary-color);
}

.property-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.property-price {
    font-family: var(--font-headings);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.property-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.property-details span {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.property-details i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 16px;
}

/* Property Types */
.property-types {
    background: #f8f9fa;
}

.property-type-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.property-type-card:hover {
    transform: translateY(-5px);
}

.type-image {
    height: 200px;
    overflow: hidden;
}

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

.type-content {
    padding: 20px;
}

.type-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.type-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Agents */
.agent-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

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

.agent-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #007bff;
}

.agent-content p {
    color: #666;
    margin-bottom: 15px;
}

.agent-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Blog */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: #007bff;
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    color: #ffffff;
    padding: 5rem 0 2rem;
}

.main-footer .footer-top {
    padding: 0 2rem;
}

.main-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: start;
}

.main-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-footer .footer-logo-section img {
    max-width: 180px;
    height: auto;
}

.main-footer .footer-about-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-contact-meta i {
    font-size: 1rem;
}

.main-footer .footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.main-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-footer .footer-column ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.main-footer .footer-column ul li a:hover {
    color: #ffd37a;
}

.footer-bottom {
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-inner .copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    font-size: 1.1rem;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-socials a:hover {
    background: #ffd37a;
    color: #0f3055;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .main-footer .footer-inner {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.contact-info i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
}

.social-links {
    text-align: right;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #ccc;
}

/* Back to Top */
.back-to-top-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.back-to-top {
    display: block;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background: #0056b3;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .nav-list {
        justify-content: center;
        gap: 20px;
    }

    .nav-list li a {
        font-size: 14px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .section-header p {
        font-size: 16px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .property-card {
        margin-bottom: 20px;
    }

    .property-content {
        padding: 20px;
    }

    .property-content h3 {
        font-size: 18px;
    }

    .property-price {
        font-size: 24px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius-btn);
    /* مستطيلة 3px */
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius-btn);
    /* مستطيلة */
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--text-white);
}

.btn-outline-primary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-white);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-btn);
    /* مستطيلة */
}

.btn-warning:hover {
    background: darken(var(--warning-color), 10%);
    color: var(--text-white);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 5px;
}

.search-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.search-buttons .btn {
    flex: 0 0 auto;
}

/* ==========================================================================
   Premium Modern Design System (Antigravity Aesthetic)
   ========================================================================== */

/* Glassmorphism Sidebar & Cards */
.modern-contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.modern-contact-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Refined Agent Profile */
.modern-agent-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-agent-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
}

.modern-agent-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 1.25rem;
}

.modern-agent-info h5 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
    font-family: var(--font-headings);
}

.modern-badge {
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modern-badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.modern-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.view-listings {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-listings:hover {
    color: #6366f1;
}

/* Premium Form Elements */
.modern-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.modern-form-input {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    padding: 0.7rem 0.8rem !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

.modern-form-input:focus {
    background: #fff !important;
    border-color: #ff6900 !important;
    box-shadow: none !important;
    outline: none !important;
}

.modern-terms-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 1.25rem 0;
    line-height: 1.5;
}

.modern-terms-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

/* Premium Primary Button (Gradient) */
.btn-modern-primary {
    background: #ff6900;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.btn-modern-primary:hover {
    background: #e65f00;
    color: #fff;
}

.btn-modern-primary:active {
    transform: translateY(0);
}

.btn-modern-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Modern WhatsApp Button */
.btn-modern-whatsapp {
    background: #fff;
    color: #ff6900;
    border: 1px solid #ff6900;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 48px;
}

.btn-modern-whatsapp:hover {
    background: #fff5f0;
    color: #ff6900;
}

/* Modern Secondary Button */
.btn-modern-outline {
    background: #fff;
    color: #ff6900;
    border: 1px solid #ff6900;
    border-radius: 6px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-height: 48px;
}

.btn-modern-outline:hover {
    background: #fff5f0;
    color: #ff6900;
}

.btn-modern-info {
    background: #00a8e8;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern-info:hover {
    background: #0090c7;
    color: #fff;
}

.modern-card-section {
    background: #ffffff !important;
    border-radius: 8px;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #ebebeb;
    font-family: 'Roboto', sans-serif;
}

.modern-section-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

.modern-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ebebeb;
    padding-left: 0;
}

.modern-section-title {
    font-size: 1.25rem !important;
    font-weight: 100 !important;
    color: #222222;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    text-transform: capitalize !important;
    /* padding-left: 1.5rem; */
}

.property-id {
    font-size: 0.85rem;
    color: #64748b;
    font-family: var(--font-primary);
}

/* Modern Features Section */
.modern-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.25rem;
}

@media (max-width: 1199px) {
    .modern-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .modern-features-grid {
        grid-template-columns: 1fr;
    }
}

.modern-feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.25rem 0;
}

.modern-feature-icon {
    width: 22px;
    height: 22px;
    background: rgba(255, 105, 0, 0.1);
    color: #ff6900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.modern-feature-text {
    font-size: 0.95rem;
    font-weight: 100 !important;
    color: #222222;
    font-family: 'Roboto', sans-serif;
}

.property-id strong {
    color: #1e293b;
    margin-left: 4px;
}

/* Remove gradient accent */
.modern-section-title::before {
    display: none;
}

.modern-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 220px;
    gap: 2rem;
    align-items: stretch;
}

.modern-overview-map-wrapper {
    grid-column: 4;
    grid-row: 1 / span 2;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    min-height: 140px;
}

@media (max-width: 1199px) {
    .modern-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modern-overview-map-wrapper {
        grid-column: 1 / span 3;
        grid-row: auto;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .modern-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-overview-map-wrapper {
        grid-column: 1 / span 2;
    }
}

.modern-overview-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    background: transparent;
    border-radius: 0;
    border: none;
    padding-left: 0 !important;
}

.modern-overview-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e96a3;
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 0;
}

.modern-overview-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

.modern-overview-value {
    font-size: 1.2rem;
    font-weight: 500 !important;
    color: #222222;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.modern-overview-label {
    font-size: 0.9rem;
    font-weight: 100 !important;
    color: #888;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0;
    font-family: 'Roboto', sans-serif;
}

/* Modern Details Box */
.modern-details-box {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.modern-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    row-gap: 0;
}

.modern-details-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(145, 213, 255, 0.3);
}

.modern-details-item:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .modern-details-grid {
        grid-template-columns: 1fr;
    }
}

.modern-details-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    font-family: 'Roboto', sans-serif;
}

.modern-details-value {
    font-size: 0.95rem;
    font-weight: 100 !important;
    color: #222222;
    font-family: 'Roboto', sans-serif;
    text-transform: capitalize !important;
}

/* Modern Additional Details */
.modern-additional-details {
    margin-top: 2rem;
}

.modern-additional-title {
    font-size: 18px;
    font-weight: 200;
    color: #222222;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.similar-listings-title {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    letter-spacing: 1px;
    padding-left: 1.5rem;
}

/* Modern Address Section */
.address-grid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.address-grid-item:last-child {
    border-bottom: none;
}

.address-label {
    font-weight: 700;
    color: #222222;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

.address-value {
    color: #222222;
    font-size: 0.95rem;
    font-weight: 100;
    font-family: 'Roboto', sans-serif;
}

.btn-google-maps {
    background-color: #00bef2;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif;
}

.btn-google-maps:hover {
    background-color: #00a5d1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 190, 242, 0.2);
}

.btn-google-maps i {
    font-size: 1rem;
}

/* Modern Sticky Nav */
.property-sticky-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1018;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    padding: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.property-sticky-nav.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Modern Floor Plans */
.modern-floor-plans-list {
    display: flex;
    flex-direction: column;
}

.modern-floor-plan-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem 0;
}

.modern-floor-plan-item:last-child {
    border-bottom: none;
}

.modern-floor-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modern-floor-plan-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #222;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.modern-floor-plan-title i {
    color: #00bef2;
    font-size: 1.15rem;
}

.modern-floor-plan-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.modern-floor-plan-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
}

.modern-floor-plan-meta .meta-label {
    color: #888;
    font-weight: 400;
}

/* .modern-floor-plan-meta .meta-value {
    font-weight: 100 !important;
    color: #222;
} */

.modern-floor-plan-meta .meta-value {
    font-weight: 800 !important;
    color: #222222;
    font-family: 'Roboto', sans-serif;
    text-transform: capitalize !important;
}

.modern-floor-plan-meta .meta-item i {
    color: #222;
    font-size: 1.25rem;
    opacity: 0.8;
}

.modern-floor-plan-meta .meta-item .houzez-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: -2px;
}

@media (max-width: 767px) {
    .modern-floor-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modern-floor-plan-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.property-content {
    transition: padding-top 0.3s ease;
    background: #f8f9fa;
    padding-bottom: 5rem;
}

body.property-nav-visible {
    padding-top: 65px;
}

.property-sticky-nav+.property-content {
    margin-top: 0;
}

.property-sticky-nav.visible+.property-content {
    padding-top: 65px;
}

.modern-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    gap: 1.25rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.modern-nav-list::-webkit-scrollbar {
    display: none;
}

.modern-nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    font-family: 'Roboto', sans-serif;
    padding: 1rem 0;
    position: relative;
    transition: all 0.2s ease;
    display: block;
}

.modern-nav-link:hover {
    color: #ff6900;
}

.modern-nav-link.active {
    color: #ff6900;
}

.modern-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff6900;
    border-radius: 2px 2px 0 0;
}


/* Modern Reviews Section */
.modern-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.modern-review-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap !important;
}

.modern-review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.modern-review-item:last-child {
    border-bottom: none;
}

.modern-review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-review-user-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-family: var(--font-headings);
}

.modern-review-date {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modern-review-content {
    margin-top: 1rem;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modern-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: -1.5rem;
    /* Pull up to align with content bottom */
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: #94a3b8;
}

.btn-modern-ghost-orange {
    background: #fff;
    border: 1px solid #ff6900;
    color: #ff6900;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-modern-ghost-orange:hover {
    background: #ff6900;
    color: #fff;
}

.btn-modern-ghost-whatsapp {
    background: #fff;
    border: 1px solid #25d366;
    color: #25d366;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-modern-ghost-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.modern-verified-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.modern-review-item {
    position: relative;
    padding: 2.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.modern-review-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modern-review-action-btn:hover {
    color: #ff6900;
}

.modern-review-action-btn i {
    font-size: 1rem;
}

.modern-rating-stars {
    color: #f59e0b;
    /* Amber 500 */
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

/* ==============================================================================
   Home Hero + Header alignment (match reference layout)
   ============================================================================== */
.header-main {
    padding: 10px 0;
    box-shadow: none;
}

.header-content {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 24px;
}

.logo-image {
    height: 42px;
}

.nav-list {
    gap: 14px;
}

.nav-list li a {
    font-size: 13px;
    font-weight: 700;
}

.create-listing-btn {
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 13px;
}

.sticky-search-bar {
    top: 62px;
    padding: 10px 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
}

.search-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 8px;
}

.search-input,
.filter-btn,
.search-btn {
    height: 40px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif !important;
}

.search-btn {
    margin-left: 0;
    margin-right: 0;
    padding: 10px 34px;
    font-size: 15px;
}

.hero-section {
    margin-top: 0;
    padding-top: 0;
    height: 560px;
}

.hero-slider,
.hero-slide {
    height: 620px;
    min-height: 620px;
}

.hero-slide::after {
    display: block;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    max-width: 540px;
    margin-left: 70px;
    padding: 0;
    font-family: "Nunito", "Open Sans", sans-serif;
}

.hero-title {
    font-size: 54px;
    font-family: "Nunito", "Open Sans", sans-serif;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 34px;
    font-family: "Nunito", "Open Sans", sans-serif;
    font-weight: 400;
    margin-bottom: 0;
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content p,
.hero-content span {
    font-family: "Nunito", "Open Sans", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.hero-btn {
    display: none;
}

.hero-dots {
    bottom: 10px;
    padding: 0;
    gap: 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.dot,
#heroDots .dot,
.hero-dots .dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}

.dot.active,
#heroDots .dot.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

/* Precise hero text placement */
.hero-slide .container {
    position: relative;
    height: 100%;
}

.hero-content {
    position: absolute;
    top: 57%;
    left: 150px;
    transform: translateY(-50%);
    margin-left: 0;
    max-width: 500px;
}

@media (max-width: 1400px) {
    .hero-content {
        left: 110px;
        max-width: 470px;
    }
}

@media (max-width: 992px) {

    .hero-slider,
    .hero-slide {
        height: 520px;
        min-height: 520px;
    }

    .hero-content {
        left: 56px;
        max-width: 380px;
        top: 56%;
    }
}

@media (max-width: 768px) {

    .hero-slider,
    .hero-slide {
        height: 440px;
        min-height: 440px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 54%;
    }
}