.clinic-directory {
  color: var(--ink, #31392d);
  background: var(--paper, #fafcfb);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  min-height: 65vh;
}
.clinic-directory *, .clinic-directory *::before, .clinic-directory *::after { box-sizing: border-box; }
.clinic-directory [hidden] { display: none !important; }
.clinic-directory :focus-visible { outline: 3px solid #bc7541; outline-offset: 4px; }
.kd-shell {
  width: min(1220px, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin-inline: auto;
}
.kd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  padding: 1.45rem 0;
  color: #6a7266;
  font-size: .875rem;
}
.kd-crumbs a, .kd-back { color: var(--pine, #31392d); text-underline-offset: .25em; }
.kd-crumbs a { text-decoration: none; }
.kd-crumbs a:hover, .kd-back:hover { text-decoration: underline; }
.kd-heading { padding: clamp(1.5rem, 4vw, 3.2rem) 0 2rem; }
.kd-heading h1, .kd-detail-title, .kd-loading {
  margin: 0;
  color: var(--pine, #31392d);
  font: 600 clamp(2.15rem, 4.5vw, 4rem)/1.22 var(--serif, Georgia, "Batang", serif);
  letter-spacing: -.055em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.kd-heading p { margin: .9rem 0 0; font-size: 1.05rem; color: #626a5e; line-height: 1.65; word-break: keep-all; }
.kd-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, .32fr) auto;
  align-items: end;
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #d9e1d5;
  border-radius: 1rem;
  background: #edf5e9;
}
.kd-field { min-width: 0; }
.kd-field label { display: block; margin-bottom: .4rem; font-weight: 650; font-size: .875rem; color: #4a5246; }
.kd-field :is(input,select) {
  width: 100%;
  height: 3.1rem;
  padding: .6rem 1rem;
  background-color: #fff;
  border: 1px solid #c8d0c4;
  border-radius: .45rem;
  color: #394135;
  font: inherit;
}
.kd-field input::placeholder { color: #71796d; }
.kd-field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23394f43' stroke-width='1.5'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
}
.kd-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.8rem; padding: .6rem 1.1rem;
  border: 1px solid #ccd4c8; border-radius: .5rem;
  color: #485044; background: #fff;
  font: inherit; font-size: .94rem; font-weight: 650;
  line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.kd-button:hover, .kd-page:hover { border-color: #6a7266; background-color: #f0f8ec; }
.kd-button:disabled { cursor: wait; }
.kd-primary, .kd-near[aria-pressed="true"] { color: white; background: var(--pine, #31392d); border-color: var(--pine, #31392d); }
.kd-primary:hover, .kd-near[aria-pressed="true"]:hover { color: white; background: #40483c; }
.kd-search-box .kd-primary { height: 3.1rem; padding-inline: 1.8rem; }
#kd-results { scroll-margin-top: 5rem; padding-top: clamp(2.3rem, 5vw, 3.7rem); }
#kd-results:focus { outline: 0; }
.kd-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.kd-toolbar-actions { display: flex; gap: .5rem; }
.kd-toolbar h2, .kd-panel h2 { color: var(--pine, #31392d); margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 650; letter-spacing: -.04em; }
.kd-meta { margin: .35rem 0 0; font-size: .875rem; color: #687064; line-height: 1.6; }
.kd-meta:empty { display: none; }
#kd-location-status:not(:empty) { margin-bottom: 1rem; }
.kd-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.kd-card { display: flex; flex-flow: column; gap: .6rem; padding: 1.4rem 1.55rem; border: 1px solid #d9e1d5; border-radius: .75rem; background: #fff; position: relative; }
.kd-card:focus-within, .kd-card:hover { border-color: #7d8579; }
.kd-local { margin: 0; color: #525a4e; font-size: .875rem; font-weight: 650; line-height: 1.5; }
.kd-card h3 { margin: 0; color: var(--pine, #31392d); font-size: 1.25rem; line-height: 1.45; letter-spacing: -.035em; overflow-wrap: anywhere; }
.kd-name { text-decoration: none; color: inherit; }
.kd-name::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.kd-name:focus-visible { outline-offset: 3px; }
.kd-address { margin: 0; color: #5c6458; font-size: .96rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.kd-card-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .45rem; margin-top: auto; padding-top: .7rem; color: #626a5e; font-size: .875rem; font-variant-numeric: tabular-nums; }
.kd-card-bottom :empty { display: none; }
.kd-message { grid-column: 1/-1; padding: 2.9rem 1.25rem; border: 1px solid #d9e1d5; border-radius: .75rem; text-align: center; background: #fff; }
.kd-message h3 { font-size: 1.25rem; color: var(--pine, #31392d); margin: 0 0 .55rem; }
.kd-message .kd-button { margin-top: 1rem; }
.kd-pager { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2.2rem; }
.kd-pager:empty { display: none; }
.kd-page { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; min-height: 2.7rem; padding: .4rem; color: #51594d; border: 1px solid transparent; border-radius: .4rem; font-size: .94rem; text-decoration: none; }
.kd-page[aria-current="page"] { color: #fff; background: var(--pine, #31392d); }
.kd-ellipsis { color: #70786c; }
.kd-detail-shell { max-width: 56rem; }
.kd-detail-head { padding: clamp(2rem,4vw,3.5rem) 0 clamp(1.5rem,4vw,2.6rem); }
.kd-detail-head .kd-local { margin-bottom: .65rem; }
.kd-detail-title { font-size: clamp(2rem,4.6vw,3.4rem); }
.kd-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.kd-panel { margin: 0 0 1rem; padding: clamp(1.3rem,3.2vw,2.15rem); border: 1px solid #d9e1d5; border-radius: .85rem; background: #fff; }
.kd-reviews { background: #f0f8ec; scroll-margin-top: 1.5rem; }
.kd-reviews p { max-width: 65ch; }
.kd-specs { margin: 1.2rem 0 0; }
.kd-specs > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .95rem 0; border-top: 1px solid #e8f0e4; line-height: 1.6; }
.kd-specs > div:last-child { padding-bottom: 0; }
.kd-specs dt { color: #666e62; font-size: .9rem; font-weight: 600; }
.kd-specs dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.kd-panel p { color: #60685c; line-height: 1.65; }
.kd-panel p:last-child { margin-bottom: 0; }
.kd-panel p a, .kd-specs a { color: #525a4e; text-underline-offset: .22em; }
.kd-back { display: inline-block; margin-top: 1.2rem; font-weight: 650; }
.kd-loading { margin-block: 2.5rem; font-size: 1.65rem; }
@media (max-width: 700px) {
  .kd-shell { width: calc(100% - 2rem); }
  .kd-heading p { font-size: 1rem; }
  .kd-search-box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .kd-keyword, .kd-search-box .kd-primary { grid-column: 1/-1; }
  .kd-cards { grid-template-columns: minmax(0,1fr); }
  .kd-card { padding: 1.2rem; }
  .kd-card h3 { font-size: 1.15rem; }
  .kd-pager { gap: .12rem; }
  .kd-page { min-width: 2.3rem; }
}
@media (max-width: 380px) {
  .kd-search-box .kd-primary { padding-inline: 1rem; }
  .kd-specs > div { grid-template-columns: 1fr; gap: .25rem; }
}

@media(max-width:760px){.kd-search-box,.map-fields{grid-template-columns:1fr}}
