/* ── SHARED BASE, HEADER & FOOTER ──
   Used by every page. Edit here to change the header/footer site-wide. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --forest: #1a3a2a;
  --moss: #2d5a3d;
  --sage: #4f6f54;
  --leaf: #4a8c5c;
  --leaf-light: #6db77d;
  --cream: #f5f0e8;
  --warm: #e8dfd3;
  --sand: #d4c9b8;
  --bark: #8b7355;
  --terracotta: #c4714a;
  --gold: #d4a847;
  --text: #2a2a28;
  --text-light: #6b6b65;
  --teal: #3a9e8f;
  --teal-light: #e6f5f2;
  --star: #e8b730;
  --star-empty: #d4cfc4;
}

html { scroll-behavior: smooth; }

html, body {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g transform='translate(4,2) rotate(45 12 14)'><path d='M12 0C6.5 0 2 4.5 2 10c0 7.5 10 18 10 18s10-10.5 10-18C22 4.5 17.5 0 12 0z' fill='%234a8c5c'/></g></svg>") 6 26, auto;
}
a, button {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><g transform='translate(4,2) rotate(45 12 14)'><path d='M12 0C6.5 0 2 4.5 2 10c0 7.5 10 18 10 18s10-10.5 10-18C22 4.5 17.5 0 12 0z' fill='%23d4a847'/></g></svg>") 6 26, pointer;
}

body { background: var(--cream); font-family: 'Albert Sans', sans-serif; color: var(--text); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 20px;
  padding: 16px 40px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 42, 40, 0.06);
  transition: all 0.3s ease;
}
.nav.scrolled {
  padding: 10px 40px;
  box-shadow: 0 2px 20px rgba(26, 58, 42, 0.08);
}
.nav-logo {
  font-family: 'Boldonse', system-ui;
  font-weight: 400; font-size: 16px;
  color: var(--forest); text-decoration: none; letter-spacing: -0.3px;
  display: flex; align-items: baseline;
  justify-self: start;
}
.logo-pin { align-self: center; flex-shrink: 0; margin-right: 4px; }
.logo-word { display: inline-flex; font-family: 'Boldonse', system-ui; font-weight: 400; font-size: 16px; }
.logo-collapse {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  font-family: 'Boldonse', system-ui;
  font-weight: 400;
  font-size: 16px;
  transition: max-width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
  opacity: 1;
  white-space: nowrap;
}
.logo-collapse.collapsed { max-width: 0; opacity: 0; }
.logo-space {
  display: inline-block; width: 5px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-space.collapsed { width: 0; }
.nav-right { display: flex; gap: 20px; align-items: center; justify-self: end; }
.nav-center { display: flex; gap: 20px; align-items: center; justify-self: center; }
.nav-center a, .nav-meta a {
  text-decoration: none; color: var(--text-light);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.25s;
}
.nav-center a:hover, .nav-meta a:hover { color: var(--forest); }
.nav-center a.active, .nav-meta a.active { color: var(--forest); font-weight: 700; }
.nav-meta { display: flex; gap: 14px; align-items: center; }
.lang-btn {
  background: var(--forest); color: var(--cream);
  border: none; padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; transition: all 0.25s;
}
.lang-btn:hover { background: var(--moss); transform: scale(1.05); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; cursor: pointer;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--forest); border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26, 58, 42, 0.3); z-index: 90;
  opacity: 0; transition: opacity 0.3s ease;
}
.nav-overlay.open { display: block; opacity: 1; }
.mobile-menu { display: none; }

/* ── FOOTER ── */
.footer {
  background: var(--forest); color: var(--cream);
  padding: 48px 40px; text-align: center;
}
.footer-nav {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 28px;
}
.footer-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  font-size: 12px; font-weight: 600;
  color: var(--cream);
  padding: 7px 16px;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 24px;
  transition: all 0.25s;
}
.footer-nav a:hover {
  background: var(--cream); color: var(--forest);
  transform: translateY(-1px);
}
.footer-nav-num {
  font-family: 'Boldonse', system-ui;
  font-size: 10px;
  opacity: 0.6;
}
.footer-animals {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 22px;
  margin-bottom: 24px; font-size: 24px;
}
@media (max-width: 480px) {
  .footer-animals { gap: 10px 8px; font-size: 20px; }
}
@media (max-width: 360px) {
  .footer-animals { gap: 8px 4px; font-size: 18px; }
}
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 300; font-style: italic;
  margin-bottom: 18px; opacity: 0.9;
}
.footer-credit {
  font-size: 13px; opacity: 0.8;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.footer-credit a {
  color: var(--cream); opacity: 1;
  text-decoration: underline; text-underline-offset: 3px; transition: opacity 0.25s;
}
.footer-credit a:hover { text-decoration-thickness: 2px; }
.footer-credit .sep { opacity: 0.3; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest); color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(26, 58, 42, 0.25);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--moss); transform: translateY(-3px); }

