:root {
  --bg: #f4f3ef;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --ink: #192125;
  --muted: #706b63;
  --accent: #5c8fbb;
  --accent-deep: #356f9e;
  --line: rgba(25, 33, 37, 0.09);
  --line-strong: rgba(25, 33, 37, 0.14);
  --shadow: 0 18px 44px rgba(25, 33, 37, 0.06);
  --panel-shadow: 0 8px 18px rgba(25, 33, 37, 0.035);
  --font-ui: "Avenir Next", "Segoe UI", "Helvetica Neue", "Helvetica", sans-serif;
  --font-display: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
}

body.is-locked {
  overflow: hidden;
}

.page-shell {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.topbar {
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 20px 24px;
}

.footer-nav,
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-separator {
  color: var(--line-strong);
  font-size: 0.88rem;
  user-select: none;
}

.footer-link {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

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

.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 23, 28, 0.5);
  backdrop-filter: blur(4px);
}

.info-dialog {
  width: min(520px, 100%);
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 252, 251, 0.97));
  box-shadow: 0 24px 60px rgba(25, 33, 37, 0.18);
  font-family: var(--font-ui);
}

.info-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.info-dialog-head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
}

.info-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.info-dialog-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.info-section-label {
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.42;
}

.info-list strong {
  font-weight: 700;
}


.brand-lockup {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 18px max(24px, calc((100vw - min(1320px, calc(100vw - 24px))) / 2)) 16px;
  margin-bottom: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #225d88 0%, #1f5d87c7 100%);
  box-shadow: 0 18px 40px rgba(39, 68, 92, 0.15);
}

.brand-lockup::before,
.brand-lockup::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
}

.brand-lockup::before {
  height: 46px;
  background:
    radial-gradient(80px 18px at 12% 100%, rgba(255, 255, 255, 0.1) 0 55%, transparent 56%),
    radial-gradient(100px 22px at 32% 100%, rgba(255, 255, 255, 0.08) 0 55%, transparent 56%),
    radial-gradient(90px 18px at 54% 100%, rgba(255, 255, 255, 0.1) 0 55%, transparent 56%),
    radial-gradient(110px 22px at 77% 100%, rgba(255, 255, 255, 0.08) 0 55%, transparent 56%);
  opacity: 0.7;
}

.brand-lockup::after {
  top: 0;
  right: max(24px, calc((100vw - min(1320px, calc(100vw - 24px))) / 2));
  left: auto;
  bottom: auto;
  display: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  letter-spacing: -0.045em;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.28rem;
  font-weight: 700;
  line-height: 0.92;
  font-style: normal;
}

.intro {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(239, 245, 241, 0.8);
  font-size: 0.94rem;
  line-height: 1.35;
  max-width: 64ch;
  font-family: var(--font-ui);
  font-weight: 500;
  text-align: right;
}

.intro-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: end;
  gap: 6px;
  margin-left: auto;
}

.intro-link-mobile {
  display: none !important;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.intro-link:hover {
  color: #ffffff;
}

.intro-link-mark {
  display: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 34px;
  color: #f4f7f4;
  transform: translateY(2px);
  margin-right: -4px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-lockup {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.month-strip {
  padding: 12px 18px 10px;
  border-radius: 26px;
  border: 1px solid rgba(25, 33, 37, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 250, 0.94));
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
}

.trip-presets {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid rgba(25, 33, 37, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 248, 0.9));
  box-shadow: var(--panel-shadow);
  font-family: var(--font-ui);
}

.trip-presets-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.trip-presets-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.trip-presets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.trip-preset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(92, 143, 187, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.trip-preset-button:hover {
  border-color: rgba(92, 143, 187, 0.3);
  background: rgba(241, 247, 252, 0.95);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.trip-preset-button.is-active {
  border-color: rgba(92, 143, 187, 0.28);
  background: rgba(92, 143, 187, 0.12);
  color: var(--accent-deep);
}

.month-strip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.month-strip-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.month-strip-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.month-strip-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

#month-label {
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid rgba(25, 33, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
}

.share-button:hover {
  color: var(--accent-deep);
}

.share-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.share-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.share-button circle {
  fill: currentColor;
}

.share-button.is-confirmed {
  border-color: rgba(47, 95, 193, 0.24);
  background: rgba(63, 116, 216, 0.08);
  color: var(--accent-deep);
}

.share-button.is-error {
  border-color: rgba(180, 73, 45, 0.2);
  background: rgba(208, 77, 53, 0.08);
  color: #b4492d;
}

.temp-unit-toggle {
  display: inline-flex;
  padding: 2px;
  border: 1px solid rgba(25, 33, 37, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.temp-unit-button {
  min-width: 40px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.temp-unit-button.is-active {
  background: rgba(210, 123, 69, 0.14);
  color: var(--accent-deep);
}

.month-slider {
  width: 100%;
  margin: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  margin: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-deep) 0 var(--slider-fill, 0%),
    rgba(25, 33, 37, 0.14) var(--slider-fill, 0%) 100%
  );
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(25, 33, 37, 0.14);
}

input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent-deep);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  background: var(--panel-strong);
  box-shadow: 0 4px 10px rgba(185, 101, 51, 0.16);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-deep);
  border-radius: 50%;
  background: var(--panel-strong);
  box-shadow: 0 4px 10px rgba(185, 101, 51, 0.16);
}

.month-ticks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
}

.month-ticks span {
  text-align: center;
  opacity: 0.55;
}

.month-tick {
  min-height: 28px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  opacity: 0.55;
  cursor: pointer;
}

.month-ticks .is-active {
  color: var(--accent-deep);
  opacity: 1;
  font-weight: 700;
}

.filters,
.city-detail,
.city-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 252, 251, 0.94));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.is-hidden {
  display: none !important;
}

.filters-toggle {
  display: none;
  width: 100%;
  margin: 0 0 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--panel-shadow);
}

