/* Home browse — compact filters + modals (loads after site-v2.css) */

.hf-browse-toolbar {
  margin-bottom: 1rem;
}

.hf-browse-filter-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.hf-svc-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.9rem;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hf-svc-search:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.hf-svc-search .hf-mi {
  color: #94a3b8;
  font-size: 1.15rem !important;
}

.hf-svc-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.hf-svc-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.hf-svc-search-clear {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.hf-svc-search-clear.hidden {
  display: none;
}

.hf-area-chip-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 11rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1.5px solid rgba(234, 88, 12, 0.22);
  border-radius: 0.9rem;
  background: #fff7ed;
  color: #c2410c;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hf-area-chip-btn:hover {
  background: #ffedd5;
  border-color: rgba(234, 88, 12, 0.35);
}

.hf-area-chip-btn .hf-mi:first-child {
  font-size: 1.1rem !important;
  color: #ea580c;
}

.hf-area-chip-btn__copy {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
  text-align: left;
}

.hf-area-chip-btn__copy strong {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-area-chip-btn__copy small {
  font-size: 0.625rem;
  font-weight: 600;
  color: #ea580c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-area-chip-btn__chev {
  font-size: 1.1rem !important;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.hf-area-chip-btn[aria-expanded="true"] .hf-area-chip-btn__chev {
  transform: rotate(180deg);
}

.hf-cat-card.hidden {
  display: none;
}

/* Service card — area-filtered provider count badge */
.hf-cat-thumb {
  position: relative;
}

.hf-cat-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: help;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.hf-cat-badge__num {
  display: block;
  font-variant-numeric: tabular-nums;
}

.hf-cat-badge.is-zero {
  background: linear-gradient(145deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.28);
}

.hf-cat-badge.is-low:not(.is-zero) {
  background: linear-gradient(145deg, #fdba74 0%, #f97316 100%);
}

.hf-cat-badge.is-pulse {
  animation: hf-cat-badge-pulse 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hf-cat-badge-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 639px) {
  .hf-cat-badge {
    top: 0.35rem;
    right: 0.35rem;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    font-size: 0.6875rem;
    border-width: 1.5px;
  }
}

.hf-cat-badge__tip {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hf-cat-badge,
  .hf-cat-badge__tip,
  .hf-cat-badge.is-pulse {
    animation: none;
    transition: none;
  }
}

.hf-cat-empty {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px dashed #cbd5e1;
  background: #fff;
}

.hf-cat-empty.hidden {
  display: none;
}

.hf-cat-empty .hf-mi {
  font-size: 2rem !important;
  color: #94a3b8;
}

.hf-cat-empty strong {
  font-size: 0.9375rem;
  color: #0f172a;
}

.hf-cat-empty p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Area filter modal */
.hf-loc-filter--modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear 0.3s, opacity 0.25s ease;
}

.hf-loc-filter--modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: visibility 0s linear 0s, opacity 0.25s ease;
}

.hf-loc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hf-loc-filter--modal.is-open .hf-loc-backdrop {
  opacity: 1;
}

.hf-loc-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  height: min(82dvh, 580px);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem 1.25rem 1rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.hf-loc-filter--modal.is-open .hf-loc-sheet {
  transform: translateY(0);
}

.hf-loc-sheet-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.hf-loc-sheet-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #fb923c, #ea580c);
  color: #fff;
  font-size: 1.35rem !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.hf-loc-sheet-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hf-loc-sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hf-loc-sheet-sub {
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.hf-loc-sheet-close {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hf-loc-sheet-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hf-loc-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.hf-loc-search-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.hf-loc-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0 0.75rem;
  border-radius: 0.85rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.hf-loc-search:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  background: #fff;
}

.hf-loc-search .hf-mi {
  color: #94a3b8;
  font-size: 1.1rem !important;
}

.hf-loc-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.hf-loc-search-clear {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
}

.hf-loc-search-clear.hidden {
  display: none;
}

.hf-loc-search-count {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hf-loc-quick-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.hf-loc-quick-head {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.28rem 0.65rem 0.28rem 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 237, 213, 0.85) 100%);
  border: 1px solid rgba(234, 88, 12, 0.14);
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.08);
}

.hf-loc-quick-head-icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-size: 1rem !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

.hf-loc-quick-head-text {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #9a3412;
}

.hf-loc-quick-scroll {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.hf-loc-quick-scroll::before,
.hf-loc-quick-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.35rem;
  z-index: 2;
  pointer-events: none;
}

