:root {
  /* Warm, inviting light palette – cream, honey, sage (helpful & trustworthy) */
  --bg: #faf6f0;
  --bg-warm: #f5f0e8;
  --surface: #fffefb;
  --surface-elevated: #ffffff;
  --text: #2d2a26;
  --text-soft: #5c5852;
  --text-muted: #7a756d;
  --accent: #c9932e;
  --accent-soft: #d4a84a;
  --accent-dark: #a67a24;
  --accent-dim: rgba(201, 147, 46, 0.12);
  --accent-dim-strong: rgba(201, 147, 46, 0.22);
  --accent-glow: rgba(201, 147, 46, 0.28);
  --helpful: #5d8a75;
  --helpful-soft: #6f9a84;
  --helpful-dim: rgba(93, 138, 117, 0.12);
  --helpful-glow: rgba(93, 138, 117, 0.2);
  --border: rgba(45, 42, 38, 0.08);
  --border-strong: rgba(45, 42, 38, 0.12);
  --font: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(45, 42, 38, 0.06);
  --shadow-soft: 0 4px 24px rgba(45, 42, 38, 0.08);
  --shadow-accent: 0 4px 20px var(--accent-glow);
  --shadow-helpful: 0 2px 12px var(--helpful-glow);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Warm, inviting gradient background – honey + sage glow, more visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -15%, var(--accent-dim-strong) 0%, rgba(201, 147, 46, 0.06) 40%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 70%, var(--helpful-dim) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 90%, rgba(93, 138, 117, 0.08) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
  z-index: 0;
}

/* Sit main above body::before; otherwise login/signup/account can look “blank” (content paints under the fixed layer). */
body > main {
  position: relative;
  z-index: 1;
}

/* Auth forms: explicit text colours (don’t rely on inherited / clipped headings) */
main.auth-page {
  color: #2d2a26;
}

main.auth-page .auth-title,
main.auth-page h1 {
  color: #2d2a26;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — high z-index so search dropdown stays above main content and is clickable */
.header {
  position: relative;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(250, 246, 240, 0.92) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 8px rgba(201, 147, 46, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1.5rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover {
  background: var(--border);
  color: var(--accent);
}
.nav-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.nav-toggle[aria-expanded="true"] {
  background: var(--accent-dim);
  color: var(--accent);
}
.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  flex-basis: 100%;
  padding: 0 1.5rem 1rem;
  padding-top: 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98) 0%, rgba(250, 246, 240, 0.98) 100%);
  box-shadow: inset 0 4px 12px rgba(201, 147, 46, 0.04);
}
.nav-panel[aria-hidden="false"],
.header.nav-open .nav-panel {
  display: flex;
}
.nav-panel[hidden] {
  display: none !important;
}
.nav-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:last-child {
  border-bottom: none;
}
.nav-link {
  padding-left: 0.5rem;
  border-left: 3px solid transparent;
  margin-left: 0.25rem;
}
.nav-link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}

.nav-action-button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Search page */
.search-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.search-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.search-title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  /* Fallback: visible text if background-clip is unsupported (avoids “blank” headings) */
  color: var(--text);
  background: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .search-title {
    background: linear-gradient(135deg, var(--text) 0%, var(--text-soft) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.search-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}
.search-tagline::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--helpful));
  border-radius: 2px;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  z-index: 20;
  backdrop-filter: blur(12px);
}

.search-suggestions[hidden] {
  display: none !important;
}

.search-suggestions .suggestions-section {
  padding: 0.5rem 0;
}

