/* ==========================================================================
   ΜΕΡΟΠΗ ΠΩΓΩΝΙΟΥ (meropi-pogoniou.gr)
   Design System & Modern Stylesheet
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --primary-dark: #12221b;        /* Deep Epirote Forest */
  --primary: #1f3d30;             /* Highland Spruce */
  --primary-light: #2c5443;       /* Mountain Moss */
  --primary-accent: #3a6f58;      /* Pine Shadow */
  
  --gold-accent: #c9933b;         /* Antique Byzantine Gold */
  --gold-light: #e6b76a;          /* Sunlight on Stone */
  --gold-glow: rgba(201, 147, 59, 0.25);
  
  --terracotta: #b8502f;          /* Epirote Tile / Clay */
  --slate-dark: #1e262c;          /* Dark Slate Roof */
  --slate-mid: #384550;           /* Carved Stone Grey */
  --slate-light: #64748b;         /* Mountain Mist */
  
  --bg-sand: #fbf9f5;             /* Warm Limestone White */
  --bg-card: #ffffff;             /* Crisp Card Background */
  --bg-card-subtle: #f4efe6;      /* Sandstone tint */
  --bg-stone: #ece6dc;            /* Natural Cobblestone */
  
  --text-main: #1c2522;           /* Deep Charcoal Body Text */
  --text-muted: #566560;          /* Soft Subtitle Text */
  --text-light: #fbf9f5;          /* Off-white text on dark */
  
  --border-subtle: rgba(31, 61, 48, 0.12);
  --border-gold: rgba(201, 147, 59, 0.35);

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(18, 34, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 34, 27, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 34, 27, 0.12);
  --shadow-hover: 0 22px 50px rgba(18, 34, 27, 0.18);
  --shadow-gold: 0 8px 25px rgba(201, 147, 59, 0.3);

  /* Typography */
  --font-heading-title: 'Cinzel', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --header-height: 92px;
  --container-max: 1380px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Evening Mode Theme Overrides */
body.evening-mode {
  --primary-dark: #f0f6f2;
  --primary: #c9933b;
  --primary-light: #3d6652;
  --bg-sand: #0c1410;
  --bg-card: #14201a;
  --bg-card-subtle: #1b2c23;
  --bg-stone: #22372c;
  --text-main: #edf3ee;
  --text-muted: #a0b2a7;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
}

body.evening-mode h1,
body.evening-mode h2,
body.evening-mode h3,
body.evening-mode h4,
body.evening-mode h5,
body.evening-mode h6 {
  color: var(--text-main);
}

/* --- Base Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-sand);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sand);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-sand);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}

/* --- Utility Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.font-title {
  font-family: var(--font-heading-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-serif {
  font-family: var(--font-serif);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 147, 59, 0.12);
  color: var(--gold-accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--border-gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
  color: var(--primary-dark);
}
body.evening-mode .section-title {
  color: var(--text-light);
}

.section-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

/* --- Navigation Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(18, 34, 27, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background: rgba(18, 34, 27, 0.95);
  height: 76px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(201, 147, 59, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo-img {
  height: 64px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), height var(--transition-normal);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.brand-link:hover .site-logo-img {
  transform: scale(1.02);
}

.site-header.scrolled .site-logo-img {
  height: 52px;
  max-width: 320px;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  max-width: 440px;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-accent), #8f651b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading-title);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(201, 147, 59, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-heading-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-light);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.05rem;
}

.icon-btn:hover {
  background: var(--gold-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 147, 59, 0.4);
}

.icon-btn.playing {
  background: var(--gold-accent);
  color: #ffffff;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(201, 147, 59, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(201, 147, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 147, 59, 0); }
}

.btn-cta-nav {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold-accent), #9b6c1e);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(201, 147, 59, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-nav:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 147, 59, 0.45);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: #ffffff;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  background-image: linear-gradient(
      180deg,
      rgba(14, 28, 22, 0.75) 0%,
      rgba(14, 28, 22, 0.5) 45%,
      rgba(14, 28, 22, 0.95) 100%
    ),
    url('../images/hero_meropi.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #ffffff;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 20, 16, 0.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading-title);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-title .hero-title-main {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.hero-title .hero-title-accent,
.hero-title span {
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-light) 65%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 800px;
  margin: 0 auto 36px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-accent), #9e6c19);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(201, 147, 59, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-accent));
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(201, 147, 59, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

/* Hero Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: rgba(18, 34, 27, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 147, 59, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading-title);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- Live Weather & Mountain Status Bar --- */
.village-status-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.status-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.weather-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--bg-sand);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.weather-icon {
  font-size: 1.4rem;
  color: var(--gold-accent);
}

.weather-temp {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}
body.evening-mode .weather-temp {
  color: #ffffff;
}

