/* =====================================================================
   The Slow Road Armenia — site stylesheet
   Pure CSS, no framework, no JavaScript.

   Palette (Armenian-inspired: apricot / tuff stone / flag red & blue)
   ---------------------------------------------------------------------
   To change colours edit the variables in :root below.
   To change the font edit --font (Inter is loaded from Google Fonts in
   _Layout.cshtml; the system stack is the fallback).
   ===================================================================== */

:root {
  --apricot:        #F2A25C;   /* warm primary — buttons, highlights   */
  --apricot-deep:   #D9863B;   /* hover state for apricot              */
  --sand:           #EFE7DA;   /* tuff-stone beige — section bands     */
  --sand-light:     #FAF6EF;   /* very light beige — page background   */
  --charcoal:       #2B2B2B;   /* body text                            */
  --muted:          #6B645C;   /* secondary text                       */
  --red:            #A12A2A;   /* deep red — links, eyebrow labels     */
  --blue:           #1F3A5F;   /* deep blue — footer, headings         */
  --white:          #FFFFFF;
  --line:           #E2D9CA;   /* hairline borders                     */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(43, 43, 43, 0.08);
  --shadow-hover: 0 14px 30px rgba(43, 43, 43, 0.14);

  --container: 1140px;
  --nav-height: 72px;
}

/* ---------- Reset / base ------------------------------------------ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--sand-light);
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--blue);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover,
a:focus-visible { color: var(--blue); text-decoration: underline; }

ul { padding-left: 1.25rem; }

/* Accessible skip link (visible only on keyboard focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: var(--white);
  z-index: 200;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Visually hidden helper (used for the mobile-menu checkbox) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ----------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow { max-width: 760px; }

.section { padding: 4rem 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

/* Sections with an id are anchor targets — leave room for the sticky nav */
section[id] { scroll-margin-top: var(--nav-height); }

.section-head {
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.text-center { text-align: center; }
.section-foot { margin-top: 2.5rem; text-align: center; }

/* ---------- Buttons ------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
              transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--apricot);
  border-color: var(--apricot);
  color: var(--charcoal);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--apricot-deep);
  border-color: var(--apricot-deep);
  color: var(--charcoal);
  box-shadow: 0 10px 22px rgba(217, 134, 59, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  color: var(--blue);
}

.btn--outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Header / navigation ------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(43, 43, 43, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; color: var(--red); }

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--red) 0 33%, var(--blue) 33% 66%, var(--apricot) 66%);
  flex: 0 0 auto;
}

/* Hamburger button (a <label> for the hidden checkbox) */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-burger:hover { background: var(--sand); }
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Menu links */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: none;         /* hidden on mobile until the checkbox is checked */
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-links a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--charcoal);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--sand);
  color: var(--red);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--red);
  font-weight: 600;
}
.nav-links .nav-cta a {
  margin-top: 0.5rem;
  background: var(--apricot);
  color: var(--charcoal);
  text-align: center;
  font-weight: 600;
}
.nav-links .nav-cta a:hover { background: var(--apricot-deep); }

/* Checkbox hack — no JavaScript needed */
.nav-toggle:checked ~ .nav-links { display: flex; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Hero ---------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Tall enough to feel like a destination shot, capped so it never
     swallows a large monitor or vanishes on a landscape phone. */
  min-height: clamp(30rem, 76vh, 46rem);
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  background: var(--blue);
}
/* The photo. An <img> rather than a CSS background so the browser
   discovers it during HTML parse and can prioritise it (LCP). */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the Cascade and Ararat in frame on wide crops. */
  object-position: center 42%;
}
/* Scrim: strong enough for white text over a bright, busy illustration,
   weighted to the bottom so the buttons stay legible. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Vignette: darkens only behind the text block, so the photo stays
       bright at the edges instead of being flattened everywhere. */
    radial-gradient(ellipse 78% 62% at 50% 46%, rgba(12, 24, 42, 0.52), rgba(12, 24, 42, 0) 72%),
    linear-gradient(180deg, rgba(20, 35, 58, 0.52) 0%, rgba(20, 35, 58, 0.46) 38%, rgba(14, 26, 45, 0.86) 100%);
}
.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}
/* A light apricot tint, not --apricot: the brand orange only reaches
   2.9:1 on the scrim, this clears the 4.5:1 minimum for small text. */