.search-suggestions .suggestions-section-title {
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-suggestions .suggestion-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item.suggestion-item--active {
  background: var(--helpful-dim);
}

.search-suggestions .suggestion-item:focus {
  outline: none;
  background: var(--helpful-dim);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:hover {
  border-color: var(--border-strong);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 2px 8px var(--accent-glow);
}

.search-btn {
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.15s, filter 0.2s;
  box-shadow: 0 3px 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
  box-shadow: 0 6px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  filter: brightness(1.08);
}

.search-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.search-filter {
  min-width: 140px;
  padding: 0.85rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-filter:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.search-page--results {
  max-width: 1100px;
}

.search-results-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  align-items: start;
  width: 100%;
}

.search-filters-panel {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-filters-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.search-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.search-filters-panel .search-filter {
  width: 100%;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .search-results-layout {
    grid-template-columns: 1fr;
  }

  .search-filters-panel {
    position: static;
  }
}

/* Trending hotels (last 24h) */
.trending-section {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.trending-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.trending-subline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.trending-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.trending-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}

.trending-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, var(--accent-dim) 100%);
  box-shadow: var(--shadow-accent);
}

.trending-count {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trending-item:hover .trending-count {
  color: var(--accent);
}

.trending-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Cities */
.cities-section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cities-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.city-card {
  display: inline-block;
  position: relative;
  width: 280px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.city-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-accent);
  border-color: var(--accent);
}

.city-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.city-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.25);
}

/* City page (trending for one city) */
.city-page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.city-hero {
  position: relative;
  margin: 0 -1.5rem 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.city-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

.city-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.city-hero-title {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
  z-index: 1;
}

.city-hero-sub {
  position: absolute;
  bottom: 0.75rem;
  left: 1.5rem;
  right: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
  z-index: 1;
}

.city-trending {
  margin-bottom: 2rem;
}

.city-trending-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.city-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.city-trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(145deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.city-trending-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.city-trending-rank {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 50%;
}

.city-trending-name {
  flex: 1;
  font-weight: 500;
}

.city-trending-count {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.city-trending-empty {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.city-back {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.cities-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Results */
.results-section {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 1.25rem 0 3rem;
}

.results-inner {
  min-height: 120px;
}

.results-placeholder,
.results-empty,
.results-error {
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  padding: 2.5rem 1.5rem;
  line-height: 1.7;
}

.results-error-hint {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-list[hidden] {
  display: none;
}

.result-card {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  box-shadow: var(--shadow), 0 0 0 0 var(--accent-dim);
}

.result-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft), 0 0 0 2px var(--accent-dim), var(--shadow-accent);
  transform: translateY(-3px);
}

/* Result card as link to hotel page */
.result-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.result-card-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--accent-dim);
}

.result-card .result-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.result-card .result-title a {
  color: var(--text);
  text-decoration: none;
}

.result-card .result-title a:hover {
  color: var(--accent);
}

.result-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.result-title-left {
  flex: 1;
  min-width: 0;
}

.result-title-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.result-card .result-title {
  margin-bottom: 0;
}

.result-score-badge {
  flex-shrink: 0;
  text-align: right;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 42, 38, 0.08);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.06);
  min-width: 96px;
}

.result-score-badge-value {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.result-score-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.2;
}

.result-score-badge--good {
  border-color: rgba(93, 138, 117, 0.35);
  background: rgba(111, 154, 132, 0.08);
}

.result-score-badge--mid {
  border-color: rgba(201, 147, 46, 0.35);
  background: rgba(201, 147, 46, 0.08);
}

.result-score-badge--okay {
  border-color: rgba(201, 147, 46, 0.25);
  background: rgba(201, 147, 46, 0.05);
}

.result-score-badge--bad {
  border-color: rgba(201, 147, 46, 0.2);
  background: rgba(45, 42, 38, 0.03);
}

.result-save-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.result-save-btn {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 42, 38, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.result-save-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.result-save-btn[aria-pressed="true"] {
  border-color: rgba(93, 138, 117, 0.35);
}

.result-save-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 1rem;
}

