:root {
  --mint: #65d9c7;
  --mint-deep: #20a995;
  --mint-soft: #e9fbf7;
  --blue: #91d9f5;
  --blue-deep: #3f9bc2;
  --ice: #f6fdff;
  --surface: rgba(255, 255, 255, .92);
  --text: #183d49;
  --muted: #68838b;
  --silver-1: #f8fbfc;
  --silver-2: #d6e1e5;
  --silver-3: #9fb3bb;
  --line: rgba(125, 166, 176, .26);
  --open: #11764f;
  --open-bg: #dff8ea;
  --closed: #aa3d3d;
  --closed-bg: #fff0ef;
  --unknown: #68777d;
  --unknown-bg: #eef2f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ice); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(101,217,199,.18), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(145,217,245,.18), transparent 26%),
    linear-gradient(180deg, #f9feff 0%, #f1fbfc 54%, #f7fdff 100%);
}
button, input { font: inherit; }
button { cursor: pointer; }

.hero {
  position: relative;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 16px 24px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.84), rgba(224,252,247,.78) 45%, rgba(221,244,255,.88)),
    linear-gradient(155deg, #cbf6ed 0%, #dff5ff 100%);
  border-bottom: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 30px rgba(38,118,131,.10);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -56px -15%;
  height: 90px;
  background: rgba(255,255,255,.46);
  border-radius: 50% 50% 0 0;
  filter: blur(1px);
}
.metal-orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 5%, #cbd9de 40%, #ffffff 68%, #9fb4bc 100%);
  opacity: .48;
  filter: blur(.15px);
  box-shadow: inset 5px 5px 12px rgba(255,255,255,.8), inset -6px -6px 14px rgba(92,121,132,.18);
}
.orb-one { width: 86px; height: 86px; right: -20px; top: 16px; }
.orb-two { width: 34px; height: 34px; right: 78px; top: 96px; opacity: .30; }

.brand {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dffff8 0%, #75dfcf 42%, #58bedf 100%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 10px 24px rgba(29,145,143,.22),
    inset 2px 2px 5px rgba(255,255,255,.85),
    inset -3px -3px 7px rgba(38,121,147,.18);
}
.logo span {
  color: white;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(28,104,125,.24);
}
.brand-copy { min-width: 0; }
.eyebrow {
  margin-bottom: 2px;
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.35px;
}
h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -.8px;
  background: linear-gradient(90deg, #1c8f83, #3c8fb6 62%, #7e979f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand p { margin: 5px 0 0; color: #5e7b84; font-size: 13px; }

.search {
  position: relative;
  z-index: 1;
  max-width: 760px;
  height: 56px;
  margin: 21px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 18px;
  box-shadow:
    0 10px 28px rgba(38,118,131,.12),
    inset 0 0 0 1px rgba(125,166,176,.15);
  backdrop-filter: blur(12px);
}
.search:focus-within {
  box-shadow: 0 0 0 3px rgba(101,217,199,.22), 0 12px 30px rgba(38,118,131,.14);
  border-color: rgba(101,217,199,.76);
}
.search-icon { color: var(--mint-deep); font-size: 25px; transform: translateY(-1px); }
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}
.search input::placeholder { color: #8aa0a7; }

main { max-width: 760px; margin: auto; padding: 23px 14px 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 0 3px 12px; }
.section-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.25px;
}
h2 { margin: 0; font-size: 19px; letter-spacing: -.25px; }
.clear-btn {
  border: 1px solid rgba(68,157,174,.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf6f8);
  color: #3d8ca4;
  font-weight: 800;
  padding: 7px 12px;
  box-shadow: 0 3px 9px rgba(38,118,131,.07);
}

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.category {
  position: relative;
  min-height: 82px;
  padding: 10px 5px;
  border: 1px solid rgba(154,181,188,.34);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,250,251,.92));
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 7px 17px rgba(57,111,124,.08), inset 1px 1px 0 rgba(255,255,255,.92);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.category:active { transform: scale(.97); }
.category .icon { font-size: 25px; filter: saturate(.9); }
.category strong { font-size: 13px; color: #159f9a; }
.category.active {
  border-color: rgba(32,169,149,.66);
  background: linear-gradient(145deg, #dffff8 0%, #e5f8ff 100%);
  box-shadow: 0 8px 20px rgba(32,169,149,.16), inset 0 0 0 1px rgba(255,255,255,.8);
}
.category.active::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 3px;
  bottom: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint-deep), var(--blue-deep));
}

