/* ============================================================
   iRent.sk — moderný redizajn (plain CSS)
   ============================================================ */

:root {
  --b50: #f6f9e9;
  --b100: #eaf3cf;
  --b200: #d7e8a4;
  --b300: #bcd770;
  --b400: #a2c545;
  --b500: #85aa27;
  --b600: #65a30d;
  --b700: #4e6e19;
  --b800: #40581a;
  --b900: #374b1a;
  --b950: #1b2809;
  --ink: #10160a;
  --ink-soft: #2a3322;
  --muted: #68725d;
  --line: #e7ebdf;
  --bg-soft: #f7f9f2;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 22, 10, 0.05), 0 2px 8px rgba(16, 22, 10, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 22, 10, 0.1);
  --shadow-lg: 0 20px 50px rgba(16, 22, 10, 0.16);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

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

/* ---------- Typografia ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--b700);
  background: var(--b100);
  border: 1px solid var(--b200);
  padding: 6px 14px;
  border-radius: 999px;
}

.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 10px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--b700);
  white-space: nowrap;
  border-bottom: 2px solid var(--b300);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.link-more:hover { gap: 12px; color: var(--b600); }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--b600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(101, 163, 13, 0.35);
}
.btn-primary:hover { background: var(--b700); box-shadow: 0 10px 26px rgba(101, 163, 13, 0.45); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--b400); color: var(--b700); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; border-radius: 11px; }

/* ---------- Badgy ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-brand { background: var(--b600); color: #fff; }
.badge-soft { background: rgba(255, 255, 255, 0.92); color: var(--ink); backdrop-filter: blur(4px); }
.badge-sale { background: #dc2626; color: #fff; }
.badge-line { background: var(--b50); color: var(--b700); border: 1px solid var(--b200); }

/* ============================================================
   HLAVIČKA
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(16, 22, 10, 0.06);
}
.site-header.on-dark:not(.scrolled) { color: #fff; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--b500), var(--b700));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(101, 163, 13, 0.4);
  flex: none;
}
.logo .logo-i { color: var(--ink); }
.site-header.on-dark:not(.scrolled) .logo .logo-i { color: #fff; }
.logo .logo-rent { color: var(--b600); }
.logo .logo-tld { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-left: -6px; align-self: flex-end; padding-bottom: 4px; }
.site-header.on-dark:not(.scrolled) .logo .logo-tld { color: rgba(255,255,255,0.7); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--b50); color: var(--b700); }
.site-header.on-dark:not(.scrolled) .nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-links a.active { color: var(--b700); background: var(--b100); }
.site-header.on-dark:not(.scrolled) .nav-links a.active { background: rgba(255,255,255,0.16); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: inherit;
}
.nav-toggle:hover { background: var(--b50); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 12px 24px 24px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../../cars/hero.jpg') center 38% / cover no-repeat;
  transform: scale(1.02);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 15, 5, 0.92) 8%, rgba(10, 15, 5, 0.62) 45%, rgba(10, 15, 5, 0.25) 75%),
              linear-gradient(to top, rgba(10, 15, 5, 0.85), transparent 40%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-content { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  margin: 22px 0 18px;
}
.hero h1 .accent {
  color: var(--b300);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  font-weight: 500;
}
.hero-sub strong { color: #fff; }

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--b200);
  backdrop-filter: blur(6px);
}

/* ---------- Vyhľadávací panel ---------- */
.search-panel {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  max-width: 980px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 7px;
}
.field label svg { color: var(--b600); }
.field input, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--b500);
  box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.14);
}
.search-btn { height: 52px; padding: 0 30px; font-size: 1.02rem; }

.search-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.search-quick span { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.quick-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.quick-chip:hover, .quick-chip.active {
  border-color: var(--b500);
  background: var(--b50);
  color: var(--b700);
}

/* ---------- Pás štatistík ---------- */
.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 46px;
}
.hstat { display: flex; flex-direction: column; }
.hstat b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.hstat b em { font-style: normal; color: var(--b300); }
.hstat span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); font-weight: 600; }

