/* Slovline Rental — premium dark theme.
   Design tokens inšpirované monochromatickou identitou Slovline + akcent pre CTA. */

:root {
    --bg:        #0a0a0b;
    --bg-soft:   #121214;
    --bg-card:   #18181c;
    --bg-elev:   #1f1f24;
    --line:      #2a2a30;
    --line-soft: #1d1d22;
    --text:      #f5f5f7;
    --text-mute: #a1a1aa;
    --text-dim:  #71717a;
    --accent:    #d4a04a;       /* champagne gold — premium feeling */
    --accent-2:  #b8862e;
    --danger:    #ef4444;
    --ok:        #22c55e;
    --warn:      #f59e0b;
    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 8px 32px rgba(0,0,0,0.45);
    --container: 1240px;
    --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Header / Nav ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand {
    font-weight: 700; font-size: 20px; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 10px;
}
.brand-mark {
    width: 32px; height: 32px; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: inline-flex; align-items: center; justify-content: center;
    color: #0a0a0b; font-weight: 800; font-size: 14px;
}
/* SVG wordmark — replaces the old text-based .brand-mark + label pair.
   Keeps natural aspect ratio of the SLOVLINE COLLECTION logo. */
.brand-logo { height: 36px; width: auto; display: block; }
.admin-side .brand-logo { height: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-mute); font-size: 15px; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-cta {
    padding: 10px 20px; background: var(--text); color: var(--bg);
    border-radius: 999px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }

.lang-switcher a { transition: background .15s ease, color .15s ease; }
.lang-switcher a:hover { background: var(--bg-elev); color: var(--text); }

@media (max-width: 880px) {
    .nav-links { display: none; }
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px;
    background: var(--accent); color: #0a0a0b;
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: none; transition: all .15s ease;
}
.btn:hover { background: var(--accent-2); color: #0a0a0b; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-elev); color: var(--text); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--danger); color: #fff; }

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(800px 400px at 20% 10%, rgba(212,160,74,0.12), transparent 60%),
        radial-gradient(600px 400px at 90% 90%, rgba(212,160,74,0.06), transparent 60%),
        var(--bg);
}
.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05; letter-spacing: -0.02em;
    margin: 0 0 24px; font-weight: 700;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead {
    font-size: clamp(16px, 1.6vw, 19px); color: var(--text-mute);
    max-width: 640px; margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Booking search bar inside hero */
.search-bar {
    margin-top: 56px; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 16px;
    align-items: end;
}
.search-bar label {
    display: block; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 8px;
}
.search-bar input, .search-bar select {
    width: 100%;
    background: var(--bg-soft); border: 1px solid var(--line);
    color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
}
.search-bar input:focus, .search-bar select:focus {
    outline: none; border-color: var(--accent);
}
@media (max-width: 880px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 44px); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p  { color: var(--text-mute); margin: 0; max-width: 560px; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); margin-bottom: 16px;
}

/* ============ Vehicle grid ============ */
.fleet-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.vehicle-card {
    background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); overflow: hidden;
    transition: all .2s ease;
    display: flex; flex-direction: column;
}
.vehicle-card:hover {
    border-color: var(--line);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.vehicle-card .img {
    aspect-ratio: 16/10; background: var(--bg-elev);
    background-size: cover; background-position: center;
    position: relative;
}
.vehicle-card .img.placeholder {
    background:
        linear-gradient(135deg, #1f1f24 0%, #2a2a30 50%, #1f1f24 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 14px; letter-spacing: 0.2em;
    text-transform: uppercase;
}
.badge {
    position: absolute; top: 12px; left: 12px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(0,0,0,0.6); color: var(--text);
    font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
}
.badge.accent { background: var(--accent); color: #0a0a0b; }
.vehicle-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.vehicle-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.vehicle-card .cat { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.vehicle-card .specs {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
    color: var(--text-mute); font-size: 13px;
}
.vehicle-card .specs span { display: inline-flex; align-items: center; gap: 4px; }

/* 4-cell mini spec grid pod názvom (kW | 0-100 | ccm | pohon). */
.spec-mini {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
    margin: 0 -20px 16px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.spec-mini .spec-cell {
    background: var(--bg-card);
    padding: 10px 8px;
    text-align: center;
}
.spec-mini .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.spec-mini .val { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 2px; line-height: 1.2; }

.vehicle-card .footer .cta { color: var(--accent); font-size: 13px; font-weight: 600; }
.vehicle-card .footer {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.vehicle-card .price { font-size: 20px; font-weight: 700; }
.vehicle-card .price small { font-weight: 400; color: var(--text-dim); font-size: 13px; }
.vehicle-card .price.request { color: var(--accent); font-size: 15px; }

/* ============ Filter sidebar ============ */
.layout-fleet {
    display: grid; grid-template-columns: 280px 1fr; gap: 40px;
    margin-top: 40px;
}
@media (max-width: 880px) { .layout-fleet { grid-template-columns: 1fr; } }
.filter-panel {
    background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 24px; align-self: start;
    position: sticky; top: 96px;
}
.filter-panel h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; }
.filter-group + .filter-group { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.checkline { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.checkline input { accent-color: var(--accent); }
.checkline span { font-size: 14px; color: var(--text-mute); }
.checkline:hover span { color: var(--text); }

/* ============ Vehicle detail ============ */
.detail {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
    margin-top: 32px;
}
@media (max-width: 880px) { .detail { grid-template-columns: 1fr; } }
.detail .gallery {
    background: var(--bg-card); border-radius: var(--radius);
    aspect-ratio: 16/10; background-size: cover; background-position: center;
    transition: background-image .25s ease;
}

/* Gallery nav arrows */
.gallery-wrap { user-select: none; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 999px;
    background: rgba(0,0,0,0.55); color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 28px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: all .15s ease;
    z-index: 2;
}
.gallery-nav:hover { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-counter {
    position: absolute; bottom: 16px; right: 16px;
    background: rgba(0,0,0,0.6); color: var(--text);
    padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}
/* Thumbnail strip pod galériou: vždy 4 v rade, väčšie, posledný má overlay "+N". */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.thumb-btn {
    position: relative;
    background: var(--bg-card);
    padding: 0;
    cursor: pointer;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line-soft);
    transition: border-color .15s ease, transform .15s ease;
}
.thumb-btn:hover { border-color: var(--accent); }
.thumb-btn.active { border-color: var(--accent); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Posledný "+N viac" — tmavý overlay s číslom navrch poslednej zobrazenej fotky. */
.thumb-btn.has-more::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
}
.thumb-btn.has-more .more-count {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700; letter-spacing: -0.01em;
    z-index: 1;
}
.thumb-btn.has-more:hover::after { background: rgba(0,0,0,0.4); }

/* Hlavný obrázok je klikateľný — otvorí lightbox. */
.gallery { cursor: zoom-in; }

/* Lightbox (fullscreen viewer) */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    user-select: none;
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all .15s ease;
}
.lightbox-close {
    top: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 999px;
    font-size: 22px; line-height: 1;
}
.lightbox-nav {
    top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; border-radius: 999px;
    font-size: 32px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.lightbox-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: var(--text); padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}
body.no-scroll { overflow: hidden; }
@media (max-width: 600px) {
    .lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
    .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
    .lightbox-close   { top: 12px; right: 12px; }
}
.detail h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; letter-spacing: -0.01em; }
.detail .meta { color: var(--text-dim); margin-bottom: 24px; }
.spec-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0;
}
.spec-grid .item { background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); padding: 14px 16px; }
.spec-grid .label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-grid .val { font-size: 16px; font-weight: 600; margin-top: 4px; }

/* ============ Pricing tiers ============ */
.pricing-table {
    width: 100%; border-collapse: collapse; margin: 16px 0 24px;
    background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.pricing-table th, .pricing-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.pricing-table th { background: var(--bg-elev); color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; }
.pricing-table tr:last-child td { border-bottom: none; }

/* ============ Forms ============ */
.form { display: grid; gap: 16px; }
.form label { font-size: 13px; color: var(--text-mute); margin-bottom: 6px; display: block; }
.form input, .form textarea, .form select {
    width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
    color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
}
.form input:focus, .form textarea:focus, .form select:focus {
    outline: none; border-color: var(--accent);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form-card {
    background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}

/* ============ Flash ============ */
.flash { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.flash.info    { background: rgba(56,116,255,0.12); color: #93b4ff; border: 1px solid rgba(56,116,255,0.3); }
.flash.success { background: rgba(34,197,94,0.10);  color: #6ee7a0; border: 1px solid rgba(34,197,94,0.3); }
.flash.error   { background: rgba(239,68,68,0.10);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ============ Footer ============ */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 64px 0 32px; margin-top: 80px;
    background: var(--bg-soft); color: var(--text-mute);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { color: var(--text); margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; }

/* ============ Empty / 404 ============ */
.empty { text-align: center; padding: 120px 24px; }
.empty h1 { font-size: 96px; margin: 0; color: var(--accent); letter-spacing: -0.04em; }
.empty p { color: var(--text-mute); margin-bottom: 32px; }

/* ============ Admin ============ */
.admin-shell {
    display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
}
@media (max-width: 880px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side {
    background: var(--bg-soft); border-right: 1px solid var(--line-soft);
    padding: 24px 16px;
}
.admin-side .brand { margin-bottom: 32px; }
.admin-side a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-mute); font-size: 14px; font-weight: 500;
    margin-bottom: 4px;
}
.admin-side a.active, .admin-side a:hover { background: var(--bg-elev); color: var(--text); }
.admin-side a .pill {
    margin-left: auto; background: var(--accent); color: #0a0a0b;
    font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.admin-nav-group { margin-bottom: 16px; }
.admin-nav-group-label {
    padding: 4px 14px 6px;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-dim);
}
.admin-nav-group + .admin-nav-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-soft); }

.admin-main { padding: 32px 40px; }
.admin-main h1 { margin: 0 0 8px; font-size: 28px; }
.admin-main .subtitle { color: var(--text-mute); margin: 0 0 32px; }

.kpi-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.kpi {
    background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 20px;
}
.kpi .label { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .val { font-size: 32px; font-weight: 700; margin-top: 8px; letter-spacing: -0.01em; }
.kpi .delta { color: var(--text-mute); font-size: 12px; margin-top: 4px; }

.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); overflow: hidden;
}
.data-table th, .data-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.data-table th { background: var(--bg-elev); font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-dim); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-elev); }

.tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag.new       { background: rgba(56,116,255,0.15); color: #93b4ff; }
.tag.confirmed { background: rgba(34,197,94,0.15); color: #6ee7a0; }
.tag.rejected, .tag.cancelled { background: rgba(239,68,68,0.15); color: #fca5a5; }
.tag.completed { background: rgba(161,161,170,0.15); color: var(--text-mute); }
.tag.maintenance { background: rgba(245,158,11,0.15); color: #fcd34d; }
.tag.hidden    { background: rgba(161,161,170,0.15); color: var(--text-mute); }
.tag.active    { background: rgba(34,197,94,0.15); color: #6ee7a0; }
.tag.quote     { background: rgba(212,160,74,0.15); color: var(--accent); }

.bar {
    height: 8px; background: var(--bg-elev); border-radius: 999px; overflow: hidden;
}
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Login */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(212,160,74,0.10), transparent 60%),
        var(--bg);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 8px; }
.auth-card p { color: var(--text-mute); margin: 0 0 24px; font-size: 14px; }
