/* =========================================================
   🌿 EÁTK – FŐ STÍLUSOK (végleges, egységesített verzió)
   ========================================================= */

/* ---------------------------------------------------------
   1️⃣ ALAP STÍLUSOK
   --------------------------------------------------------- */
   
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap&subset=latin-ext');

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #ddf0ee;
  background: url('../img/hatter.png') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.2rem;
  gap: 1rem;
    padding-top: 3rem; /* vagy 6-7rem, hogy a navbar alá férjen */

}

/* Globális box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* =========================================================
   🌿 2️⃣ NAVIGÁCIÓ (NAVBAR) – VÉGLEGES, EGYSÉGES
   ========================================================= */

/* --- Alap navbar --- */
.navbar-card {
  background-color: rgba(47,64,53,0.85);
  border: 1px solid rgba(81,189,155,0.3);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .35s ease, opacity .35s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
  width: min(75vw, 1400px);
  max-width: 1800px;
  padding: 1rem 1.5rem;
}

@media (max-width: 1200px) {

  .navbar-card {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem clamp(1.5rem, 3vw, 4rem);
    background: rgba(47,64,53,.97);
    border-bottom: 1px solid rgba(81,189,155,.25);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    transform: none;
  }
}

.navbar-visible { transform: translate(-50%, 0); opacity: 1; }
.navbar-hidden  { transform: translate(-50%, -150%); opacity: 0; pointer-events: none; }

.navbar-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo { height: 30px; width: auto; }

/* --- Linkek --- */
.navbar-content nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-content nav a {
  text-decoration: none;
  color: #ddf0ee;
  font-weight: 500;
  transition: color .3s, transform .2s;
}
.navbar-content nav a:hover {
  color: #51bd9b;
  transform: translateY(-1px);
}

/* --- Dropdown menük (desktop) --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 98%; /* közvetlenül a szülő alatt */
  left: 0;
  background: rgba(47,64,53,.95);
  border: 1px solid rgba(81,189,155,.3);
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0,0,0,.35);
  z-index: 9999;
  min-width: 220px;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  margin-top: 8px;
}

/* --- Hover zóna fix --- */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* --- Almenü (hover) --- */
.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: .7rem 1rem;
  color: #ddf0ee;
  text-decoration: none;
  transition: background .3s, color .3s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(81,189,155,.15);
  color: #51bd9b;
  border-radius: 10px;
}

/* --- Submenu --- */
.dropdown-submenu {
  position: relative;
}

.submenu-title::after {
  content: "▸";
  float: right;
  opacity: .6;
  margin-left: 5px;
}

.submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(47,64,53,.95);
  border: 1px solid rgba(81,189,155,.3);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

/* --- Hoverre nyílás desktopon --- */
.dropdown-submenu:hover > .submenu-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* --- Hover zóna fix submenu --- */
.submenu-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 12px;
  height: 100%;
  background: transparent;
}

/* =========================================================
   📱 MOBIL NÉZET – TELJES KÉPERNYŐS HAMBURGER MENÜ
   ========================================================= */