.filters {
  display: grid;
  grid-template-columns: minmax(116px, 0.52fr) minmax(0, 0.95fr) minmax(0, 0.82fr) minmax(0, 0.95fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: 8px;
  padding: 12px 14px 14px;
  border-radius: 24px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  align-items: start;
}

.filters-label {
  align-self: stretch;
  padding-top: 1px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  justify-items: start;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
}

.reset-filters-button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(63, 116, 216, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.reset-filters-button:hover {
  border-color: rgba(63, 116, 216, 0.3);
  background: rgba(241, 247, 252, 0.95);
}

.reset-filters-button[hidden] {
  display: none;
}

.results-header h2,
.city-row h3 {
  margin: 0;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}

.field > span,
.field-tags legend {
  font-size: 0.88rem;
  font-weight: 500;
}

.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.country-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.country-filter input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
}

.country-filter input::placeholder {
  color: var(--muted);
}

.country-clear {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(63, 116, 216, 0.18);
  border-radius: 999px;
  background: rgba(63, 116, 216, 0.08);
  color: var(--accent-deep);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.country-clear[hidden] {
  display: none;
}

.dual-range {
  --range-min: 35%;
  --range-max: 70%;
  position: relative;
  height: 18px;
}

.dual-range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(25, 33, 37, 0.14) 0 var(--range-min),
      rgba(63, 116, 216, 0.3) var(--range-min) var(--range-max),
      rgba(25, 33, 37, 0.14) var(--range-max) 100%
    );
  transform: translateY(-50%);
  pointer-events: none;
}

.dual-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  cursor: pointer;
}

.dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  cursor: pointer;
}

.dual-range input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
}

.dual-range input[type="range"]::-moz-range-track {
  background: transparent;
}

.field-tags {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-tags legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
}

.tag-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tag-toggle {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.tag-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(24, 38, 31, 0.1);
  border-radius: 999px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.tag-toggle input:checked + span {
  background: rgba(63, 116, 216, 0.1);
  border-color: rgba(47, 95, 193, 0.22);
  color: var(--accent-deep);
}

.tag-toggle input:focus-visible + span {
  outline: 2px solid rgba(47, 95, 193, 0.22);
  outline-offset: 2px;
}

.field span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field span,
.metric-label {
  color: var(--muted);
}

.field span svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  padding: 3px;
  flex-shrink: 0;
}

.filter-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.filter-icon-budget {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.filter-icon-temp {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.filter-icon-humidity {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.filter-icon-safety {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.field input[type="search"],
.field select,
.field input[type="range"] {
  width: 100%;
}

.field output {
  font-size: 0.78rem;
}

.results-table-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(110px, 0.42fr) minmax(500px, 1.7fr) minmax(300px, 1.2fr);
  gap: 10px;
  padding: 0 18px 8px;
  color: var(--muted);
  font-size: 0.86rem;
  align-items: center;
  font-family: var(--font-ui);
}

.metric-heads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.head-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.head-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 0;
  background: rgba(25, 33, 37, 0.065);
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1;
  cursor: help;
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(24, 32, 43, 0.12);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.tooltip:hover .tooltip-card,
.tooltip:focus-within .tooltip-card {
  opacity: 1;
  transform: translateY(0);
}

.trip-type-tooltip-card {
  right: auto;
  left: -28px;
  width: min(260px, calc(100vw - 40px));
}

.head-label {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.results-list {
  display: grid;
  gap: 10px;
  opacity: 1;
  transition: opacity 220ms ease;
}

.empty-state {
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--panel-shadow);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.4;
}

.mobile-actions {
  display: none;
}

.results-list.is-fading {
  opacity: 0.25;
}

.city-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(110px, 0.42fr) minmax(500px, 1.7fr) minmax(300px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.city-row:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 95, 193, 0.18);
  box-shadow: 0 22px 46px rgba(25, 33, 37, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 249, 252, 0.98));
}

.city-row:hover .city-copy h3 {
  color: var(--accent-deep);
}

.city-row:hover .flag-mark {
  box-shadow: 0 12px 24px rgba(25, 33, 37, 0.16);
}

.city-row:focus-visible {
  outline: 2px solid rgba(47, 95, 193, 0.28);
  outline-offset: 3px;
}

.row-enter {
  opacity: 0;
  transform: translateY(8px);
  animation: row-enter 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.city-copy {
  min-width: 0;
}

.city-copy h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
  line-height: 1.08;
  font-family: var(--font-display);
  font-weight: 700;
}

.city-title-link {
  color: inherit;
  text-decoration: none;
}

.city-title-link:hover {
  color: var(--accent-deep);
}

.city-title-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(47, 95, 193, 0.28);
  outline-offset: 3px;
}

.seo-static-detail {
  margin-bottom: 24px;
}

.seo-city-page {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.seo-city-page h1,
.seo-city-page h2,
.seo-city-page p {
  margin: 0;
}

.seo-city-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.95;
}

.seo-city-page h2 {
  margin-top: 10px;
  font-size: 1.05rem;
}

.seo-city-page p,
.seo-city-page dd,
.seo-city-page li {
  color: var(--muted);
  line-height: 1.6;
}

.seo-city-page dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.seo-city-page dl > div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.seo-city-page dt {
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 700;
}

.seo-city-page dd {
  margin: 0;
}

.best-page {
  display: grid;
  gap: 28px;
  padding-top: 18px;
}

.best-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.best-breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.best-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.best-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.best-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 248, 0.9));
  box-shadow: var(--panel-shadow);
}

.best-hero-copy .eyebrow {
  color: var(--accent-deep);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best-hero h1,
.best-section-head h2,
.best-card h3,
.best-hero p,
.best-section-head p,
.best-card p {
  margin: 0;
}

.best-hero h1 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.best-hero-copy > p:last-child {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.best-hero-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.best-hero-image {
  width: 100%;
  height: 0;
  flex: 1 1 auto;
  min-height: 360px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.best-hero-caption {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 500;
  text-align: right;
}

.best-list {
  display: grid;
  gap: 18px;
}

.best-section-head {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.best-section-head h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--ink);
}

.best-section-head p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.best-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.best-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--panel-shadow);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-card-description {
  margin: 10px 0 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.best-card-details {
  margin: 12px 0 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.best-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(25, 33, 37, 0.08);
}

.best-card-image-link {
  display: block;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.best-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(92, 143, 187, 0.12);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-card:hover .best-card-image {
  transform: scale(1.035);
}

.best-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.best-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.best-card-kicker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.best-card-budget-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.best-card-budget-badge.budget-low {
  background: rgba(46, 125, 50, 0.08);
  color: #2e7d32;
}

.best-card-budget-badge.budget-mid {
  background: rgba(16, 89, 135, 0.08);
  color: var(--accent-deep);
}

.best-card-budget-badge.budget-high {
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
}

.best-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 0.98;
}

.best-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.best-card h3 a:hover {
  color: var(--accent-deep);
}

.best-card-body > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.editorial-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.editorial-marker svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
}

.country-name {
  color: var(--ink);
  font-weight: 500;
}

.country-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(63, 116, 216, 0.28);
  text-underline-offset: 0.14em;
}

.country-link-detail {
  color: var(--accent-deep);
  text-decoration-color: rgba(63, 116, 216, 0.35);
}

