@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f9f9f9;
  --surface: #ffffff;
  --surface-soft: #f3f3f3;
  --surface-blue: #e0f2fe;
  --surface-blue-strong: #d3e5f1;
  --text: #1a1c1c;
  --muted: #50616b;
  --slate: #64748b;
  --primary: #001e40;
  --primary-2: #003366;
  --accent: #f97316;
  --green: #10b981;
  --outline: #c3c6d1;
  --outline-soft: rgba(195, 198, 209, 0.42);
  --shadow: 0 12px 30px rgba(0, 30, 64, 0.08);
  --shadow-strong: 0 26px 60px rgba(0, 30, 64, 0.14);
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 4.5rem);
  --space-2xl: clamp(4.5rem, 8vw, 6.25rem);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --container: 1180px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(211, 229, 241, 0.42), rgba(255, 255, 255, 0) 360px);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.btn:focus-visible,
.chip:focus-visible {
  outline: 3px solid rgba(0, 51, 102, 0.26);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

.container {
  width: min(var(--container), calc(100% - clamp(28px, 5vw, 64px)));
  margin: 0 auto;
}

.medical-ad-section {
  padding-block: clamp(18px, 3vw, 34px);
}

.medical-ad-section + .section {
  padding-top: var(--space-lg);
}

.medical-ad-slot {
  display: grid;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 970px;
  min-height: 126px;
  margin-inline: auto;
  padding: 14px clamp(14px, 3vw, 24px) 18px;
  border-top: 1px solid rgba(195, 198, 209, 0.62);
  border-bottom: 1px solid rgba(195, 198, 209, 0.62);
  background: rgba(224, 242, 254, 0.34);
}

.medical-ad-slot span {
  justify-self: center;
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.medical-ad-slot .adsbygoogle {
  display: block;
  min-width: 250px;
  min-height: 90px;
}

.shell {
  width: min(1280px, calc(100% - clamp(28px, 5vw, 64px)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(195, 198, 209, 0.55);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(0, 30, 64, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-header nav {
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 8px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-menu__panel a.is-active {
  color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-link,
.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.search-link:hover,
.mobile-menu summary:hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  border-color: var(--outline);
  background: var(--surface);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 10px;
  min-width: 250px;
  padding: 18px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.mobile-menu__panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-2);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 var(--space-xl);
  background: var(--surface-blue);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.2) 52%, rgba(0, 30, 64, 0.03));
}

nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.62fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(36px, 6vw, 72px);
  text-align: left;
}

.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  margin: 14px 0 12px;
  max-width: 18ch;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h2 {
  margin: 8px 0 12px !important;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero p.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.pill,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--outline-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-row,
.chip-row,
.return-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip:hover {
  color: var(--primary);
  background: #fff;
  transform: translateY(-1px);
}

.chip.star {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(249, 115, 22, 0.12);
  color: #8b4308;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:active,
.chip:active,
a.card:active,
.category-card:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: var(--primary-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(0, 51, 102, 0.24);
  transform: translateY(-2px);
}

.hero-visual {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(195, 198, 209, 0.5);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.hero-visual .card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  justify-content: center;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: none;
}

.hero-visual .card h3 {
  margin: 0;
}

.hero-visual p {
  margin: 0;
}

.hero-visual .chip-row {
  margin-top: 10px;
}

.flag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 800;
}

.directory-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.56fr) auto;
  gap: 10px;
  width: min(760px, 100%);
  margin: 26px 0 0;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(195, 198, 209, 0.5);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.directory-search input,
.directory-search select,
.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.directory-search input::placeholder {
  color: #5b6571;
  opacity: 1;
}

.section {
  padding: var(--space-xl) 0;
}

.section + .section {
  padding-top: var(--space-lg);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
}

.section-subtitle,
.section-header .stat {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards,
.grid-2,
.detail-grid {
  display: grid;
  gap: var(--space-md);
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}

.grid-2,
.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  align-items: stretch;
}

.card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(195, 198, 209, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

a.card:hover,
.category-card:hover {
  border-color: rgba(0, 51, 102, 0.18);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.category-card {
  align-items: flex-start;
  min-height: 178px;
  justify-content: space-between;
  text-align: left;
}

.category-card::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 800;
}

.category-card:nth-child(6n + 1) {
  grid-column: span 2;
  min-height: 220px;
  background: var(--surface-blue);
}

.category-card:nth-child(6n + 1)::before {
  background: var(--primary);
  color: #fff;
}

.category-card:nth-child(6n + 1) h3 {
  font-size: 1.25rem;
}

.card h3,
.card-title {
  margin: 10px 0 8px;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.card h3 a,
.card-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.category-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
}

.card .description,
.description,
.tile p,
#detail-description {
  color: var(--muted);
  text-wrap: pretty;
}

.card .description {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 16px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.category-card .description {
  -webkit-line-clamp: 2;
}

.card footer,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(195, 198, 209, 0.34);
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--primary);
  font-weight: 800;
}

.media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-blue-strong);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .media img {
  transform: scale(1.04);
}

.breadcrumbs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 6px;
  border: 1px solid rgba(195, 198, 209, 0.58);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.breadcrumbs a:hover {
  background: rgba(224, 242, 254, 0.76);
  color: var(--primary-2);
}

.breadcrumbs > span[aria-hidden="true"] {
  padding: 0 4px;
  color: rgba(80, 97, 107, 0.55);
}

.breadcrumbs .tag {
  max-width: min(44vw, 360px);
  min-height: 34px;
  overflow: hidden;
  border-color: rgba(195, 198, 209, 0.52);
  background: rgba(224, 242, 254, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-stack {
  align-items: stretch;
}

.detail-card,
.location-card {
  min-height: 100%;
}

.detail-box {
  padding: 22px;
  border: 1px solid rgba(195, 198, 209, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: none;
}

.detail-box h4,
.detail-card h3,
.location-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

#detail-description {
  margin: 0;
  white-space: pre-line;
}

#detail-description strong {
  color: var(--primary);
}

.detail-box a,
.detail-box .is-unavailable {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.map-embed {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.location-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table tr:not(:last-child) td {
  border-bottom: 1px solid rgba(195, 198, 209, 0.42);
}

.table td {
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.95rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.table td + td {
  padding-left: 16px;
  text-align: right;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-inline li {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-blue);
  color: var(--primary);
  font-weight: 700;
}

.ad-section {
  display: none;
  padding: 0;
}

.ad-container {
  display: flex;
  justify-content: center;
}

.ad-slot {
  width: 100%;
}

.footer {
  width: min(var(--container), calc(100% - 48px));
  padding: 44px 0 52px;
  border-top: 1px solid rgba(195, 198, 209, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.footer-row + .footer-row {
  margin-top: 8px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(80, 97, 107, 0.25);
  text-underline-offset: 4px;
}

.footer a:hover {
  color: var(--primary);
}

.site-footer {
  margin-top: 64px;
  padding: 58px 0 28px;
  border-top: 1px solid rgba(195, 198, 209, 0.7);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 0.7fr));
  gap: 34px;
}

.footer-brand h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--primary);
}

.footer-brand h2 {
  font-size: 1.5rem;
}

.footer-brand p {
  max-width: 32ch;
  margin: 0;
}

.footer-grid h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 9px;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(80, 97, 107, 0.2);
  text-underline-offset: 4px;
}

.footer-grid a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(195, 198, 209, 0.62);
  font-size: 0.86rem;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body[data-page="detail"] .hero {
  padding-bottom: var(--space-lg);
}

body[data-page="detail"] .hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
  align-items: center;
  justify-items: stretch;
  gap: 34px;
  padding-top: clamp(30px, 4.2vw, 54px);
  text-align: left;
}

body[data-page="detail"] .hero h1,
body[data-page="category"] .hero h1 {
  max-width: 18ch;
}

body[data-page="detail"] .hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
}