@media (max-width: 1200px) {

  .navbar-card {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: .8rem 1.2rem;
    background: rgba(47,64,53,.97);
    border-bottom: 1px solid rgba(81,189,155,.25);
    transform: none;
  }

  .navbar-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  #hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1200;
  }

  #hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ddf0ee;
    border-radius: 2px;
    transition: all .3s;
  }

  #hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
  #hamburger.active span:nth-child(2) { opacity: 0; }
  #hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

  #hamburger:hover span { background: #51bd9b; }

  #nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;       /* fix: 100vw → 100% */
  height: 100vh;
  background: rgba(47,64,53,.97);
  backdrop-filter: blur(6px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 1100;
}

  #nav-menu.active {
    display: flex;
    animation: fadeMenu .3s ease forwards;
  }

  @keyframes fadeMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #nav-menu a {
    display: block;
    width: 100%;
    padding: .9rem 0;
    color: #ddf0ee;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(81,189,155,.2);
    text-decoration: none;
  }
    /* --- Mobil: hosszú menüpontok sortörése --- */
  #nav-menu a,
  #nav-menu .dropdown > a,
  #nav-menu .dropdown-menu a,
  #nav-menu .dropdown-submenu > a,
  #nav-menu .submenu-content a {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.25;
  }


  #nav-menu a:hover {
    color: #51bd9b;
    background: rgba(81,189,155,.1);
  }

  #nav-menu a:last-child { border-bottom: none; }

  /* --- Mobil dropdown --- */
  .dropdown { width: 100%; position: relative; }
  .dropdown > a::after {
    content: "▼";
    float: right;
    font-size: .8rem;
    opacity: .7;
    transition: transform .2s;
  }
  .dropdown.open > a::after { transform: rotate(180deg); }

  .dropdown-menu {
    display: none;
    flex-direction: column;
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
    border-left: 2px solid rgba(81,189,155,.25);
    margin-top: .3rem;
  }

  .dropdown.open > .dropdown-menu {
    display: flex;
  }

  /* --- Almenük mobilon --- */
  .submenu-content {
    display: none;
    flex-direction: column;
    position: static;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(81,189,155,.25);
    margin-top: .3rem;
  }

  .dropdown-submenu.open > .submenu-content {
    display: flex;
  }

  /* --- Hover teljes tiltás mobilon --- */
  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .submenu-content {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
/* --- MOBIL: az .open állapot mindig felülírja a hover-tiltást --- */
@media (max-width: 1200px) {
  /* fő dropdown */
  .dropdown.open > .dropdown-menu,
  .dropdown.open:hover > .dropdown-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* almenü */
  .dropdown-submenu.open > .submenu-content,
  .dropdown-submenu.open:hover > .submenu-content {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* =========================================================
   3️⃣ FŐ TARTALMI KÁRTYA - fő card
   ========================================================= */
.card {
  background-color: rgba(81, 189, 155, 0.90);
  border: 1px solid rgba(221, 240, 238, 0.25);
  border-radius: 25px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  width: min(70vw, 1400px);
  max-width: 1800px;
  margin-inline: auto;
  padding: 2rem clamp(1.5rem, 3vw, 4rem);
  display: block;
  min-height: auto;
  flex: 1;
}

@media (max-width: 1200px) {
  .card {
    width: 92vw;
    padding: 1.5rem;
  }
}
  

.card h1 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.card p {
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  width: 100%;
  text-align: justify;
}

.footer {
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(47, 64, 53, 0.95) 0%, rgba(47, 64, 53, 0.85) 100%);
  border-top: 1px solid rgba(81, 189, 155, 0.25);
  color: #ddf0ee;
  margin-top: 1rem;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
}

/* --- Belső tartalom --- */
.footer-inner {
  width: 90%;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0 auto;
}

/* --- Bal oldal --- */
.footer-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-logo {
  width: 60px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-left h3 {
  font-weight: 700;
  font-size: 1.2rem;
  color: #51bd9b;
  margin: 0 0 0.5rem 0;
}

.footer-left p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.footer-left a {
  color: #ddf0ee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover {
  color: #51bd9b;
}

/* --- Jobb oldal --- */
.footer-right {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-right a {
  color: #51bd9b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* =========================================================
   📱 Reszponzív viselkedés – mobil és tablet
   ========================================================= */

@media (max-width: 1024px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    width: 60px;
  }

  .footer-right {
    text-align: center;
  }
}



/* 6 VP BÜ kezdőlap  */
/* =========================================================
   🗺️  TÉRKÉP (LEAFLET)
   ========================================================= */
#map {
  width: 100%;
  max-width: 1300px;
  height: 60vh;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(81, 189, 155, 0.25);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Reszponzív méretek */
@media (max-width: 1200px) {
  #map {
    width: 90%;
    height: 55vh;
  }
}

@media (max-width: 900px) {
  #map {
    width: 92%;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  #map {
    width: 95%;
    height: 45vh;
  }
}

@media (max-width: 480px) {
  #map {
    width: 96%;
    height: 40vh;
    border-radius: 14px;
  }
}

/* Ha a térkép egy card-ban van, mindig illeszkedjen */
.card #map {
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1rem auto;
}

/* =========================================================
   📍  POPUP-ABLAKOK
   ========================================================= */
.leaflet-popup-content-wrapper {
  background: rgba(47, 64, 53, 0.95);
  background-color:#18a377 ;
  color: #18a377;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  font-family: 'Quicksand', sans-serif;
  border: 1px solid rgba(81, 189, 155, 0.3);
}

