:root {
  color-scheme: light;
  --bg: #eef2ed;
  --bg-2: #e5ebe5;
  --ink: #17211d;
  --ink-soft: #40514b;
  --muted: #75837d;
  --line: rgba(47, 67, 58, 0.14);
  --panel: rgba(255, 255, 252, 0.88);
  --panel-solid: #fffffc;
  --brand: #1f6b5b;
  --brand-dark: #164d43;
  --brand-soft: #d8eae3;
  --accent: #b77934;
  --danger: #a33b31;
  --ok: #226c47;
  --shadow: 0 22px 50px -28px rgba(27, 55, 44, 0.45);
  --shadow-tight: 0 14px 28px -22px rgba(20, 45, 36, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Aptos",
    "Segoe UI",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 8% -6%, rgba(31, 107, 91, 0.24), transparent 34rem),
    radial-gradient(circle at 95% 16%, rgba(183, 121, 52, 0.16), transparent 30rem),
    linear-gradient(180deg, #f6f8f3 0%, var(--bg) 42%, #edf1ec 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(23, 33, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

.mobile-web {
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(31, 107, 91, 0.22), transparent 30rem),
    #dfe6df;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 120;
  padding: 8px 12px;
  transform: translateY(-140%);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100dvh;
}

.mobile-web .app-shell {
  width: min(100%, 430px);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 107, 91, 0.18), transparent 24rem),
    linear-gradient(180deg, #f7f8f3 0%, #edf2ed 100%);
  box-shadow: 0 0 0 1px rgba(47, 67, 58, 0.08), 0 30px 90px -34px rgba(23, 33, 29, 0.54);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px max(16px, env(safe-area-inset-left)) 12px;
  background: rgba(246, 248, 243, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.1);
}

.mobile-web .topbar {
  width: min(100%, 430px);
  min-height: 64px;
  margin: 0 auto;
  padding-top: max(12px, env(safe-area-inset-top));
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--brand-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--shadow-tight);
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.city-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.city-switch select,
.topbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 30px 0 12px;
  background: rgba(255, 255, 252, 0.72);
  color: var(--ink);
  outline: none;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 15px 106px;
}

.mobile-web .page {
  width: 100%;
}

.mobile-web .hero {
  grid-template-columns: 1fr;
}

.mobile-web .section-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.mobile-web .two-col {
  grid-template-columns: 1fr;
}

.mobile-web .route-card {
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 10px;
}

.mobile-web .route-card h3 {
  font-size: 18px;
}

.admin-page {
  width: min(1200px, 100%);
}

.login-page {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 22px;
  min-height: calc(100dvh - 40px);
}

.hero,
.admin-hero,
.login-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(22, 77, 67, 0.98), rgba(31, 107, 91, 0.9)),
    var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 24px 20px 20px;
  isolation: isolate;
}

.hero > :not(.hero-carousel) {
  position: relative;
  z-index: 2;
}

.hero-carousel,
.hero-slide,
.hero::before {
  position: absolute;
  inset: 0;
}

.hero-carousel {
  z-index: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  animation: heroSlideFade 12s ease-in-out infinite;
  will-change: opacity, transform;
}

.map-slide {
  background-image: url("/assets/guilin-map-bg.svg");
}

.scenery-slide {
  background-image: url("/assets/guilin-scenery-bg.svg");
  animation-delay: 6s;
}

.hero::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 52, 45, 0.92) 0%, rgba(17, 52, 45, 0.76) 45%, rgba(17, 52, 45, 0.34) 100%),
    linear-gradient(0deg, rgba(17, 52, 45, 0.52), rgba(17, 52, 45, 0.18));
}

.hero::after,
.admin-hero::after,
.login-hero::after {
  position: absolute;
  z-index: 1;
  right: -42px;
  top: -36px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 62%);
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel .eyebrow,
.section-head .eyebrow,
.admin-detail .eyebrow {
  color: var(--muted);
}

.hero h2,
.admin-hero h2,
.login-hero h1 {
  margin: 0;
  font-size: clamp(32px, 9vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy,
.admin-hero p,
.login-hero p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.68;
}

.login-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
}

.stats,
.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats {
  align-self: end;
}

.stat {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat strong,
.score-strip strong {
  display: block;
  font-size: clamp(18px, 5.2vw, 22px);
  line-height: 1;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.stat span,
.score-strip span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 2px 12px;
}

.section-head.compact {
  display: block;
  margin: 0 0 16px;
}

.section-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-head p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(430px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.84);
  box-shadow: 0 18px 44px -22px rgba(20, 45, 36, 0.58);
  backdrop-filter: blur(18px) saturate(1.05);
}

.tabs::before {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 42px;
  height: 3px;
  content: "";
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(47, 67, 58, 0.18);
}

.mobile-web .tabs {
  width: min(402px, calc(100% - 28px));
}

.tab,
.ghost,
.primary,
.danger,
.small-btn,
.route-link {
  min-height: 42px;
  border-radius: 13px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(34, 50, 43, 0.07);
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease;
}

.tab {
  position: relative;
  min-height: 44px;
  font-weight: 650;
}

.tab:hover,
.ghost:hover,
.small-btn:hover,
.route-link:hover {
  background: rgba(34, 50, 43, 0.11);
}

.tab:active,
.ghost:active,
.primary:active,
.danger:active,
.small-btn:active,
.route-link:active {
  transform: scale(0.98);
}

.tab.active,
.primary,
.route-link {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 22px -16px rgba(31, 107, 91, 0.82);
}

