/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet & Mobile Navigation */
@media (max-width: 991px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar-menu.active {
        height: auto;
        padding-bottom: 2rem;
        border-bottom: 2px solid var(--primary-gold);
    }

    .navbar-link {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--gray-100);
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li:last-child {
        margin-top: 1rem;
        text-align: center;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Adjust specific pages hero height */
    .hero {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 4rem;
    }
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {

    /* Global Typography */
    html {
        font-size: 14px;
        /* Slight scale down base size */
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p,
    .lead {
        font-size: 1rem !important;
    }

    /* Layout Containers */
    .container {
        padding: 0 1rem;
    }

    .section,
    .section-lg {
        padding: 3rem 0;
    }

    /* Collapse all grids */
    .grid,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .property-grid,
    .interior-grid,
    .gallery-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Nuclear option for inline styles that set columns */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Property Details Specific */
    .property-hero {
        height: 40vh !important;
        min-height: 250px !important;
    }

    .detail-layout {
        grid-template-columns: 1fr !important;
    }

    .detail-card,
    .sidebar-card,
    .card-premium {
        padding: 1.5rem !important;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Keep 2 cols for overview stats */
    }

    /* Filter Sidebar (Property Page) */
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        z-index: 10;
    }

    /* Footer */
    .footer-grid,
    footer .grid,
    footer .grid-cols-4 {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }

    /* Center align footer content on mobile */
    footer .flex {
        justify-content: center;
    }

    footer p[style*="display: flex"] {
        justify-content: center;
    }

    /* Cards */
    .card-img {
        height: 200px;
    }

    .card:hover {
        transform: none !important;
        /* Disable hover lift on touch devices */
    }

    /* Hero Section Content */
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-btn,
    .btn-lg {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    /* About Page Specific */
    .stat-card {
        margin-bottom: 1rem;
    }

    /* Floating Buttons */
    .call-float {
        bottom: 5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}