/* =========================================================================
   ΔΗΜΟΣ ΚΟΝΙΤΣΑΣ — Ψηφιακός Οδηγός Επισκέπτη
   Design tokens: παλέτα εμπνευσμένη από την πέτρα του γεφυριού, τα νερά
   του Αώου και το πράσινο των χαραδρών. Το μοτίβο της καμάρας (μονότοξο
   γεφύρι) επαναλαμβάνεται ως δομικό στοιχείο σε όλη τη σελίδα.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  /* --- Χρώματα --- */
  --ink: #201e1a;
  --stone-900: #2c2a25;
  --stone-700: #4a463d;
  --stone-500: #7a7466;
  --stone-300: #c9c1ae;
  --limestone: #f2ecdd;
  --paper: #fbf8f0;
  --aoos-900: #16332e;
  --aoos-700: #2f6b63;
  --aoos-500: #4a8c82;
  --aoos-100: #dfeae7;
  --moss: #5c7a52;
  --clay: #a8551b;
  --clay-700: #8a4415;
  --gold: #c9922c;
  --line: rgba(33, 31, 27, 0.14);
  --line-soft: rgba(33, 31, 27, 0.08);
  --shadow-sm: 0 2px 10px -6px rgba(28, 26, 22, 0.3);
  --shadow: 0 18px 40px -22px rgba(28, 26, 22, 0.45);
  --shadow-lift: 0 28px 54px -20px rgba(28, 26, 22, 0.4);

  /* --- Τυπογραφία --- */
  --font-display: "Alegreya", "Noto Serif", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  /* --- Layout --- */
  --maxw: 1180px;
  --radius: 4px;
  --arch-radius: 999px 999px 10px 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--limestone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--stone-900);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--aoos-700);
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--clay);
  display: inline-block;
  transform: translateY(-0.2em);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------
   Header / Πλοήγηση — η υπογράμμιση του ενεργού συνδέσμου έχει σχήμα
   καμάρας αντί για ίσια γραμμή.
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--stone-900);
}

.brand-logo {
  height: 48px;
  width: auto;
  flex: none;
  display: block;
}

.brand-text {
  border-left: 1px solid var(--stone-300);
  padding-left: 12px;
}

@media (max-width: 640px) {
  .brand-logo { height: 40px; }
  .brand .brand-text { display: none; }
}

.footer-logo {
  display: block;
  width: 260px;
  height: auto;
  margin-bottom: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aoos-700);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--stone-700);
  position: relative;
  padding-bottom: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 5px;
  border-radius: var(--arch-radius);
  background: transparent;
  transition: background 0.2s ease;
}

.main-nav a:hover::after {
  background: var(--stone-300);
}

.main-nav a[aria-current="page"] {
  color: var(--aoos-700);
}

.main-nav a[aria-current="page"]::after {
  background: var(--clay);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ---------------------------------------------------------------------
   Hero — στρωματοποιημένο SVG βουνών, χαράδρας και της καμάρας του
   γεφυριού. Placeholder για πραγματική φωτογραφία (βλ. README, Φάση 3).
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--aoos-900) 0%, var(--aoos-700) 68%, var(--aoos-500) 100%);
  color: var(--paper);
  padding: 56px 0 0;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 24px;
}

.hero-content {
  padding-bottom: 56px;
}

.hero .eyebrow,
.page-hero-simple .eyebrow,
.poi-hero .eyebrow,
.route-hero .eyebrow {
  color: var(--aoos-100);
}
.hero .eyebrow::before,
.page-hero-simple .eyebrow::before,
.poi-hero .eyebrow::before,
.route-hero .eyebrow::before {
  background: var(--clay);
}

.hero h1 {
  color: #fff;
  max-width: 13ch;
  margin-top: 0.28em;
  letter-spacing: -0.01em;
}

.hero p.lead {
  max-width: 44ch;
  font-size: 1.14rem;
  color: var(--aoos-100);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* --- Λωρίδα γεγονότων: πραγματικά νούμερα του δήμου, όχι διακοσμητικά --- */
.hero-facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-fact span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--aoos-100);
}

/* --- Σκηνή γεφυριού: εικονογράφημα + επιπλέον κάρτα με στοιχείο του δήμου --- */
.hero-scene-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scene-wrap svg {
  width: 100%;
  height: 100%;
}

.hero-badge {
  position: absolute;
  left: -8px;
  bottom: 18px;
  background: rgba(251, 248, 240, 0.96);
  color: var(--stone-900);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lift);
  max-width: 190px;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--clay-700);
  line-height: 1;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--stone-700);
  line-height: 1.3;
}

