/**
 * Nelmond Group - Responsive Styles
 * Mobile-first responsive design
 */

/* ===== Large Devices (Desktops) ===== */
@media (max-width: 1200px) {
    .container-custom {
        max-width: 960px;
    }
}

/* ===== Medium Devices (Laptops/Tablets) ===== */
@media (max-width: 992px) {
    .container-custom {
        max-width: 720px;
    }

    /* Navigation */
    .navbar-nav {
        padding: 1rem 0;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    /* Sections */
    .section-padding {
        padding: 4rem 0;
    }

    /* Footer */
    .footer .footer-links {
        margin-bottom: 1rem;
    }
}

/* ===== Small Devices (Tablets/Phones) ===== */
@media (max-width: 768px) {
    .container-custom {
        padding: 0 1.2rem;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }

    /* Cards */
    .property-card .property-features {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    /* Stats */
    .stat-box .stat-number {
        font-size: 1.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    /* Glass Cards */
    .glass-card {
        padding: 1.5rem;
    }

    /* Subsidiary Cards */
    .subsidiary-card {
        padding: 1.5rem;
    }

    .subsidiary-card .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* Gallery */
    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-item-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .gallery-item-content h5 {
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Contact */
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .contact-info-item {
        gap: 0.75rem;
    }

    .map-wrapper iframe {
        height: 250px;
    }

    /* Admin - Dashboard */
    .admin-header {
        padding: 0 1rem;
    }

    .admin-header .header-right .search-box input {
        width: 140px;
    }

    .admin-content {
        padding: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    /* Admin - Forms */
    .admin-form .form-group .form-control,
    .admin-form .form-group .form-select {
        font-size: 0.9rem;
    }

    /* Admin - Tables */
    .admin-table .table thead th {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .admin-table .table tbody td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ===== Extra Small Devices (Phones) ===== */
@media (max-width: 576px) {
    .container-custom {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title .subtitle {
        font-size: 1rem;
    }

    /* Cards */
    .property-card .property-image {
        height: 180px;
    }

    .property-card .property-price {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }

    .property-card .property-title {
        font-size: 1rem;
    }

    /* Grid */
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Admin */
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.2rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    .admin-header .header-left .page-title h4 {
        font-size: 1rem;
    }

    .admin-header .header-right .search-box {
        display: none;
    }

    /* Admin Sidebar */
    .admin-sidebar {
        width: 240px;
    }

    /* Filter Tabs */
    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-tab {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    /* Pagination */
    .pagination .page-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }

    /* Notification */
    .notification {
        max-width: 90vw;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* ===== Landscape Phones ===== */
@media (max-width: 576px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .sidebar-card form,
    .btn-outline-gold,
    .back-to-top,
    .loader,
    .scroll-progress {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-padding {
        padding: 2rem 0;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .property-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}