/* Tierarzt finden — editorial design system on top of Tailwind CDN. */

/* ============================================================
   Global tokens & body
   ============================================================ */

:root {
    --cream:        #fbf6ec;
    --cream-soft:   #f7f2e6;
    --paper:        #faf7ed;   /* page bg — warm newsprint */
    --rule:         #e8e0cf;
    --rule-soft:    #efe7d6;
    --ink:          #1e293b;
    --ink-soft:     #475569;
    --ink-faint:    #94a3b8;
    --teal-1:       #0d9488;
    --teal-2:       #115e59;
    --teal-3:       #ccfbf1;
    --teal-tint:    rgba(13, 148, 136, 0.06);
    --amber-1:      #f59e0b;
    --amber-2:      #b45309;
    --amber-3:      #fef3c7;
}

body {
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Allow Cormorant ligatures and old-style numerals where used */
.font-serif-display {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}
.font-mono-label {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ============================================================
   App header
   ============================================================ */

.app-header {
    background: white;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 30;
}
.app-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}
.app-brand__icon { color: var(--teal-1); flex-shrink: 0; }
.app-brand__name {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition: color 0.2s;
}
.app-brand:hover .app-brand__name { color: var(--teal-2); }

.app-stats {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}
.app-locale {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-faint);
}

/* ============================================================
   City tabs
   ============================================================ */

.city-tabs {
    background: white;
    border-bottom: 1px solid var(--rule);
}
.city-tabs__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.city-tab {
    padding: 0.95rem 0.95rem;
    margin-right: 0.25rem;
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.city-tab:hover { color: var(--teal-2); }
.city-tab--active {
    color: var(--teal-2);
    border-bottom-color: var(--teal-1);
}
.city-tab__count {
    color: var(--ink-faint);
    margin-left: 0.4rem;
    font-size: 10px;
}

/* ============================================================
   Home hero
   ============================================================ */

.home-hero { position: relative; overflow: hidden; }
.home-hero--idle { background: var(--cream); }
.home-hero--active { background: white; border-bottom: 1px solid var(--rule); }

.home-hero__h1 {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}
.home-hero__h1-accent { color: var(--teal-2); }
.home-hero__h1-where { color: var(--amber-2); font-style: italic; font-weight: 500; }
.home-hero__sub {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--ink-soft);
    text-wrap: balance;
}

/* ============================================================
   Search bar
   ============================================================ */

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: white;
    border: 1px solid var(--rule);
    padding: 0.7rem 1rem;
    border-radius: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within {
    border-color: var(--teal-1);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.search-bar__icon { color: var(--ink-faint); flex-shrink: 0; }
.search-bar__input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--ink);
    font-family: inherit;
    outline: none;
}
.search-bar__input::placeholder { color: var(--ink-faint); font-style: italic; }
.search-bar__clear {
    color: var(--ink-faint);
    background: transparent;
    border: 0;
    padding: 0 0.4rem;
    cursor: pointer;
    font-size: 1.1rem;
}
.search-bar__clear:hover { color: var(--ink); }

/* ============================================================
   Quick pills (homepage CTAs)
   ============================================================ */

.quick-pill {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    background: white;
    border: 1px solid var(--rule);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.quick-pill:hover {
    color: var(--teal-2);
    border-color: var(--teal-1);
    background: rgba(13, 148, 136, 0.04);
}

/* ============================================================
   Section headings (used on homepage + sidebar)
   ============================================================ */

.section-h2 {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.section-h2__caption {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
}

.section-sub {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 36rem;
    text-wrap: pretty;
}
.section-sub--italic {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
}

.section-h3 {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-soft);
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--rule);
}

/* ============================================================
   Aside cards & facet chips (homepage right column)
   ============================================================ */