.arch-path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: arch-draw 1.3s var(--ease) 0.3s forwards;
}

@keyframes arch-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-content > * {
  opacity: 0;
  animation: hero-rise 0.7s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.02s; }
.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.18s; }
.hero-content > *:nth-child(4) { animation-delay: 0.26s; }
.hero-content > *:nth-child(5) { animation-delay: 0.34s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-path {
    stroke-dashoffset: 0;
  }
  .hero-content > * {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-scene-wrap {
    aspect-ratio: 16 / 10;
    margin-top: 8px;
  }
  .hero-badge {
    left: 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--arch-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-clay {
  background: var(--clay);
  color: #fff;
}
.btn-clay:hover {
  box-shadow: 0 10px 20px -8px rgba(168, 85, 27, 0.6);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--stone-900);
}
.btn-ghost:hover {
  background: var(--limestone);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
}

.hero-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------------------------------------------------------------
   Ενότητες
   --------------------------------------------------------------------- */
.section {
  padding: 64px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--stone-700);
  font-size: 1.02rem;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------------
   Πλέγμα Σημείων Ενδιαφέροντος
   --------------------------------------------------------------------- */
.poi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 31, 27, 0.22);
}

.card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--cat-color, var(--aoos-500)) -75%, var(--aoos-100) 58%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aoos-700);
  position: relative;
  overflow: hidden;
}

.card-media svg {
  width: 40%;
  height: 40%;
  transition: transform 0.35s var(--ease);
}

.card:hover .card-media svg {
  transform: scale(1.08);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-media .cat-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(32, 30, 26, 0.68);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius);
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 2px;
}

.card-body .settlement {
  font-size: 0.8rem;
  color: var(--aoos-700);
  font-weight: 600;
}

.card-body p {
  color: var(--stone-700);
  font-size: 0.93rem;
  margin: 0;
  flex: 1;
}

.card-foot {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--clay-700);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  position: relative;
  padding-bottom: 3px;
}

.card-foot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.card:hover .card-foot::after,
.card:focus-visible .card-foot::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------------
   Κάρτες Διαδρομών — καμαρωτή κορυφή ως υπογραφικό στοιχείο
   --------------------------------------------------------------------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.route-card {
  position: relative;
  background: var(--stone-900);
  color: var(--limestone);
  border-radius: 34px 34px 6px 6px;
  padding: 34px 26px 26px;
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.route-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: radial-gradient(140px 90px at 50% -20px, var(--route-color, var(--aoos-500)), transparent 70%);
  opacity: 0.85;
}

.route-card .r-index {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--aoos-100);
}

.route-card h3 {
  position: relative;
  color: #fff;
  margin-top: 6px;
}

.route-card .subtitle {
  position: relative;
  color: var(--aoos-100);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.route-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--arch-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------------------------------------------------------------------
   Χάρτης preview στην αρχική
   --------------------------------------------------------------------- */
.map-teaser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.map-teaser .map-embed {
  height: 380px;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--stone-900);
  color: var(--limestone);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--aoos-500));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a {
  text-decoration: none;
  color: var(--aoos-100);
}
.site-footer a:hover {
  color: #fff;
}

.site-footer .foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: var(--stone-300);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Σελίδα Σημείου Ενδιαφέροντος (poi.html)
   --------------------------------------------------------------------- */
.poi-hero {
  background: linear-gradient(120deg, var(--stone-900) 45%, var(--aoos-900) 130%);
  color: var(--limestone);
  padding: 44px 0 40px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--aoos-100);
  margin-bottom: 14px;
}
.breadcrumb a {
  text-decoration: none;
  color: var(--aoos-100);
}
.breadcrumb a:hover {
  color: #fff;
}

.poi-hero h1 {
  color: #fff;
  margin-bottom: 6px;
}

.poi-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 48px 0 72px;
}

.poi-media-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(155deg, var(--cat-color, var(--aoos-500)) -60%, var(--aoos-100) 58%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aoos-700);
  margin-bottom: 28px;
}
.poi-media-placeholder svg {
  width: 22%;
}

.poi-media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.poi-body p {
  color: var(--stone-700);
  font-size: 1.02rem;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aoos-700);
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row .k {
  color: var(--stone-500);
}
.info-row .v {
  font-weight: 600;
  text-align: right;
}

.qr-box {
  text-align: center;
}

