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

    :root {
      /* Athēnix tokens — values set at boot from FINDER_CONFIG.brand (app.js);
         defaults here keep the page styled if config fails to load. */
      --primary: #002b3c;        /* Athēnix navy */
      --primary-2: #0a3b4e;      /* lighter navy for gradients */
      --accent: #002b3c;         /* primary action color */
      --accent-dark: #8a5535;    /* rust — hover / "opens soon" */
      --accent-soft: #d0c0a7;    /* sand — active pin, accent line */
      --star: #8a5535;
      --black: #0b0b0b;
      --white: #ffffff;
      --off-white: #fafafa;
      --light-gray: #e6e9eb;
      --mid-gray: #575757;
      --bg: var(--off-white);
      --card: var(--white);
      --text: var(--black);
      --text-secondary: var(--mid-gray);
      --border: var(--light-gray);
      --radius: 8px;
      --shadow: 0 1px 3px rgba(0,43,60,.06), 0 4px 12px rgba(0,43,60,.04);
      --shadow-lg: 0 4px 24px rgba(0,43,60,.14);
      --font: 'proxima-nova', 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
      --bg-primary: #ffffff;
      --bg-secondary: #f4f5f6;
    }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* ───── Header — mirrors the top row of athenixbody.com's navy header:
       86px (20px padding) with wordmark, utility links and a white pill CTA.
       Measurements read from the live site 2026-10-01. ───── */
    header {
      background: var(--primary);
      color: var(--white);
      flex-shrink: 0;
      z-index: 1000;
      position: relative;
    }
    /* Same layout as the live site's 1360px container at laptop widths; the
       finder is a full-bleed app (sidebar + map), so the header is allowed to
       grow with the viewport instead of floating centered on wide monitors. */
    .hdr-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .hdr-top { padding: 20px; }
    .brand {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }
    .brand-logo {
      height: 32px; /* live site is 44px; reduced at Andrés's request */
      width: auto;
      display: block;
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 40px;
      flex-shrink: 0;
    }
    .header-contact {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--white);
      font-size: 15px;
      font-weight: 400;
      letter-spacing: 0.4px;
      white-space: nowrap;
      transition: color .2s;
    }
    .header-contact:hover { color: var(--accent-soft); }
    .header-contact svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: currentColor;
    }
    .header-cta {
      background: var(--white);
      color: var(--primary);
      border: 1px solid var(--white);
      border-radius: 50px;
      padding: 14px 30px;
      font-family: var(--font);
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 0.4px;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
      transition: background .2s, border-color .2s;
      cursor: pointer;
    }
    .header-cta:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
    /* Primary links row removed 2026-10-01 at Andrés's request; the finder
       keeps only the top row. Site sections remain in the phone menu. */

    /* ───── Search Bar ───── */
    .search-bar {
      background: var(--card);
      padding: 18px 48px;
      display: flex;
      align-items: center;
      gap: 16px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
      z-index: 900;
    }
    .mode-chips {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }
    .mode-chip {
      padding: 7px 16px;
      border-radius: 999px;
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-secondary);
      cursor: pointer;
      transition: background .15s, border-color .15s, color .15s;
      white-space: nowrap;
    }
    .mode-chip:hover { border-color: var(--accent-dark); color: var(--primary); }
    .mode-chip.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    .mode-chip.active:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
    .search-wrapper {
      position: relative;
      flex: 1;
      max-width: 440px;
    }
    .search-wrapper svg {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--mid-gray);
    }
    .search-input {
      width: 100%;
      padding: 13px 18px 13px 46px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      font-family: var(--font);
      font-size: 15px;
      letter-spacing: .3px;
      color: var(--text);
      outline: none;
      transition: border-color .2s;
      background: var(--off-white);
    }
    .search-input:focus { border-color: var(--primary); }
    .search-input::placeholder { color: #aaa; }
    .result-count {
      font-size: 14px;
      color: var(--text-secondary);
      letter-spacing: .5px;
      white-space: nowrap;
    }

    .geo-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border: 1.5px solid var(--border);
      border-radius: 50px;
      background: var(--white);
      font-family: var(--font);
      font-size: 13px;
      font-weight: 500;
      color: var(--primary);
      cursor: pointer;
      transition: border-color .2s, background .2s, color .2s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .geo-btn svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
    .geo-btn:hover { border-color: var(--accent); background: var(--off-white); }
    .geo-btn.locating {
      color: var(--accent);
      border-color: var(--accent);
      pointer-events: none;
    }
    .geo-btn.locating svg { animation: geo-spin .8s linear infinite; }
    @keyframes geo-spin { to { transform: rotate(360deg); } }
    .geo-btn.located {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--white);
    }
    .geo-btn.located svg { color: var(--white); }

    /* ───── Main Layout ───── */
    .main {
      display: flex;
      flex: 1;
      overflow: hidden;
      position: relative;
    }

    /* ───── Sidebar ───── */
    .sidebar {
      width: 400px;
      min-width: 340px;
      background: var(--card);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      z-index: 10;
    }
    .location-list {
      flex: 1;
      overflow-y: auto;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .location-list::-webkit-scrollbar { width: 5px; }
    .location-list::-webkit-scrollbar-thumb { background: var(--light-gray); border-radius: 3px; }

    .location-card {
      padding: 0;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background .15s, border-color .2s;
      border: 1.5px solid transparent;
      overflow: hidden;
      flex-shrink: 0;
    }
    .card-thumb {
      width: 100%;
      height: auto;
      aspect-ratio: 3 / 2; /* center photos are 3:2 at source; matches the surgeon cards */
      object-fit: cover;
      display: block;
    }
    /* Provider cards: portraits get a 3:2 image area (not the 3:1 location
       strip) so the whole head stays in frame. */
    [data-provider-id] .card-thumb { height: auto; aspect-ratio: 3 / 2; object-position: center top; }
    /* Placeholder portraits (Figma "Border" card, node 1:5): #b3b3b3 tile with
       the profile-light icon centered at ~2/3 of the tile width. Card keeps its
       3:2 image area. */
    .portrait-placeholder {
      display: flex; align-items: center; justify-content: center;
      background: #b3b3b3; overflow: hidden;
    }
    .portrait-placeholder.card-thumb { aspect-ratio: 3 / 2; height: auto; }
    .portrait-placeholder-icon { width: 67%; height: auto; max-height: 85%; display: block; }
    .portrait-placeholder.provider-card-img .portrait-placeholder-icon { width: 70%; }
    .portraits-placeholder .panel-hero.provider {
      height: 220px;
      background-color: #b3b3b3;
      background-image: url(assets/brand/profile-light.svg) !important;
      background-size: auto 70%;
      background-position: center;
      background-repeat: no-repeat;
    }
    .card-body {
      padding: 14px 18px 16px;
    }
    .location-card:hover { background: var(--off-white); }
    .location-card.active {
      background: var(--off-white);
      border-color: var(--accent);
    }
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 4px;
    }
    .card-name {
      font-size: 16px;
      font-weight: 500;
      color: var(--text);
    }
    .card-rating {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 6px;
    }
    .stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
    .rating-text { font-size: 13px; color: var(--text-secondary); }
    .card-address {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 6px;
      line-height: 1.4;
    }
    .card-meta {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 13px;
    }
    /* Owner note: the local-number row on location cards gets emphasis —
       it's the call-tracked dial target now, not just informational text. */
    .card-phone { padding: 6px 0 2px; }
    .card-phone .meta-item { font-weight: 600; color: var(--primary); font-size: 13.5px; }
    .meta-item {
      display: flex;
      align-items: center;
      gap: 5px;
      color: var(--text-secondary);
    }
    .meta-item svg { flex-shrink: 0; }
    .status-open { color: #059669; font-weight: 600; }
    .status-closed { color: #dc2626; font-weight: 500; }
    .status-soon { color: var(--accent-dark); font-weight: 600; }
    .card-ctas { display: flex; gap: 8px; margin-top: 12px; }
    .card-cta {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 7px 16px; border-radius: 999px;
      font-family: inherit; font-size: 12.5px; font-weight: 600;
      text-decoration: none; cursor: pointer;
      border: 1.5px solid var(--border); background: transparent; color: var(--primary);
      transition: background .15s, border-color .15s, color .15s;
    }
    .card-cta:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
    .card-cta.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
    .card-cta.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

    /* ───── Map ───── */
    .map-container {
      flex: 1;
      position: relative;
      z-index: 1; /* creates stacking context to contain Leaflet's internal z-indices (200-700) */
    }
    #map { width: 100%; height: 100%; }

    .custom-marker {
      position: relative;
      width: 31px;
      height: 39px;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
      transition: transform .2s ease;
      cursor: pointer;
    }
    .custom-marker:hover { transform: scale(1.12) translateY(-2px); }
    .custom-marker.active { transform: scale(1.25) translateY(-4px); }
    .marker-pin {
      width: 31px;
      height: 39px;
    }
    .marker-pin .pin-shape {
      fill: var(--accent);
      transition: fill .2s;
    }
    .custom-marker.active .pin-shape {
      fill: var(--accent-soft);
    }
    /* Athēnix "A" mark as a CSS mask so it recolors with the pin state */
    .marker-logo {
      position: absolute;
      top: 6px;
      left: 50%;
      transform: translateX(-50%);
      width: 18px;
      height: 18px;
      background: var(--white);
      -webkit-mask: url(assets/brand/athenix-a-mark.png) center / contain no-repeat;
      mask: url(assets/brand/athenix-a-mark.png) center / contain no-repeat;
      transition: background .2s;
    }
    .custom-marker.active .marker-logo {
      background: var(--primary);
    }
    /* Marina Plastic Surgery by Athēnix (Pasadena, Brentwood): teal pin, M mark */
    .custom-marker.brand-marina .pin-shape { fill: var(--brand-marina, #00a0b5); }
    .custom-marker.brand-marina .marker-logo {
      -webkit-mask-image: url(assets/brand/marina-m-mark.png);
      mask-image: url(assets/brand/marina-m-mark.png);
    }
    .custom-marker.brand-marina.active .pin-shape { fill: var(--accent-soft); }
    .custom-marker.brand-marina.active .marker-logo { background: var(--brand-marina, #00a0b5); }

    /* Hide default popups — we use custom panel */
    .leaflet-popup { display: none !important; }

    /* ───── Breakout Detail Panel (Google Maps style) ───── */
    .detail-panel {
      position: absolute;
      top: 12px;
      left: 412px; /* align with sidebar edge + gap */
      width: 380px;
      background: var(--card);
      box-shadow: 0 4px 24px rgba(0,0,0,.15);
      z-index: 50;
      overflow-y: auto;
      overflow-x: hidden;
      transform: translateX(-100%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: transform .3s ease, opacity .25s ease, visibility 0s .3s, height .35s ease;
      border-radius: 16px;
      border: 1px solid var(--border);
    }
    .detail-panel.open {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: transform .3s ease, opacity .25s ease, visibility 0s 0s, height .35s ease;
    }
    .detail-panel.text-us-active {
      overflow: hidden;
    }
    .detail-panel.text-us-active .panel-hero {
      transition: height .35s ease;
    }
    @media (max-width: 900px) {
      /* Hide header + search when detail panel is open on mobile */
      body.panel-open-mode .search-bar,
      body.panel-open-mode header {
        display: none !important;
      }
      /* Panel takes full viewport height when open */
      body.panel-open-mode .detail-panel.open {
        top: 0;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
      }
      body.panel-open-mode .detail-panel.open .panel-body {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
      }

      /* ── Mobile Text Us: NO overlay — hide panel content, show form inline ── */
      .detail-panel.text-us-active {
        overflow-y: auto !important; /* scrollable, not hidden */
      }
      .detail-panel.text-us-active .panel-hero { display: none !important; }
      .detail-panel.text-us-active .panel-body { display: none !important; }
      .detail-panel.text-us-active .text-us-overlay {
        /* Not an overlay at all on mobile — just regular flow content */
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: visible !important;
        border-radius: 0;
        box-shadow: none;
        top: auto; bottom: auto; left: auto; right: auto;
        height: auto;
      }
      /* Show the mobile hero + info */
      .detail-panel.text-us-active .text-us-overlay-hero {
        display: block;
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
        background-size: cover;
        background-position: center;
        position: relative;
        flex-shrink: 0;
      }
      .detail-panel.text-us-active .text-us-overlay-hero .panel-back {
        position: absolute;
        top: 12px;
        left: 12px;
      }
      .detail-panel.text-us-active .text-us-overlay-info {
        display: block;
        padding: 20px 24px 16px;
        flex-shrink: 0;
      }
      .text-us-overlay-name { font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
      .text-us-overlay-meta { font-size: 14px; color: var(--text-secondary); margin-bottom: 2px; }
      .text-us-overlay-cat { font-size: 14px; color: var(--text-secondary); margin-bottom: 0; }
      /* Hide desktop back button in bar on mobile (hero has its own) */
      .detail-panel.text-us-active .text-us-bar .text-us-back { display: none; }
      /* Form and footer flow naturally — no flex tricks */
      .detail-panel.text-us-active .text-us-form-area {
        flex: none !important;
        overflow-y: visible !important;
      }
      .detail-panel.text-us-active .text-us-footer {
        border-top: none;
        padding: 8px 24px 32px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        flex-shrink: 0;
      }
    }

    /* ── Text-Us Overlay hero/info: hidden on desktop ── */
    .text-us-overlay-hero { display: none; }
    .text-us-overlay-info { display: none; }

    .detail-panel::-webkit-scrollbar { width: 5px; }
    .detail-panel::-webkit-scrollbar-thumb { background: var(--light-gray); border-radius: 3px; }

    /* Panel hero */
    .panel-hero {
      width: 100%;
      height: 220px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
      background-size: cover;
      background-position: center;
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      overflow: hidden;
      border-radius: 16px 16px 0 0;
    }
    /* Provider panel hero: the generated 16:9 studio headshots cover-fit,
       anchored near the top so the subject's head keeps its headroom. */
    .panel-hero.provider {
      height: 300px; /* taller than the 220px center hero so portraits are not cropped at chin or crown */
      background-color: var(--primary);
      background-size: cover;
      background-position: center top;
      background-color: var(--bg-secondary, #f7f7f7);
    }
    .panel-hero-icon {
      width: 80px; height: 80px;
      background: rgba(255,255,255,.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .panel-hero-icon svg { color: var(--accent); }
    .panel-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px; height: 36px;
      background: rgba(0,0,0,.5);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .2s;
      backdrop-filter: blur(4px);
    }
    .panel-close:hover { background: rgba(0,0,0,.7); }
    .panel-back {
      position: absolute;
      top: 12px;
      left: 12px;
      width: 36px; height: 36px;
      background: rgba(0,0,0,.5);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 18px;
      display: none;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      transition: background .2s;
      backdrop-filter: blur(4px);
    }
    .panel-back:hover { background: rgba(0,0,0,.7); }

    @media (max-width: 768px) {
      .panel-back { display: flex; }
      .panel-close { display: none; }
    }

    /* Panel body */
    .panel-body {
      padding: 24px;
    }
    .panel-name {
      font-size: 22px;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 8px;
      line-height: 1.3;
    }
    .panel-name-cred {
      font-size: 17px;
      font-weight: 500;
      color: var(--text-secondary);
    }
    .panel-rating {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
    }
    .panel-rating .stars { font-size: 15px; }
    .panel-rating .rating-num { font-size: 15px; font-weight: 600; color: var(--text); }
    .panel-rating .rating-count { font-size: 14px; color: var(--text-secondary); }
    .panel-category {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }

    /* Tabs */
    .panel-tabs {
      display: flex;
      border-bottom: 2px solid var(--border);
      margin-bottom: 20px;
    }
    .panel-tab {
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -2px;
      transition: all .2s;
      letter-spacing: .3px;
    }
    .panel-tab:hover { color: var(--text); }
    .panel-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* ───── Tab Content Sections ───── */
    .tab-content { display: none; }
    .tab-content.active { display: block; }


    /* About tab */
    .about-overview {
      padding: 4px 0 20px;
    }
    .about-overview p {
      font-size: 14px;
      line-height: 1.65;
      color: var(--primary);
      margin: 0;
    }

    /* Provider carousel */
    .provider-carousel {
      margin: 0 -24px;
      padding: 20px 24px;
      border-top: 1px solid var(--border);
    }
    .provider-carousel-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      letter-spacing: 0.2px;
      margin-bottom: 14px;
      padding: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .provider-carousel-title svg {
      width: 18px;
      height: 18px;
      color: var(--accent);
      flex-shrink: 0;
    }
    .provider-scroll {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .provider-scroll::-webkit-scrollbar { display: none; }
    .provider-card {
      flex: 1 1 0;
      min-width: 0;
      max-width: calc(50% - 4px);
      text-align: center;
      scroll-snap-align: start;
    }
    .provider-card-img {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 22%;
      object-fit: cover;
      object-position: top center;
      border: none;
      box-shadow: 0 1px 3px rgba(0,43,60,.10), 0 6px 16px rgba(0,43,60,.08);
      margin: 0 auto 10px;
      display: block;
      background: var(--off-white);
    }
    .provider-card-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      line-height: 1.3;
    }
    .provider-card-cred {
      font-size: 11.5px;
      color: var(--text-secondary);
      margin-top: 2px;
    }
    .reviews-empty {
      text-align: center;
      padding: 32px 0;
      color: var(--text-secondary);
      font-size: 14px;
    }
    .reviews-empty svg {
      display: block;
      margin: 0 auto 12px;
      opacity: .4;
    }


    .resource-accordion {
      margin: 0 -24px;
      border-top: 1px solid var(--border);
    }
    .resource-accordion-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 24px;
      cursor: pointer;
      user-select: none;
      transition: background .15s;
    }
    .resource-accordion-header:hover { background: var(--off-white); }
    .resource-accordion-header h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--primary);
      margin: 0;
    }
    .resource-accordion-toggle {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform .3s ease;
    }
    .resource-accordion.collapsed .resource-accordion-toggle {
      transform: rotate(-90deg);
    }
    .resource-accordion-body {
      max-height: 500px;
      overflow: hidden;
      opacity: 1;
      transition: max-height .35s ease, opacity .25s ease;
    }
    .resource-accordion.collapsed .resource-accordion-body {
      max-height: 0;
      opacity: 0;
    }
    .resource-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 24px;
      text-decoration: none;
      color: var(--primary);
      transition: background .15s;
      border-top: 1px solid var(--border);
    }
    .resource-item:hover { background: var(--off-white); }
    .resource-card-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--off-white);
      display: grid;
      place-items: center;
      color: var(--accent);
      flex-shrink: 0;
    }
    .resource-card-icon svg {
      width: 18px;
      height: 18px;
    }
    .resource-card-label {
      font-size: 13px;
      font-weight: 600;
      line-height: 1.35;
      color: var(--primary);
    }
    .resource-item-arrow {
      margin-left: auto;
      color: var(--mid-gray);
      flex-shrink: 0;
    }

    /* Action buttons */
    .panel-actions {
      display: flex;
      justify-content: space-between;
      margin-bottom: 24px;
      padding: 0 4px;
    }
    .panel-action {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      text-decoration: none;
      color: var(--text);
      transition: opacity .2s;
    }
    .panel-action:hover { opacity: .7; }
    .action-circle {
      width: 44px; height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .2s;
    }
    .action-circle.primary {
      background: var(--accent);
      color: var(--white);
    }
    .action-circle.outline {
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text);
    }
    .action-circle.outline:hover { background: var(--off-white); }
    .action-circle .action-img { width: 20px; height: 20px; display: block; }
    .action-label {
      font-size: 12px;
      color: var(--text-secondary);
      letter-spacing: .3px;
    }

    /* ───── Request a Consultation row (replaces the inline form) ───── */
    .consult-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 -24px;
      padding: 18px 24px;
      border-bottom: 1px solid var(--border);
      color: var(--primary);
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      transition: background .15s;
    }
    .consult-row:hover { background: var(--off-white); }
    .consult-row svg { color: var(--text-secondary); flex-shrink: 0; }

    /* ───── Request a Consultation card (alternative, C.consultStyle = "card") ───── */
    .consult-card {
      background: var(--primary);
      color: var(--white);
      border-radius: 12px;
      padding: 20px 20px 18px;
      margin: 4px 0 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .consult-eyebrow {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--accent-soft);
    }
    .consult-body {
      font-size: 14px;
      line-height: 1.5;
      color: rgba(255,255,255,.88);
      margin: 0;
    }
    .consult-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
    .consult-chip {
      font-family: var(--font);
      font-size: 12px;
      font-weight: 500;
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.35);
      background: transparent;
      color: var(--white);
      cursor: pointer;
      transition: background .15s, border-color .15s, color .15s;
    }
    .consult-chip:hover { border-color: var(--accent-soft); }
    .consult-chip.active { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--primary); }
    .consult-cta {
      display: block;
      text-align: center;
      background: var(--white);
      color: var(--primary);
      border-radius: 999px;
      padding: 12px 20px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      margin-top: 4px;
      transition: background .2s;
    }
    .consult-cta:hover { background: var(--accent-soft); }
    .consult-phone {
      font-size: 12.5px;
      color: var(--accent-soft);
      text-decoration: none;
      text-align: center;
    }
    .consult-phone:hover { text-decoration: underline; }

    /* Detail rows */
    .panel-details {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .detail-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
      text-decoration: none;
      color: var(--text);
      transition: background .1s;
      margin: 0 -24px;
      padding-left: 24px;
      padding-right: 24px;
    }
    .detail-row:last-child { border-bottom: none; }
    .detail-row:hover { background: var(--off-white); }
    .detail-row svg {
      flex-shrink: 0;
      margin-top: 1px;
      color: var(--text-secondary);
    }
    .detail-row .detail-content {
      flex: 1;
    }
    .detail-row .detail-primary {
      font-size: 14px;
      color: var(--text);
      line-height: 1.4;
    }
    .detail-row .detail-secondary {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 2px;
    }
    .detail-row .detail-link {
      color: var(--accent-dark);
      font-weight: 500;
    }
    .detail-row .hours-status {
      font-weight: 500;
    }
    .hours-closed { color: #dc2626; }
    .hours-open { color: #059669; }
    .hours-toggle {
      color: var(--text-secondary);
      cursor: pointer;
    }
    .hours-toggle svg {
      display: inline;
      vertical-align: middle;
      margin-left: 4px;
    }
    .hours-expand {
      margin-top: 8px;
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.8;
      display: none;
    }
    .hours-expand.show { display: block; }

    /* Text Us button + focused overlay */
    .text-us-trigger {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 14px 24px;
      background: var(--accent);
      color: var(--white);
      border: none;
      border-radius: var(--radius);
      font-family: var(--font);
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: background .2s;
      margin-top: 20px;
    }
    .text-us-trigger svg { width: 20px; height: 20px; flex-shrink: 0; }
    a.schedule-trigger { text-decoration: none; margin-top: 8px; }
    .text-us-trigger:hover { background: var(--accent-dark); }

    .text-us-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      top: var(--text-us-top, 320px); /* set dynamically via JS */
      background: var(--white);
      z-index: 60;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -4px 20px rgba(0,0,0,.08);
      transform: translateY(100%);
      opacity: 0;
      visibility: hidden;
      transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility 0s .35s;
    }
    .text-us-overlay.open {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility 0s 0s;
    }
    .text-us-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 18px 20px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .text-us-back {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: none;
      cursor: pointer;
      border-radius: 50%;
      transition: background .15s;
    }
    .text-us-back:hover { background: var(--off-white); }
    .text-us-back svg { width: 20px; height: 20px; color: var(--primary); }
    .text-us-bar-info {
      flex: 1;
      min-width: 0;
    }
    .text-us-bar-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--primary);
      line-height: 1.2;
    }
    .text-us-bar-sub {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 2px;
    }
    .text-us-bar-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .text-us-bar-icon svg { width: 20px; height: 20px; color: var(--white); }
    .text-us-form-area {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }
    .text-us-intro {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 24px;
    }
    .text-us-footer {
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    /* Team-review batch item 8: always clickable — validation runs on
       submit/click instead of silently gating via the .ready class (kept,
       harmlessly, for the floating-label cosmetic tracking above). */
    .text-us-send {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 14px 24px;
      background: var(--accent);
      color: var(--white);
      border: none;
      border-radius: var(--radius);
      font-family: var(--font);
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.3px;
      cursor: pointer;
      transition: background .2s, opacity .2s;
      opacity: 1;
      pointer-events: auto;
    }
    .text-us-send.ready { opacity: 1; pointer-events: auto; }
    .text-us-send.ready:hover { background: var(--accent-dark); }
    .text-us-send svg { width: 18px; height: 18px; }

    /* ── Team-review batch item 1: thank-you states ── */
    .form-thanks {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 32px 16px;
      gap: 8px;
    }
    .form-thanks-icon {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }
    .form-thanks-title {
      font-size: 17px;
      font-weight: 600;
      color: var(--primary);
    }
    .form-thanks-msg {
      font-size: 13.5px;
      color: var(--text-secondary);
    }

    /* ───── Contact Form ───── */
    .panel-form {
      padding: 0;
      margin: 0 -24px;
      border-bottom: 1px solid var(--border);
    }
    .form-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 24px;
      cursor: pointer;
      user-select: none;
      transition: background .15s;
    }
    .form-header:hover { background: var(--off-white); }
    .form-header h3 {
      font-size: 15px;
      font-weight: 600;
      color: var(--primary);
      margin: 0;
    }
    .form-toggle {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform .3s ease;
    }
    .panel-form.collapsed .form-toggle {
      transform: rotate(-90deg);
    }
    .form-body {
      padding: 0 24px 20px;
      max-height: 600px;
      overflow: hidden;
      opacity: 1;
      transition: max-height .35s ease, opacity .25s ease, padding .3s ease;
    }
    .panel-form.collapsed .form-body {
      max-height: 0;
      opacity: 0;
      padding-top: 0;
      padding-bottom: 0;
    }
    /* Team-review batch item 8: the submit button is always clickable now —
       validation runs on submit/click instead of silently gating via the
       .ready class (kept, harmlessly, for the floating-label cosmetic
       tracking in initFormValidation). */
    .form-submit {
      width: 100%;
      padding: 12px;
      background: var(--accent);
      color: var(--white);
      border: none;
      border-radius: 8px;
      font-family: var(--font);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: background .3s, color .3s;
    }
    .form-submit:hover { background: var(--accent-dark); }
    .form-submit.ready {
      background: var(--accent);
      color: var(--white);
      cursor: pointer;
    }
    .form-submit.ready:hover { background: var(--accent-dark); }

    /* Form Fields (shared by consult form + text-us) */
    .form-row {
      display: flex;
      gap: 10px;
      margin-bottom: 12px;
    }
    .form-row.full { display: block; margin-bottom: 12px; }

    /* Floating label wrapper */
    .form-field {
      flex: 1;
      min-width: 0;
      position: relative;
    }
    .form-field label {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 13px;
      font-weight: 400;
      color: #b0b0b0;
      pointer-events: none;
      transition: all .2s ease;
      background: transparent;
      padding: 0 2px;
      z-index: 1;
    }
    .form-field.textarea-field label {
      top: 14px;
      transform: none;
    }
    /* Date inputs always show browser chrome — keep label permanently floated */
    .form-field.date-field label {
      top: -2px;
      transform: none;
      font-size: 10px;
      font-weight: 500;
      color: var(--mid-gray);
      background: var(--white);
      letter-spacing: 0.3px;
    }
    .form-field.date-field.active label { color: var(--accent); }
    /* Float up on focus or when filled */
    .form-field.active label,
    .form-field.filled label {
      top: -2px;
      transform: none;
      font-size: 10px;
      font-weight: 500;
      color: var(--mid-gray);
      background: var(--white);
      letter-spacing: 0.3px;
    }
    .form-field.active label { color: var(--accent); }

    .form-field input,
    .form-field select,
    .form-field textarea {
      width: 100%;
      padding: 12px 12px 8px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-family: var(--font);
      font-size: 13px;
      color: var(--primary);
      background: var(--white);
      transition: border-color .2s;
      box-sizing: border-box;
      outline: none;
    }
    .form-field input:focus,
    .form-field select:focus,
    .form-field textarea:focus {
      border-color: var(--accent);
    }
    .form-field select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 32px;
    }
    /* Team-review batch item 5: single-office selects (Text Us #tu_loc) are
       disabled rather than swapped for a locked display — no native chevron
       since there's nothing to choose. */
    .form-field select:disabled {
      appearance: none;
      -webkit-appearance: none;
      background: var(--bg-secondary);
      background-image: none;
    }
    /* Team-review batch item 5: locked single-location display (consult
       form's #cf_loc when the context is unambiguous) — a readonly text
       input, so no chevron applies here at all. */
    .form-field.locked input[readonly] {
      background: var(--bg-secondary);
      cursor: default;
    }
    .form-field textarea {
      resize: vertical;
      min-height: 70px;
    }

    /* Team-review batch item 8: inline validator first pass */
    .form-field.invalid input,
    .form-field.invalid select,
    .form-field.invalid textarea {
      border-color: #d33 !important;
    }
    .field-error {
      font-size: 11px;
      color: #d33;
      margin-top: 3px;
    }

    .form-consent {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 8px;
      margin: 4px 0 14px;
    }
    .form-consent input[type="checkbox"] {
      margin-top: 2px;
      accent-color: var(--accent);
      flex-shrink: 0;
    }
    .form-consent span {
      font-size: 11px;
      line-height: 1.5;
      color: var(--text-secondary);
    }
    .form-consent.invalid input[type="checkbox"] { outline: 1.5px solid #d33; outline-offset: 1px; }
    .form-consent .field-error { flex-basis: 100%; margin-left: 26px; margin-top: 0; }
    /* ───── Responsive ───── */
    /* Hamburger menu */
    .hamburger-btn {
      display: none;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border: none;
      background: none;
      cursor: pointer;
      padding: 0;
      margin-left: auto;
    }
    .hamburger-btn svg { width: 26px; height: 26px; color: var(--white); }
    .mobile-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--primary);
      box-shadow: 0 12px 24px rgba(0,43,60,.25);
      z-index: 999;
      padding: 8px 0 16px;
      border-top: 1px solid rgba(255,255,255,.12);
    }
    .mobile-menu.open { display: block; }
    .mobile-menu a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 20px;
      color: var(--white);
      text-decoration: none;
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 0.4px;
      transition: background .15s;
    }
    .mobile-menu a svg { width: 16px; height: 16px; }
    .mobile-menu a:hover { background: rgba(255,255,255,.08); }
    .mobile-menu .mobile-menu-divider { height: 1px; background: rgba(255,255,255,.12); margin: 8px 20px; }
    .mobile-menu a.header-cta { /* beats .mobile-menu a so the pill keeps navy text */
      display: inline-flex;
      justify-content: center;
      color: var(--primary);
      background: var(--white);
      margin: 10px 20px 0;
      padding: 14px 30px;
    }
    .mobile-menu a.header-cta:hover { background: var(--accent-soft); }

    @media (max-width: 900px) {
      .hdr-top { padding: 14px 16px; }
      .brand-logo { height: 21px; width: auto; }
      .header-right { gap: 18px; margin-left: auto; margin-right: 6px; }
      .header-right .header-contact span { display: none; } /* icon-only, like the live site */
      .header-right .header-contact svg { width: 20px; height: 20px; }
      .header-right .header-cta { display: none; } /* lives in the menu on phones */
      .hamburger-btn { display: flex; margin-left: 0; }
      .search-bar { padding: 14px 16px; gap: 10px; }
      .search-input { font-size: 14px; padding: 12px 16px 12px 42px; }
      .geo-btn { padding: 8px; border-radius: 50%; }
      .geo-btn span { display: none; }
      .geo-btn svg { width: 18px; height: 18px; }
      .result-count { display: none; }
      .sidebar { width: 100%; min-width: unset; }
      .detail-panel {
        left: 0;
        width: 100%;
        box-shadow: 0 -4px 24px rgba(0,0,0,.15);
      }
    }