.weather-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-badge i {
  color: var(--primary-light);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: blink-dot 1.8s infinite;
}

@keyframes blink-dot {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* --- Section Styling Base --- */
.section-padding {
  padding: 100px 0;
  position: relative;
}

.section-stone-bg {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* --- About & History Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.lead-p {
  font-size: 1.25rem !important;
  color: var(--text-main) !important;
  font-weight: 500;
  line-height: 1.7;
}

.historical-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.highlight-box {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.highlight-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold-accent);
}

.highlight-box h4 {
  font-family: var(--font-heading-title);
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.evening-mode .highlight-box h4 {
  color: var(--gold-light);
}

.highlight-box p {
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.about-visual {
  position: relative;
}

.visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.visual-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.visual-frame:hover img {
  transform: scale(1.04);
}

.visual-caption-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(18, 34, 27, 0.88);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #ffffff;
  border: 1px solid rgba(201, 147, 59, 0.4);
}

.visual-caption-floating h5 {
  color: var(--gold-light);
  font-family: var(--font-heading-title);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.visual-caption-floating p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Timeline Cards */
.timeline-section {
  margin-top: 80px;
}

.timeline-track {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-accent), var(--primary-light), var(--gold-accent));
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  width: 50%;
  padding: 24px 40px;
  box-sizing: border-box;
}

.timeline-step.left {
  left: 0;
  text-align: right;
}

.timeline-step.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 32px;
  width: 20px;
  height: 20px;
  background: var(--gold-accent);
  border: 4px solid var(--bg-card);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201, 147, 59, 0.5);
  z-index: 2;
}

.timeline-step.left .timeline-dot {
  right: -10px;
}

.timeline-step.right .timeline-dot {
  left: -10px;
}

.timeline-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-accent);
}

.timeline-era {
  display: inline-block;
  font-family: var(--font-heading-title);
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.timeline-card h4 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
body.evening-mode .timeline-card h4 {
  color: #ffffff;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Sights & Monuments Grid --- */
.sights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sight-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-accent);
}

.sight-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.sight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.sight-card:hover .sight-img-wrap img {
  transform: scale(1.08);
}

.sight-tag-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(18, 34, 27, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 147, 59, 0.3);
}

.sight-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sight-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
body.evening-mode .sight-title {
  color: #ffffff;
}

.sight-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.sight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sight-link-btn {
  color: var(--gold-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.sight-link-btn:hover {
  gap: 10px;
  color: var(--gold-light);
}

/* --- Nature & Hiking Trails Section --- */
.trails-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.trail-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.trail-filter-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-sand);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.trail-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trail-box {
  background: var(--bg-sand);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.trail-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-md);
}

.trail-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.diff-hard {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.diff-med {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.diff-easy {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.trail-box h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--primary-dark);
}
body.evening-mode .trail-box h4 {
  color: #ffffff;
}

.trail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.metric-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--primary);
  display: block;
}
body.evening-mode .metric-val {
  color: var(--gold-light);
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.trail-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.trail-btn {
  background: transparent;
  border: 1px solid var(--primary-light);
  color: var(--primary-light);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

body.evening-mode .trail-btn {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.trail-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Mountain Banner */
.nemertsika-feature-banner {
  margin-top: 50px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img-wrap {
  position: relative;
  height: 380px;
}

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

.feature-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 28, 22, 0.92) 0%, rgba(14, 28, 22, 0.65) 50%, rgba(14, 28, 22, 0.3) 100%);
  display: flex;
  align-items: center;
  padding: 50px;
  color: #ffffff;
}

.feature-banner-content {
  max-width: 580px;
}

.feature-banner-content h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.feature-banner-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- Culture & Polyphony Section --- */
.culture-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.polyphony-box {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 147, 59, 0.35);
}

.polyphony-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.unesco-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 147, 59, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.polyphony-box h3 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  margin-bottom: 16px;
  color: #ffffff;
}

.polyphony-box p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  line-height: 1.7;
}

