/* === BETŰTÍPUSOK BEÁGYAZÁSA === */
@font-face {
  font-family: 'Garamond Pro';
  src: url('../fonts/garamond-antiqua-pro.otf') format('opentype');
  font-weight: normal; /* Vagy 400 */
  font-style: normal;
}

@font-face {
  font-family: 'Garamond Pro';
  src: url('../fonts/garamond-antiqua-pro-demibold.otf') format('opentype');
  font-weight: 600; /* A demibold általában 600 */
  font-style: normal;
}

@font-face {
  font-family: 'Garamond Pro';
  src: url('../fonts/garamond-antiqua-pro-italic.otf') format('opentype');
  font-weight: normal; /* Vagy 400 */
  font-style: italic;
}
/* === BETŰTÍPUSOK BEÁGYAZÁSA VÉGE === */

/* === ÁLTALÁNOS BEÁLLÍTÁSOK ÉS RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(16px, 1.2vw, 20px);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Garamond Pro', 'garamond', serif;
  color: #2f583c;
  background: url('../images/Hamvasdomb_hatter-oldal001.png') no-repeat center center fixed;
  background-size: cover;
  scroll-behavior: smooth;
}

/* === TIPOGRÁFIA ÉS ALAP STÍLUSOK === */
h1 {
  text-align: center;
  color: #843C0C;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-variant: small-caps;
  /*text-shadow: 0 0 0.5px rgba(47, 88, 60, 0.7);*/
  letter-spacing: 0.15em;
}

h2 {
  color: #843C0C;
  font-variant: small-caps;
  font-size: 1.5rem;
  /*text-shadow: 0 0 0.5px rgba(47, 88, 60, 0.7);*/
  letter-spacing: 0.15em;
}

a {
  color: #2f583c;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.1em;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

.content-paragraph,
#hazirend p, #hazirend li,
#apartmanjaink li, #apartmanjaink p,
#kapcsolat p {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 1rem;
}

.info-box {
  background-color: #f8f5f0;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 5px solid #2f583c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* === NAVIGÁCIÓ (FELSŐ SÁV ÉS LOGÓK) === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 10vh, 120px);
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  max-width: calc(100% - 280px);
  align-items: center;
}

/* Az aktív menüpont stílusa */
.nav-links a.active-link {
  color: #843C0C;
  transform: scale(1.1);
  text-shadow: 0 0 0.75px rgba(132, 60, 12, 0.7);
}

#logo-container {
  margin-top: clamp(150px, 18vh, 200px);
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  transition: opacity 0.4s ease;
}

#logo-container.logo-fade-out {
  opacity: 0;
  pointer-events: none;
}

#logo-container img {
  width: 66vw;
  max-width: 800px;
  height: auto;
}

#mini-logo-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 10vh, 120px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 3vw, 40px);
  z-index: 1100;
  pointer-events: none;
}

.mini-logo {
  height: clamp(60px, 8vh, 100px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mini-logo.visible {
  opacity: 1;
}

/* === MOBILNÉZET (MEDIA QUERY) === */
#hamburger-icon {
  display: none;
}

@media (max-width: 1300px) {
  nav {
    justify-content: flex-end;
    padding-right: 25px;
    position: fixed;
  }
  
  #mini-logo-wrapper {
    justify-content: center;
  }

  #hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }

  #hamburger-icon .bar {
    height: 3px;
    width: 100%;
    background-color: #2f583c;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
    gap: 25px;
    max-width: 250px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a,
  .nav-links a.active-link {
    font-size: 1.3rem;
    transform: scale(1); /* Inaktiváljuk a desktop nézet scale-jét */
  }
}

/* === TARTALMI ELRENDEZÉS === */
#content {
  max-width: 1000px;
  margin: clamp(40px, 6vh, 80px) auto;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  #logo-container {
    margin-top: 140px;
  }
}

.content-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.content-section.reverse {
  flex-wrap: wrap-reverse;
}

.text-block,
.image-block {
  flex: 1;
  min-width: 320px;
}

.flex-2 {
  flex: 2;
}

.image-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* === ÚJ: TÉRKÉP SZIMULÁTOR STÍLUSOK === */
#map-simulator-container {
    position: relative;
    width: 100%;
    height: 450px; /* Ugyanaz a magasság, mint a régi iframe-nek */
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in; /* Vizuális visszajelzés */
    background-color: #e0e0e0; /* Háttérszín, amíg a kép töltődik */
}

.map-zoom-level {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Lefedés biztosítása */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    -webkit-transition: opacity 0.3s ease-in-out;
}

.map-zoom-level.active {
    opacity: 1; /* Csak az aktív kép látszik */
    z-index: 2; 
}

.map-zoom-instruction {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #333;
    z-index: 3;
    pointer-events: none; /* Ne akadályozza a kattintást */
}
/* === TÉRKÉP SZIMULÁTOR VÉGE === */


/* === GALÉRIA ÉS HEXAGON STÍLUSOK === */
.gallery-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: felx-start;
  gap: 0.8rem;
}

.hexagon-border {
  padding: 3px;
  background-color: #2f583c;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
  align-self: center;
}

.gallery-item-wrapper:hover .hexagon-border {
  transform: scale(1.05);
  filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 0.5));
}

