/* ==========================================================================
   Lost in the Right Direction -- main stylesheet
   Sections:
   1. Design tokens         6. Buttons & forms       11. Place detail chrome
   2. Reset & base          7. Header & navigation    12. Widgets & sidebar
   3. Typography            8. Hero cover             13. Footer
   4. Layout & grid         9. Cards                  14. Misc pages
   5. Utilities            10. Section headings       15. Responsive helpers
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  /* Color */
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-text: #131a22;
  --color-text-muted: #5b6672;
  --color-text-faint: #8b95a1;
  --color-border: #e5e9ee;
  --color-border-strong: #d3d9e0;

  --color-accent: #00c6ff;
  --color-accent-dark: #0089b3;
  --color-accent-ink: #003847;
  --color-accent-tint: #e3f8ff;
  --gradient-accent: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);

  --color-navy: #0b1f33;
  --color-navy-2: #122b45;
  --color-navy-text: #cfe4f2;

  --color-rating: #00a8e0;
  --color-danger: #e34850;
  --color-success: #1fa971;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(11, 31, 51, 0.35);
  --shadow-focus: 0 0 0 3px rgba(0, 198, 255, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  --fs-0: 0.833rem;
  --fs-1: 1rem;
  --fs-2: 1.2rem;
  --fs-3: 1.44rem;
  --fs-4: 1.75rem;
  --fs-5: 2.15rem;
  --fs-6: 2.7rem;
  --fs-7: 3.4rem;
  --fs-8: 4.2rem;

  --container-w: 82rem;
  --container-pad: var(--space-5);

  --header-h: 4.5rem;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Components like .card set their own `display` (flex/grid/etc.), which
   is a normal-priority author rule and silently wins over the browser's
   default `[hidden] { display: none }` UA rule on specificity/source-order
   ties -- so any hideable component needs this reasserted explicitly, or
   `hidden` becomes a no-op that still renders the element. */
[hidden] { display: none !important; }

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--color-accent-dark); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--color-navy); }
a.plain, a.card-link, .no-underline { text-decoration: none; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--color-accent); color: #04222c; }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
}
.screen-reader-text:focus {
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  clip: auto !important; clip-path: none; color: var(--color-text); display: block;
  font-size: 0.9rem; height: auto; left: 1rem; line-height: normal; padding: 1rem;
  top: 1rem; width: auto; z-index: 100000;
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-6); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-0);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-dark);
}
/* On a photo hero, the accent blue can wash out against light images --
   white with a soft shadow reads reliably no matter what's behind it. */
.hero-cover .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }

.hero-region-highlight {
  color: #fff; border-bottom: 2px solid var(--color-accent); padding-bottom: 0.08em;
}

.lede { font-size: var(--fs-2); color: var(--color-text-muted); }

