﻿:root {
  --red: #9f1d1d;
  --ink: #16181c;
  --gold: #c4a15a;
  --cream: #f6f1e8;
  --muted: #6b655c;
  --line: rgba(22, 24, 28, 0.1);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  font-weight: 600;
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.15);
}

.brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

nav { display: flex; gap: 22px; font-weight: 600; font-size: 0.92rem; }
nav a:hover,
nav a.current { color: var(--red); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.lang-switch a { color: var(--muted); }
.lang-switch a.current,
.lang-switch a:hover { color: var(--red); }

.btn-line {
  display: inline-block;
  margin-top: 16px;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; margin: 8px 0 14px; letter-spacing: 0.02em; }

.menu {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.35), rgba(10,10,10,.88));
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.hero .kicker { color: var(--gold); }
.hero p { max-width: 46ch; color: rgba(255,255,255,.88); margin-bottom: 22px; }

.search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
}

.search input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 10px 14px;
  font: inherit;
  background: transparent;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: #7d1616; }

section { padding: 72px 0; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.split img {
  height: 420px;
  border-radius: 24px;
}

.split p { color: var(--muted); margin-bottom: 12px; }

.photos {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.photos figure { background: #fff; border-radius: 20px; overflow: hidden; }
.photos img { height: 280px; }
.photos figcaption {
  padding: 12px 14px 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.list-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.list-tools input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}

.filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.count {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.empty {
  color: var(--muted);
  padding: 20px 0;
}

.cards article span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.cards, .dept-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards article, .dept-row article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.cards p, .dept-row p { color: var(--muted); font-size: 0.92rem; }

.dept-row { grid-template-columns: repeat(4, 1fr); }
.dept-row article {
  color: var(--ink);
}
.dept-row article h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0;
}
.dept-row b {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.depts { background: #16181c; color: #f4ece0; }
.depts .kicker { color: var(--gold); }
.depts h2 { color: #fff; }

footer {
  background: #0f1114;
  color: #d8d0c4;
  padding: 40px 0 20px;
}

.foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.copy {
  width: min(1080px, calc(100% - 40px));
  margin: 16px auto 0;
  font-size: 0.82rem;
  opacity: .7;
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .dept-row { grid-template-columns: 1fr 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu { display: block; }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 20px 22px;
    gap: 12px;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; }
  header { position: sticky; }
  .split, .photos, .cards, .dept-row, .foot { grid-template-columns: 1fr; }
  .photos figure:first-child { grid-column: auto; }
  .hero { min-height: 72vh; }
  .split img, .photos img { height: 240px; }
  .search { flex-direction: column; border-radius: 18px; }
  .wrap { width: min(1080px, calc(100% - 32px)); }
  section { padding: 52px 0; }
}

.map-page {
  height: 100dvh;
  overflow: hidden;
  background: var(--cream);
}

.map-page .wrap {
  width: 100%;
  max-width: none;
  padding-inline: 28px;
}

.map-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100dvh - 72px);
}

.map-pane { position: relative; min-height: 0; }
#map { height: 100%; width: 100%; }
.map-page section { padding: 0; }

.map-page .leaflet-bottom.leaflet-right {
  margin: 0 16px 16px 0;
}
.map-page .leaflet-bottom.leaflet-right .leaflet-control {
  margin: 0;
}
.map-page .leaflet-control-zoom {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(22, 24, 28, 0.12);
}
.map-page .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  color: var(--ink);
  font-size: 16px;
}

.map-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
}

.basemap {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(22, 24, 28, 0.12);
  border: 1px solid var(--line);
}
.basemap button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.basemap button.active {
  background: var(--ink);
  color: #fff;
}

.locate {
  position: absolute;
  right: 16px;
  bottom: 104px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 24, 28, 0.12);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 0;
}

.nav-banner {
  position: absolute;
  top: 16px;
  left: 16px;
  right: auto;
  z-index: 540;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(340px, calc(100% - 200px));
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  box-shadow: 0 8px 28px rgba(22, 24, 28, 0.1);
  border: 1px solid var(--line);
}
.nav-banner[hidden] { display: none !important; }
.nav-copy { min-width: 0; }
.nav-banner p { font-size: 0.95rem; font-weight: 700; line-height: 1.25; margin: 0; }
.nav-banner small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.nav-exit {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
  white-space: nowrap;
}

.map-side {
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 28px 24px 32px;
}

.map-side .kicker { margin-bottom: 4px; }

.map-side h1 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.15;
}

