/* ============================================================
   RIVEX.SK – Hlavný stylesheet
   Poppins font, Navy Blue #1B2E4B + Orange #FF6B35
   Mobile-first, CSS Custom Properties
   ============================================================ */

/* --- Google Fonts (import cez HTML link tag, nie @import) --- */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Farby */
  --navy:          #1B2E4B;
  --navy-light:    #243B5E;
  --navy-dark:     #0F1E32;
  --orange:        #FF6B35;
  --orange-hover:  #E55A25;
  --white:         #FFFFFF;
  --gray-50:       #F8F9FA;
  --gray-100:      #F1F3F4;
  --gray-200:      #E9ECEF;
  --gray-400:      #CED4DA;
  --gray-600:      #6C757D;
  --gray-700:      #495057;
  --gray-800:      #343A40;
  --text:          #2C3E50;
  --text-muted:    #64748B;
  --success:       #28A745;
  --warning:       #FFC107;
  --danger:        #DC3545;

  /* Typografia */
  --font:          'Poppins', 'Segoe UI', system-ui, sans-serif;

  /* Priestor */
  --sp-xs:   0.25rem;
  --sp-sm:   0.5rem;
  --sp-md:   1rem;
  --sp-lg:   1.5rem;
  --sp-xl:   2rem;
  --sp-2xl:  3rem;
  --sp-3xl:  5rem;

  /* Tiene */
  --shadow-sm: 0 2px 8px rgba(27,46,75,0.08);
  --shadow-md: 0 8px 24px rgba(27,46,75,0.12);
  --shadow-lg: 0 16px 48px rgba(27,46,75,0.18);

  /* Polomery */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  /* Animácie */
  --t-fast:   150ms ease;
  --t-normal: 300ms ease;
  --t-slow:   500ms ease;

  /* Layout */
  --max-w:        1200px;
  --container-px: clamp(1rem, 4vw, 2rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--orange-hover); }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--sp-3xl);
}

.section--light  { background: var(--gray-50); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--orange { background: var(--orange); color: var(--white); }

.text-center  { text-align: center; }
.text-orange  { color: var(--orange); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: var(--white); }

.fw-bold   { font-weight: 700; }
.fw-semi   { font-weight: 600; }

.mt-md  { margin-top: var(--sp-md); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mb-xl  { margin-bottom: var(--sp-xl); }

.d-flex         { display: flex; }
.align-center   { align-items: center; }
.justify-center { justify-content: center; }
.gap-md         { gap: var(--sp-md); }
.gap-lg         { gap: var(--sp-lg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--sp-md);
}

.section--navy  .section-title,
.section--orange .section-title { color: var(--white); }

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 580px;
}

.section--navy   .section-subtitle,
.section--orange .section-subtitle { color: rgba(255,255,255,0.8); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-normal);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,107,53,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  transition: background var(--t-normal);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-lg);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
}

.navbar__logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
}

.navbar__logo-text span {
  color: var(--orange);
}

.navbar__logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: none;
}

@media (min-width: 480px) {
  .navbar__logo-tagline { display: block; }
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--sp-lg);
}

@media (min-width: 1024px) {
  .navbar__nav { display: flex; }
}

.navbar__link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t-fast);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.navbar__cta {
  display: none;
}
@media (min-width: 768px) {
  .navbar__cta { display: inline-flex; }
}

/* Mobile hamburger */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.navbar__toggle:hover { background: rgba(255,255,255,0.1); }
.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-normal);
}

@media (min-width: 1024px) {
  .navbar__toggle { display: none; }
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: var(--sp-md);
  gap: var(--sp-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.navbar__mobile.open { display: flex; }

.navbar__mobile .navbar__link {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-sm);
  border-bottom: none;
}
.navbar__mobile .navbar__link:hover {
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-3xl);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(255,107,53,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(36,59,94,0.5) 0%, transparent 50%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
  }
}