.entry-content, .page-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: var(--space-10); }
.entry-content h3 { margin-top: var(--space-8); }
.entry-content ul, .entry-content ol { margin: 0 0 var(--space-4) 1.25rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content a { text-decoration-color: var(--color-accent); }
.entry-content img { border-radius: var(--radius-md); }
.entry-content figure { margin: var(--space-6) 0; }
.entry-content figcaption { font-size: var(--fs-0); color: var(--color-text-muted); text-align: center; margin-top: var(--space-2); }
.entry-content blockquote {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-accent); background: var(--color-accent-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic;
}
.entry-content table { margin: var(--space-6) 0; font-size: 0.95rem; }
.entry-content table caption { text-align: left; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.entry-content table th, .entry-content table td { padding: 0.6em 0.8em; border: 1px solid var(--color-border); text-align: left; }
.entry-content table tr:nth-child(even) { background: var(--color-bg); }

/* -------------------------------------------------------------------------
   4. Layout & grid
   ------------------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: var(--container-pad);
}
.container-narrow { max-width: 52rem; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1 1 auto; }

.section { padding-block: var(--space-16); }
.section-tight { padding-block: var(--space-10); }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.layout-with-sidebar {
  display: grid; grid-template-columns: 1fr; gap: var(--space-10);
}
.layout-with-sidebar.no-sidebar { grid-template-columns: 1fr; max-width: var(--container-narrow, 52rem); margin-inline: auto; }

/* auto-fill (not auto-fit) intentionally: auto-fit collapses empty tracks
   and lets the actual cards stretch to fill the row, which is exactly what
   blows up a lone itinerary/region card to full width when there are only
   1-2 in a row. auto-fill keeps the unfilled tracks in the layout instead,
   so a short row just sizes its real cards normally and leaves blank
   space rather than oversizing them. */
.grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.grid.grid-loose { gap: var(--space-8); }
.grid.grid-tight { gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.grid-cols-2 { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
.grid-places { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.cluster-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* -------------------------------------------------------------------------
   5. Utilities
   ------------------------------------------------------------------------- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.balance { text-wrap: balance; }
.no-sidebar .content-area { max-width: var(--container-w); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden-mobile { display: none; }

/* -------------------------------------------------------------------------
   6. Buttons & forms
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.6em; border-radius: var(--radius-pill); border: none;
  cursor: pointer; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent); color: #04222c; box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-primary:focus { color: #04222c; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: inherit; border: 1.5px solid currentColor;
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline {
  background: transparent; color: var(--color-navy); border: 1.5px solid var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-accent-dark); color: var(--color-accent-dark); }
.btn-sm { padding: 0.55em 1.15em; font-size: 0.85rem; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-2); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 0.75em 1em; border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm); background: var(--color-surface); font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--color-accent); box-shadow: var(--shadow-focus); outline: none; }
textarea { min-height: 8em; resize: vertical; }
.field { margin-bottom: var(--space-5); }
.field-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }

.search-form { position: relative; display: flex; }
.search-form .search-field { padding-right: 3em; border-radius: var(--radius-pill); }
.search-form .search-submit {
  position: absolute; right: 0.35em; top: 50%; transform: translateY(-50%);
  width: 2.4em; height: 2.4em; border-radius: 50%; border: none; background: var(--gradient-accent);
  color: #04222c; display: flex; align-items: center; justify-content: center;
}

/* -------------------------------------------------------------------------
   7. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500; height: var(--header-h);
  display: flex; align-items: center; background: rgba(11, 31, 51, 0.82);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.site-header.is-transparent { background: transparent; border-color: transparent; box-shadow: none; }
.site-header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }

.brand { display: inline-flex; align-items: center; gap: 0.6em; text-decoration: none; color: #fff; }
.brand img { width: 2.35rem; height: 2.35rem; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  color: #fff; line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }

.main-navigation { display: flex; align-items: center; }
#primary-menu { display: flex; align-items: center; gap: var(--space-6); }
#primary-menu > li { position: relative; }
#primary-menu > li > a {
  display: block; padding: 0.5em 0; color: rgba(255,255,255,0.82); text-decoration: none;
  font-weight: 500; font-size: 0.95rem; transition: color 0.2s var(--ease);
}
#primary-menu > li > a:hover, #primary-menu > li.current-menu-item > a, #primary-menu > li.current_page_item > a { color: #fff; }
#primary-menu > li.current-menu-item > a, #primary-menu > li.current_page_item > a { position: relative; }
#primary-menu > li.current-menu-item > a::after, #primary-menu > li.current_page_item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.65em; height: 2px; background: var(--color-accent); border-radius: 2px;
}
#primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 13rem; margin-top: 0.75rem; padding: 0.5rem;
  background: var(--color-navy-2); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s var(--ease);
}
#primary-menu li:hover > .sub-menu, #primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#primary-menu .sub-menu a { display: block; padding: 0.6em 0.75em; border-radius: var(--radius-sm); color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; }
#primary-menu .sub-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Needs to stay above .nav-backdrop (z-index: 490) and the drawer itself
   (z-index: auto), or the menu-toggle button -- which is also the close
   control, its icon swaps to an X when open -- gets visually and
   interactively covered by the backdrop while the mobile menu is open. */
.nav-utility { display: flex; align-items: center; gap: var(--space-3); position: relative; z-index: 501; }
.nav-search-toggle, .nav-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: #fff; font-size: 1rem;
  transition: background 0.2s var(--ease);
}
.nav-search-toggle:hover, .nav-menu-toggle:hover { background: rgba(255,255,255,0.18); }
.nav-menu-toggle { display: none; }

.nav-search-panel {
  position: absolute; top: 100%; right: 0; left: 0; padding: var(--space-4);
  background: var(--color-navy-2); border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.2s var(--ease);
}
.nav-search-panel.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-search-panel form { max-width: 30rem; margin-inline: auto; }
.nav-search-panel input[type=search] { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
.nav-search-panel input[type=search]::placeholder { color: rgba(255,255,255,0.6); }

@media screen and (max-width: 63.99em) {
  .nav-menu-toggle { display: inline-flex; }
  .main-navigation { position: fixed; inset: 0 0 0 auto; width: min(22rem, 88vw); height: 100dvh;
    background: var(--color-navy); padding: calc(var(--header-h) + var(--space-6)) var(--space-6) var(--space-6);
    transform: translateX(100%); transition: transform 0.35s var(--ease); overflow-y: auto;
    box-shadow: -20px 0 40px rgba(0,0,0,0.3);
  }
  .main-navigation.is-open { transform: translateX(0); }
  #primary-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  #primary-menu > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  #primary-menu > li > a { padding: 0.9em 0; font-size: 1.05rem; }
  #primary-menu > li.current-menu-item > a::after { display: none; }
  #primary-menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; margin: 0 0 0.5em; padding: 0 0 0 1em; display: none;
  }
  #primary-menu li.is-expanded > .sub-menu { display: block; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(5, 13, 22, 0.55); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease); z-index: 490; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* -------------------------------------------------------------------------
   8. Hero cover component
   ------------------------------------------------------------------------- */
.hero-cover {
  position: relative; color: #fff; display: flex; align-items: flex-end;
  min-height: 34rem; padding-top: var(--header-h);
  background-color: var(--color-navy); overflow: hidden;
}
.hero-cover.hero-tall { min-height: 46rem; }
.hero-cover.hero-home {
  /* The sticky nav already reserves var(--header-h) of space in normal
     flow above this element, so (unlike the padding-top: var(--header-h)
     every other .hero-cover uses to clear an overlapping nav) this one
     must not add that space again or its bottom row overflows the fold.
     No max-height: this must always fill exactly what's left of the
     viewport below the nav, or a capped height leaves a dead gap of
     empty background between the hero and the content section below it
     on any screen taller than the cap. */
  height: calc(100dvh - var(--header-h)); min-height: 34rem;
  align-items: stretch; padding-top: 0;
}
.hero-home .hero-cover-inner {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding-block: var(--space-10) var(--space-8);
}
.hero-home-bottom { flex: none; }
/* Stronger scrim than other hero pages -- the homepage hero rotates
   through many different photos, some quite bright, and needs to
   guarantee text contrast across all of them rather than one known image. */
.hero-home .hero-cover-scrim {
  background: linear-gradient(180deg, rgba(6,17,29,0.55) 0%, rgba(6,17,29,0.45) 35%, rgba(6,17,29,0.92) 100%);
}
.hero-cover-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: opacity 1.1s ease;
}
.hero-cover-bg.is-outgoing { opacity: 0; }
.hero-cover-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,17,29,0.35) 0%, rgba(6,17,29,0.25) 35%, rgba(6,17,29,0.88) 100%);
}
.hero-cover-inner { position: relative; z-index: 2; width: 100%; padding-block: var(--space-12) var(--space-10); }
.hero-breadcrumb { margin-bottom: var(--space-4); font-size: 0.85rem; }
.hero-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb .sep { margin: 0 0.4em; color: rgba(255,255,255,0.4); }
.hero-cover h1 { font-size: var(--fs-8); margin-bottom: var(--space-4); text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-cover .hero-subtitle { font-size: var(--fs-2); max-width: 46rem; color: rgba(255,255,255,0.88); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-meta-badge {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.5em 1em;
  background: rgba(6,17,29,0.55); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill); font-size: 0.85rem; backdrop-filter: blur(6px);
  color: #fff; text-decoration: none;
}
/* .hero-meta-badge is also used as a plain <span> (region/city/itinerary
   hero badges), which already inherit white from .hero-cover with no
   issue -- this rule only matters for the <a> variant (homepage featured-
   itinerary link), which would otherwise fall back to the site's blue
   link color instead of the white text every other hero label uses. */
.hero-meta-badge:hover, .hero-meta-badge:focus {
  color: #fff; background: rgba(6,17,29,0.72); border-color: rgba(255,255,255,0.35);
}
.hero-meta-badge i { color: var(--color-accent); }
.hero-cta { margin-top: var(--space-8); }
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: var(--space-6); transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 1.5rem; animation: hero-bounce 2.2s infinite;
}
@keyframes hero-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hero-region .hero-cover-inner { max-width: var(--container-w); margin-inline: auto; padding-inline: var(--container-pad); }

/* -------------------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------------------- */
.card {
  background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
a.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }

.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
a.card:hover .card-media img { transform: scale(1.06); }
.card-media-tag {
  position: absolute; top: 0.75rem; left: 0.75rem; background: rgba(11,31,51,0.75); color: #fff;
  padding: 0.3em 0.8em; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-title { font-size: 1.1rem; margin: 0; color: var(--color-text); }
.card-sub { font-size: 0.85rem; color: var(--color-text-muted); }
.card-excerpt { font-size: 0.92rem; color: var(--color-text-muted); }
.card-footer { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--color-text-faint); }

.card-guide .card-media { aspect-ratio: 1 / 1; }
.card-itinerary .card-media { aspect-ratio: 16 / 10; }

.card-place {
  display: flex; gap: var(--space-4); padding: var(--space-4); align-items: flex-start;
}
.card-place .card-media { width: 6.5rem; height: 6.5rem; flex: none; border-radius: var(--radius-sm); aspect-ratio: auto; }
.card-place .card-body { padding: 0; gap: var(--space-1); }
.card-place .card-title { font-size: 1rem; }

.grid-link-panel, .card-link-panel { text-decoration: none; color: inherit; display: block; }

/* -------------------------------------------------------------------------
   10. Section headings
   ------------------------------------------------------------------------- */
.section-heading {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-heading h2 { display: flex; align-items: center; gap: 0.5em; margin: 0; }
.section-heading h2 i { color: var(--color-accent-dark); font-size: 0.85em; }
.section-heading .section-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.section-block { margin-bottom: var(--space-16); }
.section-block:last-child { margin-bottom: 0; }

.show-more-toggle {
  display: inline-flex; align-items: center; gap: 0.5em; margin-top: var(--space-6);
  background: none; border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-pill);
  padding: 0.7em 1.4em; color: var(--color-accent-dark); font-weight: 600; font-size: 0.9rem;
}
.show-more-toggle:hover { border-color: var(--color-accent); background: var(--color-accent-tint); }

/* -------------------------------------------------------------------------
   11. Place detail chrome
   ------------------------------------------------------------------------- */
.place-header { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.place-title { display: flex; align-items: center; gap: 0.5em; }
.place-title i { color: var(--color-accent-dark); font-size: 0.75em; }

.rating { display: inline-flex; gap: 0.25em; color: var(--color-rating); margin: 0; }
.rating i { font-size: 0.7em; }
.rating.rating-empty { color: var(--color-text-faint); }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4em; background: var(--color-bg);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
  padding: 0.35em 0.9em; border-radius: var(--radius-pill); font-size: 0.8rem; text-decoration: none;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); background: var(--color-accent-tint); }
.chip-region { background: var(--color-accent-tint); color: var(--color-accent-ink); border-color: transparent; }

.place-media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-8); aspect-ratio: 16/8; }
.place-media img { width: 100%; height: 100%; object-fit: cover; }

