/* ===== Main Layout and Critical Styles for NTVN Platform ===== */
/* Requires: variables.css and base.css to be loaded first */

/* ===== Critical Navigation Indicator ===== */
/* Active nav indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: var(--radius-full);
}

/* ===== Critical Hero Section ===== */
.hero-section {
    background: transparent;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-blue-100) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.trust-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ===== Critical Layout Components ===== */
.main-content {
    background: transparent;
}

/* ===== Fallback Banner Section ===== */
/* Fallback banner styling when no image is available */
.fallback-banner {
    background: linear-gradient(135deg, var(--primary-blue-50), var(--secondary-indigo-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.fallback-banner h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

/* ===== Critical Responsive Design ===== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    /* Desktop Reset - Ensure mobile search styles don't affect desktop */
    .mobile-search-collapsed,
    .mobile-search-close {
        display: none !important;
    }
    
    .search-container {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none !important;
        max-height: none;
        overflow: visible;
        z-index: auto;
    }
}

/* Mobile menu styles - Now includes medium screens */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .navbar-desktop {
        display: none;
    }
    
    /* New navbar mobile styles - Now includes medium screens */
    .navbar-left, .navbar-middle, .navbar-right {
        display: none !important;
    }
    
    .navbar-mobile {
        display: block !important;
    }
    
    .mobile-menu-dropdown {
        list-style: none;
        padding: 0;
        margin: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .mobile-menu-dropdown li {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-dropdown li:last-child {
        border-bottom: none;
    }
}

/* Medium devices specific styles (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Adjust hero section for tablets */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    /* Trust indicators - Horizontal but closer */
    .trust-indicators {
        gap: var(--space-6);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-mobile {
        display: none;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Extra extra large devices (very large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape phone adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: var(--space-8) 0 var(--space-6);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Use higher quality images for retina displays */
    .property-image {
        image-rendering: -webkit-optimize-contrast;
    }
}