/* ASG Autohaus Schröder - Complete Stylesheet */
/* Modern, Professional Design with Light Colors */

:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --secondary: #2c3e50;
    --accent: #3498db;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border: #e0e0e0;
    --success: #27ae60;
    --danger: #e74c3c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary);
    padding: 10px 0;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    padding: 5px 10px;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.social-links a.whatsapp-button {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-links a.whatsapp-button:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-links a.whatsapp-button i {
    font-size: 20px;
}

.social-links a.whatsapp-button span {
    font-size: 15px;
    font-weight: 600;
}

.order-track-search-top {
    flex: 0 0 auto;
}

.track-form-top {
    display: flex;
    gap: 5px;
    align-items: center;
}

.track-form-top input {
    padding: 8px 15px;
    border: 2px solid var(--white);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 14px;
    width: 220px;
    transition: all 0.3s;
}

.track-form-top input:focus {
    outline: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.track-form-top button {
    padding: 8px 15px;
    background: var(--primary);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.track-form-top button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Order Track Search */
.order-track-search {
    flex: 1;
    max-width: 300px;
    margin: 0 30px;
}

.track-form {
    display: flex;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.track-form:focus-within {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.track-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.track-form button {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-form button:hover {
    background: #c19b2f;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--border);
    padding: 5px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    font-weight: 500;
}

.language-switcher button.active,
.language-switcher button:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding-top: 130px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 730px;
    overflow: hidden;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.slides-container {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(212, 175, 55, 0.95);
    padding: 20px;
    max-width: 800px;
    opacity: 0;
    z-index: 10;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.76rem;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 4px 4px 8px rgba(0, 0, 0, 0.6),
                 0 0 15px rgba(0, 0, 0, 0.5),
                 0 0 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: none;
}

.slide.active .slide-text {
    animation: fadeSlideUp 2.5s ease-out 1s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        bottom: 50px;
        transform: translateX(-50%);
    }
    100% {
        opacity: 0.95;
        bottom: 80px;
        transform: translateX(-50%);
    }
}

@keyframes mobileFadeIn {
    from {
        opacity: 0;
        bottom: 10px;
        transform: translateX(-50%);
    }
    to {
        opacity: 0.95;
        bottom: 30px;
        transform: translateX(-50%);
    }
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary);
}

/* Featured Vehicles / About Section */
.featured-vehicles,
.about-section {
    background: var(--light-bg);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats Counter */
.stats-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.vehicle-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vehicle-badge.sold {
    background: var(--danger);
}

.vehicle-badge.reserved {
    background: var(--text-light);
}

.vehicle-badge.new {
    background: var(--success);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.vehicle-specs i {
    margin-right: 5px;
    color: var(--primary);
}

.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.price-brutto {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-netto {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Priorities Grid */
.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.priority-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.priority-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.priority-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.priority-item h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 250px;
    aspect-ratio: 1/1;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Testimonials */
.testimonials-slider {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 400px;
    background: var(--white);
    padding: 30px;
    margin: 0 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--light-bg);
    padding: 10px;
}

.testimonial-company {
    font-weight: 600;
    color: var(--secondary);
}

.testimonial-rating {
    color: var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: #34495e;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-section p,
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
}

/* Filters */
.filters-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Map */
.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Press/News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Vehicle Details Page */
.vehicle-details-page {
    padding: 40px 0;
}

.vehicle-gallery {
    margin-bottom: 40px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
}

.vehicle-info-detailed {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.vehicle-price-large {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.specs-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 200px;
}

.vehicle-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Header adjustments */
    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
        z-index: 999;
    }

    /* Show navigation when active */
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--border);
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
    }

    .language-switcher {
        padding: 15px 20px;
        justify-content: center;
    }

    /* WhatsApp button smaller on mobile */
    .social-links a.whatsapp-button {
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 20px;
    }

    .social-links a.whatsapp-button i {
        font-size: 16px;
    }

    .social-links a.whatsapp-button span {
        font-size: 13px;
    }

    /* Track order search on mobile */
    .track-form-top input {
        width: 150px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .track-form-top button {
        padding: 6px 12px;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-text {
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 15px;
        font-size: 1.2rem;
        text-align: center;
        max-width: 90%;
        white-space: normal;
        border-right: none;
        letter-spacing: 1px;
    }

    .slide.active .slide-text {
        animation: mobileFadeIn 1s ease-in 1s forwards;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-logo {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    .vehicle-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .vehicle-actions {
        flex-direction: column;
    }

    /* Vehicle Detail Page Mobile */
    .vehicle-details-page {
        padding: 20px 0;
        overflow-x: hidden;
        width: 100%;
    }

    .vehicle-details-page .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .vehicle-info-detailed {
        padding: 20px 15px;
    }

    .vehicle-info-detailed h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .vehicle-info-detailed h2 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .vehicle-price-large {
        margin: 15px 0;
    }

    .vehicle-price-large .price-brutto {
        font-size: 1.8rem;
    }

    .vehicle-price-large .price-netto {
        font-size: 0.9rem;
    }

    .specs-table {
        font-size: 0.9rem;
    }

    .specs-table td {
        padding: 8px 5px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .main-image-new {
        max-height: 300px;
        width: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    /* Gallery section on mobile */
    .vehicle-gallery-new {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Thumbnail navigation on mobile */
    .thumbnail-scroll-wrapper {
        padding: 0;
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
    }

    .thumb-nav {
        display: none !important;
    }

    .thumbnail-scroller {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .thumbnail-new {
        min-width: 80px;
        height: 80px;
    }

    /* Prevent horizontal overflow on mobile */
    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Modal adjustments for mobile */
    .offer-modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 90%;
    }

    .offer-modal-content h2 {
        font-size: 1.3rem;
    }

    /* Gallery modal mobile */
    .gallery-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
        z-index: 10002;
    }

    .gallery-prev, .gallery-next {
        font-size: 40px !important;
        padding: 15px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .gallery-prev {
        left: 10px !important;
    }

    .gallery-next {
        right: 10px !important;
    }

    /* Thumbnail scrollbar for Firefox and other browsers */
    .thumbnail-scroller {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }

    .thumbnail-scroller::-webkit-scrollbar {
        height: 8px;
    }

    .thumbnail-scroller::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .thumbnail-scroller::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .thumbnail-scroller::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