.location-separator {
  color: rgba(22, 33, 28, 0.38);
}

.region-name {
  color: var(--muted);
}

.overall-cell {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flag-mark {
  width: 38px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(22, 33, 28, 0.12);
  flex: 0 0 auto;
}

.score-chip {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.city-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.temperature-metric {
  display: inline-grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  width: max-content;
  min-width: min(96px, 100%);
  min-height: 36px;
}

.temperature-metric strong {
  display: block;
  line-height: 1.05;
}

.temperature-sparkline {
  display: block;
  width: min(86px, 100%);
  height: 15px;
  opacity: 0.76;
  overflow: visible;
  pointer-events: none;
}

.temperature-sparkline-line {
  fill: none;
  stroke: rgba(47, 95, 193, 0.62);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.temperature-sparkline-dot {
  fill: #fffaf1;
  stroke: rgba(181, 101, 32, 0.9);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.metric-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-family: var(--font-ui);
}

.metric-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(22, 33, 28, 0.2);
  text-underline-offset: 0.14em;
}

.metric-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: top;
}

.metric-tooltip-card {
  left: 0;
  right: auto;
  width: 220px;
}

.temp-cool {
  color: #2b65b0;
}

.temp-mild {
  color: #4a8b6b;
}

.temp-warm {
  color: #b66a1f;
}

.temp-hot {
  color: #c4492d;
}

.temp-very-hot {
  color: #9f2f2f;
}

.humidity-dry {
  color: #c07a2a;
}

.humidity-balanced {
  color: #4a8b6b;
}

.humidity-humid {
  color: #3c6fb3;
}

.humidity-sticky {
  color: #6a49a8;
}

.safety-low {
  color: #b84a3a;
}

.safety-mid {
  color: #b47b24;
}

.safety-good {
  color: #3e8a62;
}

.safety-high {
  color: #2f6ea8;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  justify-content: flex-start;
  align-content: center;
}

.city-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(249, 250, 251, 0.96);
  border: 1px solid rgba(25, 33, 37, 0.08);
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.city-detail {
  margin-bottom: 14px;
  padding: 20px 22px 22px;
  border-radius: 24px;
}

.detail-shell {
  display: grid;
  gap: 14px;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.detail-back,
.detail-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(25, 33, 37, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #184e80;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.detail-link-button {
  border-color: rgba(63, 116, 216, 0.16);
  background: rgba(63, 116, 216, 0.08);
}

.detail-link-button-plain {
  background: rgba(255, 255, 255, 0.94);
}

.detail-link-text-short {
  display: none;
}

.detail-title-wrap {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.detail-title-head {
  display: block;
}

.detail-kicker-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
}

.detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-title-row h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.detail-flag {
  width: 52px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(22, 33, 28, 0.12);
  flex: 0 0 auto;
}

.detail-kicker {
  margin: 0 0 2px;
  color: #184e80;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.detail-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.detail-updated {
  margin: 8px 0 0;
  color: rgba(91, 95, 92, 0.78);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-hero {
  align-items: start;
}

.detail-hero-with-image {
  position: relative;
  padding: 16px;
  border-radius: 24px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(13, 28, 42, 0.34), rgba(13, 28, 42, 0.46)),
    var(--detail-hero-image);
  background-position: var(--detail-hero-position, center 50%);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 150px;
}

.detail-hero-map.detail-hero-with-image {
  background-image: none;
  background-color: #0d1c2a;
}

.detail-hero-map.no-map-image::before {
  display: none !important;
}

.detail-hero-map.detail-hero-with-image::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 28, 42, 0.15) 0%,
    rgba(13, 28, 42, 0.45) 50%,
    rgba(13, 28, 42, 0.75) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.detail-hero-map.detail-header {
  grid-template-columns: 1fr;
  column-gap: 0;
}

.detail-hero-with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 22, 0.06), rgba(6, 14, 24, 0.2));
  pointer-events: none;
}

.detail-hero-map::before {
  content: "";
  position: absolute;
  inset: -10px;
  background-image: var(--detail-hero-image);
  background-position: var(--detail-hero-position, center 50%);
  background-size: cover;
  filter: blur(1.5px) brightness(0.7) contrast(1.05) saturate(1.15);
  z-index: 0;
  display: block;
  border-radius: inherit; /* Align rounded corners of blurred pseudo-element */
}

.detail-hero-map.detail-hero-with-image > * {
  position: relative;
  z-index: 2;
}

.detail-hero-map .detail-title-wrap {
  width: min(100%, 720px);
  max-width: 720px;
  padding: 8px 8px 32px;
}

.detail-hero-map .detail-title-head {
  align-items: flex-start;
  gap: 14px;
}

.detail-hero-map .detail-hero-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  align-self: start;
  justify-content: flex-end;
}

.detail-hero-with-image .detail-back,
.detail-hero-with-image .detail-link-button,
.detail-hero-with-image .detail-score-pill {
  border-color: rgba(255, 255, 255, 0.28);
}

.detail-hero-with-image .detail-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.detail-hero-with-image .detail-back,
.detail-hero-with-image .detail-link-button {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(8px);
}

.detail-hero-with-image .detail-score-pill {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.detail-hero-with-image .detail-score-pill strong {
  color: #fff;
}

.detail-hero-with-image .detail-kicker,
.detail-hero-with-image .country-link-detail {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-shadow: 
    0 0 4px rgba(13, 28, 42, 0.45), 
    0 0 10px rgba(13, 28, 42, 0.2);
}

.detail-hero-with-image .detail-title-row h2,
.detail-hero-with-image .detail-updated {
  color: #fff;
  text-shadow: 
    0 0 4px rgba(13, 28, 42, 0.6), 
    0 0 10px rgba(13, 28, 42, 0.4), 
    0 0 24px rgba(13, 28, 42, 0.2);
}

.detail-hero-with-image .detail-title-wrap {
  padding-bottom: 32px;
}

.detail-hero-with-image .detail-updated {
  position: absolute;
  left: 18px;
  bottom: 18px;
  margin: 0;
}

.detail-hero-with-image .detail-subtitle {
  max-width: 78ch;
  text-shadow: 
    0 0 4px rgba(13, 28, 42, 0.45), 
    0 0 10px rgba(13, 28, 42, 0.2);
}

.detail-hero-map .detail-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 0 4px rgba(13, 28, 42, 0.45), 
    0 0 10px rgba(13, 28, 42, 0.2);
  font-size: 0.94rem;
  line-height: 1.4;
}

