:root {
  --bg-0: #07131d;
  --bg-1: #0d2233;
  --bg-2: #13344c;
  --surface: rgba(244, 251, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #eef6fc;
  --ink: #102738;
  --ink-soft: #496073;
  --line: rgba(16, 39, 56, 0.14);
  --line-soft: rgba(16, 39, 56, 0.08);
  --accent: #f26f3b;
  --accent-2: #f8a665;
  --accent-green: #2fae69;
  --accent-green-2: #218a52;
  --error: #9a2a3f;
  --ok: #126640;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-lg: 0 18px 48px rgba(5, 17, 28, 0.28);
  --shadow-md: 0 10px 24px rgba(12, 31, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1), var(--bg-2));
}

body.modal-open {
  overflow: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% -2%, rgba(255, 151, 103, 0.26), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(98, 186, 246, 0.22), transparent 32%),
    repeating-linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 2px,
      transparent 2px,
      transparent 12px
    );
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.9rem 1.05rem 2.5rem;
}

.hero {
  color: #f3f8fd;
  margin-bottom: 1.05rem;
  animation: hero-enter 500ms ease both;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.74rem;
  border-radius: 999px;
  font: 600 0.74rem "Manrope", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.17);
}

.hero h1 {
  margin: 0.45rem 0 0;
  font-family: "Bricolage Grotesque", "Manrope", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.96;
}

.subtitle {
  margin: 0.5rem 0 0;
  max-width: 63ch;
  color: rgba(243, 248, 253, 0.9);
  font-size: 0.98rem;
}

.hero-language-compact {
  position: relative;
}

.lang-flag-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(5, 16, 27, 0.26);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lang-flag-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-flag-btn span {
  font-size: 1.15rem;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  background: rgba(11, 29, 44, 0.92);
  box-shadow: 0 18px 36px rgba(5, 16, 27, 0.36);
  overflow: hidden;
  z-index: 110;
}

.lang-menu button {
  width: 100%;
  border: 0;
  padding: 0.5rem 0.66rem;
  text-align: left;
  color: #ecf5fb;
  background: transparent;
  font: 600 0.82rem "Manrope", sans-serif;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: rgba(255, 255, 255, 0.15);
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  animation: panel-enter 620ms ease both;
}

