/* =================================================
   1. THEME VARIABLES
================================================= */
:root {
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --black: #0a0a0a;
  --gray: #151515;
  --soft: #1b1b1b;

  --card: #111;
  --text: #eaeaea;
  --muted: #9a9a9a;
}

/* =================================================
   2. RESET & BASE
================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--black);
  color: var(--gold);
  font-family: system-ui, sans-serif;
}

a {
  color: var(--gold);
  text-decoration: none;
}

/* =================================================
   3. HEADER / BRAND
================================================= */
.header {
  padding: 48px 24px 32px;
  background:
    radial-gradient(1200px 200px at 10% -20%, rgba(212,175,55,.15), transparent 60%),
    radial-gradient(1200px 200px at 90% -20%, rgba(212,175,55,.15), transparent 60%),
    linear-gradient(135deg, var(--soft), var(--gray));
  border-bottom: 1px solid rgba(212,175,55,.2);
}

.header .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =================================================
   4. SECTION TITLES
================================================= */
.section-title {
  text-align: center;
  font-size: 34px;
  margin: 48px 0 24px;
  letter-spacing: 1px;
}

/* =================================================
   5. EQUIPMENT LIST
================================================= */
.equipment-center {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 12px 16px;
  justify-content: center;
}

@media (max-width: 640px) {
  .equipment-center {
    grid-template-columns: repeat(2, auto);
  }
}

.equipment-center .spec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* =================================================
   6. BOOKING PAGE
================================================= */
.booking-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: 32px;
  margin-bottom: 32px;
  text-align: center;
}

.booking-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #111, #0c0c0c);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.booking-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(212,175,55,0.25);
  color: #fff;
  font-size: 14px;
}

/* =================================================
   7. FORM VALIDATION
================================================= */
.error-msg {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #e74c3c;
  min-height: 14px;
}

.form-group.error input {
  border-color: #e74c3c;
}

/* =================================================
   8. ÁSZF (MODAL + CHECKBOX)
================================================= */
.aszfModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.aszf-content {
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  background: linear-gradient(180deg, #111, #0c0c0c);
  border-radius: 16px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aszf-text {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  background: #0e0e0e;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 10px;
}

.aszf-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 14px;
  margin: 10px auto 6px;

  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 999px;

  font-size: 13px;
}

.aszf-row input {
  pointer-events: none;
}

.aszf-trigger {
  cursor: pointer;
  color: var(--gold);
  text-decoration: underline;
}

/* =================================================
   9. BUTTONS
================================================= */
.btn {
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

.btn.full {
  width: 100%;
  margin-top: 10px;
}

.btn.back {
  margin-top: 26px;
  text-align: center;
}

/* =================================================
   10. VEHICLE PAGE
================================================= */
#vehicleName {
  margin-top: 12px;
}

.hero-card {
  margin-top: 12px;
}

/* =================================================
   11. FLEET / VEHICLE CARDS
================================================= */
.vehicle-showcase {
  position: relative;
  background: linear-gradient(180deg, #111, #0c0c0c);
  border-radius: 18px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(212,175,55,0.12);

  transition: transform .35s ease, box-shadow .35s ease;
}

.vehicle-showcase:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(212,175,55,0.35);
}

.vehicle-image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: transform .4s ease;
}

.vehicle-showcase:hover .vehicle-image img {
  transform: scale(1.06);
}

.vehicle-info {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicle-price {
  background: linear-gradient(135deg, #1f1f1f, #2b2b2b);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.vehicle-price strong {
  font-size: 18px;
  color: #fff;
}

/* =================================================
   12. BADGES
================================================= */
.badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
  animation: fadeSlide .4s ease forwards;
}

.badge.free {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.badge.busy {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge.next-free {
  background: #111;
  color: #2ecc71;
  border: 1px solid rgba(46,204,113,.6);
  font-weight: normal;
}

/* =================================================
   13. ANIMATIONS
================================================= */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =================================================
   14. MOBILE & TOUCH OPTIMIZATION
================================================= */

/* ====== ÁLTALÁNOS MOBIL FINOMÍTÁS ====== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  .section-title {
    font-size: 26px;
    margin: 32px 0 18px;
  }

  /* konténer kisebb margó */
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ====== FLOTTA RÁCS – MOBIL ====== */
@media (max-width: 768px) {

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vehicle-showcase {
    padding: 16px;
    border-radius: 16px;
  }

  /* hover helyett tap-érzés */
  .vehicle-showcase:active {
    transform: scale(0.985);
  }
}

/* ====== KÉPEK – MOBILON ====== */
@media (max-width: 768px) {

  .vehicle-image img {
    max-height: 160px;
  }

  .hero-card img {
    max-width: 100%;
    height: auto;
  }
}

/* ====== BADGE MOBILON ====== */
@media (max-width: 768px) {

  .badge-wrap {
    top: 10px;
    left: 10px;
    gap: 4px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ====== GOMBOK – TOUCH BARÁT ====== */
@media (max-width: 768px) {

  .btn {
    padding: 14px 24px;
    font-size: 15px;
    min-height: 48px; /* ujjbarát */
  }

  .btn.full {
    font-size: 16px;
  }
}

/* ====== FELSZERELTSÉG – MOBILON ====== */
@media (max-width: 640px) {

  .equipment-center {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .equipment-center .spec {
    font-size: 13px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
  }
}

/* ====== BOOKING FORM – MOBIL ====== */
@media (max-width: 640px) {

  .booking-page {
    padding: 32px 14px;
  }

  .booking-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .booking-card input {
    font-size: 15px;
    padding: 14px;
  }
}

/* ====== ASZF MODAL – MOBIL ====== */
@media (max-width: 640px) {

  .aszf-content {
    max-width: 92%;
    max-height: 80vh;
    padding: 18px;
  }

  .aszf-text {
    font-size: 13px;
  }

  .aszf-row {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ====== TOUCH HOVER FIX ======
   Hover csak ott, ahol van egér
================================ */
@media (hover: hover) and (pointer: fine) {

  .vehicle-showcase:hover {
    transform: translateY(-6px);
  }

  .vehicle-showcase:hover .vehicle-image img {
    transform: scale(1.06);
  }
}

/* Touch eszközökön hover kikapcs */
@media (hover: none) {

  .vehicle-showcase:hover {
    transform: none;
    box-shadow:
      0 10px 30px rgba(0,0,0,0.45),
      inset 0 0 0 1px rgba(212, 175, 55, 0.12);
  }
}
/* =========================
   HERO – LOGÓ + SZÖVEG
========================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* LOGÓ MÉRET */
.hero-card img {
  width: 400px;   /* kisebb logó */
  height: auto;
}

/* SZÖVEG A LOGÓ ALATT */
.hero-intro h2 {
  font-size: 22px;      /* kicsit nagyobb */
  font-weight: 500;
  text-align: center;
  color: rgba(212,175,55,0.9);
  margin: 0;
}
/* =========================
   FLOTTA GRID – DESKTOP
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 egy sorban */
  gap: 20px;
}
/* =========================
   FLOTTA GOMBOK – RÖVIDEBB
========================= */

.vehicle-showcase .btn {
  padding: 10px 22px;
  font-size: 14px;
  width: auto;          /* ne nyúljon túl */
  align-self: center;   /* középre */
}
/* =========================
   FLOTTA GRID – MOBIL
========================= */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
