/* ==========================================================================
   DEER FOREST RESIDENCE - MASTER STYLES.CSS
   100% Gyári Asztali (PC) Nézet + Tiszta CSS Mobil Menü és Lightbox Fix
   ========================================================================== */

:root {
  --df-black: #000000;
  --df-forest: #1c2b24;
  --df-bronze: #b87333;
  --df-sand: #e6dcc8;
  --df-white: #f5f2ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--df-white);
  background: radial-gradient(circle at top, #0f1512 0%, #000 60%);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--df-bronze);
}

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* GYÁRI ERINTETLEN ASZTALI FEJLÉC ÉS LOGÓK */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.5px;
  font-size: 18px;
  min-width: 104px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  flex-wrap: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: -150px;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 64px);
  max-width: 720px;
}

.hero p {
  max-width: 540px;
  color: var(--df-sand);
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.btn-solid {
  background: var(--df-bronze);
  color: var(--df-black);
}

.btn-ghost {
  border: 1px solid var(--df-bronze);
  color: var(--df-bronze);
}

.overview,
.highlights,
.contact {
  padding: 90px 0;
  background: #040606;
}

.overview .split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.split-media {
  height: 380px;
  background: url("../images/IMG_2890.JPG") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.section-head {
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
}

.feature-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.feature-media-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.feature-media-grid img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.feature-mini-logo {
  width: 180px !important;
  height: 180px !important;
  object-fit: contain;
  background: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: #0c0f0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--df-white);
  padding: 12px;
  font-family: inherit;
}

.site-footer {
  background: #000;
  padding: 30px 0 50px;
  text-align: center;
  color: var(--df-sand);
}

/* Enhancement pack & Visual polish */
:focus-visible { outline: 2px solid var(--df-bronze); outline-offset: 2px; }
.logo a { color: inherit; text-decoration: none; }
.nav a { opacity: 0.85; transition: opacity 0.2s ease; white-space: nowrap; }
.nav a:hover { opacity: 1; }
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.card-media { transition: transform 0.35s ease; }
.card-media:hover { transform: scale(1.02); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--df-bronze); }

.section-head h2 { letter-spacing: 0.3px; }
.card p, .split-content p, .contact-copy p { color: var(--df-sand); }
.card h3 a { color: var(--df-bronze); text-decoration: none; }
.card h3 a:hover { color: var(--df-white); }
.card a.card-media { display: block; }
.site-header::after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, rgba(184, 115, 51, 0.6), rgba(255, 255, 255, 0)); }
.hero-content p { font-size: 16px; }
.hero-content .btn { margin-top: 8px; }

