@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&family=Noto+Serif+TC:wght@600&family=Noto+Sans+TC:wght@300;400;500&display=swap');

:root {
  --bg: #0e1012;
  --surface: #161a1d;
  --surface2: #1e2328;
  --border: #2a3038;
  --text: #e8e0d5;
  --text-muted: #6b7280;
  --accent: #c9a96e;
  --teal: #4db6a4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.info-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto 48px;
  max-width: 440px;
}

/* ── LANGUAGE BUTTONS ── */
.choose-language {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.language-1, .language-2 {
  display: inline-flex;
  align-items: center;
  padding: 14px 40px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.language-1 {
  background: var(--accent);
  color: #0e1012;
}
.language-1:hover {
  background: #d4b57a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #c9a96e33;
}

.language-2 {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.language-2:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── DISCLAIMER ── */
.disclaimer-container {
  text-align: center;
  padding: 16px 0 0;
  animation: fadeUp 0.6s ease 0.3s both;
}
.disclaimer-en, .disclaimer-zh {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0;
}
.disclaimer-en a, .disclaimer-zh a { color: var(--accent); text-decoration: none; }
.disclaimer-en a:hover, .disclaimer-zh a:hover { text-decoration: underline; }

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 64px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeUp 0.6s ease 0.15s both;
}
.feature {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.feature h3 {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ── BACK LINK ── */
.back {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back:hover { color: var(--accent); }

/* ── PAGE TITLE ── */
.title {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.nav-item { display: flex; align-items: center; }

/* ── MAP ── */
#map {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 24px 0 32px;
}

/* ── TABLES ── */
.vet-clinic-list { padding: 32px 0; }

.city, .city-zh {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 48px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.area, .area-zh {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th {
  background: var(--surface2);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  font-size: 0.88rem;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }
td a { color: var(--teal); text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ── TABLE OF CONTENTS ── */
#toc_container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  display: inline-block;
  margin: 24px 0;
}
.toc_title {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.toc_list { padding-left: 20px; }
.toc_item {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 2;
  display: block;
}
.toc_item:hover { text-decoration: underline; }

/* ── SCROLL TOP ── */
#myBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  font-size: 12px;
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  border: 1px solid var(--border);
  outline: none;
  background: var(--surface2);
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
#myBtn:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* ── CONTACT FORM ── */
#contact-form {
  max-width: 560px;
  margin: 32px auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 8px;
}
#contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}
.input-field {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.input-field:focus { outline: none; border-color: var(--accent); }
#contact-form textarea { min-height: 120px; resize: vertical; }

#submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--accent);
  color: #0e1012;
  border: none;
  border-radius: 4px;
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
#submit-btn:hover { background: #d4b57a; transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 0;
  margin-top: 64px;
}
footer p { font-size: 0.78rem; color: var(--text-muted); }

.info {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.info:hover { color: var(--accent); }

p { font-family: 'DM Sans', 'Noto Sans TC', sans-serif; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .choose-language { flex-direction: column; align-items: center; }
  .language-1, .language-2 { width: 200px; justify-content: center; }
  th, td { font-size: 0.75rem; padding: 8px 10px; }
  .title { font-size: 1.2rem; }
  .navbar { flex-wrap: wrap; gap: 8px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── MAP INFO WINDOW (white Google bg — force dark text) ── */
.map-info { color: #222; font-family: 'DM Sans', 'Noto Sans TC', sans-serif; line-height: 1.7; }
.map-info a { color: #1a6f61; }
.map-error { color: var(--accent); text-align: center; padding: 8px 0; }

/* ── SPECIES FILTER ── */
#filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
#filter-bar:empty { display: none; }
.chip {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #0e1012; }
.filter-hint { font-size: 0.72rem; color: var(--text-muted); margin-left: 4px; }
@media (max-width: 600px) { .filter-hint { flex-basis: 100%; margin-left: 0; } }

/* ── BILINGUAL ACCENTS ── */
.hero-sub-en, .feature-en { display: inline-block; margin-top: 4px; font-size: 0.85em; opacity: 0.65; }

/* ── VERIFIED BADGE & REPORT LINE ── */
.verified {
  display: block;
  font-size: 0.68rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}
.report-line { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; }
.report-line a { color: var(--accent); text-decoration: none; }
.report-line a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 640px; }

/* ── ABOUT PAGE ── */
.about-prose { max-width: 620px; margin: 40px auto 64px; }
.about-prose p { margin-bottom: 20px; line-height: 1.9; font-size: 0.95rem; }
.about-prose a { color: var(--accent); text-decoration: none; }
.about-prose a:hover { text-decoration: underline; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.kofi-btn, .back-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}
.kofi-btn { background: var(--accent); color: #0e1012 !important; }
.kofi-btn:hover { background: #d4b57a; transform: translateY(-2px); text-decoration: none !important; }
.back-map-btn { border: 1px solid var(--border); color: var(--text) !important; }
.back-map-btn:hover { border-color: var(--accent); color: var(--accent) !important; text-decoration: none !important; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
@media (max-width: 600px) { .about-actions { flex-direction: column; } .kofi-btn, .back-map-btn { justify-content: center; } }

/* ── MAP FALLBACK (quota exhausted / load failure) ── */
.map-fallback {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin: 24px 0 32px;
  padding: 32px;
}
.map-fallback p { color: var(--text-muted); max-width: 420px; }

/* ── SUPPORT LINK ── */
.nav-kofi { color: var(--accent) !important; margin-left: 16px; }
.nav-kofi:hover { text-decoration: underline; }

/* ── FAQ & DISCLAIMER ── */
.faq { margin-top: 48px; }
.faq h3 {
  font-family: 'Cormorant Garamond', 'Noto Serif TC', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.faq dt { font-weight: 500; margin-top: 18px; color: var(--text); }
.faq dd { margin: 6px 0 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; }
.faq dd a { color: var(--accent); text-decoration: none; }
.disclaimer-box {
  margin-top: 32px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 6px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.8;
}

/* ── GOOGLE RATING IN INFO WINDOW ── */
.g-rating { margin-top: 4px; font-size: 0.85em; color: #555; }
.g-rating a { color: #1a6f61; }
