/* ══════════════════════════════════════
   style.css – Ghid Turistic Marginea
   Stil: Rustic-Modern Bucovinean
══════════════════════════════════════ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --forest-dark: #1a3a2a;
  --forest: #2d5a3d;
  --clay: #a8623f;
  --sand: #c69c6d;
  --ink: #24211d;
  --cream: #f7f3ec;
  --cream-2: #efe7d8;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.section-eyebrow-light {
  color: var(--sand);
}

/* ══════════════════════════════════════
   BARA DE LIMBĂ – GLOBAL
   Fără chenar alb
══════════════════════════════════════ */

.lang-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.lang-bar .btn-lang {
  padding: 5px 17px;
  min-height: 32px;
  border: 2px solid var(--forest);
  border-radius: 20px;
  background: transparent;
  color: var(--forest);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-bar .btn-lang.active,
.lang-bar .btn-lang:hover {
  background: var(--forest);
  color: #fff;
}

/* ── HERO / PAGINI PRINCIPALE ── */
.hero-section {
  position: relative;
  min-height: 78vh;
  background: linear-gradient(rgba(26,58,42,0.35), rgba(26,58,42,0.75)), url('img/hero-marginea.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(0,0,0,0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.hero-sub1 {
  margin-top: 14px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 600;
  color: var(--sand);
}
.hero-sub2 {
  margin-top: 10px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.92;
  font-style: italic;
}
.hero-scroll-cue {
  margin-top: 40px;
  font-size: 1.6rem;
  animation: bounce 2s infinite;
  opacity: 0.85;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ── Despre comuna ── */
.about-commune {
  max-width: 1140px;
  margin: 60px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h2 {
  color: var(--forest-dark);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin-bottom: 16px;
  line-height: 1.3;
}
.about-text p {
  color: #3a352c;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-list {
  list-style: none;
  columns: 2;
  column-gap: 20px;
  margin: 14px 0 16px;
  padding: 0;
}
.about-list li {
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 600;
  padding: 5px 0 5px 22px;
  position: relative;
  break-inside: avoid;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clay);
}
.about-cta {
  font-style: italic;
  font-weight: 600;
  color: var(--forest-dark);
}

.about-video {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(26,58,42,0.18);
}
.about-video video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #000;
}

/* ── Galerie foto ── */
.about-gallery-section {
  max-width: 1140px;
  margin: 46px auto 0;
  padding: 0 24px;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.about-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.about-gallery img:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

/* ── Destinație Sucevița–Putna ── */
.destination-section {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
  color: #fff;
  padding: 64px 24px;
}
.destination-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.destination-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.destination-subtitle {
  font-size: 1rem;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 26px;
}
.destination-inner p {
  font-size: 0.97rem;
  line-height: 1.75;
  opacity: 0.94;
  margin-bottom: 16px;
}
.destination-highlight {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sand);
  margin-top: 22px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

/* ── Quicklinks ── */
.quicklinks-container {
  max-width: 1140px;
  margin: 46px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid #e4ddcc;
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(26,58,42,0.14);
}
.quick-icon {
  font-size: 1.8rem;
  background: var(--cream-2);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-text {
  flex: 1;
}
.quick-title {
  font-weight: 700;
  color: var(--forest-dark);
  font-size: 1rem;
}
.quick-sub {
  font-size: 0.85rem;
  color: #6b6456;
  margin-top: 2px;
}
.quick-arrow {
  font-size: 1.3rem;
  color: var(--clay);
  flex-shrink: 0;
}

/* ── Obiective turistice ── */
.objectives-section {
  max-width: 1140px;
  margin: 66px auto 0;
  padding: 0 24px;
  text-align: center;
}
.objectives-title {
  color: var(--forest-dark);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 34px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 60px;
}

.menu-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 6px 20px rgba(26,58,42,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: block;
}
.menu-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 14px 32px rgba(26,58,42,0.26);
}
.menu-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}
.menu-card:hover .card-bg {
  transform: scale(1.08);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,42,0.88) 0%, rgba(26,58,42,0.15) 55%, rgba(26,58,42,0) 100%);
}
.card-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.9);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ══════════════════════════════════════
   SUBPAGINI (Hărți, Evenimente)
══════════════════════════════════════ */

.subpage-header-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
}