.card-grid.row, .split.row, .contact-inner.row, .form-row.row { display: flex; }
.card.col-12 { width: 100%; }
.lang-switch .dropdown-toggle::after { margin-left: 8px; }
.lang-switch .dropdown-menu { background: #0c0f0d; border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 0; z-index: 4000; }
.lang-switch .dropdown-item { color: var(--df-white); padding: 8px 14px; }
.lang-switch .dropdown-item:hover, .lang-switch .dropdown-item:focus { background: rgba(184, 115, 51, 0.15); color: var(--df-white); }
.site-footer .social-links { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

.social-btn {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: #0c0f0d;
  border: 1px solid rgba(255, 255, 255, 0.15); color: var(--df-white); text-transform: lowercase; font-weight: 600;
  position: relative; font-size: 0; overflow: hidden;
}
.social-btn::before { content: ""; position: absolute; inset: 4px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.social-btn[aria-label="Facebook"]::before { background-image: url("../images/facebooklogo.png"); }
.social-btn[aria-label="Instagram"]::before { background-image: url("../images/instagramlogo.png"); }

.header-social { display: flex; align-items: center; gap: 8px; }
.header-social .social-btn, .site-footer .social-btn { width: 22px; height: 22px; }
.logo-image { width: 88px; height: 88px; border-radius: 50%; object-fit: contain; background: #ffffff; padding: 4px; }
.logo { color: var(--df-white); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.logo a { color: var(--df-white); }
.lang-switch .dropdown-toggle { color: var(--df-white); border-color: rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.35); }
.lang-switch .dropdown-toggle:hover { border-color: var(--df-bronze); color: var(--df-white); }

.dynamic-section { padding: 90px 0; background: #040606; }
.price-tag { margin-top: 12px; display: inline-block; padding: 6px 10px; border: 1px solid rgba(184, 115, 51, 0.6); color: var(--df-bronze); font-size: 12px; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.site-header { position: sticky; overflow: visible !important; }

@media (min-width: 1100px) {
  .header-inner { transform: none; padding-right: 0; }
  .nav { gap: 14px; }
  .header-social { margin-left: 8px; margin-right: 8px; gap: 4px; }
}


/* ==========================================================================
   ATOMBIZTOS, TISZTA CSS-ALAPÚ RESPOND-PACK MOBILRA ÉS TABLETRE (MAX 900PX)
   ========================================================================== */
@media (max-width: 900px) {

  /* 1. STABIL MOBIL MENÜ (KATTINTÁSRA NYÍLIK ÉS NYITVA IS MARAD) */
  .site-header .nav {
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 25px 20px !important;
    margin: 0 !important;
    background: #0c0f0d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  /* A menü nyitva tartása: a 'mobile-open' osztályt használjuk */
  .site-header.mobile-open .nav {
    display: flex !important;
  }

  .header-inner::after {
    content: "☰ MENÜ" !important;
    display: inline-block !important;
    background: var(--df-bronze) !important;
    color: #000 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    z-index: 100000 !important;
  }

  .site-header.mobile-open .header-inner::after {
    content: "✕ BEZÁR" !important;
    background: #333 !important;
    color: #fff !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
  }
  /* Ha nyitva van a menü panel, a felirat átvált Bezárásra */
  .site-header.mobile-open .header-inner::after {
    content: "✕ BEZÁR" !important;
    background-color: #333333 !important;
    color: #ffffff !important;
  }

  /* Menüpont linkjeinek középre hozatala és könnyebb érinthetősége */
  .site-header .nav a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 17px !important;
    padding: 12px 0 !important;
  }

  /* Ajánlatkérés kiemelt gomb mobil igazítása */
  .site-header .nav .btn-solid {
    width: 100% !important;
    max-width: 280px !important;
    margin: 10px auto !important;
    background-color: var(--df-bronze) !important;
    color: #000000 !important;
    padding: 12px !important;
  }

  /* Nyelvi lenyíló és ikonok mobil rendezése */
  .lang-switch { width: 100% !important; text-align: center !important; margin: 10px 0 !important; }
  .lang-switch .dropdown-menu { position: static !important; float: none !important; margin: 10px auto 0 !important; width: 180px !important; }
  .header-social { display: flex !important; justify-content: center !important; gap: 20px !important; width: 100% !important; margin-top: 15px !important; }
  
  /* Kitakarjuk a nav végéről a duplázódott logót */
  .site-header .nav .logo:last-of-type { display: none !important; }

  /* 2. KEREK LOGÓK MOBIL MÉRETE - KICSINYÍTVE */
  /* 1. KEREK LOGÓ FIXÁLÁSA MOBILON */
  .logo {
    min-width: auto !important;
    width: 60px !important;
    height: 60px !important;
  }

  .logo-image {
    width: 60px !important;
    height: 60px !important;
    padding: 2px !important;
  }

  /* 3. BOXOK FELSŐ HÉZAGJA (SZIGORÚAN 4PX A KÉP FELETT) */
  .card {
    padding: 4px 24px 24px 24px !important;
  }

  /* 4. HERO AUTOMATIKUS MOBIL ILLÉSZKEDÉS */
  .hero {
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: #000000 !important;
    padding: 0 !important;
    padding-top: 60% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .hero-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    z-index: 1 !important;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 2;
  }

  .hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    width: 85% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero h1 {
    font-size: clamp(20px, 4.8vw, 28px) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto 8px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
  }

  .hero p {
    font-size: clamp(12px, 3.2vw, 14px) !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto 14px !important;
  }

  /* 5. KÉPEK KULTURÁLT MEGNÖVELT (300PX-ES) MAGASSÁGA */
  .split-media, 
  .card-media {
    width: 100% !important;
    height: 300px !important; /* A kért szép, magas, jól látható prémium méret */
    display: block !important;
    overflow: hidden !important;
  }

  .feature-media-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .feature-media-grid img, 
  .feature-mini-logo {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
  }

  .card-media img, .split-media img, img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  /* 6. VÉGLEGES ÉS RADIKÁLIS LIGHTBOX KISEBBÍTŐ FIX (AZONNALI MEGJELENÍTÉS LEVÁGÁS NÉLKÜL) */
  .lightbox img, 
  .modal img, 
  .fancybox-slide img, 
  .fancybox-content img,
  .fancybox-image,
  .mfp-img,
  div[class*="lightbox"] img,
  div[class*="fancybox"] img {
    width: 100% !important;
    max-width: 100vw !important; /* Szigorúan nem engedjük nagyobbra, mint a telefon szélessége */
    height: auto !important; /* Megtartja az eredeti fekvő képarányt, mint az image_60ee7d.jpg-n */
    max-height: 55vh !important; /* Radikálisan lekicsinyíti függőlegesen, hogy a teljes kép KINT LEGYEN */
    object-fit: scale-down !important; /* Kényszeríti a teljes fotó torzulásmentes összezsugorítását */
    display: block !important;
    margin: auto !important;
    
    /* Kiiktatjuk a JavaScript magasság-nyújtó parancsait */
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  /* Letiltjuk a külső hordozó dobozok magassági túlnyúlását is */
  .fancybox-content, .mfp-content, .fancybox-slide, .fancybox-stage {
    height: auto !important;
    max-height: 55vh !important;
    width: 92% !important;
    margin: auto !important;
  }
  

  /* 7. RESZPONZÍV SOROK TISZTA FÜGGŐLEGESÍTÉSE */
  .overview .split,
  .card-grid,
  .contact-inner,
  .feature-inline {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    overflow: hidden !important;
  }

  .overview, .highlights, .contact {
    padding: 50px 0 !important;
  }

  .contact-form button, .contact-form .btn, .btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
  }
}

@media (max-width: 900px) { 
  .site-header { overflow: visible !important; } 
}