.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.info-card h2 { font-size: var(--fs-2); margin-bottom: var(--space-4); }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75em; font-size: 0.95rem; }
.contact-list i { width: 1.25em; text-align: center; color: var(--color-accent-dark); margin-top: 0.25em; }
.contact-list a { color: var(--color-text); text-decoration: none; }
.contact-list a:hover { color: var(--color-accent-dark); }

.hours-widget { margin-top: var(--space-4); }
.hours-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.hours-list .day-hours { display: none; padding: 0.3em 0; border-bottom: 1px dashed var(--color-border); }
.hours-list .day-hours.today { display: flex; justify-content: space-between; font-weight: 600; color: var(--color-accent-ink); border-bottom: none; }
.hours-list.is-expanded .day-hours { display: flex; justify-content: space-between; }
.hours-toggle { margin-top: var(--space-2); background: none; border: none; color: var(--color-accent-dark); font-size: 0.85rem; font-weight: 600; padding: 0; }

.map-embed { width: 100%; height: 20rem; border-radius: var(--radius-md); overflow: hidden; margin: var(--space-6) 0; background: var(--color-border); }

.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(14rem,1fr)); }
.related-list a { display: block; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-text); font-weight: 600; transition: all .2s var(--ease); }
.related-list a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.return-link { display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: var(--space-6); font-size: 0.9rem; font-weight: 600; text-decoration: none; }

