/* ---------------------------------------------------------------------------
   Villa Beaux Jours — styles
   Fonts: Cormorant Garamond (elegant display), Montserrat (clean body/nav)
--------------------------------------------------------------------------- */

:root {
  --ink: #2b2b2b;
  --muted: #6f6f6f;
  --paper: #fbf9f5;
  --gold: #b08d57;
  --overlay: rgba(30, 28, 25, 0.35);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; }

/* ---- Header / nav ---- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  height: var(--header-h);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  border-color: var(--gold);
}

/* Language switcher in the nav */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-lang:hover { opacity: 1; color: var(--gold); }
.nav-lang-flag { font-size: 1rem; line-height: 1; }
body:not(.home) .nav-lang { color: var(--ink); }
body:not(.home) .nav-lang:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Inner pages have a light background, so darken the nav text there */
body:not(.home) .brand,
body:not(.home) .nav-menu a { color: var(--ink); }
body:not(.home) .nav-toggle span { background: var(--ink); }

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Replace hero.jpg with your own image. The gradient is a graceful fallback. */
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url("../img/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #8a9a8f, #b7a284);
}

.hero-overlay {
  padding: 0 24px;
  /* Push the title up onto the sky. Adjust this value to taste. */
  margin-top: 16vh;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.06em;
  margin: 18px 0 0;
  opacity: 0.95;
}

/* ---- Inner pages ---- */
.page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 60px;
}

.page-inner {
  max-width: 720px;
  text-align: center;
}

.page-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 18px;
}

.page-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

.contact-email {
  margin-top: 32px;
  font-size: 1.25rem;
}

.contact-email a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 26px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.home .site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 8px 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a {
    color: var(--ink);
    display: block;
    padding: 14px 32px;
    border-bottom: none;
  }

  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] {
    border-color: transparent;
    color: var(--gold);
  }
}

/* ===========================================================================
   Things to Do — map, filters, table, suggestion form
=========================================================================== */

/* Wide layout override for the Things-to-Do page */
.page--wide {
  align-items: flex-start;
  min-height: auto;
}
.page-inner--wide {
  max-width: 1100px;
  width: 100%;
  text-align: left;
}
.page--wide .page-title { text-align: left; }
.page--wide .page-lead { text-align: left; }
/* Tighter heading on this page: the map and table need the vertical room. */
.page--wide { padding-top: calc(var(--header-h) + 14px); padding-bottom: 40px; }
.page--wide .page-title { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 8px; }
.page--wide .page-lead { font-size: 0.98rem; }

/* Controls */
.ttd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 14px;
}
/* Search + the three controls all share this height */
.ttd-input,
.ttd-btn {
  height: 46px;
  box-sizing: border-box;
}
.ttd-input {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcd6cb;
  border-radius: 6px;
  padding: 0 12px;
}
.ttd-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.2);
}
/* Search grows; the last three are equal width */
#ttd-search { flex: 1 1 240px; }
#ttd-type,
#ttd-walkable,
#ttd-suggest-open { flex: 0 0 175px; width: 175px; }
#ttd-suggest-open {
  letter-spacing: 0.03em;
  font-size: 0.74rem;
  white-space: nowrap;
  padding: 0 8px;
}

