/* Responsive Design for All Devices */

/* Base styles for all devices */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Mobile First Approach */
@media screen and (max-width: 576px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    /* Cards and Grids */
    .card {
        margin-bottom: 1rem;
    }
    
    .vehicle-card img {
        height: 150px !important;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Tablets */
@media screen and (min-width: 577px) and (max-width: 991px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .vehicle-card img {
        height: 200px !important;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Desktop */
@media screen and (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
    
    .hero h1 {
        font-size: 3rem !important;
    }
}

/* Common Responsive Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Grid System Adjustments */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.col, [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Form Responsiveness */
.form-group {
    margin-bottom: 1rem;
}

/* Modal Responsiveness */
.modal-dialog {
    margin: 0.5rem;
    max-width: 100%;
}

@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
        max-width: 500px;
    }
}

/* Image Gallery Responsiveness */
.gallery-item {
    margin-bottom: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Footer Responsiveness */
.footer {
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Navigation Menu Responsiveness */
.navbar-collapse {
    max-height: 100vh;
    overflow-y: auto;
}

/* Payment Options Responsiveness */
.payment-option {
    margin-bottom: 1rem;
}

.payment-details {
    padding: 1rem;
}

/* Media Grid Responsiveness */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Ensure all interactive elements are easily tappable on mobile */
button, 
a, 
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Ensure text remains readable */
p, li, span {
    line-height: 1.5;
    max-width: 70ch;
}

/* Ensure proper spacing on all devices */
section {
    padding: 2rem 1rem;
}

/* Ensure proper table display on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure proper form display on mobile */
input, select, textarea {
    max-width: 100%;
}

/* Ensure proper modal display on mobile */
.modal-content {
    border-radius: 0;
}

@media (min-width: 576px) {
    .modal-content {
        border-radius: 0.3rem;
    }
} 