.controls {
  position: relative;
  z-index: 60;
  overflow: visible;
  display: grid;
  gap: 0.78rem;
  align-items: end;
  grid-template-columns: minmax(250px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  padding: 0.92rem;
}

label {
  display: grid;
  gap: 0.32rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

select,
input[type="search"],
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.63rem 0.72rem;
  font: 600 0.9rem "Manrope", sans-serif;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

select:focus,
input[type="search"]:focus,
input[type="number"]:focus {
  border-color: rgba(242, 111, 59, 0.55);
  box-shadow: 0 0 0 3px rgba(242, 111, 59, 0.2);
  outline: none;
}

.search-field {
  position: relative;
  z-index: 70;
  grid-column: 1;
}

.search-row {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: 1fr auto;
}

.search-row button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.61rem 0.92rem;
  font: 700 0.86rem "Manrope", sans-serif;
  color: #fff;
  background: linear-gradient(136deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(242, 111, 59, 0.3);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242, 111, 59, 0.34);
}

.search-row .locate-btn {
  color: #0f3d58;
  background: linear-gradient(140deg, #d9edf9, #c9e6fb);
  box-shadow: 0 8px 20px rgba(17, 69, 99, 0.2);
}

.search-row .locate-btn:hover {
  box-shadow: 0 10px 24px rgba(17, 69, 99, 0.25);
}

.search-row button:disabled {
  cursor: default;
  transform: none;
  filter: saturate(0.8);
  opacity: 0.8;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 999;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.search-result-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  text-align: left;
  padding: 0.62rem 0.72rem;
  font: 600 0.87rem "Manrope", sans-serif;
  color: var(--ink);
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover {
  background: #f2f8fc;
}

.search-result-item small {
  display: block;
  margin-top: 0.13rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.search-empty {
  margin: 0;
  padding: 0.72rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.location-chip {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.56rem 0.66rem;
  background: linear-gradient(145deg, #ffffff, var(--surface-soft));
}

.location-chip .label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.location-chip p {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.trip-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.worth-open-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  font: 800 1rem "Bricolage Grotesque", sans-serif;
  color: #fff;
  background: linear-gradient(140deg, var(--accent-green), var(--accent-green-2));
  box-shadow: 0 8px 18px rgba(33, 138, 82, 0.35);
  cursor: pointer;
}

.worth-open-btn:hover {
  filter: brightness(1.05);
}

.worth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.worth-modal[hidden] {
  display: none !important;
}

.worth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 27, 0.7);
  backdrop-filter: blur(6px);
}

.worth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(90dvh, 920px);
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(150deg, #ffffff, #eef6fc);
  box-shadow: 0 30px 70px rgba(6, 20, 33, 0.45);
  padding: 1rem;
}

.worth-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.78rem;
}

.worth-modal-head h2 {
  margin: 0;
  font: 800 1.18rem "Bricolage Grotesque", sans-serif;
  color: #173243;
}

.worth-close-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e8eff5;
  color: #173243;
  font-size: 1.24rem;
  line-height: 1;
  cursor: pointer;
}

.worth-close-btn:hover {
  filter: brightness(0.97);
}

.worth-form-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 0.8rem;
}

.worth-card {
  margin: 0;
  padding: 0.76rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(148deg, #ffffff, #edf6fc);
}

.worth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.worth-top h3 {
  margin: 0.22rem 0 0;
  font: 700 0.96rem "Bricolage Grotesque", sans-serif;
  color: #173243;
}

.worth-btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.56rem 0.82rem;
  font: 700 0.86rem "Manrope", sans-serif;
  color: #fff;
  background: linear-gradient(136deg, var(--accent-green), var(--accent-green-2));
  box-shadow: 0 8px 20px rgba(33, 138, 82, 0.32);
  cursor: pointer;
}

.worth-btn:hover {
  filter: brightness(1.04);
}

.worth-context {
  margin: 0.54rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.worth-metrics {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.46rem;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.worth-metric {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.56rem;
  background: rgba(255, 255, 255, 0.9);
}

.worth-metric span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.worth-metric strong {
  display: block;
  margin-top: 0.14rem;
  color: var(--ink);
  font-size: 0.86rem;
}

.worth-card.state-gain #worthItSummary {
  color: var(--ok);
}

.worth-card.state-loss #worthItSummary {
  color: var(--error);
}

.worth-card.state-gain .worth-metric.is-key {
  border-color: rgba(18, 102, 64, 0.24);
  background: rgba(18, 102, 64, 0.09);
}

.worth-card.state-loss .worth-metric.is-key {
  border-color: rgba(154, 42, 63, 0.24);
  background: rgba(154, 42, 63, 0.1);
}

.workspace {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: minmax(340px, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
}

.map-panel,
.list-panel {
  padding: 0.84rem;
  min-height: 420px;
  height: clamp(460px, calc(100dvh - 260px), 760px);
}

.map-panel {
  display: flex;
  flex-direction: column;
}

.list-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head h2 {
  margin: 0;
  font: 800 1.02rem "Bricolage Grotesque", sans-serif;
  color: #173243;
}

.panel-head {
  display: grid;
  gap: 0.62rem;
}

.panel-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(18, 102, 64, 0.2);
  background: rgba(18, 102, 64, 0.1);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
}

.status.error {
  border-color: rgba(154, 42, 63, 0.22);
  background: rgba(154, 42, 63, 0.1);
  color: var(--error);
}

.insights-grid {
  display: grid;
  gap: 0.48rem;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.insight-card {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 0.46rem 0.54rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.88));
}

.insight-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.leaflet-container {
  font-family: "Manrope", sans-serif;
  background: #eaf2f7;
  filter: saturate(1.06) contrast(1.04);
}

.leaflet-control-zoom {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  color: #1f3a4e !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 8px 0 0 0;
}

.leaflet-popup-content {
  font-family: "Manrope", sans-serif;
  color: #18364a;
  line-height: 1.44;
}

.popup-nav-link {
  display: inline-block;
  margin-top: 0.38rem;
  padding: 0.3rem 0.54rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(136deg, #1c8a55, #2cb671);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.popup-nav-link:hover {
  filter: brightness(1.04);
}

.station-list {
  display: grid;
  gap: 0.72rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.12rem;
}

.station-list::-webkit-scrollbar {
  width: 8px;
}

.station-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(16, 39, 56, 0.22);
}

.station-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 0.74rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: card-in 420ms ease both;
}

.station-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 37, 53, 0.14);
}

.station-card.active {
  border-color: rgba(47, 174, 105, 0.7);
  box-shadow: 0 0 0 1px rgba(47, 174, 105, 0.35), 0 12px 26px rgba(47, 174, 105, 0.17);
}

.station-card-skeleton {
  cursor: default;
  animation: card-in 420ms ease both;
}

.station-card-skeleton .skeleton-line {
  display: block;
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(20, 44, 63, 0.08) 20%,
    rgba(20, 44, 63, 0.2) 50%,
    rgba(20, 44, 63, 0.08) 80%
  );
  background-size: 220% 100%;
  animation: skeleton-shimmer 1200ms ease-in-out infinite;
  margin-top: 0.5rem;
}