.leaflet-popup-content {
  margin: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.leaflet-popup-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #51bd9b;
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.leaflet-popup-content ul {
  list-style-type: none;
  margin: 0;
  padding-left: 0.6rem;
}

.leaflet-popup-content li {
  margin-bottom: 0.4rem;
}

.leaflet-popup-content a {
  color: #51bd9b;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.leaflet-popup-content a:hover {
  color: #6fdcb6;
  text-decoration: underline;
}

/* Popup-csúcs (nyíl) átszínezése */
.leaflet-popup-tip {
  background: rgba(47, 64, 53, 0.95);
}

/* =========================================================
   🌿  MARKER-CLUSTER STÍLUS
   ========================================================= */
.marker-cluster-small {
  background-color: rgba(81, 189, 155, 0.5);
}
.marker-cluster-small div {
  background-color: #51bd9b;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.marker-cluster-medium {
  background-color: rgba(81, 189, 155, 0.55);
}
.marker-cluster-medium div {
  background-color: #41a358;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.marker-cluster-large {
  background-color: rgba(81, 189, 155, 0.6);
}
.marker-cluster-large div {
  background-color: #2f4035;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hover effekt a cluster körökön */
.marker-cluster div:hover {
  transform: scale(1.1);
  background-color: #6fdcb6;
  transition: all 0.2s ease-in-out;
}



/* 7  VP BÜ többhelyszínes  */

.tobbhelyszines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Kártyák */
.tobbhelyszines-card {
  background: rgba(47, 64, 53, 0.9);
  border: 1px solid rgba(81, 189, 155, 0.25);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tobbhelyszines-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.tobbhelyszines-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* mindig arányos */
  object-fit: cover;
}

.tobbhelyszines-card h3 {
  color: #51bd9b;
  margin: 1rem;
  font-size: 1.05rem;
}

.tobbhelyszines-card p {
  color: #ddf0ee;
  margin: 0 1.2rem 1rem 1.2rem; /* egyenletes belső margó */
  font-size: 0.95rem;
  line-height: 1.5;
  overflow: hidden; /* vágás helyett finom zárás */
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  position: relative;
  padding-right: 2rem;   /* ne vágja le a jobb szélét */
  box-sizing: border-box;
  word-break: break-word;  /* ha nagyon hosszú szó, ne lógjon ki */
}

.tobbhelyszines-card small {
  color: #a0b5ac;
  margin-left: 1rem;
}

/* ===========================
   MODAL – TELJES CIKK MEGJELENÍTÉS
   =========================== */
.tobbhelyszines-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.tobbhelyszines-modal.active {
  display: flex;
}

.tobbhelyszines-modal-content {
  background: rgba(47, 64, 53, 0.95);
  border-radius: 1rem;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  color: #ddf0ee;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  position: relative;
}

.tobbhelyszines-modal-content h2,
.tobbhelyszines-modal-content h3,
.tobbhelyszines-modal-content h5 {
  color: #51bd9b;
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #ddf0ee;
  cursor: pointer;
}

/* Modalon belüli cikk formázás */
.tobbhelyszines-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.tobbhelyszines-modal-content p {
  color: #ddf0ee;
  line-height: 1.6;
  text-align: justify;
}

.tobbhelyszines-modal-content a {
  color: #51bd9b;
  text-decoration: underline;
}

.tobbhelyszines-modal-content a:hover {
  color: #6fdcb6;
}

/* Szövegtörzs a modalban */
.tobbhelyszines-modal .article-body {
  text-align: justify;
  overflow-x: hidden;
}

/* ===========================
   RESZPONZÍV JAVÍTÁSOK
   =========================== */
@media (max-width: 900px) {
  .tobbhelyszines-grid {
    width: 95%;
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .tobbhelyszines-card {
    border-radius: 0.8rem;
  }

  .tobbhelyszines-card img {
    aspect-ratio: 4/3;
  }

  .tobbhelyszines-card h3 {
    font-size: 1rem;
  }

  .tobbhelyszines-card p {
    font-size: 0.9rem;
  }

  .tobbhelyszines-modal-content {
    width: 92%;
    padding: 1rem;
    max-height: 85vh;
  }

  .tobbhelyszines-modal-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 480px) {
  .tobbhelyszines-grid {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .tobbhelyszines-card {
    border-radius: 0.8rem;
  }

  .tobbhelyszines-card img {
    aspect-ratio: 4/3;
  }

  .tobbhelyszines-modal-content {
    width: 95%;
    padding: 0.8rem;
  }

  .tobbhelyszines-modal-content img {
    border-radius: 0.4rem;
  }
}



/* ===============================
   8 VP BÜ ALPAGE – KÉTOSZLOPOS CARD
   =============================== */

.vpbu-page {
  width: min(70vw, 1400px);
  max-width: 1800px;
  margin-inline: auto;
  padding: 2rem clamp(1.5rem, 3vw, 4rem);
  margin: 2rem auto;
  background: rgba(47, 64, 53, 0.85);
  border: 1px solid rgba(81, 189, 155, 0.25);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  color: #ddf0ee;
}

/* ======== Mobil és tablet javítás ======== */
@media (max-width: 900px) {
  .vpbu-page {
    width: 92vw;       /* Ugyanaz, mint a fő cardnál */
    padding: 1.5rem;
  }

  .vpbu-content-wrapper {
    flex-direction: column;  /* 2 oszlop helyett egymás alatt */
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .vpbu-page {
    width: 95vw;
    padding: 1.2rem;
  }
}

@media (max-width: 450px) {
  .vpbu-page {
    width: 96vw;
    padding: 1rem;
  }
}
.vpbu-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #51bd9b;
  text-align: center;
}


/* === RUGALMAS KÉTOSZLOP === */

.vpbu-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* BAL OLDAL SZÖVEG */

.vpbu-text {
  flex: 1.5;
}

.vpbu-text h2, 
.vpbu-text h3 {
  color: #51bd9b;
  margin-top: 1.5rem;
}

/* OKTATÓ KÁRTYÁK */

.instructor {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.instructor img {
  width: 90px;
  height: 120px;
  border-radius: 20%;
  object-fit:cover;
  border: 1px solid #51bd9b;
}

/* JOBB OLDAL – KÉP + DÁTUMOK */

.vpbu-side {
  flex: 1.5;
}

.vpbu-side-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.vpbu-dates li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.signup-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1b8d7a;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 400;
  transition: background-color 0.2s ease;
  margin-left: 12px;
}

.signup-btn:hover {
  background-color: #247460;
}


/* RESPONSIVE – TABLET/MOBIL */

@media (max-width: 1000px) {
  .vpbu-content-wrapper {
    flex-direction: column;
  }

  .vpbu-side {
    width: 100%;
  }

  .instructor img {
    width: 60px;
    height: 60px;
  }
}
