:root {
  --ink: #191716;
  --muted: #675f55;
  --paper: #fbf8f2;
  --panel: #ffffff;
  --line: #ded8cc;
  --blue: #174d73;
  --blue-dark: #102f45;
  --red: #b52b38;
  --gold: #d39f2b;
  --green: #2f6f5e;
  --violet: #5d4a86;
  --shadow: 0 18px 48px rgba(25, 23, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(251, 248, 242, 0.93);
  border-bottom: 1px solid rgba(25, 23, 22, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.nav a {
  padding: 8px 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.nav a:hover {
  color: var(--red);
}

.language-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.language-menu label {
  white-space: nowrap;
}

.language-menu select {
  min-height: 36px;
  max-width: 178px;
  margin: 0;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

#google_translate_element {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.language-menu .goog-te-gadget {
  height: 0;
  overflow: hidden;
  font-size: 0;
}

body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(20, 15, 12, 0.9), rgba(20, 15, 12, 0.56) 48%, rgba(20, 15, 12, 0.12)),
    linear-gradient(0deg, rgba(20, 15, 12, 0.62), rgba(20, 15, 12, 0.04) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 9vh 0 13vh;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(50px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  width: min(800px, 100%);
  margin: 24px 0 28px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-search {
  width: min(820px, 100%);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 850;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

.travel-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.origin-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
}

#originStatus {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.search-row button,
.card-actions a,
.route-actions a,
.card-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: white;
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

#heroSearchStatus {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue-dark);
  color: white;
}

.stats-band div {
  min-height: 112px;
  padding: 24px clamp(18px, 3vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats-band strong {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
}

.section {
  padding: clamp(54px, 8vw, 94px) clamp(18px, 4vw, 54px);
}

.section-dark {
  color: white;
  background: #171514;
}

.section-soft {
  background: #f1eee7;
}

.section-heading {
  width: min(1040px, 100%);
  margin: 0 auto 28px;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.image-grid,
.gallery-grid,
.area-grid,
.style-grid,
.detour-grid,
.route-grid,
.planning-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
}

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

.image-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #2a2521;
}

.image-tile.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 534px;
}

.image-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.image-tile:hover img {
  transform: scale(1.035);
}

.image-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  font-size: 14px;
  font-weight: 850;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(190px, 0.36fr);
  gap: 18px;
  width: min(1240px, 100%);
  margin: 0 auto 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.controls h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.sort-control {
  align-self: start;
}

.sort-control label {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 850;
}

.sort-control select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: #f7f4ee;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, 100%);
  margin: 0 auto 18px;
  color: var(--muted);
  font-weight: 780;
}

.results-meta p {
  margin: 0;
}

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

.gallery-card,
.area-card,
.style-card,
.route-card,
.planning-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(25, 23, 22, 0.06);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  overflow: hidden;
}

.card-top {
  padding: 16px 16px 0;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.gallery-card h3,
.area-card h3,
.style-card h3,
.route-card h3,
.planning-grid h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
}

.gallery-card p,
.area-card p,
.style-card p,
.route-card p,
.planning-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.meta-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.meta-list span {
  display: block;
}

.meta-list strong {
  color: var(--ink);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin-top: auto;
  padding: 16px;
}

.card-actions a {
  min-height: 38px;
  padding: 0 9px;
  background: var(--blue);
  font-size: 13px;
}

.card-actions a:nth-child(2) {
  background: var(--red);
}

.card-actions a:nth-child(3) {
  color: var(--ink);
  background: var(--gold);
}

.area-grid,
.style-grid,
.detour-grid,
.route-grid,
.planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.area-card,
.style-card,
.route-card,
.planning-grid article {
  padding: 18px;
}

.area-card,
.style-card {
  display: flex;
  flex-direction: column;
}

.card-filter-button {
  width: 100%;
  margin-top: auto;
  color: white;
  background: var(--blue);
}

.style-card .card-filter-button {
  margin-top: 16px;
  background: var(--violet);
}

.area-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 760;
}

.area-stat strong {
  color: var(--ink);
}

.style-card ul,
.route-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.style-card li,
.route-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 740;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detour-card {
  display: grid;
  gap: 14px;
  min-height: 248px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.detour-card h3 {
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: 0;
}

.detour-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.detour-card > div:first-child p {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detour-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  align-self: end;
}

.detour-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 9px;
  color: white;
  background: var(--violet);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.detour-actions a:nth-child(2) {
  background: var(--red);
}

.detour-actions a:nth-child(3) {
  color: var(--ink);
  background: var(--gold);
}

.route-actions a {
  min-height: 38px;
  color: white;
  background: var(--violet);
  font-size: 13px;
}

.route-actions a:nth-child(2) {
  background: var(--green);
}

.planning {
  background: var(--blue-dark);
  color: white;
}

.planning .section-heading h2,
.planning h3 {
  color: white;
}

.planning-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.planning-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.76);
  background: #171514;
}

.footer strong {
  color: white;
}

@media (max-width: 1120px) {
  .gallery-grid,
  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-card {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .stats-band,
	  .controls,
	  .area-grid,
	  .style-grid,
	  .detour-grid,
	  .route-grid,
	  .planning-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid,
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-tile.featured {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 64px 0 82px;
  }

  .search-row,
  .travel-row,
  .stats-band,
  .controls,
  .gallery-grid,
	  .image-grid,
	  .area-grid,
	  .style-grid,
	  .detour-grid,
	  .route-grid,
	  .planning-grid {
    grid-template-columns: 1fr;
  }

  .image-tile,
  .image-tile.featured {
    min-height: 310px;
  }

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

  .language-menu {
    width: 100%;
  }

  .language-menu select {
    max-width: none;
    width: 100%;
  }
}