.detail-hero-with-image .detail-subtitle a {
  color: inherit;
  text-decoration-color: currentColor;
}

.detail-hero-with-image .detail-subtitle a:hover {
  color: inherit;
  text-decoration-color: currentColor;
}

.detail-hero-map .detail-updated {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
}

.detail-hero-map .detail-badge {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.3);
  color: #184e80;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-hero-map .detail-back,
.detail-hero-map .detail-link-button,
.detail-hero-map .detail-score-pill {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 24px rgba(7, 16, 28, 0.14);
  color: #184e80;
  backdrop-filter: blur(8px);
}

.detail-hero-map .detail-score-pill strong {
  color: #184e80;
}

.detail-hero-map .detail-back:hover,
.detail-hero-map .detail-link-button:hover {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.58);
  color: #184e80;
}

.detail-hero-map .detail-back:focus-visible,
.detail-hero-map .detail-link-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.detail-hero-map .detail-title-row h2,
.detail-hero-map .detail-kicker,
.detail-hero-map .country-link-detail {
  color: #ffffff;
}

.detail-hero-map .detail-kicker,
.detail-hero-map .country-link-detail {
  color: rgba(255, 255, 255, 0.95);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.detail-hero-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.detail-hero-map .detail-hero-meta {
  margin-top: 0;
}

.detail-hero-badges {
  z-index: 2;
  margin: 0;
}

.detail-badges-hero .detail-badge {
  background: rgba(25, 33, 37, 0.06);
  border: 1px solid rgba(25, 33, 37, 0.1);
  color: #4a5568;
  font-size: 0.74rem;
  padding: 3px 10px;
  min-height: 24px;
  font-weight: 500;
  box-shadow: none;
}

.detail-hero-with-image .detail-badges-hero .detail-badge,
.detail-hero-map .detail-badges-hero .detail-badge {
  background: rgba(13, 28, 42, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.detail-hero-with-image .detail-score-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-hero-map .detail-score-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.84);
  color: #184e80;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-hero-with-image .detail-score-pill strong {
  color: #fff;
  font-size: 0.92rem;
}

.detail-hero-map .detail-score-pill strong {
  color: #184e80;
  font-size: 0.92rem;
}

.detail-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 4px 2px;
  margin-bottom: 2px;
}

.detail-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(25, 33, 37, 0.12);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.detail-score-pill strong {
  font-size: 1rem;
  color: var(--ink);
}

button.detail-score-pill {
  cursor: pointer;
  border: 1px solid rgba(25, 33, 37, 0.12);
  background: rgba(248, 250, 252, 0.96);
  transition: background 150ms ease, border-color 150ms ease;
}

button.detail-score-pill:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(63, 116, 216, 0.3);
}

.detail-summary-grid,
.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-summary-grid-compact,
.detail-facts-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-guide-grid-editorial {
  align-items: start;
  gap: 22px;
}

.detail-guide-gallery {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: stretch;
  margin: 4px 0 8px;
}

.detail-guide-gallery-single {
  grid-template-columns: minmax(0, 1fr);
  justify-self: center;
  width: min(100%, 1180px);
}

.detail-guide-gallery-item {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-guide-gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(24, 32, 43, 0.12);
}

.detail-guide-gallery-item-wide img {
  aspect-ratio: 16 / 6.8;
  max-height: 520px;
}

.detail-guide-gallery-item:not(.detail-guide-gallery-item-wide) img {
  aspect-ratio: 1 / 1;
}

.detail-guide-gallery-item figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: var(--font-ui);
  padding: 0 4px;
  margin-top: 2px;
}

.detail-editorial-two-up {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0 10px;
}

.detail-editorial-two-up-item {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-editorial-two-up-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(24, 32, 43, 0.12);
}

.detail-editorial-two-up-item figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: var(--font-ui);
  padding: 0 4px;
  margin-top: 2px;
}

.detail-editorial-three-up {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0 10px;
}

.detail-editorial-three-up-item {
  margin: 0;
  display: grid;
  gap: 10px;
}

.detail-editorial-three-up-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(24, 32, 43, 0.12);
}

.detail-editorial-three-up-item figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: var(--font-ui);
  padding: 0 4px;
  margin-top: 2px;
}



.detail-guide-card-wide {
  grid-column: 1 / -1;
}

.detail-guide-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--panel-shadow);
}

.detail-guide-card-section {
  gap: 14px;
}

.detail-guide-card-feature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
  margin: 4px 0 8px;
}

.detail-guide-card-text-first {
  gap: 14px;
}

.detail-guide-card-lite {
  background: linear-gradient(180deg, rgba(252, 250, 247, 0.7), rgba(255, 255, 255, 0.82));
  box-shadow: none;
}

.detail-booking-tips-card {
  grid-column: 1 / -1;
  border-color: rgba(52, 108, 156, 0.22);
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.92), rgba(250, 253, 255, 0.88));
  margin-top: 6px;
}

.detail-fit-card {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(255, 255, 255, 0.88));
}

details.detail-fit-card {
  display: block;
}

details.detail-fit-card[open] {
  display: grid;
}

.detail-fit-total {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.detail-fit-total strong {
  color: #184e80;
}

.detail-fit-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-fit-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.detail-fit-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-fit-item-head strong {
  color: #184e80;
}

.detail-fit-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(53, 111, 158, 0.12);
}

.detail-fit-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #287eb8, #6fb2ce);
}

.detail-fit-item p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.25;
}

.detail-guide-outro-card {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.96), rgba(236, 243, 250, 0.88));
  border-color: rgba(45, 85, 120, 0.2);
  box-shadow: 0 8px 24px rgba(20, 38, 56, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.detail-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.detail-editorial-grid-compact {
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-fallback-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.detail-utility-row {
  display: grid;
  gap: 10px;
  padding: 4px 2px 2px;
}

.detail-guide-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
}

.detail-card-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.detail-card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  padding: 4px;
  margin-right: 2px;
  flex-shrink: 0;
}

.detail-card-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.detail-card-icon-weather {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.detail-card-icon-budget {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.detail-card-icon-safety {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}



.detail-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  font-family: var(--font-ui);
}

.detail-feature-image {
  margin: 0;
  display: grid;
  gap: 8px;
}

.detail-feature-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.detail-feature-image img {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.detail-feature-image-wide img {
  aspect-ratio: 16 / 7;
}

.detail-feature-image figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: var(--font-ui);
}

.detail-feature-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  align-items: start;
}

.detail-feature-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-feature-copy-wide {
  width: 100%;
  max-width: none;
}