body[data-page="detail"] .hero-visual {
  width: 100%;
  align-self: center;
}

body[data-page="detail"] .hero-visual .media {
  aspect-ratio: 4 / 3;
  max-height: 340px;
  margin-bottom: 0;
}

body[data-page="detail"] .hero-visual .chip-row {
  justify-content: center;
}

body[data-page="detail"] .cta-row {
  justify-content: flex-start;
}

body[data-page="detail"] #detail-rating {
  justify-content: flex-start;
  margin-top: 16px;
}

body[data-page="detail"] #detail-rating .chip {
  background: rgba(255, 255, 255, 0.9);
}

body[data-page="detail"] .section {
  padding: var(--space-lg) 0;
}

body[data-page="detail"] .section + .section {
  padding-top: 0;
}

body[data-page="detail"] .detail-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

body[data-page="detail"] .detail-card,
body[data-page="detail"] .location-card,
body[data-page="detail"] .detail-box {
  border-color: rgba(195, 198, 209, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

body[data-page="detail"] .detail-card {
  padding: clamp(26px, 3vw, 36px);
}

body[data-page="detail"] #detail-description {
  display: grid;
  gap: 14px;
  max-width: 68ch;
  color: #334854;
  font-size: 1rem;
  line-height: 1.72;
  white-space: normal;
}

body[data-page="detail"] #detail-description .description-lead {
  color: var(--primary);
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.62;
}