/* ───── Provider list (Phase 2) ───── */
/* dense variant, unused — for large rosters */
.provider-list-card { display:flex; gap:12px; align-items:center; }
.provider-list-img { width:64px; height:64px; border-radius:50%; object-fit:cover; flex:none; }
.provider-loc-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.provider-loc-tag { font-size:11px; padding:2px 8px; border-radius:10px;
  background:var(--bg-secondary); color:var(--text-secondary); }

/* In-context panel back chip (replaces the old quick-view slide-over) —
   shown at the top of panelBody when navigating from one panel to another
   via openPanelFrom(); returns via goBackPanel(). */
.panel-back-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}
.panel-back-chip:hover { color: var(--primary); }

/* Provider call sheet (phone model reversal, 2026-08-24 later amendment) —
   slides over the panel when a provider's Call action is tapped, same
   position/animation pattern as the old quick-view slide-over it replaces. */
.call-sheet {
  position: absolute; inset: 0; background: var(--bg-primary); z-index: 5;
  overflow-y: auto; padding: 20px; animation: callSheetIn .18s ease;
}
@keyframes callSheetIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.call-sheet-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.call-sheet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.call-sheet-call { flex-shrink: 0; }
.call-sheet-row:hover { border-color: var(--accent); background: var(--off-white); }
.call-sheet-info { min-width: 0; }
.call-sheet-loc { font-weight: 600; color: var(--primary); }
.call-sheet-city { font-size: 12.5px; color: var(--text-secondary); }
.call-sheet-num {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; white-space: nowrap;
  font-size: 13.5px; margin-top: 6px;
}
.call-sheet-num svg { flex-shrink: 0; }

.panel-distance { color: var(--accent); font-weight: 600; }

.recaptcha-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}
.recaptcha-note a { color: var(--text-secondary); text-decoration: underline; }
.recaptcha-note a:hover { color: var(--primary); }