.aside-card {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.5rem;
}
.facet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.facet-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--ink);
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid var(--rule);
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.facet-chip:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.32);
    color: var(--teal-2);
}
.facet-chip__count {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   Search results — toolbar + active filters
   ============================================================ */

.results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.results-count {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--ink);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.results-count__total { font-weight: 500; }
.results-count__suffix {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 10px;
    color: var(--ink-faint);
    margin-left: 0.5rem;
}

.active-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-2);
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.32);
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
}
.active-filter-pill__x {
    background: transparent;
    border: 0;
    color: var(--teal-2);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}
.active-filter-pill__x:hover { color: var(--ink); }
.active-filter-pill--amber {
    color: var(--amber-2);
    background: var(--amber-3);
    border-color: #fcd34d;
}
.active-filter-pill--amber .active-filter-pill__x { color: var(--amber-2); }

.clear-filters {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-faint);
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    cursor: pointer;
    padding: 0;
}
.clear-filters:hover { color: var(--ink); border-bottom-color: var(--ink); }

.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--ink-faint);
    font-style: italic;
    font-size: 1.05rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ============================================================
   Filter sidecard
   ============================================================ */

.filter-card { /* extends .aside-card */ }
.filter-card__group {
    margin-top: 1.5rem;
}
.filter-card__group:first-of-type { margin-top: 0; }
.filter-card__group-label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    margin-bottom: 0.55rem;
}
.filter-card__check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--ink);
}
.filter-card__check input {
    width: 14px; height: 14px;
    accent-color: var(--teal-1);
    cursor: pointer;
}
.filter-card__select {
    width: 100%;
    font-size: 0.88rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 0.45rem 0.6rem;
    background: white;
    color: var(--ink);
    font-family: inherit;
}
.filter-card__select:focus {
    outline: none;
    border-color: var(--teal-1);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.77rem;
    color: var(--ink);
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid var(--rule);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.32);
    color: var(--teal-2);
}
.filter-chip--active {
    background: var(--teal-2);
    color: white;
    border-color: var(--teal-2);
}
.filter-chip--active:hover {
    background: var(--teal-1);
    color: white;
}

/* ============================================================
   Pagination
   ============================================================ */

.pagination {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.pagination__btn {
    background: white;
    border: 1px solid var(--rule);
    padding: 0.55rem 1.1rem;
    border-radius: 2px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.pagination__btn:hover:not([disabled]) {
    border-color: var(--teal-1);
    color: var(--teal-2);
}
.pagination__btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}
.pagination__count {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

/* ============================================================
   Footer
   ============================================================ */

.app-footer {
    background: white;
    border-top: 1px solid var(--rule);
    margin-top: 4rem;
}
.app-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
}
.app-footer__meta {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    line-height: 1.7;
}
.app-footer__rule {
    height: 1px;
    background: var(--rule);
    margin: 1.25rem 0;
}
.app-footer__disclaimer {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: var(--ink-faint);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================
   Practice card (used on homepage "In Ihrer Nähe" AND search results)
   ============================================================ */



/* Hero text needs a soft halo to remain readable over the decorative map. */
.hero-halo {
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.95),
        0 0 14px rgba(255, 255, 255, 0.85),
        0 0 24px rgba(255, 255, 255, 0.55);
}

/* Hide overflow scrollbar on horizontal tab strips. */
.scrollbar-hidden::-webkit-scrollbar { display: none; }
.scrollbar-hidden { scrollbar-width: none; -ms-overflow-style: none; }

/* Three-line clamp for descriptions in result cards. */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Decorative hero map: grayscale + softened brightness so it sits quietly
   under the title without competing with content. */
#hero-map .leaflet-pane,
#hero-map .leaflet-tile {
    filter: grayscale(1) brightness(1.05) contrast(0.9);
}
#hero-map .leaflet-control-attribution { font-size: 9px; opacity: 0.6; }

/* Marker cluster styling — teal palette to match brand. */
.marker-cluster {
    background-color: rgba(20, 184, 166, 0.18);
}
.marker-cluster div {
    background-color: rgba(15, 118, 110, 0.85);
    color: #fff;
    font-weight: 600;
}