.results { margin-top: 27px; }
.results-head { align-items: end; }
.count {
  padding: 6px 10px;
  border-radius: 999px;
  color: #57747d;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(154,181,188,.28);
  font-size: 12px;
  font-weight: 750;
}
.clinic-list { display: grid; gap: 11px; }
.card {
  position: relative;
  border: 1px solid rgba(159,179,187,.34);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(52,106,119,.09), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mint), var(--blue));
}
.card-toggle { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; padding: 17px 16px 15px 19px; }
.card-main { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.35; letter-spacing: -.12px; }
.fee { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.fee strong {
  margin-left: 3px;
  color: #2c7187;
  font-size: 16px;
  font-weight: 850;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .25px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.status.open { color: var(--open); background: linear-gradient(180deg, #edfff4, var(--open-bg)); }
.status.closed { color: var(--closed); background: linear-gradient(180deg, #fff8f7, var(--closed-bg)); }
.status.unknown { color: var(--unknown); background: linear-gradient(180deg, #fafcfc, var(--unknown-bg)); }
.expand-hint {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3b91a7;
  font-size: 12px;
  font-weight: 800;
}
.chevron {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7ffff, #dcebed);
  border: 1px solid rgba(159,179,187,.34);
  transition: transform .18s ease;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(52,106,119,.08);
}
.card.expanded .chevron { transform: rotate(180deg); }
.details {
  border-top: 1px solid rgba(125,166,176,.22);
  padding: 16px 16px 18px 19px;
  background: linear-gradient(135deg, rgba(234,251,247,.76), rgba(239,248,252,.88));
}
.detail + .detail { margin-top: 15px; }
.detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.detail-value { margin: 0; color: #34535c; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(125,166,176,.38);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
}
.empty strong { color: var(--text); font-size: 17px; }
.empty p { margin: 6px 0 0; }

@media (min-width: 700px) {
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .clinic-list { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


.near-me-panel { margin-top: 14px; }
.near-me-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(32,169,149,.45);
  border-radius: 18px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(135deg, #e3fff8, #e8f7ff);
  box-shadow: 0 8px 20px rgba(32,169,149,.12);
}
.near-me-btn > span:first-child { font-size: 27px; }
.near-me-btn strong, .near-me-btn small { display: block; }
.near-me-btn strong { color: #138d81; font-size: 15px; }
.near-me-btn small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.near-me-btn.active { box-shadow: 0 0 0 3px rgba(101,217,199,.18), 0 8px 20px rgba(32,169,149,.15); }
.near-me-btn:disabled { opacity: .65; cursor: progress; }
.location-message { min-height: 18px; margin: 7px 5px 0; color: #57747d; font-size: 12px; }
.distance { margin: 7px 0 0; color: #138d81; font-size: 13px; font-weight: 800; }

.category.coming-soon {
  opacity: .58;
  cursor: not-allowed;
  filter: grayscale(.12);
}
.category.coming-soon:active { transform: none; }
.category.coming-soon small {
  font-size: 9px;
  font-weight: 800;
  color: #7a9299;
  letter-spacing: .2px;
}


.skeleton-card {
  min-height: 136px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255,255,255,.78) 25%, rgba(226,244,246,.9) 50%, rgba(255,255,255,.78) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
  border: 1px solid rgba(159,179,187,.24);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.site-footer {
  max-width: 760px; margin: 0 auto; padding: 6px 18px calc(28px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted);
}
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.site-footer button { border: 0; background: transparent; padding: 4px; color: #2c8298; font-size: 12px; font-weight: 800; }
.site-footer p { margin: 12px auto 7px; max-width: 560px; font-size: 11px; line-height: 1.5; }
.site-footer small { font-size: 11px; }

.info-dialog {
  width: min(92vw, 560px); max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; color: var(--text); background: #fbffff; box-shadow: 0 24px 70px rgba(24,61,73,.28);
}
.info-dialog::backdrop { background: rgba(20,45,54,.48); backdrop-filter: blur(3px); }
.info-dialog h2 { padding-right: 38px; margin-bottom: 14px; }
.info-dialog p { color: #45636c; line-height: 1.6; }
.dialog-close { position: absolute; right: 13px; top: 11px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e8f4f5; color: var(--text); font-size: 24px; }

.install-banner {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 720px; margin: auto; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 13px 12px 13px 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  background: rgba(255,255,255,.96); box-shadow: 0 16px 48px rgba(24,61,73,.22); backdrop-filter: blur(14px);
}
.install-banner[hidden] { display: none; }
.install-banner strong, .install-banner span { display: block; }
.install-banner span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.install-banner button { border: 0; border-radius: 12px; padding: 10px 13px; background: linear-gradient(135deg, var(--mint-deep), var(--blue-deep)); color: white; font-weight: 850; }
.install-banner .dismiss-install { width: 34px; height: 34px; padding: 0; background: #edf4f5; color: var(--text); font-size: 22px; }

@media (max-width: 420px) {
  .card-main { grid-template-columns: 1fr; }
  .status { justify-self: start; }
}

.top-controls {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  flex: 0 0 auto;
}
.language-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(125,166,176,.24);
  box-shadow: 0 4px 12px rgba(38,118,131,.08);
}
.language-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: #56747d;
  font-size: 12px;
  font-weight: 800;
}

.top-install-btn {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--mint-deep), var(--blue-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 5px 13px rgba(38,118,131,.18);
}
.top-install-btn[hidden] { display: none; }

.language-toggle button.active {
  background: linear-gradient(135deg, #57cfbd, #72cbe9);
  color: #fff;
  box-shadow: 0 3px 9px rgba(38,118,131,.16);
}
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.detail-action {
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(68,157,174,.24);
  background: linear-gradient(180deg, #fff, #edf9fa);
  color: #247f92;
  font-weight: 850;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 9px;
}
.detail-action.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 520px) {
  .brand { align-items: flex-start; padding-right: 0; }
  .brand-copy { padding-right: 2px; }
  .top-controls { margin-left: auto; min-width: 96px; }
  .language-toggle button { padding: 7px 8px; font-size: 11px; }
  .top-install-btn { min-height: 34px; padding: 7px 9px; font-size: 11px; }
}
@media (max-width: 370px) {
  .brand { gap: 9px; }
  .logo { width: 50px; height: 50px; flex-basis: 50px; border-radius: 16px; }
  .logo span { font-size: 31px; }
  h1 { font-size: 25px; }
  .brand p { font-size: 11px; }
  .top-controls { min-width: 88px; }
}