.detail-feature-copy .detail-editorial-card {
  background: rgba(248, 250, 252, 0.9);
}

.detail-copy-section {
  display: grid;
  gap: 10px;
  padding: 8px 4px;
}

.detail-copy-section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.detail-copy-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-family: var(--font-ui);
}

.detail-snapshot-section {
  padding: 2px 0 0;
  align-content: start;
}

.detail-fallback-months,
.detail-fallback-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.detail-fallback-links {
  justify-content: flex-end;
}

.detail-fallback-label {
  display: inline-flex;
  align-items: center;
  height: 24px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.detail-resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(63, 116, 216, 0.12);
  background: rgba(63, 116, 216, 0.05);
  color: #184e80;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.detail-resource-link:hover {
  background: rgba(63, 116, 216, 0.12);
  color: #184e80;
}

.detail-resource-link svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  stroke: currentColor;
  flex-shrink: 0;
}

.detail-fit-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.detail-fit-summary h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-fit-summary-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-fit-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #184e80;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 150ms ease;
}

.detail-fit-toggle-icon::after {
  content: "+";
}

.detail-fit-card[open] .detail-fit-toggle-icon::after {
  content: "−";
}



.detail-subtitle a,
.detail-guide-card p a,
.detail-copy-section p a,
.detail-editorial-card p a,
.detail-alternative-copy p a,
.detail-plan-list li a {
  color: #184e80;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

.detail-subtitle a:hover,
.detail-guide-card p a:hover,
.detail-copy-section p a:hover,
.detail-editorial-card p a:hover,
.detail-alternative-copy p a:hover,
.detail-plan-list li a:hover {
  color: #123b60;
}

.detail-guide-card-placeholder {
  background: linear-gradient(180deg, rgba(252, 250, 247, 0.95), rgba(255, 255, 255, 0.88));
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
}

.detail-badges-months {
  align-items: center;
}

.detail-badges-months .detail-badge {
  min-height: 24px;
  padding: 0 8px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 33, 37, 0.1);
  background: rgba(25, 33, 37, 0.05);
  color: #4a5568;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.1;
  font-family: var(--font-ui);
}

.detail-guide-action {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #184e80;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.detail-guide-action:hover {
  color: #184e80;
  border-color: rgba(24, 78, 128, 0.36);
  background: rgba(24, 78, 128, 0.08);
}

.detail-plan-card {
  gap: 12px;
}

.detail-plan-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  line-height: 1.5;
}

.detail-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.detail-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.detail-cta-button:hover {
  transform: translateY(-1px);
}

.detail-cta-hotels {
  background: #184e80;
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 78, 128, 0.2);
}

.detail-cta-hotels:hover {
  background: #1d5d99;
  box-shadow: 0 10px 24px rgba(24, 78, 128, 0.28);
}

.detail-cta-activities {
  background: #fff;
  color: #184e80;
  border: 1px solid rgba(24, 78, 128, 0.2);
  box-shadow: 0 8px 20px rgba(24, 78, 128, 0.08);
}

.detail-cta-activities:hover {
  background: #f8fbff;
  border-color: rgba(24, 78, 128, 0.35);
  box-shadow: 0 10px 24px rgba(24, 78, 128, 0.12);
}

.detail-hero-cta-wrap {
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-self: center;
  flex-shrink: 0;
}

.detail-hero-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #0d1c2a !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 12px rgba(13, 28, 42, 0.16) !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  padding: 0 18px !important;
  min-height: 38px !important;
  font-weight: 700 !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.detail-hero-cta-btn:hover {
  background: #f1f5f9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(13, 28, 42, 0.25) !important;
}

.detail-hero-cta-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(13, 28, 42, 0.15) !important;
}

.detail-hero-cta-btn:hover .detail-hero-cta-icon {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .detail-title-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .detail-hero-cta-wrap {
    align-self: flex-start;
    margin-top: 4px;
  }
}

.detail-editorial-card,
.detail-alternative-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
  margin-bottom: 2px;
}

.detail-editorial-card h4,
.detail-alternative-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.96rem;
  line-height: 1.3;
}

.detail-editorial-card h4 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-editorial-card h4 a:hover {
  color: #123b60;
}

.detail-editorial-card p,
.detail-alternative-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.detail-editorial-kicker {
  color: #184e80;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-editorial-vibe {
  color: var(--ink);
  font-style: italic;
}

.detail-editorial-stack {
  display: grid;
  gap: 10px;
}

.detail-alternative-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.9));
  border-color: rgba(45, 85, 120, 0.18);
  box-shadow: 0 2px 8px rgba(22, 45, 70, 0.06);
}

.detail-alternative-copy {
  display: grid;
  gap: 6px;
}

.detail-chart-grid {
  display: grid;
  gap: 10px;
}

.detail-chart-grid-primary {
  grid-template-columns: 1fr;
}

.detail-meta-section {
  display: grid;
  gap: 10px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.detail-section-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  font-family: var(--font-ui);
}

.detail-section-summary strong {
  color: var(--ink);
}

.detail-weather-more-grid {
  display: grid;
  gap: 10px;
}

.detail-weather-more {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.detail-weather-more summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
}

.detail-weather-more-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 600;
}

.detail-weather-more-title {
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
}

.detail-weather-more summary::-webkit-details-marker {
  display: none;
}

.detail-weather-more-summary {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.detail-weather-more summary::after {
  content: "+";
  color: #184e80;
  font-size: 1rem;
  font-weight: 700;
  justify-self: end;
}

.detail-weather-more[open] summary::after {
  content: "−";
}

.detail-weather-more-static .detail-weather-more-head {
  cursor: default;
}

.detail-weather-more-body {
  padding: 0 12px 10px;
}

.detail-chart-card,
.detail-fact {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.detail-chart-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 4px;
}

.detail-chart-head h3 {
  margin: 0 0 2px;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
}

.detail-chart-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-ui);
}

.detail-chart-head strong {
  color: #184e80;
  font-size: 0.86rem;
  white-space: nowrap;
  font-family: var(--font-ui);
}

.detail-chart-svg {
  width: 100%;
  height: 152px;
  display: block;
}

.detail-chart-svg text {
  fill: var(--muted);
  font-size: 14px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
}

.detail-point-label {
  font-size: 13px;
  font-weight: 600;
}

.detail-point-label-high {
  fill: #d04d35;
}

.detail-point-label-low {
  fill: #346fd1;
}

.detail-point-label-humidity {
  fill: #3f73c9;
}

.detail-point-label-rainfall {
  fill: #7a6235;
}

