/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Header and Navigation */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-text .company-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #2563eb;
    color: white;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn:hover {
    background-color: transparent;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #2563eb;
}

/* Content sections */
.section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Feature cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #2563eb;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #374151;
    font-weight: 500;
}

/* Specific styling for contact details */
.contact-info .contact-detail {
    color: #1f2937;
    font-weight: 600;
}

.contact-info .contact-note {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 400;
}

.contact-info .contact-link {
    color: #2563eb;
    font-weight: 600;
}

/* Inventory Grid Layout */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Individual Trailer Cards */
.trailer-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trailer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Trailer Images */
.trailer-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.trailer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trailer-card:hover .trailer-image img {
    transform: scale(1.05);
}

/* Trailer Content */
.trailer-content {
    padding: 1.5rem;
}

.trailer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Trailer Details */
.trailer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.detail-item {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.detail-item strong {
    color: #374151;
}

/* Trailer Description */
.trailer-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trailer Footer */
.trailer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.trailer-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.btn-small {
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #1d4ed8;
}

/* Error and Loading States */
.error-message,
.inventory-loading {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 1rem;
    margin: 2rem 0;
}

.error-content,
.loading-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-message h3,
.loading-content h3 {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.error-message p,
.loading-content p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Inventory CTA Section */
.inventory-cta {
    text-align: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.inventory-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.inventory-cta p {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Better iframe styling */
.iframe-inventory-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.iframe-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.iframe-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.iframe-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

.responsive-inventory-iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    background: white;
    display: block;
}

/* Fallback message styling */
.inventory-fallback {
    text-align: center;
    margin: 1rem 0 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.inventory-fallback p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-link,
.external-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover,
.external-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Inventory CTA Section */
.inventory-cta {
    text-align: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.inventory-cta h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.inventory-cta p {
    color: #6b7280;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile responsive iframe */
@media (max-width: 768px) {
    .iframe-inventory-container {
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
    
    .iframe-header {
        padding: 1rem 1.5rem;
    }
    
    .iframe-header h3 {
        font-size: 1.25rem;
    }
    
    .iframe-header p {
        font-size: 0.875rem;
    }
    
    .responsive-inventory-iframe {
        min-height: 600px;
    }
    
    .inventory-cta {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .iframe-header {
        padding: 1rem;
    }
    
    .responsive-inventory-iframe {
        min-height: 500px;
    }
    
    .inventory-fallback {
        padding: 0.75rem;
        margin: 0.5rem 0 1.5rem 0;
    }
    
    .inventory-fallback p {
        font-size: 0.8rem;
    }
}

/* Inventory page */
.inventory-placeholder {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.inventory-placeholder .icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-weight: 400;
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
}

/* Footer contact information styling */
.footer-contact-info p {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 500;
}

.footer-contact-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* Google Map styling */
.map-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Location and Hours Layout */
.location-hours-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.map-section {
    /* Map section takes left side */
}

.business-info {
    /* Business info takes right side */
}

/* Map responsive adjustments */
@media (max-width: 768px) {
    .location-hours-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .location-hours-container {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 2rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-text .company-name {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Hero button improvements for mobile */
    .hero div[style*="margin-top: 2rem;"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem !important;
    }

    .hero .btn {
        width: 100%;
        max-width: 280px;
        margin-right: 0 !important;
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* CTA section button improvements for mobile */
    .section div[style*="margin-top: 2rem;"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem !important;
    }

    .section .btn {
        width: 100%;
        max-width: 280px;
        margin-right: 0 !important;
        padding: 1rem 2rem;
        font-size: 1rem;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .inventory-container {
        padding: 0.5rem;
        margin: 1rem 0;
    }

    .inventory-iframe {
        min-height: 600px;
    }

    /* Mobile inventory styles */
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .trailer-image {
        height: 200px;
    }
    
    .trailer-content {
        padding: 1rem;
    }
    
    .trailer-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .btn-small,
    .call-now-btn {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .inventory-cta {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
}

@media (max-width: 480px) {
    .logo-text .company-name {
        font-size: 1.25rem;
    }

    .logo-text .tagline {
        font-size: 0.75rem;
    }

    /* Better button spacing on small screens */
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .btn {
        max-width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
    }

    .section .btn {
        max-width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
    }

    .trailer-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        display: block;
        text-align: center;
    }
    
    .inventory-grid {
        gap: 1rem;
    }
}

/* Modern Inventory Tiles */
.inventory-tiles-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.inventory-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
}

.inventory-count {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.trailer-tile {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.trailer-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.trailer-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f3f4f6;
}

.trailer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.trailer-tile:hover .trailer-image {
    transform: scale(1.05);
}

.image-gallery-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.trailer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trailer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.trailer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.trailer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
}

.trailer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.detail-icon {
    font-size: 1rem;
    color: #2563eb;
}

.trailer-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trailer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}


.view-details-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover {
    background: #1d4ed8;
}

.call-now-btn {
    background: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.call-now-btn:hover {
    background: #047857;
    color: white;
    text-decoration: none;
}

/* Image Gallery Modal */
.image-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-gallery-modal.active {
    display: flex;
}

.gallery-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.9);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Loading and Error States */
.inventory-loading,
.inventory-error {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 1rem;
    margin: 2rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .inventory-tiles-container {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
    
    .inventory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trailer-image-container {
        height: 200px;
    }
    
    .trailer-content {
        padding: 1rem;
    }
    
    .trailer-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .trailer-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-details-btn,
    .call-now-btn {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .gallery-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .gallery-nav {
        padding: 0.75rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .trailer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .trailer-price {
        font-size: 1.25rem;
    }
    
    .gallery-nav {
        display: none;
    }
    
    .gallery-container {
        border-radius: 0;
        max-width: 100vw;
        max-height: 100vh;
    }
}

/* Trailer Detail Modal */
.trailer-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.trailer-detail-modal.active {
    display: flex;
}

.trailer-detail-container {
    background: white;
    border-radius: 1rem;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow-y: auto;
    position: relative;
}

.trailer-detail-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trailer-detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.trailer-detail-close {
    background: #f3f4f6;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background-color 0.3s ease;
}

.trailer-detail-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.trailer-detail-content {
    padding: 2rem;
}

.trailer-detail-image-section {
    margin-bottom: 2rem;
}

.trailer-detail-main-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.trailer-detail-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.trailer-detail-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.25rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: #f8fafc;
}

.trailer-detail-thumbnail.active {
    border-color: #2563eb;
}

.trailer-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.trailer-detail-specs {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.trailer-detail-specs h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.trailer-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.trailer-spec-item:last-child {
    border-bottom: none;
}

.trailer-spec-label {
    font-weight: 600;
    color: #6b7280;
}

.trailer-spec-value {
    color: #1f2937;
    font-weight: 500;
}

.trailer-detail-description {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.trailer-detail-description h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.trailer-detail-description p {
    line-height: 1.6;
    color: #4b5563;
}

.trailer-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    text-align: center;
    margin: 1.5rem 0;
}

.trailer-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.trailer-detail-btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.trailer-detail-btn-primary {
    background: #2563eb;
    color: white;
}

.trailer-detail-btn-primary:hover {
    background: #1d4ed8;
}

.trailer-detail-btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.trailer-detail-btn-secondary:hover {
    background: #2563eb;
    color: white;
}

/* Mobile responsive for detail modal */
@media (max-width: 768px) {
    .trailer-detail-modal {
        padding: 1rem;
    }
    
    .trailer-detail-header {
        padding: 1rem 1.5rem;
    }
    
    .trailer-detail-title {
        font-size: 1.25rem;
    }
    
    .trailer-detail-content {
        padding: 1.5rem;
    }
    
    .trailer-detail-main-image {
        height: 200px;
    }
    
    .trailer-detail-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trailer-detail-actions {
        flex-direction: column;
    }
    
    .trailer-detail-btn {
        width: 100%;
    }
    
    .trailer-detail-price {
        font-size: 1.5rem;
    }
}

/* Contact Form Modal */
.contact-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-form-modal.active {
    display: flex;
}

.contact-form-container {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-form-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.contact-form-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.3s ease;
}

.contact-form-close:hover {
    color: #374151;
}

.contact-form-content {
    padding: 2rem;
}

.contact-form-trailer-info {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-trailer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.contact-form-trailer-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.contact-form-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.contact-form-btn-primary {
    background: #2563eb;
    color: white;
}

.contact-form-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.contact-form-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.contact-form-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.contact-form-btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
}

/* Mobile responsive for contact form modal */
@media (max-width: 768px) {
    .contact-form-container {
        width: 95%;
        margin: 1rem;
    }
    
    .contact-form-header {
        padding: 1rem 1.5rem 0.5rem;
    }
    
    .contact-form-title {
        font-size: 1.25rem;
    }
    
    .contact-form-content {
        padding: 1.5rem;
    }
    
    .contact-form-actions {
        flex-direction: column;
    }
    
    .contact-form-btn {
        width: 100%;
    }
}

/* Fallback iframe inventory styles */
.iframe-inventory-fallback {
    margin: 2rem 0;
}

.iframe-header-clean {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
}

.back-to-modern-btn {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-modern-btn:hover {
    background: #1d4ed8;
}

/* Mobile responsive for fallback iframe */
@media (max-width: 768px) {
    .iframe-header-clean {
        text-align: center;
        justify-content: center;
    }
    
    .back-to-modern-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast-close:hover {
    opacity: 1;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: #3b82f6;
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 0.5rem;
        padding: 0.875rem 1rem;
    }
}