* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', sans-serif; color: #3F4657; }

/* Floating Contact Button */
.contact-btn {
  position: fixed;
  bottom: 2rem;
  right: 0;
  background: #3F4657;
  color: #fff;
  border: none;
  padding: 0 1.5rem 0 3rem;
  height: 3rem;
  font-size: 1rem;
  line-height: 3rem;
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.contact-btn:hover {
  background: #303541;
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  position: relative;
  flex-direction: column;
}

.section > *:not(.contact-btn) {
  width: 100%;
  max-width: 1000px;       
  margin-left: auto;
  margin-right: auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  background: url("../img/hero.jpg") center/cover no-repeat;
  color: #fff;
}
.hero .content {
  text-align: center;
  max-width: 600px;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border-radius: 6px;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #3F4657;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn:hover {
  background: #303541;
}

/*—— ÉRVELŐ DOBOZOK (3 oszlop) ———————————————————————————————————————*/
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.benefit-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.benefit-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.benefit-box p {
  font-size: 1rem;

}

/* Leírás */
/* Projekt áttekintés + vásárlási feltételek blokk */
.project-overview {
  text-align: left;
  line-height: 1.6;
}
.project-overview p {
  margin-bottom: 1rem;
  font-size: 1rem;

}
.project-overview h2 {
  margin: 2rem 0 1rem;
//  font-size: 1.75rem;
  text-align: center;
}
.payment-schedule {
  list-style: disc inside;
  margin: 0 0 1rem 1rem;
}
.payment-schedule li {
  margin-bottom: 0.5rem;
}



/* Apartmanlista */
.apartmanlista {

  flex-direction: column;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
}
.lakas-card {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Virtuális Apartmanválasztó */
.virtual {
  flex-direction: column;
  background: #fff;
}
.virtual-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px;
  width: 100%;
}
.floor-svg, .plan-svg {
  flex: 1 1 45%;
}
.floor-svg svg {
  width: 100%;
  height: auto;
}
.floor-btn {
  fill: rgba(255,255,255,0.0);
  cursor: pointer;
  transition: fill 0.3s;
}
.floor-btn:hover {
  fill: rgba(255,255,255,0.5);
}



/* Elhelyezkedés */

#location {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.location .map {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 2rem;
}
.location .map iframe {
  width: 100%;
  height: 60vh;
  border: none;
  margin: 0;
}
.nearby {
  width: 100%;
  max-width: 1000px;
  padding: 0 1rem;
}
.nearby h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.nearby ul {
  list-style: disc inside;
  line-height: 1.6;
}


/* Contact Section */
.contact {

  flex-direction: column;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}
#contact-form input,
#contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#contact-form label {
  font-size: 0.9rem;
}

/* Modal */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}
#modal-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}
.modal-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: #f9f9f9;
  padding: 2rem 1rem;
  text-align: center;
}
footer .footer-menu {
  margin-bottom: 1rem;
}
footer .footer-menu a {
  color: #3F4657;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer .footer-text {
  font-size: 0.875rem;
  color: #3F4657;
}

@media (max-width: 768px) {
  .virtual-container {
    flex-direction: column !important;
  }
  .floor-svg,
  .plan-svg {
    /* Lehetőség szerint szűntesd meg a flex-shrink/­grow-et */
    flex: none !important;
    width: 100% !important;
    /* Alul legyen kis távolság, hogy ne csússzanak össze */
    margin-bottom: 1rem;
  }
  /* Utolsó elem alján ne legyen extra margin */
  .plan-svg {
    margin-bottom: 0;
  }
}


/* Ensure available apartments show pointer and hover opacity */
#lakas-alaprajz .apt-rect.available {
  cursor: pointer;
}
#lakas-alaprajz .apt-rect.available:hover {
  cursor: pointer;
}
#lakas-alaprajz .apt-rect.available:hover {
  fill: rgba(34, 197, 94, 0.5) !important;
}

/* Ensure available apartments are clickable and have hover opacity */
#lakas-alaprajz .apt-rect.available {
  cursor: pointer !important;
  pointer-events: all;
}
#lakas-alaprajz .apt-rect.available:hover {
  fill: rgba(34,197,94,0.5) !important;
}

/* Lakáskártya: kép és infó egymás mellett */
.lakas-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;          /* jelzi, hogy kattintható */
  transition: transform 0.2s;
}
.lakas-card:hover {
  transform: translateY(-4px);
}

/* Thumbnail a kártyán belül */
.lakas-thumb {
  width: 150px;            /* vagy tetszőleges fix/mrt% */
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

/* A szöveges rész */
.card-info {
  flex: 1;
}
.card-info h4 {
  margin-bottom: 0.5rem;
}
.card-info p {
  margin: 0.25rem 0;
}

/* Gallery */
/* -------------------
   SLIDER KONTAINER
   ------------------- */
.slider {
  position: relative;
  width: 100%;
  max-width: 1000px;   /* vagy amekkora kell */
  margin: 0 auto;
}

/* -------------------
   GOMBOK
   ------------------- */
.slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}
.slider .slider-btn.prev { left: 0.5rem;  }
.slider .slider-btn.next { right: 0.5rem; }

/* -------------------
   SLIDES KONTAINER
   ------------------- */
.slider .slides-container {
  overflow: hidden;
  width: 100%;
}

/* -------------------
   SLIDES (BELSŐ FLEX)
   ------------------- */
.slider .slides {
  display: flex;
  transition: transform 0.3s ease;
}

/* -------------------
   KÉPEK
   ------------------- */
.slider .slides img {
  width: 100%;    /* szélességre skálázunk */
  height: auto;   /* magasságot megtartjuk arányosan */
  object-fit: contain;
  flex-shrink: 0; /* ne zsugorodjon, maradjon 100% széles */
}

/* Szekciócímek középre igazítása */
.section h2,
.section h3 {
  text-align: center;

}

/* 1) Minden privacy-policy szekcióbeli ul-re vonatkozzon ez */
.privacy-policy ul {
  margin: 0 !important;               /* törli a felső és alsó margót */
  padding-inline-start: 1rem !important; /* beljebb lépteti a listát */
  list-style-position: inside !important;/* a •-jelet is belül helyezi el */
}

/* 2) Ha van speciális osztály, pl. .legal-list, azt is erősítsd meg */
.privacy-policy ul.legal-list {
  margin: 0 !important;
  padding-inline-start: 1rem !important;
}

/* 3) Töröld a <p>-ek marginját, ha az is túl nagy */
/* (ez csak akkor szükséges, ha a listád <p> wrapperben van) */
.privacy-policy p {
  margin: 0 0 1rem;
}