.station-card-skeleton .skeleton-line:first-child {
  margin-top: 0;
}

.station-card-skeleton .skeleton-line.w-32 {
  width: 32%;
}

.station-card-skeleton .skeleton-line.w-60 {
  width: 60%;
}

.station-card-skeleton .skeleton-line.w-78 {
  width: 78%;
}

.station-card-skeleton .skeleton-grid {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.38rem;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
}

.station-card-skeleton .skeleton-grid .skeleton-line {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  margin: 0;
}

.station-top {
  display: flex;
  justify-content: space-between;
  gap: 0.72rem;
}

.rank {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.station-top h3 {
  margin: 0.19rem 0 0;
  font: 700 1.03rem "Bricolage Grotesque", sans-serif;
  color: #163245;
}

.meta {
  margin: 0.34rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.state-pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(31, 71, 97, 0.09);
  color: #3f5363;
}

.state-pill.open {
  background: rgba(18, 102, 64, 0.14);
  color: #115f3b;
}

.state-pill.closed {
  background: rgba(154, 42, 63, 0.14);
  color: #862738;
}

.state-pill.unknown {
  background: rgba(73, 96, 115, 0.14);
  color: #3f5363;
}

.price-grid {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.46rem;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
}

.price-grid div {
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 0.45rem 0.52rem;
  background: linear-gradient(145deg, #f8fcff, #edf5fc);
}

.price-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.price-grid strong {
  display: block;
  margin-top: 0.19rem;
  color: var(--ink);
  font-size: 0.83rem;
}

.details-grid {
  margin-top: 0.62rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-block {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #f8fbfe;
  padding: 0.44rem 0.54rem;
}

.detail-block h4 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-block ul {
  margin: 0.34rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
  font-size: 0.76rem;
}

.station-footer {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(16, 39, 56, 0.18);
  display: grid;
  gap: 0.24rem;
  font-size: 0.75rem;
}

.station-footer a {
  color: #0f4a78;
  text-decoration: none;
}

.station-footer a:hover {
  text-decoration: underline;
}

.station-footer .station-nav-link {
  display: inline-block;
  padding: 0.28rem 0.54rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(136deg, #1c8a55, #2cb671);
  text-decoration: none;
  font-weight: 700;
}

.station-footer .station-nav-link:hover {
  text-decoration: none;
  filter: brightness(1.04);
}

.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 18, 29, 0.62);
  backdrop-filter: blur(8px);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.startup-overlay.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-card {
  width: min(560px, 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem;
  color: #edf6fc;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(150deg, rgba(22, 46, 66, 0.96), rgba(20, 57, 81, 0.96));
  box-shadow: 0 28px 66px rgba(5, 15, 25, 0.5);
}

.startup-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: startup-spin 900ms linear infinite;
}

.startup-kicker {
  margin: 0.74rem 0 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(237, 246, 252, 0.78);
}

.startup-card h2 {
  margin: 0.28rem 0 0;
  font: 700 clamp(1.22rem, 2.2vw, 1.52rem) "Bricolage Grotesque", sans-serif;
}

.startup-card p {
  margin: 0.44rem 0 0;
  font-size: 0.9rem;
  color: rgba(237, 246, 252, 0.9);
}

.startup-skeletons {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.48rem;
}

.startup-skeletons span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16) 25%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.16) 75%
  );
  background-size: 200% 100%;
  animation: startup-shimmer 1200ms ease-in-out infinite;
}

.startup-skeletons span:nth-child(1) {
  width: 82%;
}

.startup-skeletons span:nth-child(2) {
  width: 96%;
}

.startup-skeletons span:nth-child(3) {
  width: 72%;
}

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

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes startup-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes startup-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes skeleton-shimmer {
  from {
    background-position: 180% 0;
  }
  to {
    background-position: -180% 0;
  }
}

@media (max-width: 1200px) {
  .controls {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  }

  .search-field {
    grid-column: 1 / -1;
  }

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

  .map-panel,
  .list-panel {
    height: auto;
    min-height: 430px;
  }

  .map {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 1.2rem 0.82rem 1.8rem;
  }

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

  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.62rem;
  }

  .hero-language-compact {
    align-self: flex-end;
  }

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

  .worth-top {
    flex-direction: column;
    align-items: stretch;
  }

  .worth-btn {
    width: 100%;
  }

  .worth-form-grid,
  .worth-metrics,
  .insights-grid,
  .details-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .list-panel {
    min-height: 360px;
  }

  .map {
    min-height: 320px;
  }
}

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