.hf-loc-quick-scroll::before {
  left: 0;
  background: linear-gradient(to right, #fff 15%, rgba(255, 255, 255, 0));
}

.hf-loc-quick-scroll::after {
  right: 0;
  background: linear-gradient(to left, #fff 15%, rgba(255, 255, 255, 0));
}

.hf-loc-quick {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex-shrink: 0;
  padding: 0.15rem 0.15rem 0.4rem;
}

.hf-loc-quick::-webkit-scrollbar {
  display: none;
}

.hf-loc-quick-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 88, 12, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  color: #334155;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.hf-loc-quick-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  font-size: 1.05rem !important;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.1);
}

.hf-loc-quick-label {
  line-height: 1.1;
}

.hf-loc-quick-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(234, 88, 12, 0.28);
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  color: #c2410c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.12);
}

.hf-loc-quick-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 52%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.32);
}

.hf-loc-quick-btn.is-active .hf-loc-quick-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hf-loc-quick-btn.hidden {
  display: none;
}

.hf-loc-grid {
  flex: 1 1 auto;
  min-height: 12rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  gap: 0.65rem;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-right: 0.15rem;
  padding-bottom: 0.25rem;
}

.hf-loc-city-card.is-scroll-focus {
  animation: hf-loc-card-focus 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hf-loc-card-focus {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.28);
    transform: translateY(4px);
  }
  45% {
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16);
    transform: translateY(0);
  }
  100% {
    box-shadow: none;
    transform: none;
  }
}

.hf-loc-city-card {
  border-radius: 0.85rem;
  border: 1px solid #e8eef4;
  background: #fff;
  overflow: visible;
  min-height: 0;
}

.hf-loc-city-card.is-highlight {
  border-color: rgba(234, 88, 12, 0.35);
}

.hf-loc-city-card.hidden {
  display: none;
}

.hf-loc-city-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}

.hf-loc-city-main.hidden {
  display: none;
}

.hf-loc-city-badge {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #64748b;
}

.hf-loc-city-badge .hf-mi {
  font-size: 1.125rem !important;
  line-height: 1;
}

.hf-loc-city-main.is-active {
  background: #fff7ed;
}

.hf-loc-city-main.is-active .hf-loc-city-badge {
  background: #ffedd5;
  color: #ea580c;
}

.hf-loc-city-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

.hf-loc-city-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-loc-city-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.hf-loc-check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem !important;
  color: #ea580c;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hf-loc-city-main.is-active .hf-loc-check,
.hf-loc-sub-btn.is-active .hf-loc-check {
  opacity: 1;
}

.hf-loc-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.85rem 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.hf-loc-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.hf-loc-sub-btn > .hf-mi:first-of-type {
  font-size: 0.95rem !important;
  color: #94a3b8;
  flex-shrink: 0;
}

.hf-loc-sub-btn.is-active > .hf-mi:first-of-type {
  color: #ea580c;
}

.hf-loc-sub-btn .hf-loc-check {
  width: auto;
  height: auto;
  font-size: 0.95rem !important;
  margin-left: 0.1rem;
}

.hf-loc-sub-btn.is-active {
  border-color: rgba(234, 88, 12, 0.4);
  background: #fff7ed;
  color: #c2410c;
}

.hf-loc-sub-btn.hidden {
  display: none;
}

.hf-loc-sub-btn.hidden,
.hf-loc-city-main.hidden {
  display: none !important;
}

.hf-loc-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 0.85rem;
  border: 1px dashed #cbd5e1;
}

.hf-loc-empty.hidden {
  display: none;
}

html {
  scrollbar-gutter: stable;
}

