:root {
  --brand: #5c4d91; /* kékes-lilás */
  --accent: #7b61b8;
  --muted: #f5f5fb;
}
* { box-sizing: border-box; }

body {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  margin: 0;
  color: #222;
  background: var(--muted);
}

/* ==========================================
   FEJLÉC / NAVBAR (TISZTA, MOBILBARÁT)
   ========================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--brand), #6e58a9);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0; /* fontos, hogy ne lógjon ki */
}

.topbar .brand img {
  height: 44px;
  width: auto;
  max-width: 100%;
  display: block;
}

.topbar .brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar .lang-switch img {
  width: 28px;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* navigáció */
.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1100; /* legyen a hamburger panel fölött */
}

.navlinks a {
  color: #fff;
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.3s;
  white-space: nowrap;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* hamburger gomb (alapból rejtve desktopon) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.menu-toggle span {
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.25s;
}

/* X animáció */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- mobilnézet --- */
@media (max-width: 768px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .topbar .brand {
    flex: 1 1 auto;
  }

  .topbar .lang-switch {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .menu-toggle {
    display: flex;
    order: 2;
    margin-left: 10px;
  }

  .navlinks {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 16px;
    top: 60px;
    background: linear-gradient(180deg, var(--brand), #6e58a9);
    border-radius: 8px;
    padding: 10px 15px;
    gap: 10px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.3);
    min-width: 160px;
  }

  .navlinks.show {
    display: flex;
  }

  .navlinks a {
    display: block;
  }
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero {
  position: relative;
  overflow: hidden;
  height: 520px;
  background: #000;
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero .slide.active { opacity: 1; }
.hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}
.hero .overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero h1 {
  font-size: 44px;
  background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  text-align: left;
  padding-left: 12px;
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */
.container { max-width: 1100px; margin: 0 auto; padding: 30px 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(30,30,60,0.06);
}

/* ==========================================
   GALLERY COLUMN
   ========================================== */
.gallery-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 6px;
}
.gallery-scroll img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

/* ==========================================
   SERVICES
   ========================================== */
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.service-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.service-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-item .txt {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  color: #fff;
}

/* ==========================================
   GALLERY ROW (PROGRAMOK/OFFER)
   ========================================== */
.gallery-row {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}
.gallery-row .items { display: flex; gap: 10px; transition: transform .3s; }
.gallery-row .item { flex: 0 0 50%; border-radius: 8px; overflow: hidden; }
.gallery-row img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ==========================================
   CALENDAR + BOOKING
   ========================================== */
.calendar { display: flex; gap: 12px; flex-wrap: wrap; }
.month { background: #7b61b859; padding: 10px; border-radius: 8px; min-width: 260px; }
.month h5 { text-align: center; margin: 0 0 8px 0; }
.days { display: flex; flex-wrap: wrap; gap: 4px; }
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.day {
  padding: 8px;
  text-align: center;
  background: #e0f0ff;
  border-radius: 4px;
  cursor: pointer;
}

.day.booked { background: #ff6961; color: #fff; cursor: not-allowed; }
.day.booked-half { background: rgba(255,105,97,0.5); color: #fff; cursor: not-allowed; }
.day.empty { background: transparent; cursor: default; }

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}
.lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* ==========================================
   FOOTER
   ========================================== */
footer.sitefoot {
  background: linear-gradient(90deg, var(--brand), #6e58a9);
  color: #fff;
  padding: 20px;
  margin-top: 24px;
}
footer.sitefoot .cols {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
footer.sitefoot a { color: #fff; text-decoration: underline; }

/* ==========================================
   RESPONSIVE FIXEK
   ========================================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero img { height: 320px; object-fit: cover; }
}

/* három oszlopos layout */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.three-col > *:nth-child(1) { margin-right: 5px; }
.three-col > *:nth-child(2) { margin-right: 5px; }

/* form calendar */
.form-title { text-align: center; margin-bottom: 15px; }
.calendar-section {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  background: #fff;
}

/* foglalás formázás */
.booking-form0 {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  background: #fff;
}
.booking-form {
  background: #7b61b859;
  padding: 20px;
  height: 600px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.booking-form input,
.booking-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.services div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.services input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.submit-btn {
  padding: 12px;
  background: #555;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover { background: #333; }

/* szolgáltatások vízszintes görgetésben  */
.prog-off-section { overflow-x: auto; white-space: nowrap; padding-bottom: 10px; }
.prog-off-scroll { display: flex; gap: 15px; }
.prog-off-scroll .service-item { flex: 0 0 220px; }
.prog-off-scroll .service-item .txt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* szolgáltatások görgetésben függőleges */
.services-section { height: 600px; overflow-y: auto; }
.services-scroll { display: flex; flex-direction: column; gap: 20px; }
.services-scroll .service-item { height: 290px; position: relative; overflow: hidden; }
.services-scroll .service-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.services-scroll .service-item .txt {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 10px; background: transparent; color: white; text-align: center;
  font-size: 20px; font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* modal a szolgáltatások nagyításához */
.modal {
  display: none; position: fixed; z-index: 2000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
}
.modal-content {
  display: block;
  margin: 5% auto;
  max-width: 70%;   /* 80 helyett 70% például */
  max-height: 70vh; /* a képernyő magasságának 70%-a */
  border-radius: 12px;
  object-fit: contain; /* arányosan kicsinyíti, nem torzít */
}
#modalDesc {
  margin: 10px auto;
  max-width: 80%;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

section { scroll-margin-top: 40px; }


* { min-width: 0; }

/* --- FEJLÉC JAVÍTÁS MOBILRA (2025.10) --- */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: var(--brand);
  padding: 8px 12px;
}

header.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

header.topbar .brand img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

header.topbar .brand strong {
  font-size: 18px;
  display: block;
}

header.topbar .brand div[style] {
  line-height: 1.2;
}

header.topbar .lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

header.topbar .lang-switch img {
  height: 22px;
  width: auto;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

header.topbar .lang-switch img:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  header.topbar {
    flex-direction: row;
    justify-content: space-between;
  }
  header.topbar .brand img {
    height: 40px;
  }
  header.topbar .brand strong {
    font-size: 16px;
  }
  header.topbar .lang-switch img {
    height: 20px;
  }
  header.topbar .navlinks {
    flex-basis: 100%;
    text-align: center;
    margin-top: 6px;
  }
  header.topbar .navlinks a {
    display: inline-block;
    padding: 6px 10px;
  }
}


