/* The Vine — Regions and Producers pages (directory + detail) */

/* ── Directory ─────────────────────────────────────────────────────────── */
.dir-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dir-jump:empty { display: none; }
.dir-jump-link {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.dir-jump-link:hover { border-color: var(--accent); color: var(--accent); }

.dir-letter {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dir-letter:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dir-letter.active { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.dir-letter:disabled { opacity: 0.35; cursor: default; }

.dir-group { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.dir-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.dir-group-title span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}
.dir-count { margin-bottom: 1rem; }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dir-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.dir-tile:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.dir-tile-text { min-width: 0; }
.dir-tile-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}
.dir-tile-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.dir-tile-rating {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Detail page ───────────────────────────────────────────────────────── */
.place-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.9rem;
}
.place-crumbs a { color: rgba(255,255,255,0.65); text-decoration: none; }
.place-crumbs a:hover { color: #fff; }
.place-head { display: flex; align-items: center; gap: 1.25rem; }
.place-head-text { min-width: 0; }
.place-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
:root:not([data-theme="dark"]) .place-eyebrow { color: #e07f66; }  /* the banner is dark in both themes */
.place-image {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: #fff;
}
.place-image-logo { width: 88px; height: 88px; object-fit: contain; padding: 8px; }
.place-logo-frame {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.place-logo-frame[hidden] { display: none; }
.place-logo-frame .place-image-logo { width: 100%; height: 100%; border: 0; }
.place-logo-icon { opacity: 0.3; }
.place-image-photo { width: 168px; height: 112px; object-fit: cover; }

.place-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}
.place-stat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}
.place-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.1;
  color: var(--text);
}
.place-stat-value.accent { color: var(--accent); }
.place-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.place-section { margin-bottom: 2.25rem; }
.place-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 1rem;
}
.place-about { max-width: 760px; }
.place-description p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.place-website { font-size: 14px; color: var(--accent); text-decoration: none; }
.place-website:hover { text-decoration: underline; }

.place-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.place-chip span { font-size: 11px; color: var(--text-muted); }
.place-chip:hover { border-color: var(--accent); color: var(--accent); }
.place-more {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}
.place-more:hover { text-decoration: underline; }

a.wine-card { text-decoration: none; color: inherit; }

.place-wine-list {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.place-wine-row {
  display: grid;
  grid-template-columns: 1fr auto 3rem;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.place-wine-row:last-child { border-bottom: none; }
.place-wine-row:hover { background: var(--accent-bg); }
.place-wine-name { font-size: 14px; color: var(--text); min-width: 0; }
.place-wine-meta { font-size: 12px; color: var(--text-muted); text-align: right; }
.place-wine-rating { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--accent); text-align: right; }

.place-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--btn-bg);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.place-cta:hover { background: var(--btn-bg-hover); }

@media (max-width: 900px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .place-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dir-grid { grid-template-columns: 1fr; }
  .place-head { align-items: flex-start; }
  .place-image-photo { width: 96px; height: 72px; }
  .place-image-logo, .place-logo-frame { width: 64px; height: 64px; }
  .place-wine-row { grid-template-columns: 1fr 3rem; }
  .place-wine-meta { display: none; }
  .search-row { flex-wrap: wrap; }
}

/* Details list on a place page: climate, winemakers, aromas… */
.place-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 24px;
  margin: 0.5rem 0 1rem;
}
.place-fact dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.place-fact dd { font-size: 14px; line-height: 1.5; color: var(--text); margin: 0; }
.place-fact-chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  margin: 0 4px 4px 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Variety pages: the overview sentence under the name, and the facts as one row of columns */
.place-hero .hero-sub { max-width: 640px; line-height: 1.55; font-size: 14px; }
.place-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
