/* Styles for directions.html (moved out of the page so the security policy allows them) */
/* Layout: single narrow column, like a trail card handed to guests; numbered steps because the drive is a real sequence */
:root {
  --bg: #eef1ec;
  --surface: #ffffff;
  --ink: #1f2a24;
  --muted: #5b6a61;
  --pine: #2f5a43;
  --pine-soft: #dfe9e2;
  --line: #cfd8d1;
  --warn: #9a4a12;
  --warn-soft: #f8e9dc;
  --mailbox-black: #1b1d1c;
  --mailbox-green: #3e8a4f;
  --flag: #c0392b;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a17; --surface: #1c2420; --ink: #e6ece7; --muted: #a2b1a7;
    --pine: #8cc3a0; --pine-soft: #24342b; --line: #2f3c35;
    --warn: #f0b27a; --warn-soft: #34261b;
    --mailbox-black: #050606; --mailbox-green: #4fa863; --flag: #e05a4a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a17; --surface: #1c2420; --ink: #e6ece7; --muted: #a2b1a7;
  --pine: #8cc3a0; --pine-soft: #24342b; --line: #2f3c35;
  --warn: #f0b27a; --warn-soft: #34261b;
  --mailbox-black: #050606; --mailbox-green: #4fa863; --flag: #e05a4a;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-block: 40px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 600;
  margin: 0 0 6px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 10px;
  text-wrap: balance;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 14px;
}
p { margin: 0; }
.lede { color: var(--muted); max-width: 52ch; }

/* Address card */
.address {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.address strong { display: block; font-size: 1.2rem; font-weight: 600; }
.address span { color: var(--muted); font-size: 0.95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--surface);
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--pine); }
.btn:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }
#copied { color: var(--pine); font-size: 0.9rem; font-weight: 600; margin-top: -20px; }

/* Quick route strip */
.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  font-size: 0.95rem;
}
.route span {
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.route i { color: var(--muted); font-style: normal; }

/* Steps */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  counter-reset: step;
}
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
ol.steps > li::before {
  content: counter(step);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 600;
  display: grid;
  place-items: center;
}
ol.steps > li > div { min-width: 0; padding-top: 5px; display: flex; flex-direction: column; gap: 10px; }
.step-title { font-weight: 600; font-size: 1.08rem; }
ol.steps > li.turn::before { background: var(--pine); color: var(--surface); }

.wrong {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.97rem;
}
.wrong b { font-weight: 600; }

/* Photo slots: dashed frame shows until a real photo loads */
.photo {
  margin: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.photo.wide { aspect-ratio: 16 / 9; }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo .empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}
.photo .empty b { display: block; color: var(--pine); font-size: 0.95rem; }
.photo:has(img) { border-style: solid; }

/* Mailbox landmark */
.landmark {
  background: var(--pine-soft);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.landmark svg { width: 150px; max-width: 100%; height: auto; flex: none; }
.landmark div { flex: 1 1 200px; min-width: 0; }
.landmark h3 { margin: 0 0 4px; font-size: 1.02rem; font-weight: 600; }
.landmark p { font-size: 0.97rem; }

/* Arrival notes */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 16px;
  margin-top: 18px;
}
.note { border-top: 2px solid var(--pine); padding-top: 10px; }
.note h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.note p { color: var(--muted); font-size: 0.97rem; }

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--pine);
  background: var(--surface);
  border-radius: 8px;
  padding: 16px 18px;
}
.notice ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.notice b { font-weight: 600; }

.welcome {
  background: var(--pine);
  color: var(--surface);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.welcome h2 { color: var(--surface); margin: 0 0 8px; font-size: clamp(1.6rem, 5vw, 2rem); text-wrap: balance; }
.welcome p { max-width: 46ch; margin: 0 auto; }

footer { color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 18px; }