/* ============================================================
   KARTY VOZIDIEL
   ============================================================ */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--b200);
}
.car-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eef1e8;
}
.car-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.car-card:hover .car-media img { transform: scale(1.06); }
.car-media .badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; gap: 8px;
}
.car-media .fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.car-media .fav:hover { color: #dc2626; transform: scale(1.1); }
.car-media .fav.active { color: #dc2626; }

.car-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.car-name { font-size: 1.13rem; font-weight: 800; letter-spacing: -0.01em; }
.car-rental {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.car-rental svg { flex: none; color: var(--b600); }
.car-rental a { color: var(--b700); }
.car-rental a:hover { text-decoration: underline; }

.car-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}
.spec svg { color: var(--b600); }

.car-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.car-price { line-height: 1.2; }
.car-price .from { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.car-price .amount { font-size: 1.45rem; font-weight: 800; color: var(--b700); letter-spacing: -0.02em; }
.car-price .per { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.car-price .old { font-size: 0.85rem; color: #b91c1c; text-decoration: line-through; font-weight: 700; margin-left: 6px; }

/* ============================================================
   AKO TO FUNGUJE / KROKY
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: -20px; left: 26px;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--b500), var(--b700));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(101, 163, 13, 0.4);
}
.step h3 { font-size: 1.15rem; margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   KRAJINY / POKRYTIE
   ============================================================ */
.countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.country-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--b200); }
.country-flag { font-size: 2.2rem; line-height: 1; }
.country-card h3 { margin: 14px 0 4px; font-size: 1.15rem; }
.country-card .meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.city-chip {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.city-chip:hover { background: var(--b100); border-color: var(--b300); color: var(--b800); }

/* ============================================================
   CTA PÁS (pre autopožičovne)
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(115deg, var(--b950) 0%, var(--b800) 55%, var(--b700) 100%);
  color: #fff;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 215, 112, 0.25), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 480px; }
.cta-points { display: grid; gap: 14px; position: relative; z-index: 1; }
.cta-point { display: flex; gap: 14px; align-items: flex-start; }
.cta-point .ic {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
  color: var(--b300);
}
.cta-point b { display: block; font-size: 1rem; }
.cta-point span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.cta-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--b300); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--b50);
  border: 1px solid var(--b200);
  display: grid; place-items: center;
  color: var(--b700);
  transition: transform 0.25s;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--b600); color: #fff; border-color: var(--b600); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ============================================================
   PÄTA
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 70px 0 34px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo .logo-i { color: #fff; }
.site-footer .logo .logo-tld { color: rgba(255, 255, 255, 0.5); }
.footer-desc { font-size: 0.93rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--b600); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 11px; font-size: 0.92rem; }
.footer-col a { transition: color 0.15s; }
.footer-col a:hover { color: var(--b300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { color: var(--b400); flex: none; margin-top: 3px; }
.footer-langs { display: flex; gap: 8px; margin-top: 18px; font-size: 1.3rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-cities { margin-top: 22px; font-size: 0.78rem; line-height: 2; color: rgba(255, 255, 255, 0.35); }
.footer-cities a { color: rgba(255, 255, 255, 0.45); }
.footer-cities a:hover { color: var(--b300); }

/* ============================================================
   PODHLAVIE PODSTRÁNOK
   ============================================================ */
.page-hero {
  background: linear-gradient(115deg, var(--b950), var(--b800) 70%, var(--b700));
  color: #fff;
  padding: 150px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; bottom: -160px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 215, 112, 0.2), transparent 65%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 16px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin-top: 10px; }
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--b200);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--b700); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { opacity: 0.5; }

/* ============================================================
   VÝPIS ÁUT (auta.html)
   ============================================================ */
.listing { padding: 54px 0 90px; }
.listing .cars-grid { grid-template-columns: repeat(2, 1fr); }
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 92px;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.filters-head b { font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.filters-head b svg { color: var(--b600); }
.filters-clear {
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
}
.filters-clear:hover { text-decoration: underline; }
.filter-group { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group > b {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 14px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.check-row input { accent-color: var(--b600); width: 17px; height: 17px; cursor: pointer; }
.check-row .count { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 9px; }

.range-wrap { padding: 4px 0 2px; }
.range-out { font-weight: 800; color: var(--b700); font-size: 1.05rem; margin-bottom: 8px; display: block; }
input[type='range'] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--b600) var(--fill, 50%), var(--line) var(--fill, 50%));
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--b600);
  box-shadow: 0 2px 8px rgba(16, 22, 10, 0.2);
  cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--b600);
  cursor: grab;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.results-info { font-weight: 600; color: var(--muted); }
.results-info b { color: var(--ink); font-size: 1.05rem; }
.results-info .badge-line { margin-left: 10px; }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.sort-wrap select {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-weight: 700;
  background: #fff;
  outline: none;
  cursor: pointer;
}
.sort-wrap select:focus { border-color: var(--b500); }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--b100);
  border: 1px solid var(--b200);
  color: var(--b800);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.active-filter button {
  border: none; background: none;
  color: var(--b700);
  display: grid; place-items: center;
  line-height: 1;
}

.empty-state {
  text-align: center;
  padding: 80px 30px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state .ic {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--b50);
  display: grid; place-items: center;
  color: var(--b600);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

.filters-toggle { display: none; }

/* ============================================================
   DETAIL AUTA (auto.html)
   ============================================================ */
.detail { padding: 46px 0 90px; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-title-row h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.detail-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
}
.detail-sub .loc { display: inline-flex; align-items: center; gap: 6px; }
.detail-sub .loc svg { color: var(--b600); }
.detail-sub .rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; }
.detail-sub .rating svg { color: #f59e0b; }

.gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #eef1e8;
}
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.spec-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.spec-card svg { color: var(--b600); margin: 0 auto 8px; }
.spec-card b { display: block; font-size: 0.95rem; }
.spec-card span { font-size: 0.76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.detail-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 26px;
  box-shadow: var(--shadow-sm);
}
.detail-block h2 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.detail-block h2 svg { color: var(--b600); }

.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip svg { color: var(--b600); }

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.kv:nth-child(odd) { padding-right: 24px; }
.kv:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.kv span { color: var(--muted); font-weight: 600; }
.kv b { font-weight: 700; text-align: right; }