/* -------------------------------------------------------------------------
   12. Widgets & sidebar
   ------------------------------------------------------------------------- */
.widget-area { display: flex; flex-direction: column; gap: var(--space-8); }
.widget { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.05rem; margin-bottom: var(--space-4); }
.widget select { max-width: 100%; }

.rating-legend { width: 100%; font-size: 0.88rem; border-collapse: collapse; }
.rating-legend td { padding: 0.5em 0.25em; border-bottom: 1px solid var(--color-border); }
.rating-legend tr:last-child td { border-bottom: none; }
.rating-legend .rating { color: var(--color-rating); }

.about-widget p { font-size: 0.95rem; }
.donate-widget { text-align: center; }
.donate-widget img { margin-inline: auto; }

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

/* -------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.78); padding-block: var(--space-16) var(--space-10); }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--space-10); grid-template-columns: 1fr; margin-bottom: var(--space-10); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 26rem; margin-top: var(--space-4); }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); }
.footer-link-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.social-links.centered { justify-content: center; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; background: rgba(255,255,255,0.08); transition: all 0.2s var(--ease);
  text-decoration: none;
}
.social-links a:hover { background: var(--color-accent); color: #04222c; transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   14. Misc pages: home, contact, bios, comments, search, 404
   ------------------------------------------------------------------------- */
