:root {
  color-scheme: light;
  --bg: #f6faf8;
  --bg-warm: #eef7f1;
  --text: #172026;
  --muted: #5f6d68;
  --line: #d6e3dc;
  --line-strong: #b9d5c6;
  --brand: #1f7f1f;
  --brand-dark: #0b5a36;
  --brand-soft: #edf8ea;
  --duty: #168f52;
  --duty-soft: #e4f7ec;
  --map-blue: #2563eb;
  --surface: #ffffff;
  --shadow: 0 12px 30px rgba(14, 43, 31, 0.08);
  --shadow-strong: 0 18px 44px rgba(14, 43, 31, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 127, 31, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #fbfdfc 0, var(--bg) 420px);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
p {
  margin-top: 0;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.messages {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 clamp(16px, 5vw, 24px);
}
.message {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 14px;
  color: var(--text);
}
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 48px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.brand img {
  display: block;
  width: 188px;
  height: 52px;
  object-fit: contain;
}
nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 11px;
  color: #31433a;
  font-weight: 650;
}
nav a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.nav-whatsapp {
  background: #25d366;
  color: #092116;
  box-shadow: 0 8px 18px rgba(31, 127, 31, 0.14);
}
.nav-whatsapp:hover {
  background: #1fb85a;
  color: #071b12;
}
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  vertical-align: -0.16em;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}
.icon-search { mask-image: url("/static/img/icon-search.svg"); -webkit-mask-image: url("/static/img/icon-search.svg"); }
.icon-map { mask-image: url("/static/img/icon-map.svg"); -webkit-mask-image: url("/static/img/icon-map.svg"); }
.icon-phone { mask-image: url("/static/img/icon-phone.svg"); -webkit-mask-image: url("/static/img/icon-phone.svg"); }
.icon-clock { mask-image: url("/static/img/icon-clock.svg"); -webkit-mask-image: url("/static/img/icon-clock.svg"); }
.icon-city { mask-image: url("/static/img/icon-city.svg"); -webkit-mask-image: url("/static/img/icon-city.svg"); }
.icon-report { mask-image: url("/static/img/icon-report.svg"); -webkit-mask-image: url("/static/img/icon-report.svg"); }
.icon-whatsapp { mask-image: url("/static/img/icon-whatsapp.svg"); -webkit-mask-image: url("/static/img/icon-whatsapp.svg"); }
.icon-info { mask-image: url("/static/img/icon-info.svg"); -webkit-mask-image: url("/static/img/icon-info.svg"); }
.whatsapp-cta {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 0 24px;
  border-radius: 999px;
  background: #25d366;
  color: #082115;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24), 0 0 0 6px rgba(37, 211, 102, 0.14);
  font-weight: 850;
  line-height: 1;
  isolation: isolate;
}
.whatsapp-cta::before {
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.16);
  content: "";
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-cta:hover {
  text-decoration: none;
  background: #1fb85a;
  transform: translateY(-1px);
}
.whatsapp-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #128c4a;
  padding: 3px;
}
.whatsapp-bubble {
  fill: currentColor;
}
.whatsapp-phone {
  fill: #ffffff;
}
.whatsapp-cta-text {
  display: inline-block;
  line-height: 1;
}
@keyframes whatsappPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.16; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-cta::before {
    animation: none;
  }
}
.hero, .section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 24px);
}
.hero {
  padding-top: clamp(42px, 7vw, 76px);
  padding-bottom: 34px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: 0;
}
.hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #41534b;
  font-size: 19px;
  line-height: 1.65;
}
.hero-primary-cta {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 26px;
}
.hero-primary-cta p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}
.hero-tool {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-strong);
  padding: 22px;
  overflow: hidden;
}
.whatsapp-card-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 127, 31, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbf5, #ffffff 74%);
  color: var(--text);
  padding: 14px 15px;
  box-shadow: 0 10px 24px rgba(31, 127, 31, 0.08);
}
.whatsapp-card-cta:hover {
  border-color: rgba(31, 127, 31, 0.46);
  box-shadow: 0 14px 30px rgba(31, 127, 31, 0.12);
  text-decoration: none;
}
.whatsapp-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #25d366;
  color: #092116;
}
.whatsapp-badge-icon .ui-icon {
  width: 22px;
  height: 22px;
}
.whatsapp-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.whatsapp-card-cta strong {
  display: block;
  line-height: 1.2;
}
.whatsapp-card-copy > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.hero-tool .city-search {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-top: 0;
}
.hero-tool .hero-actions {
  position: relative;
  z-index: 1;
}
.hero-mini-map {
  position: relative;
  height: 146px;
  margin-top: 22px;
  border: 1px solid #d7e6dc;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(12, 73, 44, 0.08) 31% 32%, transparent 32% 62%, rgba(12, 73, 44, 0.08) 62% 63%, transparent 63%),
    linear-gradient(0deg, transparent 0 38%, rgba(12, 73, 44, 0.08) 38% 39%, transparent 39% 72%, rgba(12, 73, 44, 0.08) 72% 73%, transparent 73%),
    #f2f8f4;
  overflow: hidden;
}
.mini-street,
.mini-pin {
  position: absolute;
  display: block;
}
.mini-street {
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 127, 31, 0.14);
  transform-origin: left center;
}
.mini-street-a { left: -6%; top: 64%; width: 112%; transform: rotate(-12deg); }
.mini-street-b { left: 10%; top: 24%; width: 80%; transform: rotate(18deg); }
.mini-street-c { left: 52%; top: -10%; width: 70%; transform: rotate(76deg); }
.mini-pin {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(31, 127, 31, 0.16), 0 8px 18px rgba(14, 43, 31, 0.18);
}
.mini-pin-duty { left: 54%; top: 44%; width: 24px; height: 24px; background: var(--duty); }
.mini-pin-alt { left: 24%; top: 58%; background: var(--map-blue); box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16), 0 8px 18px rgba(14, 43, 31, 0.14); }
.mini-pin-small { right: 18%; top: 22%; width: 14px; height: 14px; background: #66756f; }
.page-hero {
  padding-top: 44px;
  padding-bottom: 28px;
}
.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}
.section h1 { font-size: 38px; margin: 0 0 10px; }
.section h2 {
  margin: 0 0 18px;
  line-height: 1.18;
}
.section h2 .ui-icon {
  color: var(--brand);
  width: 0.95em;
  height: 0.95em;
}
.section > h1 + .group {
  margin-top: 26px;
}
.group {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.group h2 {
  margin-bottom: 18px;
}
.group + .group {
  margin-top: 8px;
}
.muted, .site-footer { color: var(--muted); }
.muted {
  line-height: 1.65;
}
.city-search {
  max-width: 680px;
  margin-top: 24px;
}
.city-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}
.city-search div {
  display: flex;
  gap: 10px;
}
.city-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c7d8cf;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  min-height: 52px;
  padding: 0 14px;
}
.city-search button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  padding: 0 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.city-search button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 18px rgba(31, 127, 31, 0.16);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 18px;
}
.trust-strip div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 16px 16px;
  box-shadow: 0 6px 18px rgba(14, 43, 31, 0.04);
}
.trust-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  color: var(--brand);
}
.trust-strip strong {
  display: block;
  margin-bottom: 4px;
}
.trust-strip span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.button:hover, .city-search button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.button-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #092116;
  box-shadow: 0 12px 26px rgba(31, 127, 31, 0.18);
}
.button-whatsapp:hover {
  background: #1fb85a;
  border-color: #1fb85a;
}
.button-xl {
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 850;
}
.directory-hero {
  padding-bottom: 18px;
}
.province-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.province-index a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #315042;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}
.province-index a:hover {
  border-color: var(--line-strong);
  background: var(--brand-soft);
  text-decoration: none;
}
.city-guide-section {
  padding-top: 18px;
}
.result-note {
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #edf7f2;
  padding: 12px 14px;
  color: #244135;
}
.province-group {
  scroll-margin-top: 18px;
}
.province-group h2 a {
  color: var(--brand);
}
.city-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.summary-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 15px 16px 15px 58px;
  box-shadow: 0 6px 20px rgba(14, 43, 31, 0.04);
}
.summary-icon {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  color: var(--brand);
  border-radius: 8px;
  background: currentColor;
}
.summary-24h .summary-icon {
  color: var(--map-blue);
}
.summary-total .summary-icon {
  color: #5f6d68;
}
.city-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}
.city-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.city-info-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(240px, 1.5fr) minmax(260px, 1.7fr);
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(14, 43, 31, 0.05);
  overflow: visible;
}
.city-info-grid div {
  min-width: 0;
  padding: 12px 14px;
}
.city-info-grid div + div {
  border-left: 1px solid var(--line);
}
.city-info-grid strong,
.source-row h3 {
  display: block;
  margin: 0 0 4px;
}
.city-info-grid strong {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 18px;
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}
.help {
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #9ecf96;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  line-height: 16px;
  cursor: help;
}
.info-glyph {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: currentColor;
  background: currentColor;
  mask: url("/static/img/icon-info.svg") center / contain no-repeat;
  -webkit-mask: url("/static/img/icon-info.svg") center / contain no-repeat;
}
.help .info-glyph {
  width: 14px;
  height: 14px;
}
.city-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.notice-inline {
  margin: 20px 0 0;
  border-left: 4px solid var(--brand);
  background: #edf7f2;
  border-radius: 8px;
  padding: 14px 16px;
  color: #244135;
  line-height: 1.6;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.city-whatsapp-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(31, 127, 31, 0.28);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 15px;
  box-shadow: 0 10px 24px rgba(14, 43, 31, 0.06);
}
.city-whatsapp-panel strong,
.city-whatsapp-panel span {
  display: block;
}
.city-whatsapp-panel strong {
  color: var(--brand-dark);
  line-height: 1.25;
}
.city-whatsapp-panel span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.ad-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.ad-slot {
  display: block;
  min-height: 90px;
  overflow: hidden;
}
.ad-slot-in-content {
  min-height: 120px;
}
.ad-slot-mobile {
  min-height: 60px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.link-grid a, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.city-link-card strong {
  display: block;
  color: var(--brand);
}
.link-grid a:hover {
  border-color: #b6d6c6;
  box-shadow: 0 8px 22px rgba(14, 43, 31, 0.07);
  text-decoration: none;
}
.link-grid a span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.priority-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.duty-map-section {
  max-width: 1320px;
  padding-top: 20px;
}
.duty-map-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1.3fr) minmax(340px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.duty-panel,
.map-panel {
  min-width: 0;
}
.map-panel {
  position: sticky;
  top: 14px;
}
.map-panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #41534b;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-duty {
  position: relative;
  background: var(--duty);
}
.legend-duty::after {
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background:
    linear-gradient(#fff, #fff) center / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  content: "";
}
.legend-24h { background: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.legend-default { background: #5f6d68; }
.legend-user { background: var(--map-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.card {
  box-shadow: 0 8px 24px rgba(14, 43, 31, 0.05);
}
.card-duty {
  position: relative;
  border-color: rgba(22, 143, 82, 0.42);
  background: linear-gradient(180deg, #fff, #f5fbf7);
  box-shadow: 0 14px 32px rgba(22, 143, 82, 0.09);
}
.card-duty::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--duty);
  content: "";
}
.pharmacy-card,
.directory-list li {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pharmacy-card.is-map-highlighted,
.directory-list li.is-map-highlighted {
  border-color: var(--brand);
  box-shadow: 0 16px 34px rgba(31, 127, 31, 0.16);
}
.card h3 { margin: 0 0 8px; }
.card h3 a {
  color: #19741f;
}
.card p { margin: 4px 0; color: var(--muted); }
.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 8px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.card-actions .action-primary {
  border-color: #bdd9cc;
  background: #f4fbf7;
}
.card-actions .action-primary:hover {
  background: var(--brand-soft);
}
.icon-action {
  position: relative;
  width: 34px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}
.card-actions a:hover {
  text-decoration: none;
  border-color: var(--brand);
}
.directory-section {
  padding-top: 18px;
}
.directory-list {
  columns: 2 300px;
  column-gap: 28px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.directory-list li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.directory-list a {
  display: block;
  font-weight: 650;
}
.directory-list span {
  display: block;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 999px;
  background: #e5f4ec;
  color: var(--brand-dark);
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 650;
}
.badge-duty {
  background: var(--duty-soft);
  color: var(--duty);
}
.badge-24h {
  background: #e8f0ff;
  color: var(--map-blue);
}
.breadcrumb { color: var(--muted); margin-bottom: 12px; }
.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
}
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.notice {
  margin-top: 24px;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(14, 43, 31, 0.05);
}
.notice-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf7f2;
  margin-top: 14px;
  margin-bottom: 14px;
}
.notice-panel p {
  max-width: 840px;
  margin-bottom: 0;
  line-height: 1.7;
}
.info-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.info-steps article,
.source-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(14, 43, 31, 0.05);
}
.step-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--brand);
}
.info-steps h2,
.source-row h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.info-steps p,
.source-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.source-list {
  display: grid;
  gap: 14px;
}
.source-row span {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.prose-section {
  padding-top: 18px;
}
.prose {
  max-width: 820px;
  color: #28343d;
}
.prose p {
  margin: 0 0 12px;
}
.report-section {
  padding-top: 24px;
}
.report-form {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.form-full {
  grid-column: 1 / -1;
}
.form-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 9px 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.form-control:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 127, 31, 0.12);
}
textarea.form-control {
  resize: vertical;
}
.pharmacy-hero-section {
  padding-top: 44px;
}
.pharmacy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: start;
}
.pharmacy-hero-grid h1 {
  max-width: 760px;
}
.detail-cards {
  display: grid;
  gap: 10px;
  margin: 0;
}
.detail-cards div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 13px 14px;
  box-shadow: 0 6px 18px rgba(14, 43, 31, 0.04);
}
.detail-cards dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-cards dd {
  margin: 0;
  color: var(--muted);
}
.embed-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf0;
  box-shadow: var(--shadow);
}
.embed-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.city-map {
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf0;
}
.city-map-featured {
  height: min(72vh, 720px);
  min-height: 560px;
  box-shadow: var(--shadow);
}
.map-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.map-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.map-empty p { margin: 0; }
.map-marker {
  appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #5f6d68;
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: box-shadow 0.16s ease, filter 0.16s ease, transform 0.16s ease;
  transform-origin: center;
}
.map-marker.is-duty {
  width: 24px;
  height: 24px;
  border-width: 3px;
  background: var(--duty);
  box-shadow: 0 0 0 5px rgba(22, 143, 82, 0.22), 0 3px 10px rgba(15, 23, 42, 0.32);
}
.map-marker.is-duty::after {
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background:
    linear-gradient(#fff, #fff) center / 3px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 3px no-repeat;
  content: "";
}
.map-marker.is-24h {
  width: 20px;
  height: 20px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(15, 23, 42, 0.28);
}
.map-marker.is-duty.is-24h {
  width: 24px;
  height: 24px;
  background: var(--duty);
  box-shadow: 0 0 0 5px rgba(22, 143, 82, 0.22), 0 3px 10px rgba(15, 23, 42, 0.32);
}
.map-marker.is-highlighted {
  filter: saturate(1.2);
  transform: scale(1.35);
  z-index: 5;
  box-shadow: 0 0 0 7px rgba(31, 127, 31, 0.22), 0 6px 18px rgba(15, 23, 42, 0.36);
}
.map-marker.is-duty.is-highlighted,
.map-marker.is-duty.is-24h.is-highlighted {
  box-shadow: 0 0 0 8px rgba(22, 143, 82, 0.28), 0 6px 18px rgba(15, 23, 42, 0.38);
}
.map-marker.is-24h.is-highlighted:not(.is-duty) {
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.28), 0 6px 18px rgba(15, 23, 42, 0.36);
}
.map-user-marker {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #246bfe;
  box-shadow: 0 0 0 7px rgba(36, 107, 254, 0.18), 0 2px 10px rgba(15, 23, 42, 0.3);
}
.mapboxgl-popup-content p { margin: 4px 0; }
.popup-badge {
  display: inline-block;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  background: #e5f4ec;
  color: #0d5d3a;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
}
.tooltip {
  position: relative;
}
.whatsapp-cta.tooltip {
  position: fixed;
}
.tooltip::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 6px;
  background: #102019;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .hero-tool {
    max-width: 720px;
  }
  .duty-map-layout {
    grid-template-columns: 1fr;
  }
  .map-panel {
    position: static;
  }
  .city-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-info-grid div {
    border-top: 1px solid var(--line);
  }
  .city-info-grid div:nth-child(-n+2) {
    border-top: 0;
  }
  .city-info-grid div:nth-child(odd) {
    border-left: 0;
  }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .brand img { width: 164px; height: 46px; }
  nav { gap: 6px; }
  nav a { min-height: 34px; padding: 0 9px; }
  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }
  .hero p,
  .page-hero p {
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-primary-cta {
    justify-items: stretch;
  }
  .hero-primary-cta .button {
    width: 100%;
  }
  .hero-primary-cta p {
    max-width: none;
  }
  .hero-tool {
    padding: 16px;
  }
  .whatsapp-card-cta {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }
  .whatsapp-badge-icon,
  .city-whatsapp-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .whatsapp-badge-icon .ui-icon {
    width: 20px;
    height: 20px;
  }
  .hero-mini-map {
    height: 116px;
  }
  .city-search div { flex-direction: column; }
  .city-summary { grid-template-columns: 1fr; }
  .summary-item {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .city-info-grid { grid-template-columns: 1fr; }
  .city-info-grid div,
  .city-info-grid div:nth-child(-n+2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .city-info-grid div:first-child {
    border-top: 0;
  }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .info-steps { grid-template-columns: 1fr; }
  .quick-actions { flex-direction: column; }
  .quick-actions .button { width: 100%; }
  .city-whatsapp-panel {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .city-whatsapp-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .pharmacy-hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-cards {
    gap: 8px;
  }
  .ad-slot { min-height: 100px; }
  .details { grid-template-columns: 1fr; }
  .city-map,
  .city-map-featured {
    height: 420px;
    min-height: 420px;
  }
  .province-index {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .province-index a {
    flex: 0 0 auto;
  }
  .form-grid { grid-template-columns: 1fr; }
  .embed-map {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
  .whatsapp-cta {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 58px;
  }
  .whatsapp-cta-text { display: inline; }
}