.qr-box img {
  width: 132px;
  height: 132px;
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.qr-box small {
  display: block;
  color: var(--stone-500);
  font-size: 0.76rem;
  word-break: break-all;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-list a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--arch-radius);
  background: var(--aoos-100);
  color: var(--aoos-900);
}
.chip-list a:hover {
  background: var(--aoos-500);
  color: #fff;
}

.mini-map {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------------
   Σελίδα Διαδρομής (route.html)
   --------------------------------------------------------------------- */
.route-hero {
  background: linear-gradient(180deg, var(--aoos-900), var(--aoos-700));
  color: #fff;
  padding: 44px 0 40px;
}

.route-hero h1 {
  color: #fff;
}

.stop-list {
  counter-reset: stop;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop-item {
  counter-increment: stop;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.stop-item:last-child {
  border-bottom: none;
}

.stop-item .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--aoos-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.stop-item .num::before {
  content: counter(stop);
}

.stop-item h3 {
  margin-bottom: 4px;
}

.stop-item p {
  color: var(--stone-700);
  margin: 0;
  font-size: 0.92rem;
}

a.stop-item:hover h3 {
  color: var(--aoos-700);
}

.route-full-map {
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------------
   Σελίδα Χάρτη (map.html)
   --------------------------------------------------------------------- */
.map-page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 72px);
}

.map-sidebar {
  border-right: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
  padding: 22px;
}

.map-sidebar h2 {
  font-size: 1.1rem;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aoos-700);
  margin-bottom: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.88rem;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--clay);
}

.route-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

#map-canvas {
  height: 100%;
  width: 100%;
}

@media (max-width: 860px) {
  .map-page-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .map-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 40vh;
  }
  #map-canvas {
    height: 60vh;
  }
  .poi-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Γενικά utilities
   --------------------------------------------------------------------- */
.page-hero-simple {
  background: linear-gradient(120deg, var(--stone-900) 45%, var(--aoos-900) 130%);
  color: var(--limestone);
  padding: 52px 0;
}
.page-hero-simple h1 {
  color: #fff;
  margin-bottom: 8px;
}
.page-hero-simple p {
  color: var(--aoos-100);
  max-width: 60ch;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  font-family: var(--font-body);
}

.popup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.popup-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aoos-700);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.popup-link:hover {
  text-decoration-color: currentColor;
}


/* ---------------------------------------------------------------------
   Ομαλή μετάβαση ανάμεσα στις σελίδες (View Transitions, Chrome/Edge/Safari).
   Το header και το footer μένουν σταθερά, η ένδειξη του μενού «γλιστράει»
   στη νέα θέση και το περιεχόμενο σβήνει/εμφανίζεται με μικρή κίνηση.
   Όπου δεν υποστηρίζεται, γίνεται απλό fade-in του περιεχομένου.
   --------------------------------------------------------------------- */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

.main-nav a[aria-current="page"]::after {
  view-transition-name: nav-indicator;
}

::view-transition-old(root) {
  animation: page-out 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: page-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

::view-transition-group(nav-indicator) {
  animation-duration: 0.45s;
  animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1);
}

::view-transition-group(site-header),
::view-transition-group(site-footer) {
  animation-duration: 0.3s;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@supports not (view-transition-name: none) {
  body > :not(.site-header):not(.site-footer) {
    animation: page-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* Οι κάρτες εμφανίζονται διαδοχικά όταν φορτώσουν από το API. */
.poi-grid > *,
.route-grid > *,
.routes-list > * {
  animation: page-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.poi-grid > :nth-child(2), .route-grid > :nth-child(2), .routes-list > :nth-child(2) { animation-delay: 0.04s; }
.poi-grid > :nth-child(3), .route-grid > :nth-child(3), .routes-list > :nth-child(3) { animation-delay: 0.08s; }
.poi-grid > :nth-child(4), .route-grid > :nth-child(4), .routes-list > :nth-child(4) { animation-delay: 0.12s; }
.poi-grid > :nth-child(5), .route-grid > :nth-child(5), .routes-list > :nth-child(5) { animation-delay: 0.16s; }
.poi-grid > :nth-child(n + 6), .route-grid > :nth-child(n + 6), .routes-list > :nth-child(n + 6) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  body > *,
  .poi-grid > *,
  .route-grid > *,
  .routes-list > * {
    animation: none !important;
  }
}

.poi-photo-extra {
  margin: 24px 0 32px;
}
.poi-photo-extra img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: var(--stone-100, #f3f0ea);
}
