/* Reset and font */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Lucida Sans', Arial, sans-serif;
  background-color: white;
  color: white;
  text-align: center;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }

/* Hero (main page full height, subpages get a variant below) */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("assets/background1.jpg") no-repeat center center / cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Navigation */
.navbar, .sticky-navbar {
  width: 100%; height: 70px; padding: 0 5vw;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
}
.navbar { position: absolute; top: 0; left: 0; background-color: transparent; }
.sticky-navbar {
  position: fixed; top: -100px; left: 0; background-color: #4c3d6a;
  transition: top 0.4s ease;
}
.sticky-navbar.show { top: 0; }

.navbar-logo, .sticky-navbar .navbar-logo { height: clamp(60px, 8vw, 100px); }

.menu-toggle {
  display: none; font-size: 2rem; color: white; cursor: pointer; z-index: 101;
}

.nav-links { list-style: none; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a {
  text-decoration: none; color: white; font-weight: bold;
  font-size: clamp(0.9rem, 1vw, 1.2rem); transition: color 0.3s;
}
.nav-links a:hover { color: #ddd; }

/* Mobile dropdown */
.dropdown-menu { width: 100%; background-color: #4c3d6a; overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.dropdown-menu.show { max-height: 1000px; }
.dropdown-menu ul { list-style: none; padding: 1rem 5vw; }
.dropdown-menu li { margin: 1rem 0; }
.dropdown-menu a {
  display: block; font-size: clamp(1rem, 4vw, 1.3rem); color: white;
  font-weight: bold; text-decoration: none; transition: color 0.2s;
}
.dropdown-menu a:hover { color: #cccccc; }

/* Hero content */
.hero-content {
  position: relative; z-index: 2; padding: 4vh 2vw; max-width: 90vw; margin-top: 100px;
  color: #fffaf0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
/* Main page extra spacing */
body:not(.subpage) .hero-content { padding-top: 10vh; margin-top: 250px; }

.hero-logo { height: clamp(120px, 25vw, 200px); margin: 0 auto 1.5rem auto; display: block; }

.hero-content h1 { font-size: clamp(2rem, 6vw, 3.75rem); font-weight: bold; margin-bottom: 1rem; }

.subtitle { font-size: clamp(1.2rem, 3.5vw, 2.5rem); font-weight: bold; margin-bottom: 1rem; color: #2c2c2c; }
.contact { font-size: clamp(0.9rem, 2.5vw, 1.3rem); font-weight: bold; color: #fffaf0; }
.nowrap { white-space: nowrap; }

/* Info Section (main page & subpages) */
.info-section.with-map {
  background-color: #fffaf0; color: #333; padding: 6vh 5vw;
  flex-grow: 1; display: flex; justify-content: center;
}

.info-map-container {
  display: flex; flex-wrap: wrap; gap: 3rem;
  max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; align-items: stretch;
}

.text-content { flex: 1 1 50%; text-align: left; }

/* Map (ha használod máshol) */
.map-block { flex: 1 1 50%; display: flex; flex-direction: column; }
.map-heading { margin-bottom: 0.8rem; text-align: left; }
.map-container {
  flex: 1; min-height: 300px; height: 100%; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Main page info text */
.text-content h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: bold; margin-bottom: 1rem; color: #2c2c2c; }
.text-content p  { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.6; margin-bottom: 1.5rem; color: #444; }

/* Subpage hero */
body.subpage .hero.sub-hero {
  min-height: 50vh;
  background: url("assets/background1.jpg") no-repeat center center / cover;
  background-attachment: scroll;
  display: flex; align-items: center; justify-content: center; position: relative;
}
body.subpage .hero .overlay { background: rgba(0, 0, 0, 0.4); }

.subpage-title { position: relative; z-index: 2; text-align: center; color: #fffaf0; padding: 2rem 1rem; }
.subpage-title h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* Hide main-hero-only bits on subpages */
body.subpage .hero-logo, body.subpage .subtitle, body.subpage .contact { display: none !important; }
.sub-hero + .info-section { margin-top: 0; }

/* Footer */
.subpage-footer {
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
  color: #333;
  margin-top: auto;
  position: relative;          /* a social-icons abszolút pozicionálásához */
}

.subpage-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 5vw 3.5rem;  /* alul extra hely a sarokban lévő ikonoknak */
  position: relative;
}

.subpage-footer .footer-note,
.subpage-footer .footer-copy {
  font-size: 0.9rem;
  color: #555;
  padding: 15px 0;
  text-align: center;
}

.subpage-footer .footer-sep {
  border: none;
  border-top: 1px solid #ccc;  /* ugyanaz a vonal, mint a footer tetején */
  margin: 0 0 0.25rem 0;
}

/* ===== Közösségi ikonok – jobb alsó sarok desktopon ===== */
.subpage-footer .social-icons {
  position: absolute;
  right: 20px;
  bottom: 15px;
  display: flex;
  gap: 20px;
  padding: 10px;               /* kis belső tér a sarokban */
}

.subpage-footer .social-icons img {
  width: 60px;                 /* ~3× nagyobb ikonok */
  height: 60px;
  display: block;
  cursor: pointer;
  transition: transform .2s ease;
}

.subpage-footer .social-icons img:hover {
  transform: scale(1.1);
}

/* ===== Mobil/jobb elcsúszás fix – kis képernyőn középre, nem abszolút ===== */
@media (max-width: 768px) {
  .subpage-footer .footer-content {
    padding-bottom: 1.25rem;   /* kevesebb extra alj padding mobilon */
  }

  .subpage-footer .social-icons {
    position: static;          /* ne legyen fix a sarokban */
    justify-content: center;   /* középre igazítás */
    margin-top: 12px;
    padding: 0;
  }

  .subpage-footer .social-icons img {
    width: 48px;
    height: 48px;
  }
}

/* Layout fill */
.page-content { flex-grow: 1; background-color: #fffaf0; }

/* Media scaling */
img, iframe, video { max-width: 100%; height: auto; display: block; }

/* Slightly tighter container on very small screens */
.info-map-container { max-width: min(1200px, 92vw); }

/* Kapcsolat page title style reuse */
.map-heading { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: bold; margin-bottom: 1rem; color: #2c2c2c; }


/* Responsive */
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #4c3d6a;
    z-index: 100;
  }

  .menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .navbar-logo {
    height: clamp(60px, 12vw, 100px);
  }

  .hero-logo {
    height: clamp(100px, 30vw, 160px);
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .subtitle {
    font-size: clamp(1.1rem, 4vw, 1.8rem);
  }

  .contact {
    font-size: clamp(0.9rem, 3.2vw, 1.2rem);
  }

  .dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #4c3d6a;
    z-index: 1000;
  }

  .info-map-container {
    flex-direction: column;
    padding: 2rem 1rem;
    align-items: stretch;
  }

  .map-container {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  .desktop-only {
    display: flex;
  }
}

/* Apartment cards with padding-top ratio fix */
.apt-grid {
  width: 100%;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .apt-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
  }
}

.apt-card {
  position: relative;
  display: block;
  border: 6px solid #4c3d6a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #eee;
}

.apt-card::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 ratio */
}

.apt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.2);
}

.apt-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.5px);
  transform: scale(1.04);
}

.apt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 1;
}

.apt-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  padding: 0.4em 0.9em;
  background: rgba(76, 61, 106, 0.9);
  color: #fffaf0 !important;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 2;
}

/* ==== FIX: az .apt-grid ne nyomódjon össze flexben, a kártyák töltsék ki a helyet ==== */

/* Asztali nézetben az .info-map-container flex; itt biztosítjuk, hogy a rács kapjon helyet */
.info-map-container {
  align-items: flex-start; /* ne középre igazítsa a sorokat, kapjon rendes magasságot is */
}

.apt-grid {
  flex: 1 1 520px;   /* KAP helyet a flex sorban (alap 520px, rugalmas) */
  min-width: 320px;  /* sose menjen 0-ra */
  width: 100%;       /* tényleg töltse ki a rendelkezésre álló helyet */
}

/* A kártyák szélessége legyen rugalmas – ne korlátozzuk max-width-del */
.apt-card {
  width: 100%;
  max-width: none;   /* felülírjuk a korábbi max-width-et */
  margin: 0;         /* ne középre húzza összeszűkítve */
}

/* A 16:9 magasság a padding-top trükkel marad: ha a szélesség megvan, a magasság is meglesz */
.apt-card::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Mobilon a szülő ne legyen flex, a rács egy oszlopban jelenjen meg */
@media (max-width: 768px) {
  .info-map-container { 
    display: block; 
    padding: 1.25rem 1rem;
  }
  .apt-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    width: 100%;
    min-width: 0; /* mobilon engedjük kicsire is, de nem 0 szélességre */
  }
  .apt-card { width: 100%; }
}

/* Rétegsorrend és felirat színe változatlanul maradjon */
.apt-card::after { z-index: 1; }
.apt-label { z-index: 2; color: #fffaf0 !important; }

/* ===== Galéria (Apartman 1) ===== */
.gallery { margin-top: 2rem; text-align: left; }
.gallery h2 { margin-bottom: 1rem; color: #2c2c2c; }

.gallery-grid{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:0;
}
@media (max-width:1200px){ .gallery-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:992px){  .gallery-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:576px){  .gallery-grid{ grid-template-columns:1fr; } }

.gallery-item{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:none;
  cursor:zoom-in;
  position:relative;
}
.gallery-item img{
  width:100%;
  height:auto;
  border-radius:14px;
  display:block;
  transition:transform .22s ease, box-shadow .22s ease;
}
.gallery-item:hover img{
  transform:scale(1.03);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}

/* ===== Lightbox ===== */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  display:none;                /* .show váltja láthatóra */
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:5vh 5vw;
}
.lightbox.show{ display:flex; }

.lightbox-img{
  max-width:90vw;
  max-height:85vh;
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.4);
}

/* Vezérlők */
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position:absolute;
  background:rgba(255,255,255,.15);
  color:#fff;
  border:none;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
  backdrop-filter:blur(2px);
}