/* "Online-Termin" pill — amber accent for the headline reservation feature. */
.pill-online {
    background-color: rgb(254 243 199);  /* amber-100 */
    color: rgb(146 64 14);                /* amber-800 */
    border: 1px solid rgb(252 211 77);    /* amber-300 */
}

/* Logo placeholder when no logo_url was extracted. */
.logo-fallback {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
}

/* Map markers — distinguish online-bookable practices. */
.vet-marker-online { color: #f59e0b; }
.vet-marker-default { color: #0d9488; }

/* ============================================================
   Practice detail — editorial hero + body
   ============================================================ */

:root {
    --cream:        #fbf6ec;
    --cream-soft:   #f7f2e6;
    --rule:         #e6dfce;
    --ink:          #1e293b;   /* slate-800 */
    --ink-soft:     #475569;   /* slate-600 */
    --ink-faint:    #94a3b8;   /* slate-400 */
    --teal-1:       #0d9488;
    --teal-2:       #115e59;
    --teal-3:       #ccfbf1;
    --amber-1:      #f59e0b;
    --amber-2:      #b45309;
    --amber-3:      #fef3c7;
}

.practice-detail {
    background:
        radial-gradient(800px 400px at 88% -10%, rgba(245, 158, 11, 0.05), transparent 65%),
        linear-gradient(180deg, var(--cream-soft) 0px, var(--cream-soft) 460px, #fafaf8 460px, #fafaf8 100%);
}

/* ----------- HERO ----------- */

.practice-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--rule);
}

.practice-hero__rule {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-2) 0%, var(--teal-1) 50%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.practice-hero__map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Map tiles — slightly muted so they recede behind type. */
.practice-hero__map .leaflet-pane,
.practice-hero__map .leaflet-tile {
    filter: saturate(0.55) brightness(1.05);
}
.practice-hero__map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.55) !important;
    font-size: 9px;
    opacity: 0.55;
}

/* The cream veil bleeds from the left, fading to transparent ~70% across so
   the marker on the right stays readable as part of the image. */
.practice-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(95deg,
            rgba(251, 246, 236, 0.97) 0%,
            rgba(251, 246, 236, 0.95) 36%,
            rgba(251, 246, 236, 0.55) 58%,
            rgba(251, 246, 236, 0.0)  74%),
        linear-gradient(180deg,
            rgba(251, 246, 236, 0.4) 0%,
            transparent 22%,
            transparent 70%,
            rgba(251, 246, 236, 0.6) 100%);
    pointer-events: none;
}

.practice-hero__shell {
    position: relative;
    z-index: 10;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    min-height: 460px;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Breadcrumb */
.practice-hero__crumb {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
}
.practice-hero__crumb a {
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.practice-hero__crumb a:hover {
    color: var(--teal-2);
    border-bottom-color: var(--teal-1);
}
.practice-hero__crumb-sep {
    color: var(--ink-faint);
    margin: 0 0.55rem;
}
.practice-hero__crumb-current {
    color: var(--ink);
}

/* Title block — left half on desktop, full width on mobile */
.practice-hero__title {
    max-width: 36rem;            /* keep clear of the right-side marker */
    align-self: end;             /* bottom-anchored — feels like a masthead */
    padding-bottom: 0.5rem;
}

.practice-hero__eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--teal-2);
    margin-bottom: 0.75rem;
}

