/* ======================================================
   ===============  BRB-TRAVEL • RUTE.CSS  ==============
   ======================================================*/

/* -------------------- VARIABILE ---------------------- */
:root {
  --primary: #009999;
  --primary-dark: #007777;
  --text: #222;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --card: #ffffff;
  --border: #e6e8eb;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition: 0.25s ease;
  --container: 1120px;
  --nav-h: 64px; /* mobil */
}
@media (min-width: 768px) {
  :root {
    --nav-h: 74px;
  }
}

/* ---------------------- RESET ------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----------------- UTILITARE / LAYOUT ---------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
.section {
  padding: 40px 0;
}
.hidden {
  display: none !important;
}
html {
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

/* ================ HEADER (ALBASTRU) ================== */
header {
  background: linear-gradient(135deg, #008585, #00a3a3);
  color: #fff;
  box-shadow: var(--shadow);
}
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
}
.logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-center h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}
.brand-center p {
  font-size: 1rem;
  color: #d8fffb;
}
@media (min-width: 768px) {
  .brand-center h1 {
    font-size: 2rem;
  }
}

/* ================= NAVBAR & DROPDOWN ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10000 !important;
  background: #006d6d;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: visible !important;
  contain: none !important;
}
.navbar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  max-width: var(--container);
  margin: auto;
}
.navbar > ul > li > a,
.navbar > ul > li > .dropbtn {
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition),
    box-shadow var(--transition);
}
.navbar > ul > li > a:hover,
.navbar > ul > li > .dropbtn:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 153, 153, 0.4),
    rgba(0, 255, 180, 0.4)
  );
  box-shadow: inset 0 0 8px rgba(0, 255, 200, 0.3);
}

.dropdown {
  position: relative;
  overflow: visible !important;
}
.dropbtn {
  cursor: pointer;
}

/* — dropdown controlat de JS: .dropdown.active — */
.dropdown-content {
  display: none;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 10001 !important;
  min-width: 220px;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.dropdown.active > .dropdown-content {
  display: block !important;
}

/* fallback: hover/focus (nu deranjează JS) */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover > .dropdown-content {
    display: block;
  }
}
.dropdown:focus-within > .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a !important;
  transition: background var(--transition);
}
.dropdown-content a:hover {
  background: var(--bg-soft);
  color: #008585 !important;
}

/* mobil: centrat + încape în ecran */
@media (max-width: 640px) {
  .dropdown-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content;
    max-width: calc(100vw - 24px) !important;
    max-height: min(60vh, 420px);
    overflow: auto;
    pointer-events: auto;
  }
}

/* ================ HERO IMAGINE & OVERLAY ============= */
.hero-image {
  position: relative;
}
.hero-image .hero-img {
  width: 100%;
  object-fit: cover;
}
.hero-image .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  z-index: 1 !important; /* sub navbar */
}
.hero-image .overlay h1,
.hero-image .overlay h2 {
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .hero-image .overlay h1,
  .hero-image .overlay h2 {
    font-size: 2rem;
  }
}

/* ================== BUTOANE / CTA ==================== */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.6);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(0, 255, 170, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
  }
}
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #009999, #00c3a3);
  box-shadow: 0 6px 20px rgba(0, 153, 153, 0.25);
  transition: all 0.25s ease;
}
.btn:hover {
  background: linear-gradient(135deg, #00c3a3, #00e6a8);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 230, 168, 0.4);
}
.btn.call {
  background: linear-gradient(135deg, #00a8a8, #00d4a4);
}
.btn.reserve {
  background: #25d366;
}
.btn.reserve:hover {
  background: #1ebe5d;
}

/* ================== ZONA RUTE ======================== */
main .rute {
  padding: 32px 16px;
}
main .rute > h2 {
  text-align: center;
  margin-bottom: 18px;
}

.tara {
  max-width: min(var(--container), 100%);
  margin: 18px auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--nav-h) + 12px);
  animation: taraFade 0.24s ease;
}
@keyframes taraFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tara h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.tara h4 {
  font-size: 1.05rem;
  margin: 6px 0 8px;
}

/* ===== TITLURI ȚĂRI ===== */
.romania-header h3,
.austria-header h3,
.germania-header h3,
.belgia-header h3,
.olanda-header h3 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin: 40px auto 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  display: block;
  border-bottom: 3px solid #00a3a3;
  padding-bottom: 6px;
}
@media (min-width: 768px) {
  .romania-header h3,
  .austria-header h3,
  .germania-header h3,
  .belgia-header h3,
  .olanda-header h3 {
    font-size: 2.6rem;
  }
}

/* ===== INTRO PROMO ===== */
.tara-intro,
.austria-intro,
.germania-intro,
.belgia-intro,
.olanda-intro {
  text-align: center;
  background: #fff;
  padding: 24px 18px;
  margin-bottom: 22px;
}
.tara-intro h4,
.austria-intro h4,
.germania-intro h4,
.belgia-intro h4,
.olanda-intro h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #006d6d;
  margin-bottom: 10px;
}
.tara-intro p,
.austria-intro p,
.germania-intro p,
.belgia-intro p,
.olanda-intro p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 8px;
}
@media (min-width: 768px) {
  .tara-intro h4,
  .austria-intro h4,
  .germania-intro h4,
  .belgia-intro h4,
  .olanda-intro h4 {
    font-size: 1.9rem;
  }
  .tara-intro p,
  .austria-intro p,
  .germania-intro p,
  .belgia-intro p,
  .olanda-intro p {
    font-size: 1.25rem;
  }
}

