@view-transition {
  navigation: auto;
}

:root {
  --bg: #f9f7f4;
  --surface: #ffffff;
  --surface-muted: #f2f0ec;
  --border: #e5e1d8;
  --border-strong: #cec9be;

  --text: #1c1917;
  --text-muted: #57514b;
  --text-faint: #787169;

  --accent: #2f5d8a;
  --accent-hover: #244769;

  /* Validation / error feedback. --color-error tints borders and accent fills;
     --color-error-text is the darker shade for readable message text on light. */
  --color-error: #b54545;
  --color-error-text: #8a3030;

  --motion-fast: 120ms;
  --motion-base: 150ms;

  --shadow-edge: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --shadow-card: 0 1px 1px rgba(28, 25, 23, 0.04), 0 10px 30px rgba(28, 25, 23, 0.055);
  --shadow-card-hover: 0 2px 4px rgba(28, 25, 23, 0.055), 0 16px 38px rgba(47, 93, 138, 0.15);
  --shadow-panel: 0 1px 1px rgba(28, 25, 23, 0.035), 0 6px 18px rgba(28, 25, 23, 0.045);

  --aqi-good: #4caf50;
  --aqi-moderate: #f1b54a;
  --aqi-sensitive: #e98744;
  --aqi-unhealthy: #d6483a;
  --aqi-very-unhealthy: #8e3aa3;
  --aqi-hazardous: #6d1212;

  --badge-warm-bg: #fef0d8;
  --badge-warm-text: #7a4a10;
  --badge-cool-bg: #e6eef5;
  --badge-cool-text: #1e4a6e;
  --badge-green-bg: #e7f4e8;
  --badge-green-text: #27643a;
  --badge-mango-bg: #fff1c6;
  --badge-mango-text: #8a5400;
  --badge-red-bg: #fde8e6;
  --badge-red-text: #9b2318;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 56rem;

  --seven-hills: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 22' preserveAspectRatio='none'><path d='M0,21 C7,21 14,8 20,8 S33,21 40,21 C47,21 54,14 60,14 S73,21 80,21 C87,21 94,5 100,5 S113,21 120,21 C127,21 134,1 140,1 S153,21 160,21 C167,21 174,11 180,11 S193,21 200,21 C207,21 214,4 220,4 S233,21 240,21 C247,21 254,8 260,8 S273,21 280,21' fill='none' stroke='white' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke'/></svg>");
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-block-start: var(--space-5);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.035) 1px, transparent 0),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  background-size: 22px 22px, 100% 24rem;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.5rem;
}

h2,
h3 {
  font-size: 1rem;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5) var(--space-8);
}

.page.page-narrow > * {
  max-width: 36rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  view-transition-name: site-wordmark;
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 1.375rem;
  }
}

a.wordmark:hover {
  color: var(--text);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.site-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--text-faint);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Resource switcher — persistent sibling-page navigation living in the topbar's
   right slot (margin-left:auto pushes it past the wordmark; any .topbar-meta
   status trails it). Native <details> disclosure works with zero JS; styles/site.js
   only adds outside-click + Escape dismissal. Each page marks its own entry with
   aria-current="page". Visual language mirrors .cta-link / .filter-pill. */
.resource-nav {
  margin-left: auto;
}

.resource-nav details {
  position: relative;
}

.resource-nav summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.125rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.resource-nav summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .resource-nav summary:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    color: var(--accent);
  }
}

.resource-nav details[open] summary {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.resource-nav .chev {
  transition: transform var(--motion-fast) ease;
}

.resource-nav details[open] .chev {
  transform: rotate(180deg);
}

.resource-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 12.5rem;
  max-width: min(16rem, calc(100vw - 2 * var(--space-5)));
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel), var(--shadow-edge);
  transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.resource-nav details[open] .resource-menu {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .resource-nav details[open] .resource-menu {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.resource-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.resource-menu a:hover {
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
}

.resource-menu a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.resource-menu a[aria-current="page"]::after {
  content: "";
  flex: 0 0 auto;
  width: 0.34rem;
  height: 0.62rem;
  margin-bottom: 2px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.page-intro {
  max-width: var(--max-width);
  margin-top: var(--space-4);
}

.display-h,
.page-intro h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.page-intro h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.3rem);
  line-height: 1.15;
}

.page-intro p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: 1.02rem;
}

.dot-status {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  vertical-align: 1px;
}