.practice-hero__name {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

.practice-hero__address {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 400;
}

.practice-hero__tags {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.825rem;
    letter-spacing: 0.02em;
}
.practice-hero__tag {
    display: inline-flex;
    align-items: baseline;
    color: var(--ink);
}
.practice-hero__tag-sep {
    color: var(--teal-1);
    margin: 0 0.55rem;
    font-weight: 600;
}

/* Online-bookable practices get a subtle amber tint to the rule above the
   hero — quiet visual signal. */
.practice-hero[data-online="true"] .practice-hero__rule {
    background: linear-gradient(90deg, var(--amber-2) 0%, var(--amber-1) 50%, transparent 100%);
}

/* ----------- CUSTOM MARKER ----------- */

.vet-pin {
    position: relative;
    width: 32px;
    height: 32px;
}
.vet-pin__dot {
    position: absolute;
    inset: 9px;
    background: var(--teal-1);
    border-radius: 50%;
    box-shadow:
        0 0 0 3px #ffffff,
        0 6px 16px rgba(15, 23, 42, 0.22);
}
.vet-pin__pulse {
    position: absolute;
    inset: 0;
    background: rgba(20, 184, 166, 0.28);
    border-radius: 50%;
    animation: vet-pulse 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes vet-pulse {
    0%   { transform: scale(0.55); opacity: 0.85; }
    100% { transform: scale(2.0);  opacity: 0; }
}
.vet-pin--online .vet-pin__dot   { background: var(--amber-1); }
.vet-pin--online .vet-pin__pulse { background: rgba(245, 158, 11, 0.32); }

/* ----------- BODY ----------- */

.practice-lede {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--ink);
    font-style: italic;
    font-weight: 400;
    max-width: 38rem;
    text-wrap: pretty;
    /* hanging quote-style indent line on the left */
    border-left: 2px solid var(--teal-1);
    padding-left: 1.25rem;
    margin: 0;
}

.practice-section-h {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rule);
}

.practice-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.55rem;
}
.practice-service {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--ink);
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.18);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.practice-service:hover {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.32);
    transform: translateY(-1px);
}

.practice-booking {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(120deg, #fff8eb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 0 rgba(180, 83, 9, 0.04), 0 8px 24px -12px rgba(180, 83, 9, 0.18);
}
.practice-booking__icon {
    width: 40px; height: 40px;
    color: var(--amber-2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(180, 83, 9, 0.18);
}
.practice-booking__icon svg { width: 22px; height: 22px; }
.practice-booking__label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-2);
}
.practice-booking__platform {
    font-size: 1.05rem;
    color: var(--ink);
    margin-top: 0.15rem;
}
.practice-booking__cta {
    background: var(--amber-2);
    color: white;
    padding: 0.65rem 1.2rem;
    border-radius: 2px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.15s;
}
.practice-booking__cta:hover {
    background: #92400e;
    transform: translateY(-1px);
}

.practice-source {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.practice-source a {
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.practice-source a:hover {
    color: var(--teal-2);
    border-bottom-color: var(--teal-1);
}
.practice-source__domain {
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ink);
    margin-left: 0.45rem;
}

/* Contact sidecard */
.practice-contact {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.75rem;
    box-shadow: 0 1px 0 rgba(30, 41, 59, 0.02);
}
.practice-contact__h {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
}
.practice-contact__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    font-size: 0.9rem;
}
.practice-contact__list dt {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faint);
    margin-bottom: 0.35rem;
}
.practice-contact__list dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
}
.practice-contact__list dd a {
    color: var(--teal-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 118, 110, 0.25);
    transition: border-color 0.2s;
}
.practice-contact__list dd a:hover {
    border-bottom-color: var(--teal-1);
}

.practice-coords {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--ink-faint);
    text-align: right;
    padding: 0 0.25rem;
}
.practice-coords__sep {
    color: var(--ink-faint);
    margin: 0 0.2rem;
    opacity: 0.7;
}

/* ----------- RESPONSIVE: mobile/tablet ----------- */

