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

    :root {
      --orange: #f89e1d;
      --deep-orange: #b75c00;
      --charcoal: #2d2d2d;
      --black: #000000;
      --white: #fefefe;
      --off-white: #f7f7f7;
      --light-gray: #e9e9e9;
      --mid-gray: #707070;
      --primary: var(--charcoal);
      --accent: var(--orange);
      --accent-dark: var(--deep-orange);
      --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,0,0,.06), 0 4px 12px rgba(0,0,0,.03);
      --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
      --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
      --bg-primary: #ffffff;
      --bg-secondary: #f5f5f5;
    }

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

    /* ───── Header ───── */
    header {
      background: rgba(254, 254, 254, 0.8);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 4px 45px rgba(0, 0, 0, 0.05);
      padding: 0 40px;
      height: 80px;
      display: flex;
      align-items: center;
      flex-shrink: 0;
      z-index: 1000;
      position: relative;
    }
    .brand {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }
    .brand-logo {
      height: 53px;
      width: 53px;
    }
    .header-nav {
      display: flex;
      align-items: center;
      gap: 28px;
      margin-left: auto;
      margin-right: 60px;
    }
    .header-nav a {
      color: var(--black);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.3px;
      transition: color .2s;
      white-space: nowrap;
    }
    .header-nav a:hover { color: var(--orange); }
    .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(--charcoal);
      font-size: 17px;
      font-weight: 500;
      letter-spacing: 0.51px;
      transition: color .2s;
    }
    .header-contact:hover { color: var(--orange); }
    .header-contact svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      color: var(--deep-orange);
    }
    .header-cta {
      background: var(--charcoal);
      color: var(--white);
      border: none;
      border-radius: 50px;
      padding: 14px 24px;
      font-family: var(--font);
      font-size: 16px;
      font-weight: 500;
      letter-spacing: 0.32px;
      text-decoration: none;
      white-space: nowrap;
      transition: background .2s;
      cursor: pointer;
    }
    .header-cta:hover { background: var(--black); }
    .accent-line {
      height: 3px;
      background: linear-gradient(90deg, var(--orange), var(--deep-orange));
      flex-shrink: 0;
    }

    /* ───── 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(--deep-orange); color: var(--charcoal); }
    .mode-chip.active {
      background: var(--orange);
      border-color: var(--orange);
      color: #fff;
    }
    .mode-chip.active:hover { background: var(--deep-orange); border-color: var(--deep-orange); }
    .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(--charcoal); }
    .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(--charcoal);
      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(--orange); flex-shrink: 0; }
    .geo-btn:hover { border-color: var(--orange); background: var(--off-white); }
    .geo-btn.locating {
      color: var(--orange);
      border-color: var(--orange);
      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(--orange);
      border-color: var(--orange);
      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: 120px;
      object-fit: cover;
      display: block;
    }
    .card-body {
      padding: 14px 18px 16px;
    }
    .location-card:hover { background: var(--off-white); }
    .location-card.active {
      background: var(--off-white);
      border-color: var(--orange);
    }
    .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(--orange); 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(--charcoal); 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(--deep-orange); 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(--charcoal);
      transition: background .15s, border-color .15s, color .15s;
    }
    .card-cta:hover { border-color: var(--deep-orange); color: var(--deep-orange); }
    .card-cta.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
    .card-cta.primary:hover { background: var(--deep-orange); border-color: var(--deep-orange); }

    /* ───── 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(--orange);
      transition: fill .2s;
    }
    .custom-marker.active .pin-shape {
      fill: var(--white);
    }
    .marker-logo {
      position: absolute;
      top: 3px;
      left: 50%;
      transform: translateX(-50%);
      width: 20px;
      height: 20px;
    }
    .marker-logo path {
      fill: var(--white);
      transition: fill .2s;
    }
    .custom-marker.active .marker-logo path {
      fill: var(--orange);
    }

    /* 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,
      body.panel-open-mode .accent-line {
        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(--charcoal) 0%, #444 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(--charcoal) 0%, #444 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 {
      background-size: cover;
      background-position: center 22%;
      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(--orange); }
    .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(--orange);
      border-bottom-color: var(--orange);
    }

    /* ───── 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(--charcoal);
      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(--charcoal);
      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(--orange);
      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: 3px solid var(--orange);
      margin: 0 auto 10px;
      display: block;
      background: var(--off-white);
    }
    .provider-card-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--charcoal);
      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(--charcoal);
      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(--charcoal);
      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(--orange);
      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(--charcoal);
    }
    .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(--orange);
      color: var(--black);
    }
    .action-circle.outline {
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--text);
    }
    .action-circle.outline:hover { background: var(--off-white); }
    .action-label {
      font-size: 12px;
      color: var(--text-secondary);
      letter-spacing: .3px;
    }

    /* 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(--deep-orange);
      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(--orange);
      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; }
    .text-us-trigger:hover { background: var(--deep-orange); }

    .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(--charcoal); }
    .text-us-bar-info {
      flex: 1;
      min-width: 0;
    }
    .text-us-bar-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--charcoal);
      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(--orange);
      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(--orange);
      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(--deep-orange); }
    .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(--orange);
      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(--charcoal);
    }
    .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(--charcoal);
      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(--orange);
      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(--deep-orange); }
    .form-submit.ready {
      background: var(--orange);
      color: var(--white);
      cursor: pointer;
    }
    .form-submit.ready:hover { background: var(--deep-orange); }

    /* 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(--orange); }
    /* 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(--orange); }

    .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(--charcoal);
      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(--orange);
    }
    .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(--orange);
      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: 24px; height: 24px; color: var(--charcoal); }
    .mobile-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--white);
      box-shadow: 0 8px 24px rgba(0,0,0,.1);
      z-index: 999;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .mobile-menu.open { display: block; }
    .mobile-menu a {
      display: block;
      padding: 14px 24px;
      color: var(--black);
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      letter-spacing: 0.3px;
      transition: background .15s;
    }
    .mobile-menu a:hover { background: var(--off-white); }

    @media (max-width: 900px) {
      header { padding: 0 20px; height: 64px; }
      .brand-logo { height: 40px; width: 40px; }
      .header-nav { display: none; }
      .header-right { display: none; }
      .hamburger-btn { display: flex; }
      .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(--charcoal); }

/* 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(--orange); background: var(--off-white); }
.call-sheet-info { min-width: 0; }
.call-sheet-loc { font-weight: 600; color: var(--charcoal); }
.call-sheet-city { font-size: 12.5px; color: var(--text-secondary); }
.call-sheet-num {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--charcoal); font-weight: 600; white-space: nowrap;
  font-size: 13.5px; margin-top: 6px;
}
.call-sheet-num svg { flex-shrink: 0; }

.panel-distance { color: var(--orange); 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(--charcoal); }