/* ── SHARE BUTTON (bottom-left, opposite Back to top so they never overlap) ── */
.share-fab {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest); color: var(--cream);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(26, 58, 42, 0.25);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.share-fab.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.share-fab:hover { background: var(--moss); transform: translateY(-3px); }
.share-toast {
  position: fixed; left: 24px; bottom: 78px; z-index: 90;
  background: var(--forest); color: var(--cream);
  font-family: 'Albert Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(26, 58, 42, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.25s ease; pointer-events: none;
}
.share-toast.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ── NARROW DESKTOP: tighten the header so the centred menu still fits ── */
@media (min-width: 769px) and (max-width: 1180px) {
  .nav, .nav.scrolled { padding-left: 24px; padding-right: 24px; }
  .nav { column-gap: 12px; }
  .nav-center { gap: 14px; }
  .nav-right { gap: 12px; }
  .nav-meta { gap: 10px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav { display: flex; justify-content: space-between; padding: 14px 20px; }
  .nav-right { gap: 12px; }
  .hamburger { display: flex; }
  .nav-center, .nav-meta { display: none; }
  .mobile-menu {
    display: flex; position: fixed; top: 0; right: -280px;
    width: 260px; height: 100vh;
    background: var(--cream); flex-direction: column;
    padding: 80px 28px 40px;
    box-shadow: -8px 0 30px rgba(26, 58, 42, 0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 95; overflow-y: auto;
  }
  .mobile-menu.open { right: 0; }
  .mobile-menu a {
    text-decoration: none; color: var(--text-light);
    font-size: 14px; font-weight: 500; letter-spacing: 0.6px;
    text-transform: uppercase; padding: 14px 0; width: 100%;
    border-bottom: 1px solid rgba(26, 58, 42, 0.06);
    transition: color 0.25s; display: flex; align-items: center; gap: 8px;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { color: var(--forest); }
  .mobile-menu a.active { color: var(--forest); font-weight: 700; }
  .mobile-menu-sep { height: 1px; background: rgba(26, 58, 42, 0.1); margin: 8px 0; }
  .footer { padding: 32px 24px; }
  .footer-nav { gap: 8px; margin-bottom: 22px; }
  .footer-nav a { font-size: 11px; padding: 6px 12px; }
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .share-fab { left: 16px; bottom: 16px; width: 40px; height: 40px; }
  .share-toast { left: 16px; bottom: 64px; }
}

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--forest); color: var(--cream);
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold, #d4a847); outline-offset: 3px; }

/* Venue status tags: 100% Vegan (green), 99% Vegan (lighter green) vs Vegan-Friendly (red, same as the "No vegan cheese" badge).
   Used on the Eat & Drink cards and on every venue page. */
.tag.tag-vegan {
  background: rgba(74, 140, 92, 0.22);
  color: var(--forest);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(74, 140, 92, 0.45);
}
.tag.tag-vegan:hover { background: rgba(74, 140, 92, 0.3); }
/* 99% Vegan: same green family, lighter (Vega Cafe and Cardamom Pod: optional dairy milk for coffee). */
.tag.tag-vegan.tag-vegan-99 {
  background: rgba(74, 140, 92, 0.1);
  color: #2f6b43;
  box-shadow: inset 0 0 0 1px rgba(74, 140, 92, 0.28);
}
.tag.tag-vegan.tag-vegan-99:hover { background: rgba(74, 140, 92, 0.16); }
/* Venue pages, Web card: room for up to six icons in one row, and text glyphs (Uber Eats / DoorDash). */
.wwww-card .web-links { gap: 4px; }
.wwww-card .web-link { width: 30px; height: 30px; }
.wwww-card .web-link svg { width: 15px; height: 15px; }
.wwww-card .web-link svg.glyph { width: 19px; height: 19px; }
/* Initials avatar, used instead of a logo when a venue has none (e.g. JR Vegan Thai). */
.card-logo.avatar-initials, .venue-logo.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--leaf-light), var(--teal));
  color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; letter-spacing: 0.5px;
}
@media (max-width: 768px) { .venue-logo.avatar-initials { font-size: 20px; } }
.tag.tag-friendly {
  background: rgba(192, 104, 74, 0.13);
  color: var(--terracotta);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(192, 104, 74, 0.4);
}
.tag.tag-friendly:hover { background: rgba(192, 104, 74, 0.2); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Suggestions ("You might also like") at the bottom of every venue page. */
.suggest-section { margin-top: 48px; }
.suggest-desc { font-size: 14px; color: var(--text-light); margin: -6px 0 18px; }
.suggest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.suggest-card {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 22px 20px; background: white;
  border: 1px solid rgba(42, 42, 40, 0.06); border-radius: 14px;
  text-decoration: none; color: inherit; transition: all 0.3s ease;
}
.suggest-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(26, 58, 42, 0.09); border-color: rgba(74, 140, 92, 0.2); }
.suggest-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.suggest-logo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(42, 42, 40, 0.08); background: white; }
.suggest-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-logo.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--leaf-light), var(--teal)); color: var(--cream);
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700;
}
.suggest-type { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.suggest-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; color: var(--forest); line-height: 1.2; }
.suggest-loc { font-size: 12px; color: var(--sage); }
.suggest-text {
  font-size: 13px; line-height: 1.6; color: var(--text-light); flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.suggest-more { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--forest); transition: gap 0.25s; }