.lightbox-close{
  top:16px;
  right:16px;
  font-size:28px;
  padding:8px 12px;
  border-radius:10px;
}
.lightbox-prev,
.lightbox-next{
  top:50%;
  transform:translateY(-50%);
  font-size:34px;
  padding:10px 14px;
  border-radius:12px;
}
.lightbox-prev{ left:16px; }
.lightbox-next{ right:16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
  background:rgba(255,255,255,.25);
  transform:translateY(-50%) scale(1.05);
}
.lightbox-close:hover{ transform:none; } /* a close gomb ne mozduljon el */

/* ===== Felszerelések blokk (pöttyök nélkül, aláhúzott alcímek) ===== */
.text-content h3 {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  color: #2c2c2c;
  text-decoration: underline;
}

.equip h4 {
  margin-top: 1rem;
  margin-bottom: .35rem;
  color: #2c2c2c;
  font-weight: 700;
  text-decoration: underline;
}

.equip .equip-list {
  list-style: none;         /* nincs bullet */
  padding-left: 0;          /* nincs beljebb tolás */
  margin: 0 0 .9rem 0;      /* kis tér az egyes blokkok alatt */
}

.equip .equip-list li {
  margin: .15rem 0;         /* szoros, de olvasható sorköz az elemek között */
  line-height: 1.35;
  color: #333;
}