.hero .eyebrow { color: #FFE3C4; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(10, 20, 35, 0.35);
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 auto 2rem;
  opacity: 0.95;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Cards --------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card figure { margin: 0; }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--line);
}
.card__body { padding: 1.25rem 1.4rem 1.5rem; }
.card__region {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.card h3 { margin-bottom: 0.4rem; }

/* Clickable card: the title link's ::after covers the whole card, so a click
   anywhere opens the detail page while screen readers hear one clean link. */
.card { position: relative; }
.card__link { color: inherit; }
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card__link:hover,
.card__link:focus-visible { color: var(--red); text-decoration: none; }
.card:focus-within { box-shadow: 0 0 0 3px var(--apricot), var(--shadow-hover); }
.card__link:focus-visible { outline: none; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Small info cards (Plan Your Trip) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--apricot);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p:last-child,
.info-card ul:last-child { margin-bottom: 0; }
.info-card ul { margin: 0.5rem 0 0; color: var(--muted); }

.note {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--sand);
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Alternating image / text sections ---------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.split + .split { margin-top: 4rem; }
.split figure { margin: 0; }
.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.split__text p:last-child { margin-bottom: 0; }

/* ---------- Why visit -------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}
.why-item {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.why-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--charcoal);
  font-weight: 700;
}
.why-item p { margin: 0; color: var(--muted); }

/* ---------- Call-to-action band ----------------------------------- */

.cta-band {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 1.75rem; }

/* ---------- Contact block ----------------------------------------- */

.contact-box {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-box p:last-child { margin-bottom: 0; }

/* ---------- Simple content pages (Privacy, Error) ----------------- */

.page-header {
  background: var(--sand);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 0.25rem; }
.page-header p { margin: 0; color: var(--muted); }

.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { color: var(--muted); }
.prose code {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--sand);
  font-size: 0.9em;
}

/* ---------- Footer ------------------------------------------------ */

.site-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--apricot); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid .brand { color: var(--white); margin-bottom: 0.75rem; }
.footer-grid p { font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Make the footer stick to the bottom on short pages */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page > main { flex: 1 0 auto; }

/* =====================================================================
   Admin — minimal login / dashboard layout (uses _AdminLayout.cshtml)
   Reuses the site palette and variables defined in :root above.
   ===================================================================== */

/* Full-viewport, centred wrapper */
.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--sand-light);
}

/* White card holding the form */
.admin-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 2rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-card h1 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form fields: labels and inputs stacked */
.admin-card form > div {
  margin-bottom: 1.1rem;
}
.admin-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--charcoal);
}
.admin-card input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-card input:focus {
  outline: none;
  border-color: var(--apricot);
  box-shadow: 0 0 0 3px rgba(242, 162, 92, 0.25);
}

/* Full-width primary button, matching the site "Start planning" style */
.admin-card button[type="submit"] {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1.75rem;
  border: 2px solid var(--apricot);
  border-radius: 999px;
  background: var(--apricot);
  color: var(--charcoal);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-card button[type="submit"]:hover,
.admin-card button[type="submit"]:focus-visible {
  background: var(--apricot-deep);
  border-color: var(--apricot-deep);
  box-shadow: 0 10px 22px rgba(217, 134, 59, 0.35);
}

/* Validation errors — small red text */
.admin-card .field-validation-error,
.admin-card .validation-summary-errors {
  display: block;
  margin-top: 0.35rem;
  color: var(--red);
  font-size: 0.85rem;
}
.admin-card .validation-summary-errors {
  margin-bottom: 1rem;
}
.admin-card .validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* "Back to site" link under the form */
.admin-back {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- Destination detail page (/destinations/{slug}) --------- */

/* Shorter, left-aligned hero with the title at the bottom of the photo. */
.hero--place {
  min-height: clamp(24rem, 62vh, 36rem);
  align-items: flex-end;
  text-align: left;
}
.hero--place::before {
  background: linear-gradient(180deg, rgba(20, 35, 58, 0.25) 0%, rgba(20, 35, 58, 0.15) 40%, rgba(14, 26, 45, 0.88) 100%);
}
.hero--place .hero__content {
  width: 100%;
  max-width: var(--container);
  padding: 6rem 1.25rem 2.75rem;
}
.hero--place h1 { margin-bottom: 0.5rem; }
.hero--place p { margin: 0; max-width: 60ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: #FFE3C4; }

/* Article + sidebar */
.place-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.place-article { max-width: 70ch; font-size: 1.05rem; }
.place-article h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 2.5rem; }
.place-article h2:first-child { margin-top: 0; }
.place-article .info-card { font-size: 1rem; }

.place-highlights { list-style: none; padding: 0; margin: 0 0 1rem; }
.place-highlights li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.9rem;
  border-bottom: 1px solid var(--line);
}
.place-highlights li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--apricot);
}

