:root {
    --primary: #1B365D;
    --accent: #28a745;
    --accent-hover: #218838;
    --bg: #f4f7f9;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: var(--bg) !important; color: var(--text) !important; min-height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* 1. SJEDNOCENA HORNI LISTA */
.tp-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.tp-header-inner { max-width: 1060px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; justify-content: space-between; align-items: center; }
.tp-logo { font-size: 21px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.tp-logo span { color: var(--accent); }
.tp-nav { display: flex; gap: 28px; align-items: center; }
.tp-nav a { text-decoration: none; color: #475569; font-size: 14px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: 0.2s; }
.tp-nav a:hover, .tp-nav a.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--accent); }
.tp-login { text-decoration: none; color: var(--muted); font-size: 12px; border: 1px solid #cbd5e1; padding: 6px 16px; border-radius: 6px; font-weight: 600; }
.tp-login:hover { background: #f8fafc; color: var(--primary); }
.tp-burger, .tp-login-mobile { display: none; }

/* 2. JEDNOTNY HERO BANNER */
.hero-banner, section.bg-slate-900 {
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 48px 20px 72px !important;
    text-align: left !important;
}
.hero-inner, section.bg-slate-900 > div {
    max-width: 1024px;
    margin: 0 auto;
}
.hero-kicker { color: #8ce99a; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.hero-banner h1, section.bg-slate-900 h1 {
    color: #ffffff !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    margin-bottom: 10px !important;
}
.hero-banner p {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    max-width: 650px;
}

/* 3. JEDNOTNE HLAVNI KARTY */
main { flex: 1; padding: 0 20px 60px !important; display: block !important; }
.booking-panel, .contact-card {
    background: #ffffff !important;
    padding: 36px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.12) !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: -44px auto 0 !important;
    position: relative;
    z-index: 10;
}
.booking-panel h2, .contact-card h2 { color: var(--primary) !important; font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* Formularove prvky */
.form-group { margin-bottom: 16px; text-align: left; }
label { display: block; font-size: 11px !important; font-weight: 700 !important; color: var(--muted) !important; margin-bottom: 6px !important; text-transform: uppercase; letter-spacing: 0.4px; }
input, select, textarea { width: 100%; padding: 12px 14px !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; font-size: 14px !important; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary) !important; }

/* Oprava pro telefonni pole s vlajeckou (intl-tel-input) */
.iti { width: 100% !important; display: block !important; }
.iti input[type="tel"], input#phone { padding-left: 54px !important; }

/* Tlacitka */
.btn-main, #submitBtn {
    width: 100%;
    padding: 15px 20px !important;
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.btn-main:hover, #submitBtn:hover { background: var(--accent-hover) !important; }
.btn-back { background: none; border: none; color: #94a3b8; text-decoration: underline; cursor: pointer; display: block; margin: 16px auto 0; font-size: 13px; text-align: center; }

/* Karty vozidel v hlavnim booking formulari (index.php) */
.v-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.v-card { border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: 0.2s; background: #fff; text-align: left; }
.v-card:hover { border-color: #94a3b8; }
.v-card.selected { border-color: var(--accent); background: #f0fdf4; }
.v-card.disabled { opacity: 0.45; cursor: not-allowed; background: #f8fafc; }
.v-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.v-card h4 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.v-card p { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.35; }
.v-card-price { border-top: 1px solid var(--border); padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.v-card-price strong { font-size: 18px; color: var(--primary); }
.v-card-price span { font-size: 12px; color: var(--muted); }

/* Europe City-to-City kalkulacka */
#searchForm { background: #fff; color: var(--text); padding: 24px; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); margin-top: 24px; }
#searchForm > div:first-child { display: grid; grid-template-columns: 2fr 2fr 2fr 1fr 1.5fr; gap: 14px; align-items: end; }
#searchForm .flex.border { display: flex; border: none; gap: 6px; }
#searchForm > div:last-child { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
#toggleStopBtn { background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; }
#stopContainer { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
#removeStopBtn { background: none; border: none; color: #ef4444; font-size: 14px; cursor: pointer; }
section.bg-slate-900 .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; font-size: 13px; color: #cbd5e1; }

/* Karty vozidel v Europe sekci */
#resultsSection { max-width: 1024px; margin: 0 auto; padding: 48px 20px; width: 100%; }
#routeTitle { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
#routeMeta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
#vehiclesGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
#vehiclesGrid > div { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
#vehiclesGrid h3 { font-size: 18px; font-weight: 700; margin: 10px 0 4px; color: var(--primary); }
#vehiclesGrid p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
#vehiclesGrid .border-t { border-top: 1px solid var(--border); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
#vehiclesGrid .text-2xl { font-size: 24px; font-weight: 800; color: var(--primary); }
#vehiclesGrid button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* 4. SJEDNOCENA PATICKA */
footer, .footer { background: #fff !important; border-top: 1px solid var(--border) !important; margin-top: auto; padding: 20px !important; font-size: 13px !important; color: var(--muted) !important; }
.footer-content { max-width: 1024px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

/* RESPONZIVITA */
@media (max-width: 820px) {
    .tp-burger { display: block; background: none; border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 10px; font-size: 20px; color: var(--primary); cursor: pointer; }
    .tp-login { display: none; }
    .tp-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--border); box-shadow: 0 10px 15px rgba(0,0,0,0.08); align-items: flex-start; gap: 12px; }
    .tp-nav.open { display: flex; }
    .tp-login-mobile { display: inline-block; margin-top: 6px; padding: 8px 16px; background: var(--primary); color: #fff !important; border-radius: 6px; }
    #searchForm > div:first-child, #vehiclesGrid, .v-cards-grid, section.bg-slate-900 .grid { grid-template-columns: 1fr; }
    #stopContainer { flex-direction: column; align-items: stretch; }
    .hero-banner h1, section.bg-slate-900 h1 { font-size: 26px !important; }
    .booking-panel, .contact-card { padding: 24px 18px !important; margin-top: -28px !important; }
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
}
