/* =========================================================
   Generated pages: winery detail, town pages, and the A–Z
   index that makes the directory crawlable.
   ========================================================= */

.place { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }

.crumbs {
  font-size: .82rem; color: var(--text-muted);
  display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.crumbs a { color: var(--grape-700); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.crumbs span[aria-current] { color: var(--text); }

.place__head {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start; margin-bottom: 2.5rem;
}
.place__head--wide { grid-template-columns: 1fr; max-width: 68ch; }
@media (max-width: 860px) { .place__head { grid-template-columns: 1fr; } }
.place__head h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: .5rem; }
.place__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.75rem; }

.factbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.4rem 1.5rem; margin: 0; display: grid; gap: 1rem;
}
.factbox > div { display: grid; gap: .2rem; }
.factbox dt {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600);
}
.factbox dd { margin: 0; font-size: .95rem; word-break: break-word; }
.factbox dd a { color: var(--grape-700); text-decoration: underline; text-underline-offset: 2px; }

/* Static region map used on generated pages */
.staticmap {
  background: linear-gradient(165deg, #F4EFE7, #EAF0EA);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 3rem;
}
/* Leaflet sizes its own panes — do not impose width/height on SVG in here. */
.staticmap .leaflet-container svg { max-width: none; }
.leaflet-attribution-flag {
  display: inline-block !important; width: 12px !important; height: 8px !important;
  vertical-align: baseline;
}

/* Nearby / listing sections */
.nearby { margin-bottom: 3rem; }
.nearby h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.25rem; }
.nearby__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.nearby__list--wide { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .nearby__list, .nearby__list--wide { grid-template-columns: 1fr; } }
.nearby__list a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.15rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nearby__list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.nearby__name { display: block; font-weight: 500; margin-bottom: .15rem; }
.nearby__meta { display: block; font-size: .82rem; color: var(--text-muted); }
.nearby__more { margin-top: 1.25rem; }
.nearby__more a { color: var(--grape-700); font-size: .9rem; }
.nearby__more a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* A–Z index on the directory hub */
.az { padding: 3rem 0 0; border-top: 1px solid var(--line); margin-top: 1rem; }
.az h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.az__intro { color: var(--text-muted); font-size: .95rem; max-width: 62ch; }
.az__list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  columns: 3; column-gap: 2rem;
}
@media (max-width: 900px) { .az__list { columns: 2; } }
@media (max-width: 600px) { .az__list { columns: 1; } }
.az__list li { break-inside: avoid; margin-bottom: .55rem; }
.az__list a { display: block; padding: .2rem 0; }
.az__name { color: var(--ink); font-size: .93rem; }
.az__list a:hover .az__name { color: var(--grape-700); text-decoration: underline; text-underline-offset: 2px; }
.az__area { display: block; font-size: .74rem; color: var(--text-muted); }

/* Listing-owner CTA — the inbound route for claimed / featured listings. */
.claim {
  display: flex; gap: 1.5rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  background: var(--grape-100); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.claim h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.claim p { margin: 0; color: var(--ink-soft); font-size: .93rem; max-width: 60ch; }

.az__flag {
  font-style: normal; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold-500); color: var(--grape-900);
  padding: .12rem .4rem; border-radius: 3px; vertical-align: middle; margin-left: .35rem;
}

/* Google Maps attribution — required wherever Places-sourced fields appear.
   Set apart from our own content, per their attribution guidelines. */
.attrib {
  margin: .35rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .74rem; color: var(--muted); line-height: 1.4;
}
.attrib__g {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .78rem; color: #5F6368; white-space: nowrap;
}

/* Live map on generated pages (see place-map.js). */
#placemap { height: 460px; width: 100%; background: #EAF0EA; }
@media (max-width: 700px) { #placemap { height: 340px; } }
.staticmap { background: none; }

/* Discovery Pass marker on generated winery pages */
.passbadge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold-100); color: var(--gold-600);
  border: 1px solid var(--gold-400); border-radius: 999px;
  padding: .3rem .8rem; margin: 0 0 .9rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.az__flag--pass { background: var(--gold-500); color: var(--grape-900); }