.hexagon {
  width: 160px;
  aspect-ratio: 1 / 1;
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
  overflow: hidden;
}

.hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hexagon-caption {
  font-size: 0.9rem;
  font-style: italic;
  color: #2f583c;
  font-weight: bold;
  text-align: center;
  max-width: 170px;
  line-height: 1.3;
  height: 3.9em; 
  overflow: hidden;
}


/* === LIGHTBOX (NAGYÍTOTT KÉP) === */
/* A lightbox mostantól 'transition' nélkül, azonnal jelenik meg */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  /* ELTÁVOLÍTVA: transition: opacity 0.4s ease-in-out; */
}

#lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#lightbox-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 90%;
  transform: scale(1); /* Alapból 1-es skálán van */
  /* ELTÁVOLÍTVA: transition: transform 0.4s ease-in-out; */
  /* ELTÁVOLÍTVA: transform: scale(0.95); */
}

/* Az .visible osztályon már nincs mit változtatni a wrapperen */
/* #lightbox-overlay.visible #lightbox-content-wrapper { ... } - TÖRÖLVE */

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  object-fit: contain;
}

#close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 45px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 10001;
}

#close-lightbox:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Javítva: -so% helyett -50% */
  color: white;
  font-size: 60px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0 25px;
  user-select: none;
  z-index: 10001;
}

.lightbox-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#prev-image {
  left: 15px;
}

#next-image {
  right: 15px;
}

#lightbox-caption {
  color: #f0f0f0;
  text-align: center;
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 1.1rem;
  line-height: 1.5;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  max-width: 80%;
  /* ELTÁVOLÍTVA: transition: opacity 0.3s; (konfliktusban állt az animációval) */
}

/* === LIGHTBOX LAPOZÓ ANIMÁCIÓK === */
/* Ezek vezérlik a képváltást (következő/előző) */

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100px); opacity: 0; }
}
@keyframes slideInFromRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100px); opacity: 0; }
}
@keyframes slideInFromLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Kép animációk */
#lightbox-image.slide-out-left   { animation: slideOutLeft 0.3s ease-out forwards; }
#lightbox-image.slide-in-from-right { animation: slideInFromRight 0.3s ease-in forwards; }
#lightbox-image.slide-out-right  { animation: slideOutRight 0.3s ease-out forwards; }
#lightbox-image.slide-in-from-left  { animation: slideInFromLeft 0.3s ease-in forwards; }

/* Felirat animációk (hogy együtt mozogjanak) */
#lightbox-caption.slide-out-left   { animation: slideOutLeft 0.3s ease-out forwards; }
#lightbox-caption.slide-in-from-right { animation: slideInFromRight 0.3s ease-in forwards; }
#lightbox-caption.slide-out-right  { animation: slideOutRight 0.3s ease-out forwards; }
#lightbox-caption.slide-in-from-left  { animation: slideInFromLeft 0.3s ease-in forwards; }


/* === ŰRLAP STÍLUSOK === */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#booking-form label {
  font-weight: bold;
  color: #2f583c;
  margin-bottom: -10px;
}

#booking-form input,
#booking-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'garamond', serif;
}

#booking-form input[type="date"] {
  color: #555;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  gap: 0.5rem;
}

#booking-form button {
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: #843C0C;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#booking-form button:hover:not(:disabled) {
  background-color: #a55b2a;
  transform: translateY(-2px);
}

#booking-form button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.form-message {
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  display: none;
}

.success-message {
  background-color: #e6f4ea;
  color: #2f583c;
  border: 1px solid #2f583c;
}

.error-message {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #c5221f;
}

.form-group-privacy {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group-privacy label {
    margin: 0;
    font-weight: normal; /* Felülírja az alap label stílust */
    color: #333;
}
.form-group-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.form-group-privacy a {
    text-decoration: underline;
    font-weight: bold;
}

/* === NYELVVÁLASZTÓ STÍLUSOK (DUPLIKÁLT VERZIÓ) === */

/* Közös stílusok mindkét választóra */
.language-switcher {
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}
.language-switcher a.lang-link { color: #2f583c; text-decoration: none; padding: 3px 5px; transition: color 0.2s; }
.language-switcher a.lang-link:hover { color: #843C0C; text-decoration: underline; }
.language-switcher span.lang-active { color: #843C0C; padding: 3px 5px; cursor: default; }
.language-switcher span.lang-disabled { color: #999; padding: 3px 5px; cursor: default; }

/* Asztali nézet (alapértelmezett) */
#lang-switcher-desktop {
    position: absolute;
    top: 50%;                /* Függőlegesen középre */
    transform: translateY(-50%); /* Pontos függőleges középre igazítás */
    right: 30px;             /* Jobb oldali távolság */
    z-index: 1101;
}
#lang-switcher-mobile {
    display: none;
}

/* Mobil nézet (max-width: 1300px) */
@media (max-width: 1300px) {
    #lang-switcher-desktop {
        display: none; /* Asztali rejtve mobilon */
    }
    #lang-switcher-mobile {
        display: block; /* Mobilos megjelenítve mobilon */
        margin-top: 30px; /* Távolság a menüpontoktól */
        padding: 15px;
        text-align: center;
        border-top: 1px solid #ddd; /* Elválasztó vonal */
        /* Nincs szükség abszolút pozícióra, a flex flow része lesz */
    }
}