/* ===== BENEFICII ===== */
.beneficii-lista {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.beneficii-lista li {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px 10px 44px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.beneficii-lista li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #009999, #00c3a3);
  box-shadow: 0 3px 10px rgba(0, 153, 153, 0.25);
  transition: transform var(--transition);
}
@media (hover: hover) {
  .beneficii-lista li:hover {
    transform: translateY(-2px);
    border-color: #cfe9e7;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  }
  .beneficii-lista li:hover::before {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 230, 168, 0.35);
  }
}

/* ===== GRILĂ ORAȘE ===== */
.orase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .orase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 960px) {
  .orase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.oras-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #0f172a;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}
.oras-card:hover {
  background: linear-gradient(135deg, #00a3a3, #00d4a4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* ===== BOX CTA INFO ===== */
.tara-cta,
.austria-cta,
.germania-cta,
.belgia-cta,
.olanda-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.tara-cta a,
.austria-cta a,
.germania-cta a,
.belgia-cta a,
.olanda-cta a {
  color: #007a7a;
  text-decoration: underline;
}

/* ===================== HĂRȚI ======================== */
.map-section {
  width: 100%;
  height: 360px;
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .map-section {
    height: 420px;
  }
}

/* ================= POPUP ORAȘ ======================= */
.popup-oras {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 100000;
}
.popup-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  width: min(92vw, 520px);
  padding: 20px;
}
.popup-content h4 {
  font-size: 1.2rem;
  margin: 6px 0 12px;
}
.popup-content .btn {
  margin-top: 8px;
}
.popup-content .close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: #f3f4f6;
  transition: background 0.2s ease, transform 0.2s ease;
}
.popup-content .close:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}

/* ===================== FOOTER ======================== */
footer {
  background: linear-gradient(135deg, #008585, #00a3a3);
  color: #fff;
  margin-top: 32px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.15);
}
.footer-content {
  max-width: var(--container);
  margin: auto;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.footer-content a {
  color: #fff;
  text-decoration: underline dotted;
}
.footer-content a:hover {
  color: #e0fffb;
}
@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}

/* ============== LOGICA DE AFIȘARE A ȚĂRILOR ============== */
/* Implicit afișăm România dacă nu e hash */
.tara {
  display: none;
}
#romania {
  display: block;
}

/* Dacă există hash (#germania etc.), lasă JS-ul să schimbe clasa/scrollul.
   Dacă vrei pur CSS și browserul suportă :target, decomentează mai jos:

:target.tara { display: block; }
body:has(.tara:target) #romania { display: none; }

*/

/* ============== SIGURANȚĂ ANTI-OVERFLOW ============== */
header,
.top-bar,
.navbar,
main,
.rute,
.tara,
.map-section,
footer {
  overflow-x: clip;
}
/* Dropdown anti-tăiere + încape în ecran (siguranță) */
.navbar {
  z-index: 10000 !important;
  overflow: visible !important;
  contain: none !important;
}
.navbar .dropdown {
  position: relative;
  overflow: visible !important;
}
.navbar .dropdown-content {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 10001 !important;
}
@media (max-width: 640px) {
  .navbar .dropdown-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content;
    max-width: calc(100vw - 24px) !important;
    max-height: min(60vh, 420px);
    overflow: auto;
    pointer-events: auto;
  }
}
/* RUTE – dropdown sigur pe mobil + deasupra hero */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10000 !important;
  overflow: visible !important;
  contain: none !important;
}
.navbar .dropdown {
  position: relative;
  overflow: visible !important;
}
.navbar .dropdown-content {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 10001 !important;
  display: none;
  min-width: 220px;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.navbar .dropdown.active > .dropdown-content {
  display: block !important;
}

@media (max-width: 640px) {
  .navbar .dropdown-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content;
    max-width: calc(100vw - 24px) !important;
    max-height: min(60vh, 420px);
    overflow: auto;
    pointer-events: auto;
  }
}

.hero-image {
  position: relative;
}
.hero-image .overlay {
  z-index: 1 !important;
} /* sub navbar */
.cookie-banner.is-hidden {
  display: none !important;
}
/* Nu lăsa resetul global să afecteze imaginile Leaflet */
.leaflet-container img { 
  max-width: none !important;
  height: auto !important;
}

/* Dimensiuni corecte pentru pin + umbră (în caz de override din reset) */
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: 0 !important;
}

/* (opțional) spațiere în popup pentru butoanele tale */
.leaflet-popup-content { margin: 10px 12px; }
.leaflet-popup-content .btn { display: block; margin-top: 8px; min-width: 150px; }
.popup-actions .btn {
  display:inline-block; padding:6px 10px; margin-top:6px;
  text-decoration:none; border-radius:10px; border:1px solid #e6e8eb;
  font-size:13px; line-height:1; transition:.2s; user-select:none;
}
.popup-actions .btn.call { margin-right:6px; }
.popup-actions .btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