.subpage-header-bar .back-btn {
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.subpage-header-bar .back-btn:hover {
  color: var(--clay);
}

.page-hero {
  background: var(--forest-dark);
  color: #fff;
  text-align: center;
  padding: 42px 24px 46px;
  margin-bottom: 44px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.page-hero p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero .section-eyebrow {
  color: var(--sand);
}

.subpage-content {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

/* ── Hărți ── */
.map-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.map-frame {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(26,58,42,0.18);
  border: 4px solid #fff;
  background: #fff;
}

.map-frame iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

.map-info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid #e4ddcc;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(26,58,42,0.08);
}

.map-card-icon {
  font-size: 1.8rem;
  background: var(--cream-2);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-card-text h3 {
  color: var(--forest-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.map-card-text p {
  color: #3a352c;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Evenimente ── */
.events-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid #e4ddcc;
  border-left: 5px solid var(--clay);
  border-radius: 16px;
  padding: 22px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26,58,42,0.12);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: var(--forest);
  color: #fff;
  border-radius: 14px;
  flex-shrink: 0;
}

.event-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

.event-info {
  flex: 1;
}

.event-info h3 {
  color: var(--forest-dark);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.event-info p {
  color: #3a352c;
  font-size: 0.95rem;
  line-height: 1.65;
}

.events-empty-note {
  margin-top: 30px;
  padding: 20px 24px;
  background: var(--cream-2);
  border-left: 4px solid var(--sand);
  border-radius: 10px;
}

.events-empty-note p {
  color: #5a5346;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
}

/* ── Footer ── */
.site-footer {
  background: var(--forest-dark);
  color: #fff;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 40px;
}

/* ══════════════════════════════════════
   DETAILS PAGE
══════════════════════════════════════ */
#details-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.details-header {
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 20;
  padding-top: 6px;
  background: transparent;
}

.details-header .back-btn {
  display: inline-block;
  margin: 10px 0 6px;
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

#obj-title {
  color: var(--forest-dark);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 18px 0 20px;
  text-align: center;
}

.slider-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.slider-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

#obj-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
}

#slider-prev { left: 12px; }
#slider-next { right: 12px; }

#slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 24px;
}

#slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8cfb9;
  cursor: pointer;
}

#slider-dots span.active {
  background: var(--forest);
}

.obj-description {
  color: #3a352c;
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 780px;
  margin: 0 auto;
}

.obj-description p {
  margin-bottom: 14px;
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,10,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  z-index: 1001;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-commune {
    grid-template-columns: 1fr;
  }
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-frame iframe {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 62vh;
    padding: 32px 18px;
  }
  .quicklinks-container {
    grid-template-columns: 1fr;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
  .about-list {
    columns: 1;
  }
  .destination-section {
    padding: 44px 18px;
  }
  .subpage-header-bar {
    padding: 10px 18px 4px;
  }
  .page-hero {
    padding: 32px 18px 36px;
    margin-bottom: 30px;
  }
  .subpage-content {
    padding: 0 18px;
  }
  .map-frame iframe {
    height: 320px;
  }
  .map-info-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .event-date {
    width: 64px;
  }
  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
  .lightbox-close {
    top: 14px;
    right: 18px;
    font-size: 1.8rem;
  }
  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }
  .lightbox-btn {
    width: 34px;
    height: 34px;
  }
}
/* ══════════════════════════════════════
   HERO: varianta compactă
   Reduce înălțimea și ajustează spațierea
══════════════════════════════════════ */

.hero-section {
  min-height: 48vh;           /* scade de la 78vh la 48vh */
  padding: 28px 20px;         /* mai puțin spațiu vertical */
  background-position: center 20%; /* plasează focal point mai sus */
}

.hero-content {
  max-width: 760px;
  padding-top: 6px;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 5.2vw, 2.6rem); /* reduce titlul pe ecrane mari */
  line-height: 1.08;
}

.hero-sub1 {
  font-size: clamp(0.9rem, 2.1vw, 1rem);
  margin-top: 10px;
}

.hero-sub2 {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}
/* ══════════════════════════════════════
   EVENIMENTE – stare "În curând"
══════════════════════════════════════ */
.events-empty-state {
  text-align: center;
  background: var(--white);
  border: 1px solid #e4ddcc;
  border-radius: 18px;
  padding: 60px 30px;
  max-width: 560px;
  margin: 0 auto;
}

.events-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.events-empty-state h2 {
  color: var(--forest-dark);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.events-empty-state p {
  color: #6b6456;
  font-size: 0.97rem;
  line-height: 1.7;
}