.program-links {
  background-color: #fffaf0;
  padding: 3rem 2rem;
  color: #333;
}

.program-links h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #4c3d6a;
  text-align: center;
}

.program-links ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.program-links li {
  margin-bottom: 0.8rem;
}

.program-links a {
  text-decoration: none;
  color: #4c3d6a;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  transition: color 0.3s ease;
}

.program-links a:hover {
  color: #7b68a0;
}

/* ===== Kapcsolat oldal ikonok (nagy méret, középre igazítva) ===== */
.contact-section {
  background-color: #fffaf0;
  padding: 4rem 2rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
  max-width: 300px;
}

.contact-icon {
  width: 240px;   /* nagy méret */
  height: auto;
  margin: 0 auto 1rem auto; /* középre helyezés és alsó térköz */
  display: block;
}

.contact-item h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: #4c3d6a;
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #4c3d6a;
}

.contact-item a {
  color: #4c3d6a;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: #7b68a0;
}

/* Reszponzív igazítás */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
}

.email-small {
  font-size: 0.95em;
}

/* Footer menü színezése */
.footer-menu ul li a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-menu ul li a:hover {
  color: #444;
}

/* Footer menü reszponzív elrendezés */
.footer-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 0;
  margin: 0 0 18px 0;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .footer-menu ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