.result-card .result-snippet {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Value for money — bold, in-your-face priority */
.result-card .result-value-for-money {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--accent-dim-strong) 0%, var(--accent-dim) 50%, rgba(255, 255, 255, 0.5) 100%);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.result-card .result-value-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Big value index number — primary focus */
.value-index-hero {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.4rem;
}
.value-index-number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  filter: drop-shadow(0 1px 2px var(--accent-glow));
}
.value-index-out-of {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.result-card .result-value-content {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.result-card .result-value-for-money .score-bar.value-index-bar,
.result-card .result-value-for-money .score-bar {
  margin-top: 0.5rem;
  max-width: 200px;
  height: 8px;
}

/* Individual scoring criteria */
.result-card .result-criteria-block {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.result-card .result-criteria-block-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.result-card .result-criteria-item {
  padding: 0.35rem 0;
}

.result-card .result-criteria-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.result-card .result-criteria-name {
  color: var(--text-muted);
}

.result-card .result-criteria-value {
  font-weight: 600;
  color: var(--text);
}

/* Score bar: red (low) → green (high), 0–10 scale */
.score-bar {
  --score: 5;
  margin-top: 0.35rem;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  width: calc(var(--score) * 10%);
  min-width: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, hsl(calc(var(--score) * 12), 65%, 42%) 0%, hsl(calc(var(--score) * 12), 75%, 52%) 100%);
  box-shadow: 0 0 8px hsla(calc(var(--score) * 12), 70%, 50%, 0.4);
  transition: width 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Missing metric: muted track, no fill (hotel page + shared bars) */
.score-bar--empty {
  opacity: 0.38;
  background: rgba(45, 42, 38, 0.08);
}

.score-bar--empty .score-bar-fill {
  width: 0 !important;
  min-width: 0 !important;
  box-shadow: none;
  background: transparent;
}

.result-card .result-criteria-block .score-bar {
  max-width: 200px;
}

.result-card .result-enrich {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.result-card .result-meta {
  color: var(--text-muted);
}

.result-card .result-score {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-left: 0.5rem;
}

/* Our goal page */
.goal-page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}
.goal-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}
.goal-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 2rem;
}
.goal-lead strong {
  color: var(--accent);
}
.goal-section {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, var(--helpful-dim) 100%);
  border-radius: var(--radius);
  border-left: 4px solid var(--helpful);
}
.goal-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--helpful);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.goal-section p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}
.goal-cta {
  margin-top: 2rem;
  margin-bottom: 0;
}
.goal-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.1s ease, filter 0.2s ease;
  box-shadow: 0 3px 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.goal-link:hover {
  filter: brightness(1.08);
  box-shadow: 0 5px 20px var(--accent-glow);
}
.goal-link:active {
  transform: scale(0.98);
}

/* Hotel detail page */
.header--with-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hotel-page-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.hotel-search-wrap {
  position: relative;
}

.hotel-search-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hotel-search-input::placeholder {
  color: var(--text-muted);
}

.hotel-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.hotel-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 110;
  backdrop-filter: blur(12px);
}

.hotel-search-suggestions[hidden] {
  display: none !important;
}

.hotel-suggestions-list {
  padding: 0.35rem 0;
}

.hotel-suggestion-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.hotel-suggestion-item:hover {
  background: var(--helpful-dim);
  color: var(--helpful-soft);
}

.hotel-page {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 1.75rem 1.5rem;
}

.hotel-loading,
.hotel-error {
  text-align: center;
  color: var(--text-soft);
  padding: 2.5rem 1.5rem;
  font-size: 1rem;
}

.hotel-error-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hotel-error-link:hover {
  text-decoration: underline;
}

.hotel-detail {
  padding: 0;
}

.hotel-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.3;
}

.hotel-snippet {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.hotel-value-for-money {
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--accent-dim-strong) 0%, var(--accent-dim) 50%, rgba(255, 255, 255, 0.5) 100%);
  border-left: 8px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-soft), var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hotel-value-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
}

.hotel-value-layout .hotel-value-for-money {
  margin: 0;
}

.hotel-price-panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(251, 245, 236, 0.94) 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hotel-price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hotel-price-amount {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hotel-price-footnote {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hotel-price-panel--empty {
  border-style: dashed;
}

.hotel-price-panel--empty .hotel-price-amount {
  color: var(--text-soft);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0;
}

.hotel-value-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hotel-value-for-money .value-index-hero {
  margin-bottom: 0.5rem;
}
.hotel-value-for-money .value-index-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px var(--accent-glow));
}
.hotel-value-for-money .value-index-out-of {
  font-size: 1.5rem;
}

