:root {
  --ink: #142018;
  --muted: #607066;
  --line: #d3ded4;
  --paper: #f6faf4;
  --mist: #e8f0e4;
  --forest: #183d25;
  --moss: #4f7c45;
  --stone: #6f6254;
  --sun: #d7962d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 42px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 950;
  letter-spacing: .04em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 750;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: #526258;
  font-weight: 850;
}
.site-header nav a { text-decoration: none; }
.hero {
  min-height: 70vh;
  display: grid;
  align-items: end;
  padding: clamp(88px, 14vw, 170px) clamp(20px, 8vw, 120px) clamp(44px, 8vw, 92px);
  color: #fff;
  background-image: linear-gradient(180deg, rgba(7,20,13,.08), rgba(7,20,13,.82)), var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero > div { max-width: 1030px; }
.kicker {
  margin: 0 0 10px;
  color: var(--sun);
  font-size: .8rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .kicker {
  display: inline-block;
  padding: 3px 6px;
  background: rgba(255,255,255,.88);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: .88;
  letter-spacing: 0;
}
.hero p {
  max-width: 920px;
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 760;
}
.hero-actions, .chips, .quick-links, .card-actions, .network-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}
.hero-actions a:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--forest);
}
.tool-panel {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
  gap: 30px;
  padding: 42px clamp(20px, 6vw, 86px);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.tool-panel h2, .section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: .96;
}
.tool-panel p, .section-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}
.controls {
  display: grid;
  gap: 14px;
}
.controls label {
  color: #26372a;
  font-weight: 900;
}
.controls input, .controls select {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c7d5ca;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}
.trip-controls {
  display: grid;
  grid-template-columns: minmax(180px,1fr) minmax(150px,.5fr) auto;
  gap: 10px;
  align-items: end;
}
.trip-controls button, .chips button {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
.trip-controls button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
}
.origin-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #435247;
  font-weight: 850;
}
.language-control { max-width: 320px; }
.chips button {
  padding: 8px 11px;
  border: 1px solid #becfc2;
  background: #fff;
  color: var(--forest);
}
.section-shell { padding: 42px clamp(20px, 6vw, 86px); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.stat strong {
  display: block;
  font-size: 2.05rem;
  line-height: 1.05;
}
.stat span {
  color: var(--muted);
  font-weight: 800;
}
.quick-links {
  padding: 18px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.quick-links a, .gear-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfefd;
  font-weight: 900;
  text-decoration: none;
}
.photo-shell {
  background: #17231a;
  color: #f3f7ef;
}
.photo-shell .section-heading p { color: #ccd7c9; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
.photo-card {
  position: relative;
  grid-column: span 2;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #0d150f;
}
.photo-card-wide { grid-column: span 3; }
.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-card-wide img { aspect-ratio: 16 / 9; }
.photo-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(13,21,15,.78);
  color: #fff;
  font-size: .86rem;
  font-weight: 950;
}
.style-shell, .gear-shell { background: #fff; }
.style-grid, .gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.style-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf4;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.style-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}
.style-item span {
  color: var(--muted);
  font-weight: 680;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}
.section-heading > p { max-width: 660px; }
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 380px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.12;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill {
  border: 1px solid #d7e4d9;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef5ec;
  color: #3b503f;
  font-size: .78rem;
  font-weight: 950;
}
.card p {
  margin: 0;
  color: #46594b;
  font-weight: 650;
}
.card-actions { margin-top: auto; }
.card-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfefd;
  font-weight: 900;
  text-decoration: none;
}
.card-actions a:nth-child(1) { background: var(--forest); color: #fff; border-color: var(--forest); }
.card-actions a:nth-child(2) { background: var(--moss); color: #fff; border-color: var(--moss); }
.card-actions a:nth-child(8) { background: var(--stone); color: #fff; border-color: var(--stone); }
.card-actions a:nth-child(9) { background: var(--sun); color: #22180b; border-color: var(--sun); }
.empty-state { grid-column: 1 / -1; }
.sources, footer {
  padding: 24px clamp(20px, 6vw, 86px);
  background: #142018;
  color: #e3eadf;
}
.sources {
  background: #f2ead9;
  color: #3b2f1c;
}
.sources p { margin: 0 0 10px; }
.sources a { font-weight: 900; }
.network-links { margin-top: 12px; }
.network-links a {
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-header nav {
    justify-content: flex-start;
    font-size: .92rem;
  }
  .tool-panel, .section-heading { display: block; }
  .trip-controls, .stat-grid { grid-template-columns: 1fr; }
  .hero {
    min-height: 66vh;
    background-position: 58% center;
  }
  .hero h1 { font-size: 3.35rem; }
  .section-shell, .tool-panel { padding: 30px 18px; }
  .quick-links { padding: 18px; }
  .brand-mark { min-width: 58px; }
  .card { min-height: auto; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-card, .photo-card-wide {
    grid-column: span 1;
    min-height: 0;
  }
  .photo-card img, .photo-card-wide img { aspect-ratio: 1 / 1; }
}

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card img, .photo-card-wide img { aspect-ratio: 4 / 3; }
}
