:root {
  --ink: #102028;
  --muted: #596b70;
  --line: #cfdde0;
  --paper: #f5faf9;
  --foam: #e2f1ec;
  --deep: #092b32;
  --reef: #0b7b83;
  --coral: #d9573d;
  --gold: #d7a93f;
}

* { 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(--reef);
  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: #52646a;
  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(5,22,30,.12), rgba(5,22,30,.80)), var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero > div { max-width: 1010px; }
.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  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,.86);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: .88;
  letter-spacing: 0;
}
.hero p {
  max-width: 850px;
  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(--deep);
}
.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(--foam);
}
.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: #24363b;
  font-weight: 900;
}
.controls input, .controls select {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c8d5d1;
  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(--deep);
  background: var(--deep);
  color: #fff;
}
.origin-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #3e555a;
  font-weight: 850;
}
.language-control { max-width: 320px; }
.chips button {
  padding: 8px 11px;
  border: 1px solid #bfd0cc;
  background: #fff;
  color: var(--deep);
}
.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;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}
.section-heading > p { max-width: 660px; }
.photo-shell {
  background: #102126;
  color: #f4faf7;
}
.photo-shell .section-heading p { color: #c8d7d3; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
}
.photo-card {
  position: relative;
  grid-column: span 2;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #071216;
}
.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(7,18,22,.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: #f7fbfa;
  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;
}
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 365px;
  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 #d7e4e0;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf4f1;
  color: #375157;
  font-size: .78rem;
  font-weight: 950;
}
.card p {
  margin: 0;
  color: #44585e;
  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(--deep); color: #fff; border-color: var(--deep); }
.card-actions a:nth-child(2) { background: var(--reef); color: #fff; border-color: var(--reef); }
.card-actions a:nth-child(8) { background: var(--coral); color: #fff; border-color: var(--coral); }
.card-actions a:nth-child(9) { background: #0b5960; color: #fff; border-color: #0b5960; }
.empty-state { grid-column: 1 / -1; }
.sources, footer {
  padding: 24px clamp(20px, 6vw, 86px);
  background: #102126;
  color: #dfeae7;
}
.sources {
  background: #f5ead3;
  color: #3b2c16;
}
.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: 45% 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; }
}