/* Sound Interactive Bar */
.audio-player-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.audio-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-icon-pulse {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.audio-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.audio-sub {
  font-size: 0.78rem;
  color: var(--gold-light);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-sound-btn {
  background: var(--gold-accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.play-sound-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* Audio Visualizer Waves */
.sound-waves-animation {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.wave-bar {
  width: 3px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 3px;
  transition: height 0.2s ease;
}

.wave-bar.active {
  animation: equalize 1s infinite alternate;
}

.wave-bar:nth-child(2).active { animation-delay: 0.15s; }
.wave-bar:nth-child(3).active { animation-delay: 0.3s; }
.wave-bar:nth-child(4).active { animation-delay: 0.45s; }
.wave-bar:nth-child(5).active { animation-delay: 0.2s; }
.wave-bar:nth-child(6).active { animation-delay: 0.35s; }

@keyframes equalize {
  0% { height: 6px; }
  50% { height: 22px; }
  100% { height: 10px; }
}

/* Festivals Accordion */
.festivals-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.festivals-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
body.evening-mode .festivals-card h3 {
  color: #ffffff;
}

.festivals-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.festival-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-sand);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.festival-item:hover {
  border-color: var(--gold-accent);
  transform: translateX(4px);
}

.fest-date-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  flex-shrink: 0;
  min-width: 65px;
}

.fest-date-badge .day {
  font-size: 1.35rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.fest-date-badge .month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.fest-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}
body.evening-mode .fest-info h4 {
  color: #ffffff;
}

.fest-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Gastronomy Showcase --- */
.gastronomy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.gastronomy-img-stack {
  position: relative;
}

.gastronomy-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.gastronomy-main-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.gastronomy-floating-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--terracotta);
  color: #ffffff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(184, 80, 47, 0.4);
  font-family: var(--font-heading-title);
  font-size: 0.92rem;
  text-align: center;
  border: 2px solid #ffffff;
}

.gastro-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.gastro-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.gastro-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
}

.gastro-card-icon {
  font-size: 1.6rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.gastro-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
body.evening-mode .gastro-card h4 {
  color: #ffffff;
}

.gastro-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Interactive Gallery Section --- */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-btn {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.gallery-btn.active,
.gallery-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.gallery-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 28, 22, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 0.8rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Access, Map & Visitor Guide --- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.access-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.access-info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
body.evening-mode .access-info-card h3 {
  color: #ffffff;
}

.route-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.route-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(31, 61, 48, 0.3);
}

.step-content h5 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}
body.evening-mode .step-content h5 {
  color: #ffffff;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.quick-contacts-box {
  background: var(--bg-sand);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.quick-contacts-box h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-family: var(--font-heading-title);
  color: var(--primary);
}
body.evening-mode .quick-contacts-box h4 {
  color: var(--gold-light);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.88rem;
}

.contact-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.contact-mini-item i {
  color: var(--gold-accent);
}

/* Map Card */
.map-visual-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.map-embed-wrapper {
  height: 360px;
  position: relative;
  background: #e2e8f0;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-footer-details {
  padding: 24px;
}

.map-footer-details h4 {
  font-family: var(--font-heading-title);
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
body.evening-mode .map-footer-details h4 {
  color: #ffffff;
}

.map-coordinates-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-sand);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

/* --- Community & Contact Section --- */
.contact-section-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}

.contact-info-col h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
body.evening-mode .contact-info-col h3 {
  color: #ffffff;
}

.contact-info-col p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.adelfotita-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.adelfotita-card h4 {
  font-family: var(--font-heading-title);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
}
body.evening-mode .adelfotita-card h4 {
  color: var(--gold-light);
}

.contact-form-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-sand);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: #ffffff;
}
body.evening-mode .form-control:focus {
  background: var(--bg-card-subtle);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit-form {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 20px rgba(18, 34, 27, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, var(--gold-accent), #9b6c1e);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 147, 59, 0.35);
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(201, 147, 59, 0.25);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-family: var(--font-heading-title);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  font-family: var(--font-heading-title);
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-domain-badge {
  color: var(--gold-light);
  font-family: monospace;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 14, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-box {
  position: relative;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 16px;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  transition: color var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--gold-accent);
}

/* --- Trail Details Modal --- */
.trail-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.trail-modal.active {
  display: flex;
}

.trail-modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  max-height: 90vh;
  overflow-y: auto;
}

.trail-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.trail-modal-close:hover {
  color: var(--primary);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-accent);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
  }
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    border-right: none;
  }
  .sights-grid,
  .trail-cards-grid,
  .gallery-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .culture-split-grid,
  .gastronomy-grid,
  .access-grid,
  .contact-section-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 78px;
  }
  .site-logo-img {
    height: 50px;
    max-width: 280px;
  }
  .desktop-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(18, 34, 27, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(201, 147, 59, 0.3);
  }
  .desktop-nav.mobile-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-toggle {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .timeline-track::before {
    left: 20px;
  }
  .timeline-step {
    width: 100%;
    padding-left: 55px;
    padding-right: 15px;
    text-align: left !important;
  }
  .timeline-step.right {
    left: 0;
  }
  .timeline-step.left .timeline-dot,
  .timeline-step.right .timeline-dot {
    left: 10px;
    right: auto;
  }
  .sights-grid,
  .trail-cards-grid,
  .gallery-masonry-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2,
  .contacts-grid,
  .gastro-features-list,
  .historical-highlights {
    grid-template-columns: 1fr;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 12px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}
