/* AudioToursIreland.ie demo — base stylesheet */
:root {
  --emerald: #1B5E3F;
  --emerald-dark: #103a25;
  --gold: #C8A044;
  --gold-light: #E5C570;
  --cream: #F8F4E9;
  --charcoal: #2A2722;
  --muted: #7B7268;
  --border: #DDD3C2;
  --planned: #E68A1E;   /* orange dot */
  --live: #2BA84A;       /* green dot */
  --white: #ffffff;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--charcoal); line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.1; }
a { color: var(--emerald); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header --- */
.site-header {
  background: var(--cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-heading); font-size: 1.4rem; color: var(--emerald); font-weight: 600; text-decoration: none; }
.brand em { color: var(--gold); font-style: italic; font-weight: 400; }
.brand__mark { display: inline-block; width: 32px; height: 32px; background: var(--emerald); color: var(--gold-light); border-radius: 50%; line-height: 32px; text-align: center; font-size: .8rem; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.nav__links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav__links a { color: var(--charcoal); text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav__links a:hover { color: var(--gold); }
.demo-badge { background: var(--planned); color: white; padding: .25rem .55rem; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: var(--cream);
  padding: 3rem 0 2rem;
  position: relative;
  text-align: center;
}
.hero h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1rem; }
.hero p { color: rgba(248,244,233,0.85); max-width: 56ch; margin: 0 auto 1.25rem; font-size: 1.05rem; }
.hero .eyebrow { color: var(--gold-light); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: .8rem; display: inline-block; }

/* --- Map --- */
#map {
  width: 100%;
  height: 600px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #cfe1d2;
}
.map-legend {
  background: var(--cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.map-legend__row { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; justify-content: center; font-size: .9rem; }
.legend-dot { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px white, 0 0 0 3px rgba(0,0,0,0.2); }
.legend-dot--planned::before { background: var(--planned); }
.legend-dot--live::before { background: var(--live); }
.legend-counts { color: var(--muted); font-size: .85rem; }

/* Custom Leaflet markers — coloured circles */
.atc-marker {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.atc-marker--planned { background: var(--planned); }
.atc-marker--live { background: var(--live); animation: pulse 2.5s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 0 0 8px rgba(43,168,74,0.25); }
}
.leaflet-popup-content-wrapper { border-radius: 4px; }
.leaflet-popup-content { font-family: var(--font-body); font-size: .85rem; }
.leaflet-popup-content strong { font-family: var(--font-heading); font-size: 1rem; color: var(--emerald); }
.leaflet-popup-content .popup-status { display: inline-block; padding: 1px 8px; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; margin-top: 4px; }
.leaflet-popup-content .popup-status--planned { background: #FCE5C8; color: #9A5811; }
.leaflet-popup-content .popup-status--live { background: #D2EFD9; color: #1A6B2E; }

/* --- Sections --- */
section.section { padding: 3rem 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--emerald { background: var(--emerald); color: var(--cream); }
.section--emerald h2, .section--emerald h3 { color: var(--cream); }
.section-title { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-title .eyebrow { color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.section-title h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: .25rem 0 .8rem; color: var(--emerald); }

/* Tour cards grid */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tour-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--charcoal);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.tour-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.18); border-color: var(--gold); }
.tour-card__county { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.tour-card__name { font-family: var(--font-heading); font-size: 1.25rem; color: var(--emerald); margin: .35rem 0 .5rem; }
.tour-card__summary { font-size: .85rem; color: var(--charcoal); line-height: 1.5; }
.tour-card__status { position: absolute; top: 1rem; right: 1rem; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }
.tour-card__status--planned { background: #FCE5C8; color: #9A5811; }
.tour-card__status--live { background: #D2EFD9; color: #1A6B2E; }

/* --- Footer --- */
.site-footer { background: var(--emerald-dark); color: rgba(248,244,233,0.7); padding: 2rem 0; font-size: .85rem; text-align: center; margin-top: 3rem; }
.site-footer a { color: var(--gold-light); }

/* --- Tour player page --- */
.player-hero {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: var(--cream);
  padding: 2rem 0;
}
.player-hero h1 { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.player-hero .breadcrumb { font-size: .82rem; color: rgba(248,244,233,0.7); margin-bottom: .5rem; }
.player-hero .breadcrumb a { color: rgba(248,244,233,0.85); text-decoration: none; }

.player {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin: 2rem 0;
}
.player__controls { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: .7rem 1.2rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; border: none; text-decoration: none;
  font-family: var(--font-body);
}
.btn--primary { background: var(--gold); color: white; }
.btn--primary:hover { background: var(--gold-light); }
.btn--outline { background: transparent; border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: white; }
.btn--ghost { background: transparent; color: var(--emerald); }
.btn--lg { padding: .9rem 1.6rem; font-size: 1rem; }

.player__meta { display: flex; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.player__meta select, .player__meta input[type=range] { font-family: inherit; padding: .25rem .4rem; }
.player__status { font-size: .85rem; color: var(--muted); padding: .5rem 0; }

.transcript { padding: 1.5rem 0; max-width: 70ch; }
.transcript p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }

/* Coming soon variant */
.coming-soon {
  background: linear-gradient(135deg, #FFF1E0 0%, #FCE5C8 100%);
  border: 1px dashed var(--planned);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.coming-soon h2 { color: #9A5811; }
.coming-soon p { color: #6B3F0E; max-width: 50ch; margin: 0.5rem auto; }