.hotel-value-for-money .value-index-hero--na {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.hotel-value-for-money .value-index-number--na {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(45, 42, 38, 0.42);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}

.hotel-value-for-money .value-index-na-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(45, 42, 38, 0.38);
  letter-spacing: 0.01em;
}

.hotel-value-content {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.hotel-value-for-money .score-bar.value-index-bar,
.hotel-value-for-money .score-bar {
  margin-top: 0.6rem;
  max-width: 280px;
  height: 10px;
}

.hotel-criteria-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hotel-criteria-block-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hotel-criteria-banner {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.hotel-criteria-item {
  padding: 0.5rem 0;
}

.hotel-criteria-row--na {
  align-items: flex-end;
}

.hotel-criteria-item--na .hotel-criteria-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.15rem;
}

.hotel-criteria-value--na {
  font-weight: 600;
  color: rgba(45, 42, 38, 0.45);
  letter-spacing: 0.02em;
}

.hotel-criteria-na-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(45, 42, 38, 0.38);
  line-height: 1.2;
}

.hotel-criteria-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
}

.hotel-criteria-name {
  color: var(--text-muted);
}

.hotel-criteria-value {
  font-weight: 600;
  color: var(--text);
}

.hotel-criteria-block .score-bar {
  max-width: 240px;
}

.hotel-enrich {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.hotel-meta {
  color: var(--text-muted);
}

@media (max-width: 780px) {
  .hotel-value-layout {
    grid-template-columns: 1fr;
  }
}

.hotel-recommendations-host {
  margin-top: 1.35rem;
}

.hotel-recommendations-section {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.hotel-recs-title {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text);
}

.hotel-recs-subtitle {
  margin: 0.3rem 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hotel-recs-finding {
  margin: 0.1rem 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-style: italic;
}

.hotel-recs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hotel-recs-grid--single {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.rec-group {
  min-width: 0;
}

.rec-group-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.rec-radius-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.rec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.65rem 0.78rem;
  margin-bottom: 0.55rem;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.rec-card:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-strong);
}

.rec-card-top, .rec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem;
}

.rec-hotel-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.rec-hotel-name:hover {
  color: var(--accent);
}

.rec-stars {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.rec-price {
  font-size: 0.88rem;
  color: var(--text);
}

.rec-score-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 42, 38, 0.08);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
}

.rec-score-pill--na {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  font-weight: 600;
  color: rgba(45, 42, 38, 0.45);
  background: rgba(45, 42, 38, 0.04);
  border-color: rgba(45, 42, 38, 0.06);
}

.rec-score-pill-na {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(45, 42, 38, 0.48);
  letter-spacing: 0.02em;
}

.rec-score-pill-hint {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(45, 42, 38, 0.38);
  line-height: 1.2;
  max-width: 9rem;
  text-align: right;
}

.rec-muted {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rec-row-end {
  margin-top: 0.38rem;
  align-items: center;
}

.rec-group-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.rec-group-badge--green {
  background: rgba(111, 154, 132, 0.13);
  border-color: rgba(93, 138, 117, 0.32);
  color: #335847;
}

.rec-group-badge--amber {
  background: rgba(201, 147, 46, 0.14);
  border-color: rgba(201, 147, 46, 0.32);
  color: #6e5220;
}

.rec-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.rec-link:hover {
  color: var(--accent);
}

.rec-skeleton {
  height: 92px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(45, 42, 38, 0.03) 25%, rgba(45, 42, 38, 0.07) 40%, rgba(45, 42, 38, 0.03) 55%);
  background-size: 240% 100%;
  animation: recSkeletonPulse 1.4s ease infinite;
}

.rec-skeleton-oval {
  height: 44px;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(45, 42, 38, 0.03) 25%, rgba(45, 42, 38, 0.07) 40%, rgba(45, 42, 38, 0.03) 55%);
  background-size: 240% 100%;
  animation: recSkeletonPulse 1.4s ease infinite;
}