body[data-page="detail"] #detail-description .description-copy {
  color: #4d6471;
}

body[data-page="detail"] .location-card {
  gap: 14px;
  position: sticky;
  top: 96px;
}

body[data-page="detail"] .location-card p,
body[data-page="detail"] .detail-box p {
  overflow-wrap: anywhere;
}

body[data-page="detail"] .detail-box p {
  display: grid;
  grid-template-columns: minmax(92px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
}

body[data-page="detail"] .detail-box p + p {
  border-top: 1px solid rgba(195, 198, 209, 0.36);
}

body[data-page="detail"] .detail-box strong {
  color: var(--primary);
}

body[data-page="detail"] .detail-box {
  padding: clamp(22px, 2.6vw, 30px);
}

body[data-page="detail"] .detail-box h4,
body[data-page="detail"] .detail-card h3,
body[data-page="detail"] .location-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  line-height: 1.15;
}

body[data-page="detail"] .table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

body[data-page="detail"] .table tr {
  background: rgba(224, 242, 254, 0.42);
}

body[data-page="detail"] .table tr:not(:last-child) td {
  border-bottom: 0;
}

body[data-page="detail"] .table td {
  padding: 12px 14px;
  color: #435966;
  font-size: 0.96rem;
}

body[data-page="detail"] .table td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--primary);
  font-weight: 750;
}

body[data-page="detail"] .table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 650;
}

body[data-page="detail"] .map-embed {
  min-height: 260px;
  border: 1px solid rgba(195, 198, 209, 0.52);
}

body[data-page="detail"] #related.cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

body[data-page="detail"] #related .card {
  padding: 18px;
}

body[data-page="detail"] #related .media {
  aspect-ratio: 16 / 10;
}

body[data-page="category"] .hero-grid {
  padding-top: clamp(34px, 5vw, 58px);
}

body[data-page="category"] .cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.is-muted,
.is-unavailable {
  color: var(--muted);
}

a.is-unavailable,
.btn.is-unavailable {
  pointer-events: none;
  cursor: default;
  opacity: 0.68;
}