html.hf-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.hf-scroll-locked {
  position: fixed;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.hf-scroll-locked .hf-main,
html.hf-scroll-locked .hf-nav,
html.hf-scroll-locked .hf-footer {
  pointer-events: none;
}

.hf-loc-filter--modal.is-open {
  overscroll-behavior: contain;
  touch-action: none;
}

.hf-loc-filter--modal.is-open .hf-loc-sheet,
.hf-loc-filter--modal.is-open .hf-loc-panel,
.hf-loc-filter--modal.is-open .hf-loc-grid {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.hf-loc-filter--modal.is-open .hf-loc-quick-scroll,
.hf-loc-filter--modal.is-open .hf-loc-quick {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

html.hf-scroll-locked .hf-browse-modal__body,
html.hf-scroll-locked .hf-loc-grid {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

html.hf-scroll-locked .hf-loc-quick {
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

/* Provider modal */
.hf-browse-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.3s;
}

.hf-browse-modal:not(.hidden) {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.hf-browse-modal.hidden {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.hf-browse-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: none;
}

.hf-browse-modal:not(.hidden) .hf-browse-modal__backdrop {
  opacity: 1;
}

.hf-browse-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  height: min(88dvh, 680px);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem 1.25rem 1rem 1rem;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.hf-browse-modal.is-visible .hf-browse-modal__sheet {
  transform: translateY(0);
}

.hf-browse-modal__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.hf-browse-modal__back,
.hf-browse-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.hf-browse-modal__back .hf-mi,
.hf-browse-modal__close .hf-mi {
  display: block;
  line-height: 1;
}

.hf-browse-modal__back.hidden {
  display: none;
}

.hf-browse-modal__title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hf-browse-modal__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: #fff7ed;
  color: #ea580c;
  font-size: 1.35rem !important;
  line-height: 1;
}

.hf-browse-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hf-browse-modal__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.hf-browse-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.hf-browse-modal__view.hidden {
  display: none;
}

.hf-browse-modal .hf-provider-list {
  display: grid;
  gap: 0.65rem;
}

.hf-provider-detail--modal {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hf-provider-modal-hero {
  position: relative;
  margin: -0.85rem -1rem 0;
  overflow: hidden;
  border-radius: 0 0 1.15rem 1.15rem;
  isolation: isolate;
}

.hf-provider-modal-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #fff7ed 0%, #ffedd5 32%, #fdba74 68%, #fb923c 100%);
  background-size: 220% 220%;
  animation: hf-modal-hero-gradient 10s ease infinite;
}

.hf-provider-modal-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.65) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 12%, rgba(255, 237, 213, 0.8) 0, rgba(255, 237, 213, 0) 38%);
  pointer-events: none;
}

.hf-provider-modal-hero__glow {
  position: absolute;
  top: -40%;
  right: -12%;
  width: 78%;
  height: 140%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.5) 0%, rgba(251, 146, 60, 0) 70%);
  animation: hf-modal-hero-glow 6s ease-in-out infinite;
  pointer-events: none;
}

.hf-provider-modal-hero__icon {
  position: absolute;
  right: 0.35rem;
  bottom: -0.75rem;
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 20vw, 6.25rem);
  height: clamp(4.5rem, 20vw, 6.25rem);
  font-size: clamp(4rem, 17vw, 5.5rem) !important;
  line-height: 1;
  color: rgba(234, 88, 12, 0.16);
  transform: rotate(-12deg);
  animation: hf-modal-hero-icon-float 5.5s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.hf-provider-modal-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem 1.05rem;
}

.hf-provider-modal-hero.is-entering .hf-provider-modal-hero__content {
  animation: hf-modal-hero-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hf-provider-modal-hero__photo-wrap {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  box-shadow:
    0 12px 30px rgba(234, 88, 12, 0.32),
    0 0 0 4px rgba(255, 255, 255, 0.65);
}

.hf-provider-modal-hero__photo {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
}

.hf-provider-modal-hero__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.hf-provider-modal-hero__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.hf-provider-modal-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9a3412;
  line-height: 1.35;
}

.hf-provider-modal-hero__cat-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.78);
  color: #ea580c;
  font-size: 0.95rem !important;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.12);
}

.hf-provider-modal-hero__stars {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  width: fit-content;
  margin-top: 0.05rem;
  line-height: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.1);
}

.hf-provider-modal-hero__stars .hf-starval {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
}

@keyframes hf-modal-hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes hf-modal-hero-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes hf-modal-hero-icon-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-5px); }
}

@keyframes hf-modal-hero-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-provider-modal-hero__bg,
  .hf-provider-modal-hero__glow,
  .hf-provider-modal-hero__icon,
  .hf-provider-modal-hero.is-entering .hf-provider-modal-hero__content {
    animation: none;
  }
}

.hf-provider-detail--modal .hf-provider-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.9rem 1rem 1rem;
}