.dot-status.live {
  background: var(--aqi-good);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqi-good) 14%, transparent);
}

.dot-status.stale {
  background: var(--aqi-sensitive);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqi-sensitive) 14%, transparent);
}

.alert {
  padding: var(--space-3) var(--space-4);
  border: 1px solid color-mix(in srgb, var(--badge-warm-text) 25%, transparent);
  border-radius: var(--radius-md);
  background: var(--badge-warm-bg);
  color: var(--badge-warm-text);
  font-size: 0.88rem;
}

.filter-label,
.summary-label {
  display: block;
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

@media (hover: hover) {
  .filter-pill:hover {
    color: var(--text);
  }
}

.filter-pill.active {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

/* Segmented control — single-choice toggle shared across resources
   (flight Sosiri/Plecări tabs, AQI trend range). One track holds N segments;
   the active segment lifts onto a raised surface AND turns accent, so
   "selected = accent" reads the same here as it does on .filter-pill. */
.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-muted) 72%, var(--surface));
  box-shadow: var(--shadow-edge);
}

.segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.125rem;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

@media (hover: hover) {
  .segment:not(.active):hover {
    color: var(--text);
  }
}

.segment.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.11), var(--shadow-edge);
}

.venue-type,
.result-cuisine,
.diet-badge,
.time-badge,
.location-badge,
.tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.inline-tier {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: baseline;
  line-height: 1.4;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card), var(--shadow-edge);
  transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover), var(--shadow-edge);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.card-place {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-link svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.card-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
  gap: 6px;
  width: 100%;
}

.card-action-bar .card-link {
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.875rem;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.card-action-bar .card-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--accent-hover);
  text-decoration: none;
}

.card-action-bar .card-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.card-action-bar .card-link.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.empty-state strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text);
}

@media (max-width: 520px) {
  .card-head.stack-sm {
    flex-direction: column;
  }

  .card-action-bar .card-link {
    min-height: 2.5rem;
  }
}

.skeleton {
  display: inline-block;
  min-width: 3ch;
  border-radius: 4px;
  background: linear-gradient(90deg,
      var(--surface-muted) 0%,
      color-mix(in srgb, var(--surface) 65%, var(--surface-muted)) 50%,
      var(--surface-muted) 100%);
  background-size: 200% 100%;
  color: transparent;
  animation: shine 1.4s ease-in-out infinite;
}

footer.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cele șapte coline ale Iașului */
footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  background-color: var(--border-strong);
  -webkit-mask: var(--seven-hills) no-repeat 0 0 / 100% 100%;
          mask: var(--seven-hills) no-repeat 0 0 / 100% 100%;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.contact-link:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  text-decoration: none;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 2.125rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.cta-link::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 1px;
  transition: transform var(--motion-fast) ease;
}

.cta-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  text-decoration: none;
}

.cta-link:hover::after {
  transform: translate(1px, -1px) rotate(45deg);
}

/* Evergreen SEO prose block, shared across resource pages */
.about {
  max-width: var(--max-width);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.about h2 {
  margin-bottom: var(--space-3);
  color: var(--text);
  font-size: 1.15rem;
}

.about p + p {
  margin-top: var(--space-3);
}

.about strong {
  color: var(--text);
  font-weight: 600;
}

/* FAQ — collapsible question/answer band, shared across resource pages.
   Pairs with .about as an evergreen SEO/AEO tail; separated from the block
   above by margin alone (no top rule). Native <details> needs no JS; the
   answer text stays in the DOM (collapsed, not removed), so crawlers and
   FAQPage structured data still read it. */
.faq {
  max-width: var(--max-width);
  margin-top: var(--space-6);
}

.faq h2 {
  margin-bottom: var(--space-2);
  color: var(--text);
  font-size: 1.15rem;
}

/* Quiet hairline-divided list — no per-item cards, so the questions read as
   light rows flush with the prose above rather than boxed buttons. */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.625rem 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  list-style: none;
  cursor: pointer;
  transition: color var(--motion-fast) ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .faq summary:hover {
    color: var(--accent);
  }
}

.faq details[open] summary {
  color: var(--accent);
}

.faq summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}

/* Subtle down-chevron caret — faint until hover/open, then it adopts the
   summary's accent. Flips up when the answer is open. */
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.faq summary:hover::after,
.faq details[open] summary::after {
  border-color: currentColor;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-answer a {
  font-weight: 500;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