.detail-chart-grid-line {
  stroke: rgba(24, 34, 47, 0.1);
  stroke-width: 1;
}

.detail-chart-marker {
  stroke: rgba(63, 116, 216, 0.2);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.detail-chart-band {
  stroke: none;
}

.detail-chart-band-temperature {
  fill: rgba(63, 116, 216, 0.08);
}

.detail-chart-band-humidity {
  fill: rgba(63, 115, 201, 0.1);
}

.detail-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.detail-chart-line-high {
  stroke: #d04d35;
}

.detail-chart-line-low {
  stroke: #346fd1;
}

.detail-chart-line-humidity {
  stroke: #3f73c9;
}

.detail-chart-line-rainfall {
  stroke: #7a6235;
}

.detail-fact {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
  box-shadow: var(--panel-shadow);
}

@media (max-width: 680px) {
  .detail-fact {
    padding: 6px 8px;
    border-radius: 12px;
  }
  .detail-fact-label {
    font-size: 0.72rem;
  }
  .detail-fact-value {
    font-size: 0.8rem;
  }
}

.detail-fact-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-ui);
}

.detail-fact-value {
  font-size: 1rem;
}

.detail-fact-note {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-fact-warm {
  background: linear-gradient(180deg, rgba(255, 235, 227, 0.95), rgba(255, 245, 240, 0.84));
}

.detail-fact-warm .detail-fact-value {
  color: #b84a33;
}

.detail-fact-cool {
  background: linear-gradient(180deg, rgba(231, 240, 255, 0.95), rgba(244, 248, 255, 0.84));
}

.detail-fact-cool .detail-fact-value {
  color: #3568c5;
}

.detail-fact-safe {
  background: linear-gradient(180deg, rgba(233, 247, 239, 0.95), rgba(245, 251, 247, 0.84));
}

.detail-fact-safe .detail-fact-value {
  color: #2e7a59;
}

.detail-fact-dry {
  background: linear-gradient(180deg, rgba(252, 244, 225, 0.95), rgba(255, 249, 239, 0.84));
}

.detail-fact-dry .detail-fact-value {
  color: #8f6828;
}

.detail-fact-sunny {
  background: linear-gradient(180deg, rgba(255, 242, 204, 0.95), rgba(255, 250, 234, 0.84));
}

.detail-fact-sunny .detail-fact-value {
  color: #a06b14;
}

.detail-fact-neutral {
  background: linear-gradient(180deg, rgba(248, 243, 239, 0.95), rgba(252, 249, 246, 0.84));
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 33, 37, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.feature-tag:hover {
  border-color: rgba(63, 116, 216, 0.24);
  background: rgba(63, 116, 216, 0.08);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.feature-tag.is-active {
  border-color: rgba(47, 95, 193, 0.26);
  background: rgba(63, 116, 216, 0.12);
  color: var(--accent-deep);
}

.feature-tag:focus-visible {
  outline: 2px solid rgba(47, 95, 193, 0.22);
  outline-offset: 2px;
}

.flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(25, 33, 37, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  line-height: 1.1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.flag-pill:hover {
  border-color: rgba(63, 116, 216, 0.24);
  background: rgba(63, 116, 216, 0.08);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.flag-pill:focus-visible {
  outline: 2px solid rgba(47, 95, 193, 0.22);
  outline-offset: 2px;
}

.flag-pill-image {
  width: 18px;
  height: 13px;
  border-radius: 3px;
  object-fit: cover;
}

@media (max-width: 880px) {
  .best-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .best-hero-copy {
    margin-right: 0;
    min-height: 0;
    padding: 28px;
  }

  .best-hero h1 {
    max-width: 100%;
  }

  .best-hero-figure {
    height: auto;
  }

  .best-hero-image {
    height: auto;
    min-height: 280px;
    max-height: 420px;
  }

  .best-hero-caption {
    position: static;
    margin-top: 8px;
    text-align: right;
  }

  .best-section-head {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .best-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-lockup {
    flex-direction: column;
    align-items: start;
  }

  .intro {
    text-align: left;
  }

  .filters {
    grid-template-columns: 1fr;
    row-gap: 8px;
    background: #f7f6f5 !important;
    padding: 10px 10px;
    border-radius: 24px;
    border: 1px solid rgba(25, 33, 37, 0.05);
  }

  .tag-filter-row {
    flex-wrap: wrap;
  }

  .results-table-head {
    display: none;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
    align-items: start;
    gap: 10px;
    margin: 0 0 12px;
    font-family: var(--font-ui);
  }

  .mobile-sort-control {
    position: relative;
  }

  .mobile-sort-toggle,
  .filters-toggle {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--panel-shadow);
  }

  .mobile-actions .filters-toggle {
    width: 100%;
    margin: 0;
  }

  .mobile-sort-toggle {
    min-width: 116px;
  }

  .mobile-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 12;
    display: grid;
    min-width: 128px;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(24, 32, 43, 0.12);
  }

  .mobile-sort-button {
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
  }

  .mobile-sort-button.is-active {
    border-color: rgba(47, 95, 193, 0.24);
    background: rgba(63, 116, 216, 0.08);
    color: var(--accent-deep);
  }

  .detail-header,
  .detail-fallback-grid,
  .detail-guide-grid,
  .detail-guide-grid-secondary,
  .detail-summary-grid:not(.detail-summary-grid-compact),
  .detail-facts-grid:not(.detail-facts-grid-compact),
  .detail-fit-breakdown {
    grid-template-columns: 1fr;
  }

  .detail-editorial-grid {
    grid-template-columns: 1fr;
  }

  .detail-guide-gallery {
    grid-template-columns: 1fr;
  }

  .detail-editorial-two-up,
  .detail-editorial-three-up {
    grid-template-columns: 1fr;
  }

  .detail-feature-split {
    grid-template-columns: 1fr;
  }

  .detail-fallback-grid,
  .detail-fallback-months {
    align-items: start;
    justify-content: flex-start;
  }

  .detail-fallback-links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .detail-resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .detail-links {
    justify-content: flex-start;
  }

  .detail-title-head {
    flex-direction: column;
  }

  .detail-hero-actions {
    justify-content: flex-start;
  }

  .detail-hero-with-image {
    min-height: 0;
  }

  .detail-weather-more summary {
    align-items: start;
  }



  .detail-chart-svg text {
    font-size: 15px;
  }

  .detail-point-label {
    font-size: 14px;
  }

  .city-row {
    grid-template-columns: 1fr;
  }

  .city-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .seo-city-page dl {
    grid-template-columns: 1fr;
  }

  .best-page {
    gap: 20px;
    padding-top: 10px;
  }

  .best-breadcrumb {
    font-size: 0.82rem;
  }

  .best-hero-copy {
    gap: 14px;
    padding: 20px;
  }

  .best-hero h1 {
    font-size: 2.8rem;
    line-height: 0.94;
  }

  .best-hero-copy > p:last-child {
    font-size: 0.96rem;
  }

  .best-hero-image {
    min-height: 210px;
  }

  .best-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero.detail-header,
  .detail-hero-map.detail-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-hero-with-image {
    padding: 14px;
  }

  .detail-hero-with-image.detail-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero-map.detail-hero-with-image {
    background-image:
      linear-gradient(180deg, rgba(16, 89, 135, 0.6) 0%, rgba(16, 89, 135, 0.25) 74%),
      var(--detail-hero-image);
    background-position:
      center,
      center 40%;
    background-size:
      cover,
      auto 122%;
  }

  .detail-hero-map::before {
    display: none; /* Hide blurred duplicate map on mobile to fix corner clipping */
  }

  .detail-hero-map .detail-title-head {
    padding-right: 0;
  }

  .detail-title-wrap {
    gap: 6px;
  }

  .detail-hero-map .detail-title-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .detail-kicker-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 12px;
  }

  .detail-title-row {
    align-items: flex-start;
  }

  .detail-title-row h2 {
    font-size: 1.75rem;
  }

  .detail-kicker {
    margin-bottom: 4px;
  }

  .detail-subtitle {
    text-align: left;
    max-width: 24ch;
  }

  .detail-hero-with-image .detail-title-wrap {
    padding-bottom: 0;
  }

  .detail-hero-with-image .detail-updated {
    position: static;
    margin-top: 6px;
  }

  .detail-badges-hero {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100%, calc(100% - 12px));
    padding-bottom: 40px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .site-footer {
    margin-top: 18px;
  }


  .brand-lockup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 8px;
    padding-top: 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 0;
  }

  .brand-lockup::before {
    height: 30px;
    opacity: 0.45;
  }

  .brand-lockup::after {
    width: 96px;
    height: 96px;
    transform: translate(16px, -10px);
    opacity: 0.7;
  }

  .eyebrow {
    font-size: 2rem;
  }

  .intro {
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: left;
  }

  .intro-block {
    width: 100%;
    grid-column: 1 / -1;
    display: block;
    position: relative;
    padding-right: 0;
  }

  .intro-link-desktop {
    display: none !important;
  }

  .intro-link-mobile {
    display: flex !important;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(25, 33, 37, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
    text-underline-offset: 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .intro-link-mark {
    display: inline;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
  }

  .month-strip {
    padding: 10px 14px 8px;
    border-radius: 22px;
  }

  .month-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .month-strip-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .month-strip-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
  }

  input[type="range"] {
    height: 30px;
  }

  .dual-range {
    height: 30px;
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8.5px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }

  .detail-hero-actions,
  .detail-hero-map .detail-hero-actions {
    position: static;
    grid-column: auto;
    width: 100%;
    justify-content: flex-start;
    align-self: start;
    flex-wrap: nowrap;
    overflow-x: auto;
    order: 3;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .detail-hero-actions::-webkit-scrollbar {
    display: none;
  }

  .detail-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  /* detail-hero-badges flow naturally inside detail-title-wrap */

  .detail-action-bar {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    margin-top: -2px;
    padding-bottom: 0px;
    margin-bottom: -2px;
    gap: 8px;
  }

  .detail-utility-row {
    padding: 0 2px 0px;
  }

  .detail-action-bar::-webkit-scrollbar {
    display: none;
  }

  .detail-resource-link {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .detail-resource-link svg {
    width: 12px;
    height: 12px;
    margin-right: 4px;
  }



  .detail-score-pill,
  .detail-link-button {
    flex: 0 0 auto;
  }

  .detail-link-button,
  .detail-back {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .detail-link-text-full {
    display: none;
  }

  .detail-link-text-short {
    display: inline;
  }

  .detail-score-pill {
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .trip-presets {
    padding: 12px 14px;
    border-radius: 20px;
  }

  .trip-presets-header h2 {
    font-size: 0.88rem;
  }

  .trip-presets-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    background: rgba(25, 33, 37, 0.05);
    padding: 4px;
    border-radius: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .trip-presets-row::-webkit-scrollbar {
    display: none;
  }

  .trip-preset-button {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    min-height: 32px;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    background: transparent;
    color: var(--accent-deep);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: none;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
  }



  .trip-preset-button.is-active {
    background: #fff;
    color: var(--accent-deep);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(25, 33, 37, 0.12), 0 1px 1px rgba(25, 33, 37, 0.04);
  }

  .detail-weather-more summary {
    flex-direction: column;
  }

  .detail-weather-more-summary {
    text-align: left;
  }

  .month-strip-header h2,
  #month-label {
    font-size: 0.9rem;
  }

  .month-strip-controls {
    gap: 8px;
  }

  .month-strip-tools {
    gap: 6px;
  }

  .temp-unit-button {
    min-width: 34px;
    min-height: 32px;
    padding: 0 6px;
    font-size: 0.74rem;
  }

  .share-button {
    min-height: 32px;
    width: 32px;
    min-width: 32px;
  }

  .month-slider {
    display: none;
  }

  .month-ticks {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    margin-right: 0;
    margin-left: 0;
    padding: 2px 0 0;
    font-size: 0.76rem;
    scrollbar-width: none;
  }

  .month-ticks::-webkit-scrollbar {
    display: none;
  }

  .month-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    flex: 0 0 54px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    opacity: 0.8;
    font-weight: 500;
    scroll-snap-align: start;
  }

  .month-ticks .month-tick.is-active {
    background: rgba(92, 143, 187, 0.12);
    border-color: rgba(92, 143, 187, 0.4);
    color: var(--accent-deep);
    opacity: 1;
    font-weight: 700;
  }

  .filters-toggle {
    display: block;
  }

  .info-overlay {
    padding: 12px;
  }

  .info-dialog {
    padding: 16px;
    border-radius: 20px;
  }

  .info-dialog-head h2 {
    font-size: 1.24rem;
  }

  .filters {
    padding: 10px 12px 12px;
    border-radius: 20px;
  }

  .filters.is-collapsed {
    display: none;
  }



  .detail-guide-card {
    padding: 14px;
    border-radius: 16px;
  }

  .detail-badge {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .detail-chart-svg {
    height: auto;
  }

  .detail-chart-svg text {
    font-size: 13px;
  }

  .detail-point-label {
    font-size: 12px;
  }

  .field {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(25, 33, 37, 0.04);
    box-shadow: 0 4px 12px rgba(25, 33, 37, 0.02);
  }

  .field > span,
  .field-tags legend {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
  }

  .field-tags legend {
    margin-bottom: 0;
  }

  .field > output {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    align-self: center;
    font-size: 0.88rem !important;
    font-weight: 500;
    color: var(--muted);
  }

  .field > input[type="range"],
  .field > .dual-range,
  .field > .country-filter,
  .field > .tag-filter-row {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
  }

  input[type="range"] {
    padding: 4px 0;
  }

  .country-filter input,
  .country-clear {
    height: 44px;
  }

  .field output {
    font-size: 0.76rem;
  }

  .tag-toggle span {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .city-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity overall"
      "metrics metrics"
      "tags tags";
    gap: 8px 10px;
    padding: 8px 10px;
    border-radius: 14px;
    align-items: start;
  }

  .city-identity {
    grid-area: identity;
    align-items: start;
  }

  .city-copy h3 {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }

  .location {
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 3px;
  }

  .overall-cell {
    grid-area: overall;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
  }

  .overall-cell::before {
    content: "Match";
    display: inline;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-ui);
  }

  .score-chip {
    font-size: 0.94rem;
    line-height: 1;
  }

  .city-metrics {
    grid-area: metrics;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .city-metrics > div::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-ui);
  }

  .city-metrics strong {
    display: block;
    font-size: 0.88rem;
    line-height: 1.08;
  }

  .temperature-metric {
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 38px;
  }

  .temperature-metric strong {
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .temperature-sparkline {
    width: min(74px, 100%);
    height: 14px;
  }

  .city-tags {
    grid-area: tags;
    gap: 4px;
  }

  .flag-pill,
  .feature-tag {
    font-size: 0.68rem;
    padding: 5px 8px;
  }
}

/* Similar alternatives search-context metrics and tags */
.detail-alternative-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.detail-alternative-metric {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg-card);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.detail-alternative-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.detail-alternative-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1c5e94;
  background: rgba(28, 94, 148, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Align flag and city title row */
.detail-alternative-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-alternative-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Compact layout for similarity alternative cards */
.detail-alternative-card-compact {
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.detail-alternative-card-compact .detail-alternative-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1;
}

.detail-alternative-card-compact .detail-alternative-title-row {
  min-width: 140px;
}

.detail-alternative-card-compact .detail-alternative-metrics,
.detail-alternative-card-compact .detail-alternative-tags {
  margin-top: 0;
}

/* Mobile responsive collapse for compact cards */
@media (max-width: 680px) {
  .detail-alternative-card-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 16px;
  }

  .detail-alternative-card-compact .detail-alternative-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .detail-alternative-card-compact .detail-alternative-metrics {
    margin-top: 4px;
  }

  .detail-alternative-card-compact .detail-alternative-tags {
    margin-top: 2px;
  }
}

/* ==========================================================================
   City Comparison Page Styles
   ========================================================================== */

.compare-page {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 16px 20px 60px;
  box-sizing: border-box;
}

.compare-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--muted);
}

.compare-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.compare-breadcrumb a:hover {
  color: #184e80;
  text-decoration: underline;
}

.compare-hero {
  margin-bottom: 36px;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #184e80 0%, #0d1c2a 100%);
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.compare-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px 0;
  line-height: 1.15;
}

.compare-hero p {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 60ch;
  margin: 0 auto;
}

.compare-section {
  margin-bottom: 40px;
}

.compare-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 20px 0;
  color: #0d1c2a;
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 8px;
}

/* Side-by-Side Dual Booking & Intro Cards */
.compare-two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.compare-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.compare-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.compare-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  color: #0d1c2a;
}

.compare-card-body p {
  font-family: var(--font-ui);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px 0;
  flex: 1;
}

.compare-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #1c5e94;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
  box-shadow: 0 4px 12px rgba(28, 94, 148, 0.16);
}