/* "At a glance" card */
.place-facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--apricot);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.place-facts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.place-facts dl { margin: 0 0 1.25rem; }
.place-facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.place-facts dd { margin: 0.15rem 0 0.9rem; }
.place-facts__btn { display: block; text-align: center; }
.place-facts__btn + .place-facts__btn { margin-top: 0.6rem; }

/* Photo slider (scroll-snap; slider.js adds arrows + thumbnails) */
.slider__stage { position: relative; }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--charcoal);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; }
.slider__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
.slider__slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease;
}
.slider__btn:hover,
.slider__btn:focus-visible { background: var(--apricot); }
.slider__btn--prev { left: 0.75rem; }
.slider__btn--next { right: 0.75rem; }
.slider__btn[hidden],
.slider__thumbs[hidden] { display: none; }
.slider__count {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}
.slider__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.slider__thumb {
  flex: 0 0 auto;
  width: 5.5rem;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.slider__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.slider__thumb:hover,
.slider__thumb.is-active { opacity: 1; }
.slider__thumb.is-active { border-color: var(--apricot); }

/* Map */
.place-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.place-map iframe {
  display: block;
  width: 100%;
  height: clamp(18rem, 45vh, 26rem);
  border: 0;
}
.place-map__link { margin-top: 0.75rem; font-size: 0.92rem; }

/* =====================================================================
   Responsive — mobile-first breakpoints
   ===================================================================== */

/* Tablet and up */
@media (min-width: 768px) {
  .section { padding: 5rem 0; }

  .card-grid,
  .info-grid,
  .why-grid,
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--reverse figure { order: 2; }
  .split--reverse .split__text { order: 1; }

  /* Horizontal navigation; hide the hamburger */
  .nav { flex-wrap: nowrap; }
  .nav-burger { display: none; }
  .nav-links {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }
  .nav-links .nav-cta a { margin: 0 0 0 0.5rem; padding: 0.55rem 1.1rem; border-radius: 999px; }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .card-grid,
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .hero { min-height: clamp(34rem, 80vh, 48rem); }
  .hero--place { min-height: clamp(26rem, 64vh, 38rem); }

  .place-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
  .place-facts { position: sticky; top: calc(var(--nav-height) + 1.5rem); }
}

/* =====================================================================
   Admin — Places management (wide card, buttons, table)
   Reuses the site palette (:root) and the base .btn defined above.
   Button colours are scoped to .admin-card so the public site's
   .btn--primary / .btn--ghost / .btn--outline styles are untouched.
   ===================================================================== */

/* Wider card for the list / create / edit pages.
   Login keeps the narrow .admin-card (it doesn't set CardClass). */
.admin-card--wide {
  max-width: 900px;
}

/* Inside admin, a bare .btn is a filled (apricot) button.
   The base .btn above already provides padding, radius and border. */
.admin-card .btn {
  background: var(--apricot);
  border-color: var(--apricot);
  color: var(--charcoal);
}
.admin-card .btn:hover,
.admin-card .btn:focus-visible {
  background: var(--apricot-deep);
  border-color: var(--apricot-deep);
  color: var(--charcoal);
  text-decoration: none;
}
.admin-card .btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.admin-card .btn-danger:hover,
.admin-card .btn-danger:focus-visible {
  background: #8A2323;   /* darker red */
  border-color: #8A2323;
  color: var(--white);
}

/* Places table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.admin-table th { font-weight: 600; }
.admin-table td:last-child { white-space: nowrap; text-align: right; }
.admin-table td:last-child a { margin-left: 0.75rem; }

/* Sub-heading that splits the place form into groups */
.admin-card .admin-subhead {
  margin: 2rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

/* Photo manager on the Edit place page */
.admin-hint { font-size: 0.92rem; color: var(--muted); }
.admin-flash {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: #E8F3E8;
  color: #235C23;
  font-size: 0.92rem;
}
.admin-flash--error { background: #F7E4E4; color: var(--red); }

.admin-photos {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.admin-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand-light);
}
.admin-photo--main { border: 3px solid var(--apricot); }
.admin-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.admin-photo__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--apricot);
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-photo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem;
}
.admin-photo__actions form { margin: 0; }
.admin-photo__actions button {
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}
.admin-photo__actions button:hover { border-color: var(--apricot); }
.admin-photo__actions .admin-photo__delete { color: var(--red); }

.admin-upload { margin-top: 0.5rem; }
.admin-upload input[type="file"] { margin-bottom: 0.75rem; }

/* Textarea matches the input styling from the login card above */
.admin-card textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-card textarea:focus {
  outline: none;
  border-color: var(--apricot);
  box-shadow: 0 0 0 3px rgba(242, 162, 92, 0.25);
}