.hero__content { color: var(--white); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--orange);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-xl);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--sp-lg);
}

.hero__title .highlight {
  color: var(--orange);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 500px;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.hero__trust-item svg {
  color: var(--orange);
  flex-shrink: 0;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__svg-wrapper {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: floatY 4s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  padding-block: var(--sp-xl);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  text-align: center;
}

.stats-bar__item {}

.stats-bar__number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}

.stats-bar__number span { color: var(--orange); }

.stats-bar__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   WHY RIVEX / USP SEKCIA
   ============================================================ */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-top: var(--sp-2xl);
}

@media (min-width: 640px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
}

.usp-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t-normal);
  text-align: center;
}

.usp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,53,0.2);
}

.usp-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,107,53,0.05));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
  color: var(--orange);
  transition: background var(--t-normal);
}

.usp-card:hover .usp-card__icon {
  background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,107,53,0.1));
}

.usp-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-sm);
}

.usp-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FLEET SEKCIA (preview aj plná stránka)
   ============================================================ */
.fleet-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
}

@media (min-width: 640px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fleet-grid { grid-template-columns: repeat(3, 1fr); }
}

.vehicle-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
}

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

.vehicle-card__visual {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  padding: var(--sp-xl);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vehicle-card__visual::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255,107,53,0.05), transparent);
}

.vehicle-card__svg {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 8px 16px rgba(27,46,75,0.15));
  transition: transform var(--t-normal);
}

.vehicle-card:hover .vehicle-card__svg {
  transform: scale(1.03);
}

.vehicle-card__badge {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vehicle-card__body {
  padding: var(--sp-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-xs);
}

.vehicle-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-md);
  line-height: 1.3;
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
  padding: var(--sp-md);
  background: var(--gray-50);
  border-radius: var(--r-md);
}

.vehicle-card__spec {}

.vehicle-card__spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.vehicle-card__spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.vehicle-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-md);
  border-top: 1px solid var(--gray-100);
}

.vehicle-card__price {}

.vehicle-card__price-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.vehicle-card__price-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vehicle-card__price-vat {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   FLEET FILTER (fleet.php)
   ============================================================ */
.fleet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
}

.fleet-filter__btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-xl);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.fleet-filter__btn:hover,
.fleet-filter__btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.fleet-filter__btn.active {
  background: var(--orange);
  border-color: var(--orange);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  margin-top: var(--sp-2xl);
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: linear-gradient(to right, var(--orange), rgba(255,107,53,0.3));
  }
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card__number {
  width: 72px;
  height: 72px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto var(--sp-lg);
  box-shadow: 0 8px 24px rgba(255,107,53,0.35);
  position: relative;
  z-index: 1;
}

.step-card__icon {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.step-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.step-card__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* ============================================================
   CTA SEKCIA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  padding-block: var(--sp-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.cta-section__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-xl);
  max-width: 500px;
  margin-inline: auto;
}

.cta-section .btn-secondary {
  border-color: rgba(255,255,255,0.7);
}

/* ============================================================
   RESERVATION FORM (reserve.php)
   ============================================================ */
.reserve-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .reserve-layout {
    grid-template-columns: 1fr 380px;
  }
}

.form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.form-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 2px solid var(--gray-100);
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-sm);
}

.form-label .required {
  color: var(--orange);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--t-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,46,75,0.1);
}

.form-control:invalid:not(:placeholder-shown),
.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}

.form-control.success {
  border-color: var(--success);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: var(--sp-xs);
  display: none;
}
.form-error.visible { display: block; }

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Dostupnosť badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--sp-md);
}

.availability-badge--available {
  background: rgba(40,167,69,0.1);
  color: var(--success);
  border: 1px solid rgba(40,167,69,0.2);
}

.availability-badge--unavailable {
  background: rgba(220,53,69,0.1);
  color: var(--danger);
  border: 1px solid rgba(220,53,69,0.2);
}