.latest-posts-list { display: flex; flex-direction: column; gap: var(--space-3); }
.latest-posts-list li { display: flex; align-items: baseline; gap: 0.9em; }
.latest-posts-list .post-date { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; flex: none; width: 3.6em; }
.latest-posts-list a { color: rgba(255,255,255,0.92); text-decoration: none; font-weight: 500; }
.latest-posts-list a:hover { color: var(--color-accent); }

.home-glass-search { background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-pill); }
.home-glass-search .search-field { background: transparent; border: none; color: #fff; }
.home-glass-search .search-field::placeholder { color: rgba(255,255,255,0.7); }

.country-toc { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(11rem,1fr)); margin-bottom: var(--space-10); }
.country-toc a { display: block; padding: 0.6em 1em; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.country-toc a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.country-header { margin-top: var(--space-12); scroll-margin-top: calc(var(--header-h) + 1rem); }

.bio-grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(16rem,1fr)); margin-top: var(--space-8); }
.bio-card { text-align: center; }
.bio-card img { width: 9rem; height: 9rem; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-4); box-shadow: var(--shadow-md); }
.bio-card h3 { margin-bottom: var(--space-1); }
.bio-card .bio-role { color: var(--color-accent-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-3); }
.bio-card p { color: var(--color-text-muted); font-size: 0.95rem; text-align: left; }

.contact-layout { display: grid; gap: var(--space-10); grid-template-columns: 1fr; }
#form-content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); margin-bottom: var(--space-5); font-weight: 600; display: none; }
.form-status.is-success { display: block; background: rgba(31,169,113,0.12); color: var(--color-success); }
.form-status.is-error { display: block; background: rgba(227,72,80,0.12); color: var(--color-danger); }

.currency-converter { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); max-width: 26rem; }

.comments-area { margin-top: var(--space-12); padding-top: var(--space-10); border-top: 1px solid var(--color-border); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: var(--space-4) 0 0 var(--space-6); padding: 0; }
.comment-body { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.comment-reply-title { cursor: pointer; }

.page-header { margin-bottom: var(--space-8); }
.page-title { font-size: var(--fs-6); }

.not-found-page { text-align: center; padding-block: var(--space-20); }
.not-found-page .search-form { max-width: 28rem; margin: var(--space-8) auto 0; }

.tag-archive-header, .search-header { margin-bottom: var(--space-8); }

.entry-meta { font-size: 0.85rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: var(--space-3); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-footer { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-text-muted); }
.entry-footer a { color: inherit; }

.item-tooltip {
  display: none; position: fixed; max-width: 22rem; padding: var(--space-4);
  background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border); z-index: 950; font-size: 0.88rem;
}
.item-tooltip.is-visible { display: block; }
.item-tooltip .rating { margin-top: var(--space-2); }

.pagination, .nav-links { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-10); font-weight: 600; }

/* -------------------------------------------------------------------------
   15. Responsive helpers (mobile-first breakpoints: 36em / 56em / 65em / 80em)
   ------------------------------------------------------------------------- */
@media screen and (min-width: 36em) {
  .bio-card p { text-align: center; }
}

@media screen and (min-width: 56em) {
  h1 { font-size: var(--fs-7); }
  .hero-cover h1 { font-size: var(--fs-8); }
  .grid-cols-2 { grid-template-columns: 1.6fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 2.2fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .visually-hidden-mobile { display: initial; }
}

@media screen and (min-width: 65em) {
  .container { padding-inline: var(--space-8); }
  .card-place { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .main-navigation, .site-footer, .nav-search-panel, .hero-scroll-cue { display: none !important; }
  .hero-cover { color: var(--color-text); min-height: auto; padding-top: 0; }
  .hero-cover-scrim, .hero-cover-bg { display: none; }
}
