/* ===== Root Variables ===== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-left: 10px;
    transition: var(--transition);
}

@media (max-width: 575.98px) {
    .logo-img {
        height: 30px;
        margin-left: 5px;
    }
}

.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--text-dark) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s ease-in-out;
    transform: scale(1);
}

.hero-slider .slide.active {
    opacity: 1 !important;
    z-index: 1;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(30, 64, 175, 0.85) 100%);
    z-index: 2;
}


.hero-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 4;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.prev-btn {
    right: 30px;
}

.next-btn {
    left: 30px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot.active,
.hero-slider-dots .dot:hover {
    background: white;
    transform: scale(1.2);
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-image-card {
    position: relative;
}

.hero-main-img {
    animation: float 3s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    animation: float 2s ease-in-out infinite;
    z-index: 3;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Quick Search Section */
.quick-search-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 20px 20px 0 0;
}

.search-item label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-item .form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: var(--transition);
}

.search-item .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.feature-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../2.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-box-large {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box-large:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.stat-box-large:hover .stat-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(360deg) scale(1.1);
}

.stat-box-large h2 {
    font-size: 3rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.cta-section .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-text h1 {
        font-size: 2rem;
    }
}

.hero-text p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: float 3s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===== Property Cards ===== */
.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

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

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

@media (max-width: 575.98px) {
    .property-image {
        height: 200px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .property-image {
        height: 220px;
    }
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.property-info {
    padding: 1.5rem;
}

.property-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ===== Filter Section ===== */
.filter-box {
    background: var(--white);
}

/* ===== About Section ===== */
.about-content {
    padding: 2rem 0;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.stat-box {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-box h3 {
    font-size: 2.5rem;
}

.value-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Team Section ===== */
.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

/* ===== Contact Section ===== */
.contact-form-card {
    background: var(--white);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-10px);
    background: var(--white) !important;
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.map-container {
    overflow: hidden;
}

.map-container iframe {
    border-radius: 15px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.footer a {
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .hero-stats .stat-item p {
        font-size: 0.85rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .floating-badge {
        top: -10px;
        left: -10px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-slider-controls {
        display: none;
    }
    
    .hero-slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Quick Search */
    .quick-search-section {
        margin-top: -30px;
        padding: 1.5rem 0;
        border-radius: 15px 15px 0 0;
    }
    
    .search-item {
        margin-bottom: 1rem;
    }
    
    .search-item label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .search-item .form-select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    /* Features */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Properties */
    .property-image {
        height: 200px;
    }
    
    .property-info {
        padding: 1rem;
    }
    
    .property-info h5 {
        font-size: 1.1rem;
    }
    
    .property-features {
        gap: 1rem;
        font-size: 0.85rem;
        margin: 0.75rem 0;
    }
    
    .property-price {
        font-size: 1.25rem;
        margin-top: 0.75rem;
    }
    
    .property-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Statistics */
    .stats-section {
        padding: 3rem 0;
    }
    
    .stat-box-large {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-box-large h2 {
        font-size: 2rem;
    }
    
    .stat-box-large p {
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero Stats Grid */
    .hero-stats .row {
        margin: 0;
    }
    
    .hero-stats .col-4 {
        padding: 0.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 3rem 0;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Filter Section */
    .filter-box {
        padding: 1.5rem;
    }
    
    /* Contact Form */
    .contact-form-card {
        padding: 1.5rem;
    }
    
    /* About Stats */
    .about-stats .col-6 {
        margin-bottom: 1rem;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quick-search-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    .property-image {
        height: 220px;
    }
}

/* Small Desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .property-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .slider-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .hero-slider-dots .dot {
        width: 14px;
        height: 14px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mobile Optimizations */
@media (max-width: 575.98px) {
    /* Better spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Font sizes */
    .lead {
        font-size: 1rem;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* Better text wrapping */
    .hero-text {
        word-break: break-word;
    }
    
    /* Image optimization */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Remove hover effects on touch */
    .feature-card:active,
    .property-card:active {
        transform: scale(0.98);
    }
    
    /* Better button touch targets */
    .btn {
        touch-action: manipulation;
    }
    
    /* Grid improvements */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Navbar improvements */
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Quick search stacked on mobile */
    .quick-search-section .row {
        flex-direction: column;
    }
    
    .quick-search-section .col-md-3 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Stats section mobile */
    .stats-section .row {
        margin: 0;
    }
    
    .stats-section .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Property cards full width on mobile */
    .properties-preview .col-md-4 {
        width: 100%;
    }
    
    /* Hero stats mobile layout */
    .hero-stats .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* CTA section mobile */
    .cta-section .row {
        text-align: center;
    }
    
    .cta-section .col-lg-8,
    .cta-section .col-lg-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Landscape mobile specific */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    @media (max-width: 575.98px) {
        .navbar {
            position: -webkit-sticky;
            position: sticky;
        }
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== Button Styles ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* ===== Form Styles ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* ===== Loading Animation ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