.ttd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ttd-btn:hover { background: var(--gold); color: #fff; }
.ttd-btn--primary { background: var(--gold); color: #fff; }
.ttd-btn--primary:hover { background: #9a7846; }

.ttd-pop-type { color: var(--gold); font-size: 0.85em; }

/* ---- Two-pane layout: list | (map over details) ---- */
.ttd-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: stretch; /* list spans the full height of map + details */
}

/* Left: compact name + type list, its own scroll box matching the right pane. */
.ttd-list-pane {
  border: 1px solid #e4ded3;
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  max-height: 82vh;
}
.ttd-list { list-style: none; margin: 0; padding: 4px; }
.ttd-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ttd-list-item:hover { background: #f4efe6; }
.ttd-list-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ttd-list-item.is-selected { background: #f1e6d2; }
.ttd-list-icon { font-size: 1.05rem; line-height: 1; flex: 0 0 auto; }
.ttd-list-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.ttd-empty { color: var(--muted); padding: 24px 12px; text-align: center; }

/* Right: map on top (half the page), details of the selection below it. */
.ttd-main { display: flex; flex-direction: column; gap: 20px; }
.ttd-map {
  width: 100%;
  height: 36vh;
  min-height: 250px;
  border-radius: 10px;
  border: 1px solid #e4ded3;
  z-index: 1;
}

/* Details panel — same width as the map, fixed size so it never jumps. */
.ttd-details {
  border: 1px solid #e4ded3;
  border-radius: 10px;
  background: #fff;
  height: 250px;
  overflow: hidden;
}
.ttd-details-empty {
  color: var(--muted);
  text-align: center;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ttd-details-card { display: flex; gap: 20px; padding: 20px; height: 100%; }
.ttd-details-photo-wrap {
  flex: 0 0 250px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.ttd-details-photo {
  flex: 1 1 auto;
  border-radius: 8px;
  background-color: #ece6da;
  background-size: cover;
  background-position: center;
}
.ttd-details-credit {
  font-size: 0.62rem;
  color: #a89e92;
  margin-top: 4px;
  line-height: 1.3;
}
.ttd-details-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ttd-details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.ttd-details-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0;
  min-width: 0;
}
.ttd-details-link {
  flex: 0 0 auto;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.ttd-details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.ttd-details-type { color: var(--gold); }
.ttd-details-dur { color: var(--muted); }
/* Description fills the remaining height and clips rather than resizing the panel. */
.ttd-details-text {
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/* Stack the panes on narrow screens. */
@media (max-width: 800px) {
  .ttd-layout { grid-template-columns: 1fr; }
  .ttd-list-pane { max-height: 40vh; order: 2; }
  .ttd-main { order: 1; }
  .ttd-map { height: 40vh; }
  .ttd-details { height: auto; min-height: 210px; }
  .ttd-details-card { flex-direction: column; height: auto; }
  .ttd-details-photo { flex-basis: auto; width: 100%; height: 160px; }
  .ttd-details-text { -webkit-line-clamp: 3; }
}

/* ===========================================================================
   Local Event Calendar — month grid + table
=========================================================================== */
.ev-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 22px 0 16px;
}
.ev-monthnav { display: flex; align-items: center; gap: 6px; }
.ev-navbtn {
  width: 36px; height: 36px;
  font-size: 1.3rem; line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcd6cb;
  border-radius: 6px;
  cursor: pointer;
}
.ev-navbtn:hover { border-color: var(--gold); color: var(--gold); }
.ev-month-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 600;
  min-width: 190px;
  text-align: center;
}
.ev-updated { color: var(--muted); font-size: 0.8rem; margin-left: auto; }

/* Multi-select checkbox filter menus (type, location) */
.ev-multi { position: relative; flex: 0 0 auto; }
.ev-multi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 160px;
  cursor: pointer;
  text-align: left;
}
.ev-multi-caret { font-size: 0.7rem; color: var(--muted); }
.ev-multi-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #dcd6cb;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  padding: 8px;
  min-width: 210px;
  max-height: 340px;
  overflow: auto;
}
.ev-multi-panel[hidden] { display: none; }
.ev-multi-actions {
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0ebe2;
}
.ev-multi-actions button {
  flex: 1;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: #faf7f1;
  border: 1px solid #e4ded3;
  border-radius: 5px;
  padding: 6px 4px;
  cursor: pointer;
}
.ev-multi-actions button:hover { background: #f1e8d8; }
.ev-multi-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}
.ev-multi-opt:hover { background: #f4efe6; }
.ev-multi-opt input { accent-color: var(--gold); flex: 0 0 auto; }

.ev-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.ev-left { display: flex; flex-direction: column; gap: 18px; }

/* Calendar */
.ev-calendar {
  border: 1px solid #e4ded3;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ev-cal-wd {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0 8px;
}
.ev-cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  background: #f7f4ee;
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  cursor: default;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3px 5px;
}
.ev-cal-empty { background: transparent; }
.ev-cal-num { font-size: 0.74rem; }
.ev-cal-cell.has-events {
  background: #f3ead9;
  cursor: pointer;
  font-weight: 500;
}
.ev-cal-cell.has-events:hover { background: #ecdcbf; }
.ev-cal-cell.is-today { outline: 2px solid #cbb892; outline-offset: -2px; }
.ev-cal-cell.is-selected { background: var(--gold); color: #fff; }
.ev-cal-cell.is-selected .ev-cal-dot { background: #fff; }
.ev-cal-dot {
  position: absolute;
  left: 7px; bottom: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Event table */
.ev-table-wrap {
  border: 1px solid #e4ded3;
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  max-height: 70vh;
}
.ev-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ev-table thead th {
  text-align: left;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #faf7f1;
  box-shadow: inset 0 -2px 0 #e4ded3;
}
.ev-table tbody td { border-bottom: 1px solid #efeae1; padding: 11px 12px; vertical-align: top; }
.ev-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.ev-table tbody tr:hover { background: #f4efe6; }
.ev-c-name { font-family: "Cormorant Garamond", serif; font-size: 1.1rem; font-weight: 600; }
.ev-c-name a { color: var(--gold); text-decoration: none; }
.ev-c-name a:hover { text-decoration: underline; }
/* Date: narrower, may wrap to two short lines. */
.ev-c-date { width: 78px; color: var(--muted); font-size: 0.86rem; }
/* Type: just the icon, name on hover — leaves the room for Location. */
.ev-th-type, .ev-c-type { width: 40px; text-align: center; }
.ev-type-icon { font-size: 1.15rem; cursor: help; }
.ev-c-loc { color: var(--muted); }
/* Favourite checkbox column. */
.ev-th-fav, .ev-c-fav { width: 34px; text-align: center; padding-left: 8px !important; padding-right: 2px !important; }
.ev-fav-check { width: 17px; height: 17px; cursor: pointer; accent-color: var(--gold); }
.ev-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Favourites list under the calendar. */
.ev-favorites {
  border: 1px solid #e4ded3;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}
.ev-fav-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ev-fav-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}
.ev-fav-clear {
  font-family: inherit; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px 4px;
}
.ev-fav-clear:hover { color: var(--gold); }
.ev-fav-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ev-fav-item { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid #f0ebe2; }
.ev-fav-item:first-child { border-top: 0; }
.ev-fav-remove {
  flex: 0 0 auto; background: none; border: 0; color: #c3b8a6; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0;
}
.ev-fav-remove:hover { color: #a33; }
.ev-fav-body { min-width: 0; }
.ev-fav-name { font-family: "Cormorant Garamond", serif; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.ev-fav-name a { color: var(--gold); text-decoration: none; }
.ev-fav-name a:hover { text-decoration: underline; }
.ev-fav-meta { font-size: 0.76rem; color: var(--muted); }
.ev-fav-empty { color: var(--muted); font-size: 0.82rem; margin: 10px 0 2px; }

@media (max-width: 800px) {
  .ev-layout { grid-template-columns: 1fr; }
  .ev-updated { margin-left: 0; width: 100%; }
  .ev-table-wrap { max-height: none; }
}

/* ===========================================================================
   Artwork gallery
=========================================================================== */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.art-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.art-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #ece6da center / cover no-repeat;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.art-card:hover .art-thumb { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.art-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

/* Full-size viewer */
.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 18, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
}
.art-lightbox[hidden] { display: none; }
body.art-open { overflow: hidden; }
.art-lb-close {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.art-lb-close:hover { opacity: 1; }
.art-lb-inner {
  display: flex;
  gap: 32px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  max-height: 94vh;
}
.art-lb-imgwrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 94vh;
}
.art-lb-imgwrap img {
  max-width: 100%;
  max-height: 94vh;
  object-fit: contain;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}
.art-lb-panel {
  flex: 0 0 340px;
  color: #f3efe8;
  max-height: 94vh;
  overflow-y: auto;
}
.art-lb-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 16px;
}
.art-lb-text { line-height: 1.7; font-size: 0.95rem; margin: 0 0 18px; color: #e2ddd4; }
.art-lb-meta { font-size: 0.8rem; color: #b3ab9e; }
.art-lb-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

@media (max-width: 800px) {
  .art-lb-inner { flex-direction: column; gap: 16px; align-items: stretch; overflow-y: auto; }
  .art-lb-imgwrap { height: auto; flex: 0 0 auto; }
  .art-lb-imgwrap img { max-height: 62vh; }
  .art-lb-panel { flex: 1 1 auto; }
}

/* Map popups: name + directions button */
.ttd-pop-name { display: block; font-size: 0.95rem; }
.ttd-dir-btn {
  display: block;
  margin-top: 10px;
  font-family: inherit;
  font-size: 0.8rem;
  color: #fff;
  background: var(--gold);
  border: 0;
  border-radius: 5px;
  padding: 7px 11px;
  cursor: pointer;
}
.ttd-dir-btn:hover { background: #9a7846; }

/* Clear-route control on the map */
.ttd-clear-ctrl button {
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 0;
  padding: 7px 11px;
  cursor: pointer;
  border-radius: 4px;
}
.ttd-clear-ctrl button:hover { background: #f4efe6; }

/* Modal */
.ttd-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ttd-modal[hidden] { display: none; }
body.ttd-modal-open { overflow: hidden; }
.ttd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 25, 0.5);
}
.ttd-modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}
.ttd-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.ttd-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 6px;
}
.ttd-modal-lead { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

/* Form */
.ttd-form { display: flex; flex-direction: column; gap: 14px; }
.ttd-field { display: flex; flex-direction: column; gap: 5px; }
.ttd-field > span { font-size: 0.82rem; color: var(--ink); }
.ttd-field input[type="text"],
.ttd-field input[type="url"],
.ttd-field input[type="email"],
.ttd-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dcd6cb;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
.ttd-field input:focus,
.ttd-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.2);
}
.ttd-field--inline { flex-direction: row; align-items: center; gap: 10px; }
.ttd-field--inline span { font-size: 0.92rem; }
.ttd-form-sep { border: 0; border-top: 1px solid #e4ded3; margin: 6px 0; }
.ttd-form-actions { margin-top: 6px; }
.ttd-form-status { font-size: 0.9rem; margin: 4px 0 0; min-height: 1.2em; }
.ttd-form-status.is-ok { color: #2e7d5b; }
.ttd-form-status.is-error { color: #b4453a; }
/* Honeypot — hidden from real users */
.ttd-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

@media (max-width: 720px) {
  #ttd-type,
  #ttd-walkable,
  #ttd-suggest-open { flex: 1 1 100%; width: 100%; }
  .ttd-c-details { max-width: none; }
  .ttd-modal-card { padding: 24px 20px; }
}