/* ---------- Panel ceny / rezervácie ---------- */
.book-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 92px;
}
.book-price {
  background: linear-gradient(115deg, var(--b700), var(--b600));
  color: #fff;
  padding: 24px 26px;
}
.book-price .from { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.book-price .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.book-price .per { font-weight: 600; opacity: 0.85; }
.book-price .vat { font-size: 0.8rem; opacity: 0.8; margin-top: 4px; }
.book-body { padding: 24px 26px; }
.book-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.book-dates .field label { font-size: 0.72rem; }
.book-summary { border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 10px; margin-bottom: 20px; }
.book-line { display: flex; justify-content: space-between; font-size: 0.93rem; font-weight: 600; color: var(--muted); }
.book-line b { color: var(--ink); }
.book-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 14px; }
.book-total b { font-size: 1.5rem; color: var(--b700); letter-spacing: -0.02em; }
.book-note { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.book-note svg { color: var(--b600); flex: none; margin-top: 2px; }

/* ---------- Karta autopožičovne v detaile ---------- */
.rental-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin-top: 24px;
}
.rental-box-head { display: flex; align-items: center; gap: 16px; }
.rental-avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.rental-box-head b { font-size: 1.08rem; display: block; }
.rental-box-head .meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.rental-box-head .meta svg { color: #f59e0b; }
.rental-contacts { display: grid; gap: 10px; margin: 18px 0; font-size: 0.92rem; font-weight: 600; }
.rental-contacts li { display: flex; gap: 10px; align-items: center; }
.rental-contacts svg { color: var(--b600); flex: none; }
.lang-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   AUTOPOŽIČOVNE (directory)
   ============================================================ */
/* one company per row, as on the old site: green name bar, then address | contacts | offer | more */
.rentals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.company-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(4, minmax(135px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.company-controls > div { min-width: 0; }
.company-controls label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.company-controls input, .company-controls select {
  width: 100%; min-height: 44px; padding: 9px 11px; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .9rem;
}
.company-controls input:focus, .company-controls select:focus { outline: 2px solid var(--b300); border-color: var(--b500); }
.company-control-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.company-control-actions a { font-size: .78rem; font-weight: 700; color: var(--muted); }
.company-results-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 22px; color: var(--muted); }
.company-results-bar strong { color: var(--ink); }
.company-price-from { color: var(--b700); font-weight: 800; }
.rental-card {
  background: #fff;
  border: 1px solid var(--line);
  border: 2px solid #91c832;
  border-radius: 2px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.rental-card:hover { box-shadow: var(--shadow-md); }
.rental-card-heading {
  min-height: 54px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #91c832; color: #111;
}
.rental-card-heading h3 { margin: 0; font-size: 1.03rem; line-height: 1.3; }
.rental-card-heading h3 a { color: inherit; }
.rental-card-heading h3 span { font-weight: 500; }
.rental-card-heading .rating-line { flex: none; color: #111; font-size: .82rem; }
.rental-card-contact {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) minmax(130px, auto) auto; gap: 16px 28px;
  align-items: center; padding: 17px 18px;
}
.rental-card-address, .rental-card-links a { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: .9rem; line-height: 1.5; }
.rental-card-address svg, .rental-card-links svg { flex: none; color: #77a91e; }
.rental-card-links { display: grid; gap: 5px; min-width: 0; }
.rental-card-links a { overflow-wrap: anywhere; }
.rental-card-links .rental-phone { font-size: 1rem; font-weight: 800; }
.rental-more-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 15px;
  background: #e6edf1; color: #111; font-weight: 800; white-space: nowrap;
}
.rental-more-link:hover { background: #d9e5eb; }
.rental-card-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.rental-card-top .rental-avatar { width: 60px; height: 60px; font-size: 1.2rem; }
.rental-card-top h3 { font-size: 1.1rem; }
.rental-card-top .loc { font-size: 0.86rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.rental-card-top .loc svg { color: var(--b600); }
.rental-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 800; font-size: 0.95rem; }
.rental-rating svg { color: #f59e0b; }
.rental-rating .rev { color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.rental-card p.about { margin: 0 18px 16px; font-size: 0.88rem; color: var(--muted); flex: 1; }
.rental-card-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcf8;
}
.rental-fleet { font-size: 0.86rem; font-weight: 700; color: var(--b700); display: flex; align-items: center; gap: 7px; }
.rental-fleet svg { color: var(--b600); }
.rental-price-from { font-weight: 800; color: #111; }
.rental-card-offer { display: grid; gap: 4px; justify-items: start; }

/* ---------- Detail autopožičovne ---------- */
.rental-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  margin-top: -64px;
  position: relative;
  z-index: 3;
  padding: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}
.rental-hero-card .rental-avatar { width: 88px; height: 88px; border-radius: 22px; font-size: 1.7rem; }
.rental-hero-card h1 { font-size: 1.7rem; }
.rental-hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.rental-hero-meta li { display: flex; align-items: center; gap: 7px; }
.rental-hero-meta svg { color: var(--b600); }
.rental-hero-meta .rating svg { color: #f59e0b; }
.rental-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 40px 0 50px;
}

/* ============================================================
   MODAL / REZERVÁCIA / TOAST
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 5, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head b { font-size: 1.1rem; }
.modal-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--muted);
}
.modal-close:hover { background: var(--b50); color: var(--b700); }
.modal-body { padding: 26px; }
.modal-body .field { margin-bottom: 16px; }
.modal-success { text-align: center; padding: 40px 26px; }
.modal-success .ic {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--b100);
  display: grid; place-items: center;
  color: var(--b600);
}
.modal-success h3 { font-size: 1.3rem; margin-bottom: 10px; }
.modal-success p { color: var(--muted); font-size: 0.95rem; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(26px) scale(0.98); } }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   ANIMÁCIE / REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ============================================================
   RESPOZNÍVNE
   ============================================================ */
@media (max-width: 1024px) {
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .rental-card-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .rental-more-link { justify-self: end; }
  .company-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-control-search { grid-column: span 2; }
  .countries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 240px 1fr; gap: 26px; }
  .detail-layout { grid-template-columns: 1fr; }
  .book-panel { position: static; }
  .spec-cards { grid-template-columns: repeat(4, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: span 2; }
  .rental-hero-card { grid-template-columns: auto 1fr; }
  .rental-hero-card .btn { grid-column: span 2; justify-self: start; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-stats { gap: 26px; }
  .hstat b { font-size: 1.5rem; }
  .listing-layout { grid-template-columns: 1fr; }
  .company-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .company-control-search { grid-column: 1 / -1; }
  .company-control-actions { align-items: stretch; }
  .filters { position: fixed; inset: 0; z-index: 250; border-radius: 0; overflow: auto; display: none; top: 0; }
  .filters.open { display: block; }
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 0.92rem;
  }
  .filters-close { display: grid !important; }
  .spec-cards { grid-template-columns: repeat(2, 1fr); }
  .kv-grid { grid-template-columns: 1fr; }
  .kv:nth-child(odd) { padding-right: 0; }
  .kv:nth-child(even) { padding-left: 0; border-left: none; }
  .rental-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 560px) {
  .cars-grid, .rentals-grid, .countries, .listing .cars-grid { grid-template-columns: 1fr; }
  .rental-card-contact { grid-template-columns: 1fr; }
  .rental-more-link { grid-column: auto; justify-self: stretch; }
  .company-controls { grid-template-columns: 1fr; }
  .company-control-search { grid-column: auto; }
  .search-grid { grid-template-columns: 1fr; }
  .search-btn { grid-column: span 1; }
  .book-dates { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; }
  .car-specs { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .section-head h2 { font-size: 1.55rem; }
  .rental-hero-card { grid-template-columns: 1fr; text-align: left; padding: 26px; }
  .rental-hero-card .btn { grid-column: span 1; }
}

/* ============================================================
   PREPÍNAČ PORTÁLOV (hlavička)
   ============================================================ */
.portal-switch { position: relative; }
.portal-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.portal-current:hover { border-color: var(--b400); }
.site-header.on-dark:not(.scrolled) .portal-current {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
}
.portal-current .pf { font-size: 1.05rem; }
.portal-current b { letter-spacing: -0.01em; }

.portal-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  z-index: 150;
  color: var(--ink);
}
.portal-menu.open { display: block; animation: slideUp 0.18s cubic-bezier(0.22, 1, 0.36, 1); }
.portal-menu-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 12px 10px;
}
.portal-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.15s;
}
.portal-menu a:hover { background: var(--b50); }
.portal-menu a.active { background: var(--b100); }
.portal-menu a.active svg { margin-left: auto; color: var(--b700); }
.portal-menu .pf { font-size: 1.4rem; }
.portal-menu .pi { display: flex; flex-direction: column; }
.portal-menu .pi b { font-size: 0.95rem; }
.portal-menu .pi small { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* mobilné menu — portály */
.mm-portals {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mm-portals > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 8px 8px;
}
.mm-portals a { display: flex; align-items: center; gap: 10px; border-bottom: none !important; padding: 10px 8px !important; font-size: 0.98rem !important; }
.mm-portals a small { color: var(--muted); font-weight: 600; }
.mm-portals a.active { color: var(--b700); }

/* ============================================================
   KARTY PORTÁLOV (domovská stránka mastera)
   ============================================================ */
.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.portal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--b300); }
.portal-card.active {
  border-color: var(--b500);
  background: linear-gradient(160deg, var(--b50), #fff 60%);
}
.pc-flag { font-size: 2.4rem; line-height: 1; }
.pc-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.pc-scope { font-size: 0.9rem; font-weight: 700; color: var(--b700); }
.pc-counts { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--b700);
  border-bottom: 2px solid var(--b300);
  padding-bottom: 2px;
}
.portal-card.active .pc-link { border-color: var(--b500); }

/* ---------- Banner späť na master (SK/CZ) ---------- */
.master-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(115deg, var(--b950), var(--b800) 70%, var(--b700));
  border-radius: 22px;
  padding: 34px 40px;
  color: #fff;
}
.mb-text { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; }
.mb-flag { font-size: 2rem; line-height: 1.2; }
.mb-text b { font-size: 1.15rem; }
.mb-text p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Päta — portály ---------- */
.footer-portals { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.footer-portals a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
}
.footer-portals a:hover { background: var(--b600); color: #fff; }
.footer-portals a.active { background: var(--b600); color: #fff; }

/* EU má viac krajín — 4 stĺpce sa zalomia pekne */
.countries-eu { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .portal-cards { grid-template-columns: 1fr; max-width: 560px; }
  .countries-eu { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .portal-switch { display: none; }
}
@media (max-width: 560px) {
  .countries-eu { grid-template-columns: 1fr; }
  .master-banner { padding: 26px; }
}

/* iRent logo (the original transparent GIF): in colour on light backgrounds, all white on dark ones */
.logo-img { display: block; height: 52px; width: auto; flex: none; }
.site-header.on-dark:not(.scrolled) .logo-img,
.site-footer .logo-img { filter: brightness(0) invert(1); }

/* ---- date picker (flatpickr, datepicker.js): field shows dd.mm.yyyy with a calendar icon; calendar in the site style.
   "html" prefix: flatpickr's own stylesheet is loaded after this one. */
html input.date-alt {
  cursor: pointer;
  padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2365a30d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 14px center;
}
html .flatpickr-calendar {
  width: 318px;
  padding: 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-family: inherit;
}
html .flatpickr-calendar.arrowTop::before, html .flatpickr-calendar.arrowTop::after,
html .flatpickr-calendar.arrowBottom::before, html .flatpickr-calendar.arrowBottom::after { display: none; }
html .flatpickr-months { align-items: center; margin-bottom: 6px; }
html .flatpickr-months .flatpickr-month { height: 40px; color: var(--ink); }
html .flatpickr-current-month { font-size: 1rem; font-weight: 800; padding-top: 9px; }
html .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 800; border-radius: 8px; }
html .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
html .flatpickr-current-month input.cur-year:hover { background: var(--b50); }
html .flatpickr-current-month input.cur-year { font-weight: 800; }
html .flatpickr-months .flatpickr-prev-month, html .flatpickr-months .flatpickr-next-month {
  top: 12px; height: 36px; width: 36px; padding: 10px; border-radius: 10px; color: var(--ink); fill: var(--ink);
}
html .flatpickr-months .flatpickr-prev-month { left: 10px; }
html .flatpickr-months .flatpickr-next-month { right: 10px; }
html .flatpickr-months .flatpickr-prev-month:hover, html .flatpickr-months .flatpickr-next-month:hover { background: var(--b50); }
html .flatpickr-months .flatpickr-prev-month:hover svg, html .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--b600); }
html .flatpickr-innerContainer, html .flatpickr-rContainer, html .flatpickr-days, html .flatpickr-weekdays { width: 296px; }
html .dayContainer { width: 296px; min-width: 296px; max-width: 296px; }
html span.flatpickr-weekday { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
html .flatpickr-day {
  max-width: 42px; height: 40px; line-height: 38px; margin: 1px 0;
  border-radius: 11px; font-weight: 600; color: var(--ink);
}
html .flatpickr-day:hover, html .flatpickr-day:focus { background: var(--b50); border-color: var(--b100); }
html .flatpickr-day.today { border-color: var(--b300); }
html .flatpickr-day.today:hover { background: var(--b50); color: var(--ink); border-color: var(--b400); }
html .flatpickr-day.selected, html .flatpickr-day.selected:hover, html .flatpickr-day.selected:focus {
  background: var(--b600); border-color: var(--b600); color: #fff; box-shadow: 0 4px 12px rgba(101, 163, 13, 0.35);
}
html .flatpickr-day.prevMonthDay, html .flatpickr-day.nextMonthDay { color: #b4bcab; }
html .flatpickr-day.flatpickr-disabled, html .flatpickr-day.flatpickr-disabled:hover { color: #cfd4c8; background: none; border-color: transparent; }
@media (max-width: 380px) {
  html .flatpickr-calendar { width: calc(100vw - 24px); }
  html .flatpickr-innerContainer, html .flatpickr-rContainer, html .flatpickr-days, html .flatpickr-weekdays,
  html .dayContainer { width: calc(100vw - 44px); min-width: 0; max-width: none; }
}

/* ---- form fields: text, date and select fields are the same height; selects get their own arrow */
html .field input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
html .field select { height: 52px; box-sizing: border-box; line-height: 1.2; }
html .field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  text-overflow: ellipsis;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2365a30d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

/* ---- car list filters: less used ones folded under "Rozšírené" */
.filter-more { border-bottom: 1px solid var(--line); }
.filter-more > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--b700);
  user-select: none;
}
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary:hover { background: var(--bg-soft); }
.filter-more > summary:focus-visible { outline: 2px solid var(--b500); outline-offset: -2px; }
.filter-more > summary svg:last-child { margin-left: auto; transition: transform 0.2s; }
.filter-more[open] > summary { border-bottom: 1px solid var(--line); }
.filter-more[open] > summary svg:last-child { transform: rotate(180deg); }
.filter-more .filter-group:last-child { border-bottom: none; }

/* the X closes the mobile filter drawer only (shown by the mobile media query); .modal-close would show it on desktop */
.filters-close.modal-close { display: none; }

/* filter panel taller than the window (e.g. "Rozšírené" open on a low screen): the sticky panel scrolls inside
   itself and the "Zobraziť autá" button stays pinned at its bottom */
.filters { max-height: calc(100vh - 92px - 16px); max-height: calc(100dvh - 92px - 16px); overflow-y: auto; overscroll-behavior: contain; }
.filters-submit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 14px 22px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.filters .filters-submit .btn-block { margin-top: 0; }
@media (max-width: 768px) {
  .filters { max-height: none; }   /* mobile: full-screen drawer */
}

/* ---- car detail: the sidebar (price + booking form) stays in view while the page scrolls; when it is taller than
   the window it scrolls inside itself. The aside spans the whole row so the sticky panel has room to move. */
.detail-layout > aside { align-self: stretch; }
.detail-layout .book-panel { max-height: calc(100vh - 92px - 16px); max-height: calc(100dvh - 92px - 16px); overflow-y: auto; overscroll-behavior: contain; }
.book-form .field { margin-bottom: 14px; }
.book-form .book-dates .field { margin-bottom: 0; }
.book-form .field textarea { min-height: 84px; }
.book-form .res-submit { margin-top: 4px; }
.book-form .res-legal { margin-top: 10px; }
.rental-box.detail-block { margin-top: 26px; padding: 28px; }   /* the company box now sits in the main column like the other blocks */
@media (max-width: 1024px) {
  .detail-layout .book-panel { max-height: none; overflow: hidden; }
}

/* car detail sidebar: price part, then "Rezervovať" opens the contact part (separate section with its own heading) */
.book-contact { margin: 20px -26px -24px; padding: 20px 26px 24px; border-top: 1px solid var(--line); background: var(--bg-soft); }   /* soft green-grey, to the panel edges */
.book-contact h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; }
html.js .book-contact:not(.open) { display: none; }
html:not(.js) .book-open, .book-open[hidden] { display: none; }

/* car detail: "Doplnková výbava" and "Doplnkové služby" side by side, as on the old site */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.extras-grid > .detail-block { margin-top: 0; }
.extras-grid + .table-note { margin-top: 10px; }
.extras-none { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .extras-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* car detail: "Zobraziť viac informácií" folds extras + company notes (as on the old site) */
.more-info { margin-top: 26px; }
.more-info > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--b700);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.more-info > summary::-webkit-details-marker { display: none; }
.more-info > summary:hover { background: var(--bg-soft); border-color: var(--b200); }
.more-info > summary:focus-visible { outline: 2px solid var(--b500); outline-offset: 2px; }
.more-info > summary svg { transition: transform 0.2s; }
.more-info[open] > summary svg { transform: rotate(180deg); }
.more-info .when-open, .more-info[open] .when-closed { display: none; }
.more-info[open] .when-open { display: inline; }
.more-info > .extras-grid { margin-top: 18px; }

/* car detail: company block with all details */
.rental-kv { margin-top: 18px; }
.rental-kv .kv b { overflow-wrap: anywhere; }
.rental-kv .kv b a { color: var(--b700); }
.rental-box .lang-badges, .rental-box .chip-list { margin-top: 4px; }
.rental-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* =====================================================================
   Car detail – premium look: dark title band (photo and price card overlap it), soft page background so the white
   cards stand out, one compact row of specs, dark price header, tinted icon badges on section headings.
   ===================================================================== */
.car-detail {
  --band: 440px;
  padding-top: 112px;
  background:
    radial-gradient(900px 340px at 85% 0, rgba(133, 170, 39, 0.28), transparent 70%),
    linear-gradient(180deg, #0c1307 0%, #16220a 70%, #1b2809 100%) top / 100% var(--band) no-repeat,
    var(--bg-soft);
}
.car-detail .breadcrumbs { color: rgba(255, 255, 255, 0.55); }
.car-detail .breadcrumbs a { color: var(--b300); }
.car-detail .detail-title-row { margin-bottom: 28px; align-items: flex-end; }
.car-detail .detail-title-row h1 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.car-detail .detail-sub { color: rgba(255, 255, 255, 0.72); margin-top: 12px; }
.car-detail .detail-sub a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.car-detail .detail-sub .loc svg { color: var(--b400); }
.car-detail .detail-sub .badge-line { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.btn-ghost-dark { color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* photo: large, rounded, lifted off the band */
.car-detail .gallery { border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(8, 14, 4, 0.35); background: #e9ece4; }
.car-detail .gallery-thumbs { gap: 12px; margin-top: 14px; }
.car-detail .gallery-thumbs a { border-radius: 12px; border: 2px solid transparent; box-shadow: var(--shadow-sm); opacity: 0.75; transition: opacity 0.15s, border-color 0.15s; }
.car-detail .gallery-thumbs a.active, .car-detail .gallery-thumbs a:hover { opacity: 1; border-color: var(--b500); }
.car-detail .gallery-thumbs img { width: 104px; height: 70px; }

/* specs: one compact row (wraps on small screens) */
.car-detail .spec-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.car-detail .spec-card {
  flex: 1 1 0;
  min-width: 108px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon value" "icon label";
  align-items: center;
  column-gap: 10px;
  padding: 12px 14px;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.car-detail .spec-card:last-child { border-right: 0; }
.car-detail .spec-card svg { grid-area: icon; margin: 0; width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--b50); color: var(--b700); }
.car-detail .spec-card b { grid-area: value; font-size: 0.95rem; line-height: 1.2; white-space: nowrap; }
.car-detail .spec-card span { grid-area: label; font-size: 0.68rem; line-height: 1.3; letter-spacing: 0.06em; }

/* section cards */
.car-detail .detail-block { border-radius: 20px; padding: 30px; border-color: #e3e8da; box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04), 0 8px 24px rgba(16, 22, 10, 0.06); }
.car-detail .detail-block h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; gap: 12px; }
.car-detail .detail-block h2 svg { width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 11px; background: var(--b50); color: var(--b700); flex: none; }
.car-detail .kv span { font-size: 0.88rem; }
.car-detail .kv b { color: var(--ink); }
.car-detail .chip { background: #fff; border-color: #dfe5d4; }
.car-detail .more-info > summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.car-detail .more-info > summary:hover { background: var(--b950); border-color: var(--b950); }

/* price card: dark header with a bright price */
.car-detail .book-panel { border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(8, 14, 4, 0.28); }
.car-detail .book-price {
  background:
    radial-gradient(420px 180px at 100% 0, rgba(215, 232, 164, 0.35), transparent 70%),
    linear-gradient(135deg, #3f5d12, #65a30d);
  padding: 26px 28px;
}
.car-detail .book-price .from { color: #eaf3cf; opacity: 1; }
.car-detail .book-price .amount { font-size: 2.6rem; color: #fff; }
.car-detail .book-price .old { color: rgba(255, 255, 255, 0.55); }
.car-detail .book-price .vat { color: rgba(255, 255, 255, 0.82); opacity: 1; }
.car-detail .book-body { padding: 24px 28px; }
.car-detail .book-total b { color: var(--b600); font-size: 1.6rem; }
.car-detail .book-open, .car-detail .res-submit { min-height: 54px; font-size: 1.02rem; box-shadow: 0 10px 24px rgba(101, 163, 13, 0.35); }
.car-detail .book-contact { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }

/* small uppercase labels inside the cards (Komunikácia, Spôsoby platby, Otváracie hodiny) */
.car-detail .block-sub { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 24px 0 10px; display: flex; align-items: center; gap: 6px; }
/* company card: avatar a bit larger */
.car-detail .rental-avatar { width: 60px; height: 60px; border-radius: 18px; font-size: 1.2rem; }

@media (max-width: 1024px) {
  .car-detail { --band: 520px; }
}
@media (max-width: 640px) {
  .car-detail { padding-top: 96px; --band: 460px; }
  .car-detail .spec-card { flex: 1 1 33%; border-bottom: 1px solid var(--line); }
  .car-detail .detail-block { padding: 22px 18px; }
}

/* car detail: the company card is light green (not white like the car's own cards), with a green accent edge */
.car-detail .rental-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--b200);
  background:
    radial-gradient(520px 220px at 100% 0, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(160deg, #f3f8e4 0%, #e6f0cc 100%);
  box-shadow: 0 10px 30px rgba(78, 110, 25, 0.12);
}
.car-detail .rental-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--b500), var(--b700)); }
.car-detail .rental-box h2 svg { background: #fff; color: var(--b700); }
.car-detail .rental-box .kv { border-bottom-color: rgba(78, 110, 25, 0.16); }
.car-detail .rental-box .kv:nth-child(even) { border-left-color: rgba(78, 110, 25, 0.16); }
.car-detail .rental-box .kv span { color: #5d6a4c; }
.car-detail .rental-box .kv b a { color: var(--b700); }
.car-detail .rental-box .badge-line, .car-detail .rental-box .chip { background: #fff; border-color: var(--b200); }
.car-detail .rental-box .hours-list > div { border-bottom-color: rgba(78, 110, 25, 0.18); }
.car-detail .rental-box .rental-actions .btn-light { background: #fff; border: 1px solid var(--b200); }
.car-detail .rental-box .rental-actions .btn-light:hover { background: var(--b50); }
.car-detail .rental-box .rental-actions .btn-light:last-child { background: var(--b600); border-color: var(--b600); color: #fff; }
.car-detail .rental-box .rental-actions .btn-light:last-child:hover { background: var(--b700); }

/* map modal (car detail): native <dialog> */
dialog.map-modal { padding: 0; border: 0; max-width: 760px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); color: var(--ink); }
dialog.map-modal::backdrop { background: rgba(10, 15, 5, 0.6); backdrop-filter: blur(4px); }
.map-modal .modal-head { align-items: flex-start; gap: 16px; }
.map-modal .map-address { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.map-modal .map-address svg { color: var(--b600); flex: none; }
.map-frame { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f3f8e4, #e3eec6); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.map-consent .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--b600); box-shadow: var(--shadow-sm); }
.map-consent p { max-width: 380px; color: var(--ink-soft); font-weight: 600; font-size: 0.93rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .map-frame { aspect-ratio: 4 / 5; }
  .map-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* icon-only button (e.g. map pin in the company card) */
.btn.btn-icon { width: 52px; min-width: 52px; padding: 0; justify-content: center; align-self: stretch; }
.car-detail .rental-box .btn-icon svg { color: var(--b600); }

/* car detail: card headings in their own header strip (light band + dividing line), content below */
.car-detail .detail-block h2 {
  margin: -30px -30px 24px;
  padding: 18px 30px;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #f8faf3, #f2f6ea);
  border-bottom: 1px solid #e3e8da;
  border-radius: 20px 20px 0 0;
}
.car-detail .detail-block h2 svg { background: #fff; box-shadow: 0 1px 3px rgba(16, 22, 10, 0.08); }
.car-detail .rental-box h2 { margin: -28px -28px 24px; padding: 18px 28px; border-radius: 0; background: rgba(255, 255, 255, 0.55); border-bottom-color: var(--b200); }
@media (max-width: 640px) {
  .car-detail .detail-block h2 { margin: -22px -18px 20px; padding: 16px 18px; }
}

/* =====================================================================
   Car detail – premium icons: finer strokes, gradient badges with a top highlight
   ===================================================================== */
.car-detail svg { stroke-width: 1.75; }

/* card headings: solid brand badge, white icon */
.car-detail .detail-block h2 svg,
.car-detail .rental-box h2 svg {
  width: 40px; height: 40px; padding: 10px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #8fbf2a 0%, #65a30d 45%, #4e6e19 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px rgba(78, 110, 25, 0.28);
  stroke-width: 2;
}

/* specs row: soft gradient tile with a fine border */
.car-detail .spec-card svg {
  width: 38px; height: 38px; padding: 9px;
  border-radius: 11px;
  color: var(--b700);
  background: linear-gradient(160deg, #f6faeb 0%, #e4efc7 100%);
  box-shadow: inset 0 0 0 1px rgba(101, 163, 13, 0.18), inset 0 1px 0 #fff;
}

/* equipment chips: filled green circle with a white check / shield */
.car-detail .chip svg {
  width: 20px; height: 20px; padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #85aa27, #4e6e19);
  stroke-width: 3;
  flex: none;
}
.car-detail .chip { padding: 6px 14px 6px 7px; }

/* company card: payment chip and the map pin button follow the same style */
.car-detail .rental-box .chip svg { stroke-width: 2.5; }
.car-detail .rental-box .btn-icon svg { color: var(--b700); stroke-width: 2; }

/* price card labels and info notes: brand colour, fine stroke */
.car-detail .book-dates label svg, .car-detail .book-note svg { color: var(--b600); stroke-width: 2; }

/* =====================================================================
   Business look: tighter corners everywhere (was 18–22 px cards, pill chips)
   ===================================================================== */
:root { --radius: 12px; --radius-sm: 8px; }
.btn, .field input, .field select, .field textarea, .frow input, .frow select, .frow textarea,
.filters-toggle, .sort-wrap select, html input.date-alt { border-radius: 8px; }
.chip, .badge, .active-filter, .eyebrow { border-radius: 6px; }
.modal, dialog.map-modal { border-radius: 12px; }
html .flatpickr-calendar { border-radius: 10px; }
html .flatpickr-day { border-radius: 6px; }

/* car detail */
.car-detail .gallery { border-radius: 12px; }
.car-detail .gallery-thumbs a { border-radius: 6px; }
.car-detail .spec-cards { border-radius: 10px; }
.car-detail .spec-card svg { border-radius: 8px; }
.car-detail .detail-block { border-radius: 12px; }
.car-detail .detail-block h2 { border-radius: 12px 12px 0 0; }
.car-detail .rental-box h2 { border-radius: 0; }
.car-detail .detail-block h2 svg, .car-detail .rental-box h2 svg { border-radius: 8px; }
.car-detail .book-panel { border-radius: 12px; }
.car-detail .rental-avatar { border-radius: 10px; }
.car-detail .more-info > summary { border-radius: 8px; }
.car-detail .chip svg { border-radius: 4px; }
.map-consent .ic { border-radius: 10px; }
.search-panel, .cta-band, .rental-hero-card { border-radius: 14px; }
.rental-hero-card .rental-avatar, .rental-avatar { border-radius: 10px; }
.lang-switch ul { border-radius: 8px; }
.lang-switch summary, .mobile-langs a, .res-car img { border-radius: 6px; }

/* =====================================================================
   Car list + car cards – premium look (same language as the car detail)
   ===================================================================== */
/* hero band: deep green-black with a soft glow, like the car detail */
.page-hero {
  background:
    radial-gradient(900px 340px at 85% 0, rgba(133, 170, 39, 0.28), transparent 70%),
    linear-gradient(180deg, #0c1307 0%, #16220a 70%, #1b2809 100%);
  padding: 140px 0 56px;
}
.page-hero::after { display: none; }
.page-hero .breadcrumbs { color: rgba(255, 255, 255, 0.55); }
.page-hero .breadcrumbs a { color: var(--b300); }
.page-hero h1 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.page-hero p { color: rgba(255, 255, 255, 0.72); }

/* page background: soft, so the white cards stand out */
.listing { background: #f1f4ec; padding-top: 40px; }
.results-bar { flex-wrap: nowrap; }
.results-info { flex: 1 1 auto; min-width: 0; }
.results-bar > div:last-child { flex: none; }
@media (max-width: 1024px) { .results-bar { flex-wrap: wrap; } }

/* toolbar: result count + sorting in one white bar */
.results-bar {
  background: #fff;
  border: 1px solid #e3e8da;
  border-radius: 12px;
  padding: 12px 16px 12px 20px;
  box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04);
  margin-bottom: 22px;
}
.results-info { font-size: 0.9rem; }
.sort-wrap { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.sort-wrap select {
  -webkit-appearance: none;
  appearance: none;
  height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid #dfe5d4;
  border-radius: 8px;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2365a30d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.sort-info { font-size: 0.82rem; font-weight: 700; color: var(--b700); }
.filters-toggle { border-radius: 8px; }

/* filter panel: header strip like the car detail cards */
.filters { border-radius: 12px; border-color: #e3e8da; box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04), 0 8px 24px rgba(16, 22, 10, 0.05); }
.filters-head { background: linear-gradient(180deg, #f8faf3, #f2f6ea); border-bottom-color: #e3e8da; }
.filters-head b svg { width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: #fff; background: linear-gradient(145deg, #8fbf2a 0%, #65a30d 45%, #4e6e19 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.filter-group > b { font-size: 0.72rem; letter-spacing: 0.08em; }
.filters-submit { background: #fff; }

/* car card */
.car-card {
  border: 1px solid #e3e8da;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04), 0 8px 24px rgba(16, 22, 10, 0.06);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s;
}
.car-card:hover { transform: translateY(-4px); border-color: var(--b200); box-shadow: 0 2px 4px rgba(16, 22, 10, 0.05), 0 22px 44px rgba(16, 22, 10, 0.12); }
.car-media { aspect-ratio: 16 / 10; background: #eceee8; }
.car-card:hover .car-media img { transform: scale(1.04); }
.car-media .badges { top: 12px; left: 12px; }
.car-media .badge-soft { background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 0; backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(16, 22, 10, 0.12); font-weight: 800; }
.car-body { padding: 18px 20px 18px; }
.car-name { font-size: 1.06rem; line-height: 1.3; }
.car-name a:hover { color: var(--b700); }
.car-rental { font-size: 0.82rem; margin-top: 5px; }
.car-rental svg { width: 13px; height: 13px; }

/* specs: one compact line, icon + text */
.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 16px;
  padding: 12px 0;
  border-top: 1px solid #edf0e7;
  border-bottom: 1px solid #edf0e7;
}
.car-specs .spec { flex-direction: row; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); text-align: left; }
.car-specs .spec svg { width: 15px; height: 15px; stroke-width: 1.9; color: var(--b600); }

/* price + button */
.car-price .from { font-size: 0.66rem; letter-spacing: 0.08em; }
.car-price .amount { font-size: 1.5rem; color: var(--ink); }
.car-price .per-day { font-size: 0.78rem; }
.car-foot .btn { border-radius: 8px; padding: 10px 16px; }
.car-foot .btn-dark { background: var(--ink); }
.car-foot .btn-dark:hover { background: var(--b700); }

/* TOP card: thin brand frame instead of a glow */
.car-card-top { border-color: var(--b400); box-shadow: 0 0 0 1px var(--b400), 0 12px 30px rgba(77, 124, 15, 0.14); }

/* =====================================================================
   Ad slots (paid banners): always labelled "Reklama"; empty slot = "your ad here" box linking to /reklama/
   ===================================================================== */
.ad-slot { position: relative; margin: 26px 0 0; }
.ad-label { display: block; margin-bottom: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8a937c; }
.ad-banner { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #e3e8da; background: #fff; box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04); }
.ad-banner img { display: block; width: 100%; height: auto; }   /* banners are delivered in the slot's aspect ratio (see /reklama/) */
.ad-house {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px dashed #c9d3b8;
  background: repeating-linear-gradient(135deg, #fbfcf8 0 12px, #f6f8f1 12px 24px);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.ad-house:hover { border-color: var(--b500); }
.ad-house-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(145deg, #8fbf2a, #4e6e19); }
.ad-house-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ad-house-text b { font-size: 0.98rem; }
.ad-house-text span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.ad-house-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.88rem; color: var(--b700); }
.cars-grid > .ad-row { grid-column: 1 / -1; }
.cars-grid > .ad-row .ad-slot { margin: 0; }
@media (max-width: 640px) {
  .ad-house { flex-wrap: wrap; }
  .ad-house-cta { width: 100%; }
}