.empty-state,
.loading-state {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(195, 198, 209, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state h3,
.loading-state h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.empty-state p,
.loading-state p {
  margin: 0 auto;
  max-width: 48ch;
}

.result-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding-bottom: 52px;
  }

  .hero h1 {
    max-width: none;
    font-size: 2.35rem;
  }

  .hero h2 {
    font-size: 1.28rem;
  }

  .hero-grid,
  .directory-search,
  body[data-page="detail"] .hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="detail"] .hero-grid {
    text-align: center;
  }

  body[data-page="detail"] .hero {
    padding-bottom: 34px;
  }

  .container,
  .footer,
  .shell {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 50px 0;
  }

  .chip-row {
    justify-content: flex-start;
  }

  .hero-grid {
    justify-items: stretch;
    padding-top: 30px;
    text-align: left;
  }

  .hero p.lead {
    text-align: left;
  }

  .cta-row,
  .return-row {
    justify-content: flex-start;
  }

  body[data-page="detail"] .breadcrumbs {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body[data-page="detail"] .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  body[data-page="detail"] .breadcrumbs a,
  body[data-page="detail"] .breadcrumbs .tag {
    flex: 0 0 auto;
  }

  body[data-page="detail"] .breadcrumbs .tag {
    max-width: 58vw;
  }

  body[data-page="detail"] .hero-grid {
    gap: 22px;
    text-align: left;
  }

  body[data-page="detail"] .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  body[data-page="detail"] #detail-rating .chip,
  body[data-page="detail"] .hero-visual .chip-row .badge {
    width: auto;
  }

  body[data-page="detail"] .hero-visual {
    padding: 10px;
  }

  body[data-page="detail"] .hero-visual .media {
    max-height: 220px;
  }

  body[data-page="detail"] .section {
    padding: 42px 0;
  }

  body[data-page="detail"] .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards,
  .grid-2,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-card:nth-child(6n + 1) {
    grid-column: auto;
    min-height: 178px;
  }

  .footer {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }

  .header-actions {
    gap: 10px;
  }

  .main-nav {
    gap: 2px;
    font-size: 0.84rem;
  }

  .main-nav a {
    padding-inline: 5px;
  }

  .header-cta {
    gap: 8px;
  }

  .search-link {
    padding-inline: 10px;
  }

  .header-button {
    display: none;
  }

  .directory-search {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.5fr) auto;
  }

  body[data-page="detail"] .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  nav {
    gap: 14px;
  }

  .logo {
    font-size: 1.18rem;
  }

  .brand {
    font-size: 1.18rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero h2 {
    font-size: 1.18rem;
  }

  .directory-search,
  .hero-visual,
  .card,
  .detail-box,
  .empty-state,
  .loading-state {
    padding: 18px;
  }

  .directory-search {
    padding: 10px;
  }

  .hero-visual .card {
    min-height: auto;
  }

  .category-card {
    min-height: 156px;
  }

  .cta-row .btn,
  .directory-search .btn,
  .return-row .chip {
    width: 100%;
  }

  body[data-page="detail"] .cta-row .btn,
  body[data-page="detail"] .return-row .chip {
    width: 100%;
  }

  body[data-page="detail"] .hero .cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="detail"] .hero .cta-row .btn:last-child {
    grid-column: 1 / -1;
  }

  body[data-page="detail"] #detail-rating .chip,
  body[data-page="detail"] .breadcrumbs .tag,
  body[data-page="detail"] .hero-visual .badge {
    width: auto;
  }

  .section {
    padding: 42px 0;
  }

  .medical-ad-section {
    padding-block: 28px;
  }

  .medical-ad-slot {
    min-height: 172px;
    padding: 14px 12px 18px;
  }

  .medical-ad-slot .adsbygoogle {
    min-height: 130px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .map-embed {
    min-height: 240px;
  }

  body[data-page="detail"] .map-embed {
    min-height: 220px;
  }

  body[data-page="detail"] .hero-visual .media {
    max-height: 150px;
  }

  body[data-page="detail"] .hero-visual .chip-row {
    display: none;
  }

  .table {
    min-width: 0;
  }

  .detail-box {
    overflow-x: auto;
  }

  body[data-page="detail"] .detail-box p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