.compare-cta-button:hover {
  background-color: #154670;
}

.compare-cta-secondary {
  margin-top: 10px;
  background-color: transparent;
  color: #1c5e94;
  border: 1px solid rgba(28, 94, 148, 0.3);
  box-shadow: none;
}

.compare-cta-secondary:hover {
  background-color: rgba(28, 94, 148, 0.05);
  border-color: #1c5e94;
}

/* Comparison Table Grid */
.compare-table {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.compare-table-cell {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  display: flex;
  align-items: center;
}

.compare-table-cell.header {
  background-color: #f8fafc;
  font-weight: 700;
  color: #0d1c2a;
  font-size: 1rem;
}

.compare-table-cell.label {
  font-weight: 600;
  color: #4a5568;
}

.compare-table-cell.value {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #1a202c;
}

.compare-table-cell.winner {
  font-weight: 700;
  color: #059669;
  background-color: rgba(16, 185, 129, 0.04);
}

.compare-table-cell:nth-last-child(-n+3) {
  border-bottom: none;
}

/* Climate Charts side-by-side bars */
.compare-climate-bar-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.compare-climate-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.compare-climate-label {
  width: 25px;
  font-weight: 700;
}

.compare-climate-bar-outer {
  flex: 1;
  height: 12px;
  background: rgba(53, 111, 158, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.compare-climate-bar-inner {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}

.compare-climate-bar-inner.rain {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.compare-climate-val {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .compare-two-up {
    grid-template-columns: 1fr;
  }
  
  .compare-table {
    grid-template-columns: 1fr 1fr;
  }
  
  .compare-table-cell.header:first-child {
    grid-column: 1 / -1;
  }
  
  .compare-table-cell.label {
    grid-column: 1 / -1;
    background-color: #f1f5f9;
    border-bottom: none;
    padding-bottom: 8px;
    padding-top: 8px;
  }
  
  .compare-table-cell.value {
    border-bottom: 1px solid var(--line-strong);
  }
  
  .compare-table-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Compare page booking search widget */
.compare-booking-widget {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--line-strong, #e2e8f0);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.compare-booking-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.compare-booking-input-group {
  display: flex;
  flex-direction: column;
}
.compare-booking-input-group label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--muted, #64748b);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-booking-input-group input {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 8px;
  padding: 8px 10px;
  color: #0f172a;
  background-color: #f8fafc;
  width: 100%;
  box-sizing: border-box;
}
.compare-booking-input-group input:focus {
  outline: none;
  border-color: #184e80;
  background-color: #ffffff;
}
.compare-search-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin: 0 !important;
}


