:root {
  --bg: #f5f4ef;
  --surface: #fcfbf8;
  --surface-soft: #f7f5f1;
  --surface-strong: #efece6;
  --text: #1f1d18;
  --muted: #6f6b63;
  --muted-strong: #4d4a43;
  --border: #ddd8cf;
  --border-strong: #cfc8bc;
  --primary: #0f766e;
  --primary-hover: #0b5f59;
  --primary-soft: #d9ece8;
  --shadow-sm: 0 2px 10px rgba(30, 24, 16, 0.05);
  --shadow-md: 0 10px 30px rgba(30, 24, 16, 0.07);
  --shadow-lg: 0 18px 45px rgba(30, 24, 16, 0.1);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1240px;
  --header-height: 76px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(245, 244, 239, 0.84);
  border-bottom: 1px solid rgba(31, 29, 24, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.site-logo {
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 44px 0 20px;
}

.hero__inner {
  padding: 8px 0 0;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 920px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__copy {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
}

.search-box {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 920px;
}

.search-box input {
  flex: 1;
  min-height: 58px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.search-box input::placeholder {
  color: #8a847b;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.search-box button,
.geo-btn {
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--shadow-sm);
}

.search-box button:hover,
.geo-btn:hover {
  background: #0f0f0f;
  transform: translateY(-1px);
}

.search-box button:focus-visible,
.geo-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

.search-results {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.search-hit {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-hit:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.search-hit img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-strong);
}

.search-hit strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.search-hit span {
  color: var(--muted);
  font-size: 14px;
}

.search-empty {
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

.nearby-section,
.destinations-section,
.category-section,
.stats-section {
  padding: 22px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-link {
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary);
}

.section-link:hover {
  color: var(--primary-hover);
}

.nearby-status {
  margin: 0 0 14px;
  color: var(--muted);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 216px;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rail > * {
  scroll-snap-align: start;
}

.place-card {
  width: 216px;
  min-width: 216px;
  max-width: 216px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.place-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.place-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e9e6df;
}

.place-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.cat-hidden-gems { background: #0f766e; }
.cat-urbex { background: #475569; }
.cat-weird-food { background: #dd6b20; }
.cat-dark-tourism { background: #7a3d1f; }
.cat-instagrammable { background: #c02672; }
.cat-strange-places { background: #6d28d9; }
.cat-default { background: #334155; }

.place-card__body {
  padding: 12px 12px 14px;
}

.place-card__body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.place-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.place-card__body p + p {
  margin-top: 5px;
}

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

.destination-card {
  position: relative;
  display: block;
  min-height: 196px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: #dddcd6;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.destination-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.16));
}

.destination-card__content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
}

.destination-card__content strong {
  display: block;
  font-size: 17px;
  line-height: 1.12;
  margin-bottom: 4px;
}

.destination-card__meta {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  opacity: 0.96;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.destination-card__desc {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.95;
}

.stats-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.mini-list-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid #ece7de;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mini-list__item:hover {
  background: #f2efe8;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.mini-list__item span {
  color: #3d3a34;
}

.mini-list__item strong {
  color: #161616;
}

@media (max-width: 1100px) {
  .destinations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .stats-duo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .section-head,
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    gap: 12px;
  }

  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero__copy {
    font-size: 16px;
  }

  .search-box button,
  .geo-btn {
    width: 100%;
  }

  .rail {
    grid-auto-columns: 184px;
    gap: 12px;
  }

  .place-card {
    width: 184px;
    min-width: 184px;
    max-width: 184px;
  }

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

  .destination-card {
    min-height: 176px;
  }

  .destination-card__content strong {
    font-size: 15px;
  }

  .mini-list-card h2 {
    font-size: 22px;
  }
}