.suggest-card:hover .suggest-more { gap: 10px; }
.suggest-back { background: var(--leaf); color: var(--cream); justify-content: center; border-color: transparent; }
.suggest-back:hover { box-shadow: 0 12px 36px rgba(74, 140, 92, 0.25); border-color: transparent; }
.suggest-back .suggest-name { color: var(--cream); }
.suggest-back .suggest-text { color: rgba(245, 240, 232, 0.8); -webkit-line-clamp: 4; flex-grow: 0; }
.suggest-back .suggest-more { color: var(--gold); }
.suggest-back-emoji { font-size: 34px; line-height: 1; margin-bottom: 4px; }
@media (max-width: 768px) { .suggest-grid { grid-template-columns: 1fr; } }
/* RATING CONFIDENCE TOOLTIP (see partials.js) */
[data-conf-votes]{cursor:help}
.conf-tip-bubble{position:fixed;z-index:10000;max-width:260px;padding:10px 14px;border-radius:10px;background:#1a3a2a;color:#f7f2e8;font-family:'Albert Sans',sans-serif;font-size:12px;line-height:1.5;box-shadow:0 8px 24px rgba(26,58,42,0.25);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease}
.conf-tip-bubble.visible{opacity:1;transform:translateY(0)}
.conf-tip-bubble strong{display:block;font-size:13px;color:#d4a847;margin-bottom:2px}
.conf-tip-bubble span{display:block;opacity:.9}
.method-more{display:inline-block;margin-top:14px;font-size:13px;font-weight:600;color:var(--leaf);text-decoration:none}
.method-more:hover{text-decoration:underline}