@keyframes recSkeletonPulse {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (max-width: 900px) {
  .hotel-recs-grid {
    grid-template-columns: 1fr;
  }
  .rec-group + .rec-group {
    border-top: 1px solid var(--border);
    padding-top: 0.7rem;
    margin-top: 0.2rem;
  }
}

/* Debug panel (search page) */
.debug-panel {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  margin: 0 1.5rem;
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.debug-panel-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--accent);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.95) 0%, rgba(250, 246, 240, 0.98) 100%);
  box-shadow: 0 -2px 12px var(--accent-glow);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Embedded hotel maps (Leaflet) */
/* Used by hotel-map-component.js on hotel page and search result card maps */
.leaflet-div-icon.hotel-map-pin-leaflet-icon {
  background: transparent !important;
  border: none !important;
}

.hotel-map-pin-svg {
  display: block;
  vertical-align: top;
}

.score-pin {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  font-family: "Outfit", system-ui, sans-serif;
}

.leaflet-popup-content {
  margin: 10px 12px;
  font-family: "Outfit", system-ui, sans-serif;
}

.hotel-card-map-wrap {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.hotel-card-map {
  width: 100%;
  height: 200px;
}

.hotel-card-map-wrap--fallback {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.hotel-location-map {
  margin-top: 1.25rem;
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.hotel-location-map--fallback {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Weather insight */
.weather-insight {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 240, 232, 0.7) 100%);
  box-shadow: var(--shadow);
}

.weather-emoji {
  font-size: 1.2rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.weather-content {
  min-width: 0;
}

.weather-line {
  margin: 0 0 0.4rem 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.weather-line:last-child {
  margin-bottom: 0;
}

.weather-line--lead {
  color: var(--text);
  font-weight: 600;
}

.weather-attribution {
  margin: 0.45rem 0 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.weather-insight--fallback .weather-line {
  margin: 0;
  color: var(--text-muted);
}

.weather-skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 42, 38, 0.08), rgba(45, 42, 38, 0.14), rgba(45, 42, 38, 0.08));
  background-size: 200% 100%;
  animation: weatherPulse 1.2s ease-in-out infinite;
  margin-bottom: 0.4rem;
}

.weather-skeleton-line--short {
  width: 72%;
}

@keyframes weatherPulse {
  0% { background-position: 180% 0; }
  100% { background-position: -20% 0; }
}

.map-weather-slot .weather-insight {
  margin: 0.35rem 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border-left-width: 3px;
}

.map-weather-slot .weather-line {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.map-weather-slot .weather-attribution {
  font-size: 0.68rem;
}

/* Climate: best time, month filter, score bar */
.climate-section {
  margin-top: 1rem;
}

.climate-section--map {
  margin-top: 0.35rem;
}

.climate-callout {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  background: var(--accent-dim);
}

.climate-callout--loading .weather-skeleton-line {
  margin-bottom: 0.35rem;
}

.climate-callout--loading .weather-skeleton-line:last-child {
  margin-bottom: 0;
}

.climate-callout-title {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.climate-callout-icon {
  margin-right: 0.25rem;
}

.climate-callout-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.climate-best-line {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.climate-best-line strong {
  color: var(--text);
}

.climate-pills-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.25rem;
  scrollbar-width: thin;
}

.climate-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding-bottom: 2px;
}

.climate-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  border-bottom-width: 3px;
  border-bottom-style: solid;
  border-bottom-color: rgba(45, 42, 38, 0.12);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.climate-pill--tier-good {
  border-bottom-color: #4caf50;
}

.climate-pill--tier-spring {
  border-bottom-color: #c0d84e;
}

.climate-pill--tier-mid {
  border-bottom-color: #f59e0b;
}

.climate-pill--tier-low {
  border-bottom-color: #ef4444;
}

.climate-pill--tier-pending {
  border-bottom-color: rgba(45, 42, 38, 0.12);
}

.climate-pill--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  border-bottom-color: var(--accent-dark);
}

.climate-pill:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.climate-score-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  align-items: flex-end;
  margin: 0.15rem 0 0.55rem;
}

.climate-score-seg {
  flex: 1;
  min-width: 5px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.6;
  transition: height 150ms ease, opacity 150ms ease, background 150ms ease;
}

.climate-score-seg--active {
  height: 8px;
  opacity: 1;
}

.climate-score-seg--tier-good {
  background: #4caf50;
}

.climate-score-seg--tier-spring {
  background: #c0d84e;
}

.climate-score-seg--tier-mid {
  background: #f59e0b;
}

.climate-score-seg--tier-low {
  background: #ef4444;
}

.climate-score-seg--tier-pending {
  background: rgba(45, 42, 38, 0.12);
}

.climate-score-seg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.climate-insight-card.weather-insight {
  display: block;
  margin-top: 0.5rem;
}

.climate-insight-card--compact.weather-insight {
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
}

.climate-insight-card .climate-card-inner {
  transition: opacity 150ms ease;
}

.climate-insight-card--compact .weather-line--lead {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.climate-insight-card--compact .climate-line-a {
  font-size: 0.78rem;
  margin-bottom: 0;
}

.climate-line-rating {
  margin-top: 0.35rem;
  font-weight: 500;
  color: var(--text);
}

.climate-attribution {
  margin: 0.65rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.climate-table-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  margin: 0.5rem 0 0.35rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: inherit;
}

.climate-table-chevron {
  font-size: 0.75rem;
  opacity: 0.75;
}

.climate-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.climate-table th {
  text-align: left;
  padding: 0.45rem 0.4rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border);
}

.climate-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(45, 42, 38, 0.06);
  vertical-align: middle;
}