.availability-badge--loading {
  background: var(--gray-100);
  color: var(--text-muted);
}

/* Summary box */
.summary-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  position: sticky;
  top: calc(72px + var(--sp-md));
}

.summary-box__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.summary-box__vehicle-img {
  margin-bottom: var(--sp-md);
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-sm);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.875rem;
}

.summary-row:last-of-type { border-bottom: none; }

.summary-row__label { color: rgba(255,255,255,0.65); }
.summary-row__value { font-weight: 600; }

.summary-total {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 2px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.summary-total__label { font-size: 0.875rem; color: rgba(255,255,255,0.8); }

.summary-total__amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--orange);
}

.summary-total__vat {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-align: right;
}

/* Confirmation */
.confirmation-box {
  text-align: center;
  padding: var(--sp-3xl) var(--sp-xl);
}

.confirmation-box__icon {
  width: 80px;
  height: 80px;
  background: rgba(40,167,69,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-lg);
  color: var(--success);
}

.confirmation-box__number {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--r-xl);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-lg);
}

/* ============================================================
   VEHICLE SELECT
   ============================================================ */
.vehicle-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

@media (min-width: 640px) {
  .vehicle-select-grid { grid-template-columns: repeat(2, 1fr); }
}

.vehicle-select-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  cursor: pointer;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.vehicle-select-option:hover {
  border-color: var(--navy);
}

.vehicle-select-option.selected {
  border-color: var(--orange);
  background: rgba(255,107,53,0.04);
}

.vehicle-select-option input[type="radio"] {
  display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-block: var(--sp-3xl) var(--sp-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand {}

.footer__logo {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-sm);
}

.footer__logo span { color: var(--orange); }

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-lg);
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__link {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer__link:hover {
  color: var(--orange);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-sm);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer__legal {
  display: flex;
  gap: var(--sp-lg);
}

.footer__legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   PAGE HEADER (pre fleet.php, reserve.php)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding-block: var(--sp-2xl);
  color: var(--white);
  text-align: center;
}

.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.page-header__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  font-size: 0.85rem;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a svg { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: rgba(255,255,255,0.3); }
.breadcrumb__current { color: var(--orange); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.alert-success {
  background: rgba(40,167,69,0.08);
  color: #155724;
  border-color: rgba(40,167,69,0.2);
}

.alert-danger {
  background: rgba(220,53,69,0.08);
  color: #721c24;
  border-color: rgba(220,53,69,0.2);
}

.alert-info {
  background: rgba(27,46,75,0.06);
  color: var(--navy);
  border-color: rgba(27,46,75,0.15);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--navy {
  border-color: rgba(27,46,75,0.2);
  border-top-color: var(--navy);
}

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

/* ============================================================
   ANIMÁCIE (Intersection Observer)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 100ms; }
.fade-in--delay-2 { transition-delay: 200ms; }
.fade-in--delay-3 { transition-delay: 300ms; }
.fade-in--delay-4 { transition-delay: 400ms; }

/* ============================================================
   MOBILE FIRST RESPONSIVE
   ============================================================ */
@media (max-width: 639px) {
  .section { padding-block: var(--sp-2xl); }

  .hero {
    min-height: auto;
    padding-block: var(--sp-2xl);
  }

  .hero__visual {
    order: -1;
  }

  .hero__svg-wrapper {
    max-width: 320px;
  }

  .stats-bar__grid {
    gap: var(--sp-sm);
  }

  .stats-bar__number {
    font-size: 1.5rem;
  }

  .vehicle-card__specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-filter {
    justify-content: center;
  }
}

/* ============================================================
   SELECT STYLE
   ============================================================ */
select.form-control {
  background-image: 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='%236C757D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ============================================================
   TEXTAREA
   ============================================================ */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-2xl);
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination__btn.active {
  background: var(--orange);
  border-color: var(--orange);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-normal);
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
}
