/* ======================================================
   ============  BRB-TRAVEL • PAGINI ȚĂRI  =============
   ====================================================== */

/* -------------------- VARIABILE ---------------------- */
:root {
  --primary: #009999;
  --primary-dark: #007777;
  --text: #222;
  --muted: #6b7280;
  --bg: #fff;
  --bg-soft: #f6f8f9;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition: 0.25s ease;
  --container: 1120px;
  --nav-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --nav-h: 74px;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------- HEADER ----------------------- */
header {
  position: relative;
  z-index: 20;
  background: linear-gradient(135deg, #008585, #00a3a3);
  color: #fff;
}

.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  text-align: center;
}

.logo {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name,
.brand-center h1 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand-center p,
.brand-center p:last-child {
  color: #d8fffb;
  font-size: 1rem;
}

/* -------------------- HERO IMAGE --------------------- */
.hero-image {
  position: relative;
}

.hero-image .hero-img {
  width: 100%;
  object-fit: cover;
}

.hero-image .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  color: #fff;
  text-align: center;
}

.hero-image .overlay h1 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.hero-image .overlay p {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 600;
}

/* ---------------------- NAVBAR ----------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  overflow: visible;
  background: #006d6d;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding: 10px 16px;
}

.navbar > ul > li {
  position: relative;
}

.navbar > ul > li > a,
.navbar > ul > li > .dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background 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);
}

.navbar a.active,
.navbar a[aria-current="page"],
.navbar .dropbtn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* --------------------- DROPDOWN ---------------------- */
.dropdown {
  position: relative;
  overflow: visible;
}

.dropbtn {
  position: relative;
}

.dropbtn::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition:
    transform 0.3s ease,
    margin-top 0.3s ease;
}

.dropdown.active .dropbtn::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10000;
  display: none;
  min-width: 220px;
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow);
}

.dropdown.active > .dropdown-content {
  display: block;
}

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

.dropdown-content a:hover {
  background: var(--bg-soft);
  color: #0b3b3b !important;
}

@media (hover: hover) and (pointer: fine) {
  .dropdown:hover > .dropdown-content {
    display: block;
  }
}

.dropdown:focus-within > .dropdown-content {
  display: block;
}

/* --------------------- CONȚINUT ---------------------- */
main > section {
  max-width: var(--container);
  margin: auto;
  padding: 48px 16px;
}

.country-intro {
  text-align: center;
}

.country-intro h2,
.country-section h2,
.route-map-section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  text-align: center;
}

.country-intro p {
  max-width: 800px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 1.08rem;
}

.country-section {
  padding-top: 24px;
}

.beneficii-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.beneficii-lista li {
  position: relative;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.04);
}

.beneficii-lista li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 13px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009999, #00c3a3);
  color: #fff;
  font-weight: 700;
  transform: translateY(-50%);
}

.orase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.oras-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: var(--shadow);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.oras-card:hover {
  background: linear-gradient(135deg, #00a3a3, #00d4a4);
  color: #fff;
  transform: translateY(-2px);
}

.cta-box {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: center;
}

/* --------------------- BUTOANE CTA ------------------- */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #009999, #00c3a3);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 153, 153, 0.25);
  font-weight: 600;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.call {
  background: linear-gradient(135deg, #00a8a8, #00d4a4);
}

.btn.reserve {
  background: #25d366;
}

.btn.reserve:hover {
  background: #1ebe5d;
}

/* ----------------------- HARTĂ ----------------------- */
.map-section {
  width: 100%;
  height: 360px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.leaflet-container img {
  max-width: none !important;
}

.leaflet-popup-content {
  margin: 10px 12px;
}

.popup-actions .btn {
  display: block;
  min-width: 150px;
  margin-top: 8px;
}

/* ----------------------- POPUP ----------------------- */
.popup-oras {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.hidden {
  display: none !important;
}

.popup-content {
  position: relative;
  width: min(92vw, 520px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.popup-content .close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 1.6rem;
}

/* ---------------------- FOOTER ----------------------- */
footer {
  margin-top: 48px;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #007d7d, #00a8a8);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 20px 92px;
  text-align: center;
}

.footer-content p {
  color: #e9fffd;
}

.footer-content a {
  color: #fff;
  text-decoration: underline dotted;
  transition: color var(--transition);
}

.footer-content a:hover {
  color: #9effe0;
}

/* ---------------- BUTOANE FLOTANTE ------------------ */
/* ---------------- BUTOANE FLOTANTE ------------------ */

.floating-btn {
  position: fixed;
  bottom: 20px;
  z-index: 99999;

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

  width: 58px;
  height: 58px;
  padding: 0;

  border-radius: 50%;
  color: #fff;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.floating-btn.call {
  left: 20px;
  background: linear-gradient(135deg, #009999, #00bfa6);
}

.floating-btn.whatsapp {
  right: 20px;
  background: #25d366;
}

.floating-btn svg,
.floating-btn .icon-svg {
  width: 28px;
  height: 28px;
  color: #fff;
  fill: currentColor;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.floating-btn.call:hover {
  background: linear-gradient(135deg, #00aaaa, #00cfb2);
}

.floating-btn.whatsapp:hover {
  background: #1ebe5d;
}

/* ---------------- COOKIEBOT ------------------------- */
#CookiebotWidget,
.CookiebotWidget,
.CookiebotWidget-logo {
  bottom: 92px !important;
}

/* ------------------- RESPONSIVE ---------------------- */
@media (min-width: 640px) {
  .orase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .map-section {
    height: 420px;
  }
}

@media (min-width: 960px) {
  .orase-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .navbar ul {
    gap: 8px;
    padding-inline: 8px;
  }

  .navbar > ul > li > a,
  .navbar > ul > li > .dropbtn {
    padding: 9px 11px;
    font-size: 0.95rem;
  }

  .dropdown-content {
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: min(60vh, 420px);
    overflow-y: auto;
    transform: translateX(-50%);
  }

  .floating-button {
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .floating-call {
    left: max(14px, env(safe-area-inset-left));
  }

  .floating-whatsapp {
    right: max(14px, env(safe-area-inset-right));
  }

  .floating-button svg,
  .floating-button .icon-svg {
    width: 27px;
    height: 27px;
  }

  #CookiebotWidget,
  .CookiebotWidget,
  .CookiebotWidget-logo {
    bottom: 82px !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .oras-card:hover,
  .btn:hover,
  .floating-button:hover {
    transform: none;
  }
}