.tab.active::after {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 2px;
  content: "";
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.primary:hover,
.route-link:hover {
  background: var(--brand-dark);
}

.danger {
  color: #fff;
  background: var(--danger);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.64);
}

.small-btn {
  min-height: 36px;
  font-size: 13px;
}

.small-btn.active {
  color: #fff;
  background: var(--brand-dark);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 107, 91, 0.25);
  outline-offset: 2px;
}

.route-feed,
.grid,
.admin-list {
  display: grid;
  gap: 13px;
}

.route-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: stretch;
  gap: 13px;
  min-height: 166px;
  padding: 12px;
  border-radius: 21px;
  background: rgba(255, 255, 252, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-tight);
  color: inherit;
  text-decoration: none;
  animation: rise 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.route-visual {
  min-width: 0;
  min-height: 100%;
  display: flex;
}

.route-cover,
.route-placeholder {
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  border-radius: 16px;
  background: #d7ded5;
}

.thumb-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.thumb-metrics span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border-radius: 8px;
  background: rgba(35, 49, 43, 0.07);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.thumb-metrics span:last-child {
  color: var(--brand-dark);
  background: rgba(31, 107, 91, 0.11);
}

.route-placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(31, 107, 91, 0.16), rgba(183, 121, 52, 0.16)),
    #e9eee8;
}

.route-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
}

.route-topline,
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.route-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.route-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.route-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-publisher,
.detail-publisher {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.route-publisher strong,
.detail-publisher strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-metrics span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(35, 49, 43, 0.07);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.pill.ok {
  background: rgba(34, 108, 71, 0.12);
  color: var(--ok);
}

.pill.warn {
  background: rgba(183, 121, 52, 0.14);
  color: #7b4d17;
}

.pill.danger {
  background: rgba(163, 59, 49, 0.13);
  color: var(--danger);
}

.route-link {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  font-size: 13px;
  text-decoration: none;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  text-decoration: none;
}

.panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(47, 67, 58, 0.18);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255, 255, 252, 0.78);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(31, 107, 91, 0.56);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 107, 91, 0.1);
}

.file-field input {
  padding-top: 12px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 22px;
  border: 1px dashed rgba(47, 67, 58, 0.24);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 252, 0.46);
}

.empty strong {
  color: var(--ink);
  font-size: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(23, 33, 29, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
}

.map-box {
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(47, 67, 58, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 107, 91, 0.1), rgba(183, 121, 52, 0.08)),
    #edf1ec;
  color: var(--muted);
  text-align: center;
}

.trip-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(47, 67, 58, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.66);
}

.trip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trip-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
}

.trip-info {
  display: grid;
  gap: 7px;
}

.trip-info div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(35, 49, 43, 0.06);
}

.trip-info span {
  color: var(--muted);
  font-size: 11px;
}

.trip-info strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}

.trip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trip-actions .hidden {
  display: none;
}

.trip-actions.solo {
  grid-template-columns: 1fr;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
}

.modal-page {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
}

.mobile-web .modal-page {
  left: 50%;
  width: min(100%, 430px);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(47, 67, 58, 0.08), 0 30px 90px -34px rgba(23, 33, 29, 0.54);
}

.detail-page {
  max-width: 740px;
}

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

.detail-summary h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.detail-publisher {
  margin: 8px 0 0;
}

.detail-metrics {
  margin-bottom: 12px;
}

.detail-copy,
.detail-note,
.review-copy p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.detail-note strong,
.review-copy strong {
  color: var(--ink);
}

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

.route-detail-skeleton span,
.route-detail-skeleton strong,
.route-detail-skeleton i {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(47, 67, 58, 0.08), rgba(255, 255, 252, 0.68), rgba(47, 67, 58, 0.08));
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.route-detail-skeleton span {
  width: 34%;
  height: 18px;
}

.route-detail-skeleton strong {
  width: 72%;
  height: 34px;
}

.route-detail-skeleton i {
  width: 100%;
  height: 300px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.profile-row h3 {
  margin: 0;
  font-size: 22px;
}

.profile-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.avatar-tile {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.score-strip {
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 14px;
}

.score-strip div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 107, 91, 0.08);
}

.score-strip span {
  color: var(--muted);
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 16px;
  margin-top: 16px;
}

.admin-sidebar {
  align-self: start;
}

.admin-item {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(47, 67, 58, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 252, 0.58);
  color: var(--ink);
  text-align: left;
}

.admin-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.admin-item.active {
  border-color: rgba(31, 107, 91, 0.52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 107, 91, 0.09);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-bar {
  justify-content: flex-end;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) 1.14fr;
  gap: 16px;
  margin-top: 14px;
}

.review-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlideFade {
  0%,
  41% {
    opacity: 1;
    transform: scale(1);
  }
  50%,
  91% {
    opacity: 0;
    transform: scale(1.035);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
  }

  .map-slide {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 820px) {
  .hero,
  .login-page,
  .admin-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .mobile-web {
    display: block;
  }

  .mobile-web .app-shell,
  .mobile-web .modal-page {
    width: 100%;
    box-shadow: none;
  }

  .topbar {
    align-items: center;
  }

  .city-switch span {
    display: none;
  }

  .page {
    padding-inline: 13px;
  }

  .hero {
    padding: 23px 18px 18px;
    border-radius: 24px;
  }

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

  .stat {
    min-height: 76px;
    padding: 10px;
  }

  .stat strong {
    font-size: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .route-card {
    grid-template-columns: 118px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .route-card h3 {
    font-size: 18px;
  }

  .route-cover,
  .route-placeholder {
    border-radius: 15px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 15px;
    border-radius: 22px;
  }

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