.map-side input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.92rem;
  margin-bottom: 8px;
  background: var(--cream);
}

.map-side .suggest {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.map-side .suggest button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.browse-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
}

.side-list { display: grid; }

.side-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  cursor: pointer;
}

.side-item span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}
.side-item strong { display: block; font-size: 0.95rem; font-weight: 600; }
.side-item.active,
.side-item:hover { background: transparent; color: var(--red); }

.route-box {
  background: var(--cream);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin: 8px 0 4px;
}

.sheet-to { font-size: 1.05rem; font-weight: 700; }
.sheet-from { color: var(--muted); font-size: 0.82rem; }
.sheet-metrics {
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 12px;
}
.sheet-metrics .dot { margin: 0 6px; color: #c4bdb3; }
.sheet-step {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn { flex: 1; padding: 10px 16px; font-size: 0.88rem; }
.btn-quiet {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
}

body.is-nav .browse-label,
body.is-nav .side-list { display: none; }

.gpin { background: none !important; border: 0 !important; }
.gpin i { display: block; width: 14px; height: 14px; margin: 5px; border-radius: 50%; }
.gpin .end {
  width: 12px; height: 12px; margin: 4px auto 0;
  background: var(--red); border: 2px solid #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.gpin .you {
  background: #9f1d1d;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(159, 29, 29, 0.22);
}

@media (max-width: 860px) {
  .map-page .wrap { padding-inline: 16px; }
  .map-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: calc(100dvh - 72px);
  }
  #map { height: 100%; min-height: 0; }
  .map-page section { padding: 0; }
  .map-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 46vh;
    padding: 18px 18px 24px;
  }
  .map-side h1 { font-size: 1.35rem; margin-bottom: 12px; }
  .map-page .leaflet-bottom.leaflet-right {
    margin: 0 12px 12px 0;
  }
  .map-tools { top: 12px; right: 12px; }
  .nav-banner {
    left: 12px;
    max-width: calc(100% - 168px);
  }
  .locate { right: 12px; bottom: 100px; }
}

.admin-page {
  overflow: auto;
  min-height: 100dvh;
}

.admin { padding: 36px 0 72px; }
.admin-lead { color: var(--muted); max-width: 62ch; margin-bottom: 22px; }
.admin-msg {
  background: #e8f3ea;
  color: #1e4d28;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.admin-msg.err { background: #f8e8e8; color: var(--red); }
.admin-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-form label { display: grid; gap: 6px; font-weight: 700; font-size: 0.88rem; }
.admin-form input[type="text"],
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  background: var(--cream);
}
.admin-form textarea { min-height: 110px; resize: vertical; }
.desc-box {
  position: relative;
  display: block;
}
.desc-box textarea {
  padding-right: 14px;
  padding-bottom: 28px;
}
.desc-hint {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  letter-spacing: 0.02em;
}
.desc-hint.at-limit { color: var(--red); }
.admin-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-cats {
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-cats legend { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.admin-cats p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.admin-cats .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 44px;
}
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-actions .btn { flex: 1; text-align: center; padding: 12px 18px; }
.admin-list-title {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.admin-list { display: grid; gap: 10px; }
.admin-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.admin-list p { color: var(--muted); font-size: 0.9rem; margin: 4px 0; word-break: break-word; }
.admin-list small { color: var(--muted); display: block; }
.admin-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.admin-row-actions a,
.admin-row-actions button {
  border: 0;
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--red);
}
.admin-row-actions form { margin: 0; }

@media (max-width: 860px) {
  .admin { padding: 16px 0 40px; }
  .admin h2 { font-size: 1.55rem; margin-bottom: 10px; }
  .admin-lead { font-size: 0.9rem; margin-bottom: 16px; }
  .admin-form { padding: 16px; border-radius: 14px; gap: 14px; }
  .admin-coords { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; align-items: stretch; }
  .admin-actions .btn-quiet { text-align: center; padding: 12px; }
  .admin-list-title { font-size: 1.25rem; }
  .admin-list article {
    display: grid;
    gap: 12px;
  }
  .admin-row-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-row-actions a,
  .admin-row-actions button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
  }
}