.climate-table-row {
  cursor: pointer;
  transition: background 150ms ease;
}

.climate-table-row:hover {
  background: rgba(201, 147, 46, 0.06);
}

.climate-table-row--top {
  font-weight: 600;
  box-shadow: inset 3px 0 0 #4caf50;
}

.climate-table-row--selected {
  background: var(--accent-dim);
}

.climate-table-top-badge {
  margin-right: 0.2rem;
}

@media (max-width: 640px) {
  .climate-table thead {
    display: none;
  }

  .climate-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.65rem 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.65);
  }

  .climate-table tbody tr td {
    border: none;
    padding: 0.15rem 0;
    font-size: 0.82rem;
  }

  .climate-table tbody tr td:nth-child(1) {
    grid-column: 1 / -1;
    font-weight: 600;
  }

  .climate-table tbody tr td:nth-child(4) {
    grid-column: 1 / -1;
  }
}

.map-weather-slot .climate-section {
  margin-top: 0.25rem;
}

.map-weather-slot .climate-pill {
  padding: 0.28rem 0.42rem;
  font-size: 0.72rem;
}

.map-weather-slot .climate-attribution {
  font-size: 0.62rem;
  margin-top: 0.3rem;
  padding-top: 0.35rem;
}

.climate-callout--personalised {
  border-left-color: #5d8a75;
  background: rgba(93, 138, 117, 0.08);
}

.climate-prefs-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.92;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.climate-nudge {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.climate-nudge {
  font-style: italic;
  color: #5d8a75;
}

.climate-best-line-hint {
  font-weight: 400;
  opacity: 0.85;
}

.prefs-onboard-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 147, 46, 0.35);
  background: var(--accent-dim);
  font-size: 0.88rem;
  color: var(--text);
}

.prefs-onboard-text {
  flex: 1 1 200px;
}

.prefs-onboard-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.prefs-onboard-link:hover {
  text-decoration: underline;
}

.prefs-onboard-dismiss {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  color: var(--text-muted);
  border-radius: 4px;
}

.prefs-onboard-dismiss:hover {
  color: var(--text);
  background: rgba(45, 42, 38, 0.06);
}

.trav-prefs-nudge-host {
  margin-bottom: 0.25rem;
}

.city-page .trav-prefs-nudge-host {
  padding: 0 1rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