@media (max-width: 768px) {
    .practice-hero { min-height: 380px; }
    .practice-hero__shell { min-height: 380px; padding: 1.25rem 1rem 2rem; }
    .practice-hero__title { max-width: 100%; padding-bottom: 0; }
    .practice-hero__crumb { margin-bottom: 1.5rem; }
    .practice-hero__name { font-size: clamp(1.875rem, 8vw, 2.5rem); }
    /* On narrow screens, push veil further so the marker is still visible below the text */
    .practice-hero__veil {
        background:
            linear-gradient(180deg,
                rgba(251, 246, 236, 0.97) 0%,
                rgba(251, 246, 236, 0.92) 55%,
                rgba(251, 246, 236, 0.55) 72%,
                rgba(251, 246, 236, 0.0)  90%);
    }
    .practice-lede { font-size: 1.2rem; padding-left: 1rem; }
    .practice-booking {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    .practice-booking__cta { justify-self: start; }
    .practice-coords { text-align: left; }
}

/* ============================================================
   Nearest practices — editorial column cards (homepage)
   ============================================================ */

.practice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.practice-card {
    position: relative;
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--rule, #e5e7eb);
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    transition: box-shadow 0.25s, border-color 0.2s, transform 0.18s;
}
.practice-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: var(--teal-1);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 4px 4px 0 0;
}
.practice-card-link:hover .practice-card {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}
.practice-card-link:hover .practice-card::before { opacity: 1; }

.practice-card[data-online="true"]::before {
    opacity: 1;
    background: var(--amber-1);
}

.practice-card__media {
    width: 132px;
    height: 132px;
    background: #fafaf8;
    border-radius: 3px;
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.practice-card__media img {
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
}
.practice-card__monogram {
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.15), transparent 50%),
        linear-gradient(135deg, var(--teal-1) 0%, var(--teal-2) 100%);
    color: white;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.practice-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.practice-card__head-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}
.practice-card__eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--teal-2);
    margin-bottom: 0.3rem;
}
.practice-card__name {
    font-family: 'Cormorant Garamond', 'Sorts Mill Goudy', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.005em;
    margin: 0;
    text-wrap: balance;
}
.practice-card__where {
    font-size: 0.825rem;
    color: var(--ink-soft);
    margin-top: 0.3rem;
    line-height: 1.4;
}
.practice-card__distance {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.practice-card__online {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--amber-2);
    background: var(--amber-3);
    border: 1px solid #fcd34d;
    padding: 0.32rem 0.6rem;
    border-radius: 2px;
    white-space: nowrap;
}

.practice-card__desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: pretty;
}

.practice-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 0.8rem;
    color: var(--ink);
}
.practice-card__tag {
    display: inline-flex;
    align-items: baseline;
}
.practice-card__tag-sep {
    color: var(--teal-1);
    margin: 0 0.5rem;
    font-weight: 600;
}

.practice-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(15, 118, 110, 0.15);
}
.practice-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.practice-card__meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--ink-faint);
    stroke-width: 1.5;
}

.practice-card__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.practice-card__service {
    font-size: 0.745rem;
    color: var(--teal-2);
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.18);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.005em;
}
.practice-card__service-more {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 10px;
    color: var(--ink-faint);
    padding: 0.22rem 0.3rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

@media (max-width: 640px) {
    .practice-card {
        grid-template-columns: 96px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }
    .practice-card__media { width: 96px; height: 96px; }
    .practice-card__monogram { font-size: 2rem; }
    .practice-card__head {
        flex-direction: column;
        align-items: flex-start;
    }
    .practice-card__head-aside {
        flex-direction: row;
        align-items: center;
    }
    .practice-card__name { font-size: 1.2rem; }
}

/* Subtle entrance: hero content fades up on first render */
.practice-hero__crumb,
.practice-hero__title > * {
    animation: hero-rise 0.7s cubic-bezier(0.22, 0.94, 0.4, 1) both;
}
.practice-hero__crumb     { animation-delay: 0.05s; }
.practice-hero__eyebrow   { animation-delay: 0.10s; }
.practice-hero__name      { animation-delay: 0.18s; }
.practice-hero__address   { animation-delay: 0.26s; }
.practice-hero__tags      { animation-delay: 0.32s; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
