/* Základní reset a proměnné */
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #e63946;
    --primary-hover: #d62828;
    --dark: #1d3557;
    --dark-bg: #0d1b2a;
    --light: #f8f9fa;
    --text: #2b2d42;
    --gray: #6c757d;
    --success: #2a9d8f;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
}

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

.small-container {
    max-width: 800px;
}

/* Pomocné třídy */
.hidden { display: none !important; }

/* Navigace */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo span { color: var(--primary); }

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-phone { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-phone:hover { background: rgba(255,255,255,0.25); }

.btn-outline { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; }

.btn-nav { background: var(--dark); color: #fff !important; padding: 8px 16px; border-radius: 6px; }

.full-width { display: block; width: 100%; text-align: center; }

/* Hero section - Úprava pro obrázek na pozadí, stín a zatmavení */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.75), rgba(29, 53, 87, 0.85)), url('images/bg.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Přidán stín pro lepší čitelnost textu */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #f1f3f5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.95rem;
    color: #e2e8f0;
    flex-wrap: wrap;
}

/* Sections */
.section { padding: 70px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark-bg); color: #fff; }

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.car-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.status-free { background: #d4edda; color: #155724; }
.status-busy { background: #e2e3e5; color: #383d41; }

/* Galerie */
.car-gallery {
    height: 200px;
    background: #e9ecef;
    position: relative;
    overflow: hidden;
}

.car-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.car-gallery img.active {
    opacity: 1;
    z-index: 2;
}

.car-gallery .prev, .car-gallery .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 10;
    opacity: 0; /* Skryté, dokud nenajede myš */
}

.car-gallery .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.car-card:hover .car-gallery .prev,
.car-card:hover .car-gallery .next {
    opacity: 1;
}

.car-gallery .prev:hover, .car-gallery .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.car-image-placeholder {
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
    position: relative;
    z-index: 1;
}

.car-details { 
    padding: 25px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-details h3 { font-size: 1.4rem; margin-bottom: 8px; }
.car-specs { font-size: 0.9rem; color: var(--gray); margin-bottom: 15px; }

.car-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.car-tags span { background: #f1f3f5; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; }

.car-price { margin-bottom: 10px; margin-top: auto; }
.car-price strong { font-size: 1.4rem; color: var(--primary); }
.car-deposit { font-size: 0.85rem; color: var(--gray); margin-bottom: 20px; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Pricing Table */
.pricing-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.pricing-card ul {
    list-style: none;
}

.pricing-card li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* FAQ */
.faq-list details {
    background: #fff;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.faq-list summary { font-weight: 600; font-size: 1.1rem; }
.faq-list p { margin-top: 10px; color: var(--gray); }

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info a { color: #4ea8de; }

.contact-form form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
}

.footer { background: #020617; color: var(--gray); text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero h1 { font-size: 2rem; }
}