.hf-provider-detail--modal .hf-provider-detail-bio {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

.hf-provider-detail--modal .hf-detail-grid {
  gap: 0.65rem;
  margin-bottom: 0;
}

.hf-provider-detail--modal .hf-detail-grid--phone {
  grid-template-columns: 1fr;
}

.hf-provider-detail--modal .hf-detail-areas {
  margin-bottom: 0;
}

.hf-provider-detail--modal .hf-detail-areas .hf-detail-label {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
}

.hf-detail-call-wrap {
  margin-top: 0.1rem;
}

.hf-detail-call-wrap .hf-detail-call-btn,
.hf-detail-call-wrap .hf-detail-phone-reveal {
  min-height: 2.75rem;
  width: 100%;
}

.hf-detail-phone-reveal {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.hf-detail-phone-reveal__number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hf-detail-phone-reveal.is-revealed .hf-detail-phone-reveal__prompt {
  display: none;
}

.hf-detail-phone-reveal.is-revealed .hf-detail-phone-reveal__number {
  display: inline !important;
}

.hf-detail-phone-reveal.is-copied .hf-detail-phone-reveal__number::after {
  content: ' · Copied';
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .hf-detail-phone-reveal {
    display: none !important;
  }

  .hf-detail-call-btn {
    display: flex;
  }
}

@media (min-width: 768px) {
  .hf-detail-call-btn {
    display: none !important;
  }

  .hf-detail-phone-reveal {
    display: flex;
  }
}

.hf-browse-modal.is-detail-view .hf-browse-modal__sheet {
  height: auto;
  max-height: min(82dvh, 540px);
}

.hf-browse-modal.is-detail-view .hf-browse-modal__body {
  overflow-y: auto;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero {
  margin-bottom: 0;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__bg {
  min-height: 5.75rem;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__content {
  padding: 0.9rem 1rem 1rem;
  gap: 0.75rem;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__photo-wrap {
  width: 3.75rem;
  height: 3.75rem;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__photo {
  width: 3.75rem;
  height: 3.75rem;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__copy {
  gap: 0.35rem;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__name {
  font-size: 1rem;
  line-height: 1.28;
}

.hf-browse-modal.is-detail-view .hf-provider-modal-hero__cat {
  font-size: 0.75rem;
}

.hf-browse-modal.is-detail-view .hf-provider-detail-body {
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.hf-provider-modal-hero__photo--gender {
  object-fit: contain;
  padding: 0.35rem;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.hf-provider-detail--modal .hf-detail-item {
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 0.85rem;
}

.hf-provider-detail--modal .hf-detail-item > .hf-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  background: #fff7ed;
  color: #ea580c;
  font-size: 1.15rem !important;
  line-height: 1;
}

.hf-provider-detail--modal .hf-detail-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

.hf-provider-detail--modal .hf-detail-label {
  margin-bottom: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}

.hf-provider-detail--modal .hf-detail-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

/* Hero picker */
.hf-hero-bar-panel.hf-loc-picker {
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  padding: 0;
}

.hf-loc-picker .hf-hero-bar-search {
  margin: 0.75rem 0.75rem 0;
  border-radius: 0.9rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  min-height: 2.75rem;
}

.hf-loc-picker .hf-hero-bar-list {
  max-height: min(52vh, 340px);
  padding: 0.5rem 0 0.75rem;
}

.hf-loc-picker .hf-hero-bar-option.is-active {
  background: #fff7ed;
  outline: 1.5px solid rgba(234, 88, 12, 0.35);
}

@media (min-width: 768px) {
  .hf-loc-filter--modal,
  .hf-browse-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .hf-loc-sheet {
    height: min(75dvh, 560px);
    max-width: 42rem;
    width: min(100%, 42rem);
    border-radius: 1.25rem;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
    opacity: 0;
  }

  .hf-loc-filter--modal.is-open .hf-loc-sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .hf-browse-modal__sheet {
    height: min(80dvh, 640px);
    border-radius: 1.25rem;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
    opacity: 0;
  }

  .hf-browse-modal.is-visible .hf-browse-modal__sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .hf-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hf-browse-modal .hf-provider-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hf-browse-filter-row {
    flex-direction: column;
  }

  .hf-area-chip-btn {
    max-width: none;
    width: 100%;
  }

  .hf-loc-filter--modal {
    padding: 0;
    align-items: flex-end;
  }

  .hf-loc-sheet {
    width: 100%;
    max-width: none;
    height: calc(100dvh - env(safe-area-inset-top, 0px) - 0.35rem);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 0.35rem);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .hf-loc-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem;
    min-height: 14rem;
  }

  .hf-loc-city-main {
    min-height: 3.5rem;
    padding: 0.75rem 0.9rem;
  }

  .hf-loc-search-count {
    display: none;
  }

  .hf-loc-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hf-loc-search {
    width: 100%;
  }

  .hf-browse-modal {
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    align-items: flex-end;
  }

  .hf-browse-modal__sheet {
    width: 100%;
    max-width: none;
    height: min(86dvh, 680px);
    max-height: min(86dvh, 680px);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .hf-browse-modal__head {
    align-items: center;
  }

  .hf-browse-modal__title-wrap {
    align-items: center;
  }

  .hf-browse-modal__icon {
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .hf-provider-modal-hero {
    margin: -0.85rem -1rem 1rem;
    border-radius: 0 0 1rem 1rem;
  }

  .hf-provider-modal-hero__content {
    padding: 1rem 0.9rem 0.95rem;
    gap: 0.8rem;
  }

  .hf-provider-modal-hero__photo {
    width: 4.15rem;
    height: 4.15rem;
  }

  .hf-provider-modal-hero__icon {
    right: 0.1rem;
    bottom: -0.55rem;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 4rem !important;
  }

  .hf-provider-modal-hero__name {
    font-size: 1.05rem;
  }
}
