/* PetTogether Minimal Progressive-Disclosure Redesign Styles */
.sr-only,
.discovery-search select.sr-only,
.discovery-search input.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: 0 !important;
  top: 0 !important;
}

body[data-discovery-page] {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--pet-background, #faf8f5);
  color: var(--pet-charcoal, #293038);
  font-family: inherit;
}

body[data-discovery-page] .discovery-header {
  height: 78px;
  max-width: none;
  width: 100%;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(41, 48, 56, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.discovery-brand-wrap {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-self: start;
}

.discovery-header .discovery-search {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.search-summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
}

.discovery-nav-wrap {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

body[data-discovery-page] .account-nav-trigger:hover,
body[data-discovery-page] button.account-nav-trigger:hover:not(:disabled),
body[data-discovery-page] .account-nav-trigger[aria-expanded="true"],
body[data-discovery-page] button.account-nav-trigger[aria-expanded="true"] {
  border-color: var(--pet-green, #32a579);
  background: var(--pet-soft, #eef7f2) !important;
  color: var(--pet-green-dark, #257d5c) !important;
  box-shadow: 0 2px 8px rgba(50, 165, 121, 0.15);
}

body[data-discovery-page] .account-nav-trigger:hover .account-nav-name,
body[data-discovery-page] .account-nav-trigger[aria-expanded="true"] .account-nav-name {
  color: var(--pet-green-dark, #257d5c);
}

body[data-discovery-page] .account-nav-trigger:hover .account-nav-badge,
body[data-discovery-page] .account-nav-trigger[aria-expanded="true"] .account-nav-badge {
  color: #1f5642;
}

body[data-discovery-page] .account-nav-trigger:hover .account-nav-caret,
body[data-discovery-page] .account-nav-trigger[aria-expanded="true"] .account-nav-caret {
  color: var(--pet-green, #32a579);
}

body[data-discovery-page] .account-nav-trigger:active,
body[data-discovery-page] button.account-nav-trigger:active {
  background: #e4efe9 !important;
  transform: scale(0.985);
}

body[data-discovery-page] .discovery-main {
  position: relative;
  height: calc(100dvh - 78px);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.compact-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11.5px 16px 11.5px 20px;
  background: #ffffff;
  border: 1.5px solid rgba(41, 48, 56, 0.16);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(41, 48, 56, 0.08), 0 1px 2px rgba(41, 48, 56, 0.04);
  cursor: pointer;
  font-family: inherit;
  color: var(--pet-charcoal, #293038);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .compact-search-trigger:hover,
  body[data-discovery-page] button.compact-search-trigger:hover:not(:disabled) {
    color: var(--pet-charcoal, #293038);
    transform: translateY(0) scale(1.004);
    border-color: var(--pet-green, #32a579);
    box-shadow: 0 4px 14px rgba(50, 165, 121, 0.16), 0 2px 6px rgba(41, 48, 56, 0.06);
    background: #ffffff;
  }
}

body[data-discovery-page] .compact-search-trigger:active {
  background: #ffffff;
  color: var(--pet-charcoal, #293038);
  transform: translateY(0) scale(0.985);
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.12);
  transition-duration: 80ms;
}

body[data-discovery-page] .compact-search-trigger[aria-expanded="true"] {
  color: var(--pet-charcoal, #293038);
  border-color: var(--pet-green, #32a579);
  box-shadow: 0 0 0 2px rgba(50, 165, 121, 0.22), 0 4px 12px rgba(41, 48, 56, 0.08);
  background: #fdfefe;
}

.compact-search-trigger:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 1px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.28;
  min-width: 0;
  gap: 2px;
}

.summary-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--pet-charcoal, #293038);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.summary-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: #5a6578;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 290px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
}

.summary-service {
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
}

.summary-icon,
.summary-service-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toolbar-service-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 4px;
}

.compact-search-trigger:hover .summary-icon,
.compact-search-trigger:hover .summary-service-icon {
  transform: scale(1.08);
}

.summary-sep,
.summary-sub-sep {
  color: #8c98a9;
  font-weight: 400;
  margin: 0 1px;
}

.summary-meta {
  color: #5a6578;
}

.summary-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pet-green, #32a579);
  color: white;
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms ease;
}

.summary-action-icon svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.compact-search-trigger:hover .summary-action-icon {
  background: var(--pet-green-dark, #257d5c);
  transform: scale(1.04);
}

.compact-search-trigger[aria-expanded="true"] .summary-action-icon {
  background: var(--pet-green-dark, #257d5c);
  transform: scale(1.04);
}

.compact-search-trigger:active .summary-action-icon {
  transform: scale(0.96);
}

.filter-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #ffffff;
  border: 1.5px solid rgba(41, 48, 56, 0.16);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(41, 48, 56, 0.06), 0 1px 2px rgba(41, 48, 56, 0.04);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .filter-trigger-btn:hover,
  body[data-discovery-page] button.filter-trigger-btn:hover:not(:disabled) {
    color: var(--pet-charcoal, #293038);
    transform: translateY(-1px) scale(1.008);
    border-color: var(--pet-green, #32a579);
    box-shadow: 0 6px 16px rgba(50, 165, 121, 0.14), 0 2px 6px rgba(41, 48, 56, 0.06);
    background: #fbfdfc;
  }
}

body[data-discovery-page] .filter-trigger-btn:active {
  background: #ffffff;
  color: var(--pet-charcoal, #293038);
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.12);
  transition-duration: 80ms;
}

body[data-discovery-page] .filter-trigger-btn[aria-expanded="true"] {
  color: var(--pet-charcoal, #293038);
  border-color: var(--pet-green, #32a579);
  box-shadow: 0 0 0 2px rgba(50, 165, 121, 0.2), 0 3px 10px rgba(41, 48, 56, 0.08);
  background: #fdfefe;
}

.filter-trigger-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.filter-trigger-btn .search-icon {
  width: 18px;
  height: 18px;
  stroke: var(--pet-charcoal, #293038);
  fill: none;
}

.mobile-view-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1.5px solid rgba(41, 48, 56, 0.14);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(41, 48, 56, 0.05);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  margin-left: auto;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .mobile-view-toggle:hover,
  body[data-discovery-page] button.mobile-view-toggle:hover:not(:disabled) {
    background: #ffffff;
    color: var(--pet-charcoal, #293038);
    border-color: var(--pet-green, #32a579);
    box-shadow: 0 4px 12px rgba(50, 165, 121, 0.12);
  }
}

.mobile-view-toggle:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.1);
  transition-duration: 80ms;
}

.mobile-view-toggle:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.mobile-view-toggle .view-toggle-icon {
  width: 16px;
  height: 16px;
  stroke: var(--pet-green, #32a579);
  fill: none;
}

/* ==========================================================================
   2. Expanded Search Panel (Persistent Quick Search & Anchored Dropdowns)
   ========================================================================== */
.expanded-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.985);
  transform-origin: top center;
  width: auto;
  min-width: 580px;
  max-width: calc(100vw - 48px);
  max-height: calc(100dvh - 84px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  padding: 0;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-sizing: border-box;
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 160ms ease;
}

.expanded-search-panel.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.expanded-search-panel[hidden] {
  display: none !important;
}

@media (min-width: 701px) {
  .expanded-search-panel[data-view="home"],
  .expanded-search-panel[data-view="service"],
  .expanded-search-panel[data-view="location"],
  .expanded-search-panel[data-view="date"] {
    overflow: visible;
  }
}

/* Anchored Field Dropdowns */
.field-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 310;
  background: #ffffff;
  border: 1px solid rgba(41, 48, 56, 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(41, 48, 56, 0.16), 0 2px 8px rgba(41, 48, 56, 0.06);
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  pointer-events: none;
  visibility: hidden;
  box-sizing: border-box;
  transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 160ms ease;
}

.field-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.field-dropdown[hidden] {
  display: none !important;
}

#search-view-service {
  left: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 12px;
}

#search-view-location {
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.985);
  transform-origin: top center;
  width: 480px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px 14px;
}

#search-view-location.open {
  transform: translateX(-50%) translateY(0) scale(1);
}

#search-view-date {
  right: 0;
  left: auto;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top right;
  width: 380px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px 14px;
}

#search-view-date.open {
  transform: translateY(0) scale(1);
}

#search-view-service .picker-header,
#search-view-location .picker-header,
#search-view-date .picker-header {
  flex-shrink: 0;
}

.service-dropdown-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 6px 8px;
  border-bottom: 1px solid #edf0f2;
  margin-bottom: 6px;
}

.service-dropdown-top[hidden] {
  display: none !important;
}

/* Progressive Disclosure View Container */
.search-panel-view {
  width: 100%;
  box-sizing: border-box;
}

.search-panel-view[hidden] {
  display: none !important;
}

/* Slide micro-interaction helpers for smooth compatibility */
.search-panel-view.transition-out.dir-forward {
  opacity: 1;
  transform: translateX(0);
}
.search-panel-view.transition-out.dir-forward.animate {
  opacity: 0;
  transform: translateX(-8px);
}
.search-panel-view.transition-in.dir-forward {
  opacity: 0;
  transform: translateX(8px);
}
.search-panel-view.transition-in.dir-forward.animate {
  opacity: 1;
  transform: translateX(0);
}
.search-panel-view.transition-out.dir-backward {
  opacity: 1;
  transform: translateX(0);
}
.search-panel-view.transition-out.dir-backward.animate {
  opacity: 0;
  transform: translateX(8px);
}
.search-panel-view.transition-in.dir-backward {
  opacity: 0;
  transform: translateX(-8px);
}
.search-panel-view.transition-in.dir-backward.animate {
  opacity: 1;
  transform: translateX(0);
}

/* LEVEL 1: Quick Search Toolbar */
.quick-search-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid rgba(41, 48, 56, 0.12);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(41, 48, 56, 0.14), 0 2px 8px rgba(41, 48, 56, 0.04);
  padding: 7px 9px;
  position: relative;
  z-index: 305;
  box-sizing: border-box;
}

.search-toolbar-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body[data-discovery-page] .search-toolbar-item,
body[data-discovery-page] button.search-toolbar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--pet-charcoal, #293038);
  transition: background-color 140ms ease, transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .search-toolbar-item:hover,
  body[data-discovery-page] button.search-toolbar-item:hover:not(:disabled) {
    background: #f1f5f3;
    color: var(--pet-charcoal, #293038);
  }

  body[data-discovery-page] .search-toolbar-item:hover .toolbar-item-label {
    color: #1f5642;
  }

  body[data-discovery-page] .search-toolbar-item:hover .toolbar-item-val {
    color: #111827;
  }

  body[data-discovery-page] .search-toolbar-item:hover .toolbar-chevron {
    color: var(--pet-green, #32a579);
  }
}

body[data-discovery-page] .search-toolbar-item[aria-expanded="true"],
body[data-discovery-page] button.search-toolbar-item[aria-expanded="true"] {
  background: #eef7f2;
  box-shadow: inset 0 0 0 1.5px var(--pet-green, #32a579);
  color: var(--pet-charcoal, #293038);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .search-toolbar-item[aria-expanded="true"]:hover,
  body[data-discovery-page] button.search-toolbar-item[aria-expanded="true"]:hover:not(:disabled) {
    background: #e4efe9;
    color: var(--pet-charcoal, #293038);
  }
}

body[data-discovery-page] .search-toolbar-item[aria-expanded="true"] .toolbar-item-label {
  color: var(--pet-green-dark, #257d5c);
}

body[data-discovery-page] .search-toolbar-item[aria-expanded="true"] .toolbar-item-val {
  color: #111827;
}

body[data-discovery-page] .search-toolbar-item[aria-expanded="true"] .toolbar-chevron {
  color: var(--pet-green, #32a579);
  transform: rotate(180deg);
}

body[data-discovery-page] .search-toolbar-item:active,
body[data-discovery-page] button.search-toolbar-item:active {
  background: #e4efe9;
  color: var(--pet-charcoal, #293038);
  transform: scale(0.985);
}

body[data-discovery-page] .search-toolbar-item:focus-visible,
body[data-discovery-page] button.search-toolbar-item:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 0;
}

.toolbar-item-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pet-muted, #7a8699);
  line-height: 1.1;
  margin-bottom: 2px;
  transition: color 140ms ease;
}

.toolbar-item-val-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
}

.toolbar-item-val {
  font-size: 1.00rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  white-space: nowrap;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 140ms ease;
}

.toolbar-chevron {
  font-size: 0.72rem;
  color: var(--pet-muted, #7a8699);
  line-height: 1;
  display: inline-block;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), color 140ms ease;
}

.toolbar-divider {
  width: 1px;
  height: 28px;
  background: #edf0f2;
  margin: 0 2px;
  flex-shrink: 0;
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.toolbar-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--pet-green, #32a579);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(50, 165, 121, 0.28);
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .toolbar-search-btn:hover,
  body[data-discovery-page] button.toolbar-search-btn:hover:not(:disabled) {
    background: var(--pet-green-dark, #257d5c);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(50, 165, 121, 0.35);
  }
}

body[data-discovery-page] .toolbar-search-btn:active,
body[data-discovery-page] button.toolbar-search-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(50, 165, 121, 0.2);
}

body[data-discovery-page] .toolbar-search-btn:focus-visible,
body[data-discovery-page] button.toolbar-search-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.toolbar-search-btn .search-icon {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
}

/* LEVEL 2: Picker Header */
.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f2;
}

body[data-discovery-page] .picker-back-btn,
body[data-discovery-page] button.picker-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--pet-charcoal, #293038);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.03);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .picker-back-btn:hover,
  body[data-discovery-page] button.picker-back-btn:hover:not(:disabled) {
    background: #f7faf8;
    color: var(--pet-green-dark, #257d5c);
    border-color: #8ed2b8;
  }
}

body[data-discovery-page] .picker-back-btn:active,
body[data-discovery-page] button.picker-back-btn:active {
  background: #f1f5f3;
  color: var(--pet-green-dark, #257d5c);
  transform: scale(0.96);
}

body[data-discovery-page] .picker-back-btn:focus-visible,
body[data-discovery-page] button.picker-back-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.picker-back-btn .back-arrow {
  font-size: 0.94rem;
  line-height: 1;
}

.picker-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--pet-charcoal, #293038);
  letter-spacing: -0.2px;
}

.picker-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}

.picker-done-btn {
  padding: 7px 18px;
  font-size: 0.86rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 701px) {
  .mobile-search-home-header {
    display: none !important;
  }
}

.expanded-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f2;
}

.panel-eyebrow {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pet-muted, #7a8699);
}

.close-icon-btn {
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pet-muted, #7a8699);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .close-icon-btn:hover,
  body[data-discovery-page] button.close-icon-btn:hover:not(:disabled) {
    background: #f1f4f6;
    color: var(--pet-charcoal, #293038);
    transform: scale(1.05);
  }
}

body[data-discovery-page] .close-icon-btn:active,
body[data-discovery-page] button.close-icon-btn:active {
  transform: scale(0.92);
}

.close-icon-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.expanded-section {
  margin-bottom: 20px;
}

.section-title {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  margin-bottom: 10px;
}

/* Service Picker Cards */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .service-card:hover:not(.active) {
    color: var(--pet-charcoal, #293038);
    transform: translateY(-1px);
    border-color: #8ed2b8;
    background: #f7faf8;
    box-shadow: 0 3px 8px rgba(41, 48, 56, 0.06);
  }
  body[data-discovery-page] .service-card.active:hover {
    transform: translateY(-1px);
    border-color: var(--pet-green-dark, #257d5c);
    box-shadow: 0 0 0 1.5px var(--pet-green-dark, #257d5c), 0 3px 8px rgba(50, 165, 121, 0.12);
  }
}

body[data-discovery-page] .service-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition-duration: 80ms;
}

body[data-discovery-page] .service-card.active {
  color: var(--pet-charcoal, #293038);
  border-color: var(--pet-green, #32a579);
  background: #eef7f2;
  box-shadow: 0 0 0 1.5px var(--pet-green, #32a579);
}

.service-card:focus-visible {
  outline: 2px solid var(--pet-green-dark, #257d5c);
  outline-offset: 2px;
}

.service-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(50, 165, 121, 0.12);
  flex-shrink: 0;
}

.service-card-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--pet-green, #32a579);
}

.service-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-card-info strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  line-height: 1.25;
}

.service-card-info small {
  font-size: 0.74rem;
  color: var(--pet-muted, #7a8699);
  line-height: 1.2;
}


/* Minimal Service Picker Rows (Section 12) */
#search-view-service .service-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  grid-template-columns: none !important;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px !important;
  margin: 0 !important;
  scroll-padding: 8px;
  max-height: 480px;
  box-sizing: border-box;
}

#search-view-service .service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  min-height: 86px;
  background: #ffffff;
  border: 1.5px solid #edf0f2;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.03);
  transition: transform 140ms ease,
              border-color 140ms ease,
              box-shadow 140ms ease,
              background-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

#search-view-service .service-card:focus-visible {
  outline: 2px solid var(--pet-green-dark, #257d5c);
  outline-offset: 2px;
}

#search-view-service .service-card:focus-visible:not(.active) {
  background: #ffffff;
  border-color: #d1dbd5;
}

@media (hover: hover) and (pointer: fine) {
  #search-view-service .service-card:hover:not(.active) {
    color: var(--pet-charcoal, #293038);
    transform: translateY(-1.5px);
    border-color: #8ed2b8;
    background: #f8fbf9;
    box-shadow: 0 3px 8px rgba(41, 48, 56, 0.06);
  }
}

#search-view-service .service-card:active {
  transform: scale(0.985);
  transition-duration: 80ms;
}

#search-view-service .service-card.active {
  color: var(--pet-charcoal, #293038);
  border-color: var(--pet-green, #32a579);
  background: #eef7f2;
  box-shadow: 0 0 0 1.5px var(--pet-green, #32a579), 0 2px 6px rgba(50, 165, 121, 0.08);
}

#search-view-service .service-card.active:focus-visible {
  background: #eef7f2;
  border-color: var(--pet-green, #32a579);
  outline: 2px solid var(--pet-green-dark, #257d5c);
  outline-offset: 2px;
}

#search-view-service .service-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 140ms ease;
}

#search-view-service .service-card:hover .service-card-icon {
  background: transparent;
  transform: scale(1.04);
}

#search-view-service .service-card.active .service-card-icon {
  background: transparent;
  box-shadow: none;
  transform: scale(1.05);
}

#search-view-service .service-card-icon .service-icon-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

#search-view-service .service-card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--pet-green, #32a579);
}

#search-view-service .service-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 3px;
}

#search-view-service .service-card-info strong {
  font-size: 1rem;
  font-weight: 650;
  color: var(--pet-charcoal, #293038);
  line-height: 1.3;
}

#search-view-service .service-card-info small {
  font-size: 0.8125rem;
  color: var(--pet-muted, #7a8699);
  line-height: 1.35;
}

.service-reset-btn {
  background: transparent;
  border: 0;
  padding: 4px 8px;
  color: var(--pet-green-dark, #257d5c);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  border-radius: 6px;
  transition: color 120ms ease, background-color 120ms ease;
  white-space: nowrap;
}

body[data-discovery-page] .service-reset-btn,
body[data-discovery-page] button.service-reset-btn {
  background: transparent;
  border: 0;
  padding: 2px 8px;
  color: var(--pet-muted, #7a8699);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  border-radius: 6px;
  transition: color 120ms ease, background-color 120ms ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .service-reset-btn:hover,
  body[data-discovery-page] button.service-reset-btn:hover:not(:disabled) {
    color: var(--pet-green, #32a579);
    background: rgba(50, 165, 121, 0.08);
  }
}

body[data-discovery-page] .service-reset-btn:focus-visible,
body[data-discovery-page] button.service-reset-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

/* Location Controls */
.location-controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.location-input-field {
  position: relative;
  flex: 1;
}

.field-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.location-input-field .field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--pet-muted, #7a8699);
}

.location-input-field input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
}

.location-input-field input:focus-visible {
  border-color: var(--pet-green, #32a579);
  outline: none;
}

.near-me-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f7faf8;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--pet-green-dark, #257d5c);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.03);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .near-me-action:hover {
    color: var(--pet-green-dark, #257d5c);
    transform: translateY(-1px);
    border-color: var(--pet-green, #32a579);
    background: #eef7f2;
    box-shadow: 0 3px 8px rgba(50, 165, 121, 0.1);
  }
}

body[data-discovery-page] .near-me-action:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition-duration: 80ms;
}

.near-me-action:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.near-me-action .search-icon {
  width: 14px;
  height: 14px;
  stroke: var(--pet-green, #32a579);
  fill: none;
}

/* Radius Chips */
.radius-refinement {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fbfcfc;
  border-radius: 12px;
  border: 1px solid #edf0f2;
}

.radius-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.radius-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
}

.radius-value-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pet-green-dark, #257d5c);
  background: rgba(50, 165, 121, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

.radius-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radius-chip {
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid #dcdfe3;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--pet-charcoal, #293038);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              color 160ms ease,
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .radius-chip:hover:not(.active) {
    color: var(--pet-charcoal, #293038);
    transform: translateY(-1px);
    border-color: var(--pet-green, #32a579);
    background: #fbfdfc;
    box-shadow: 0 2px 6px rgba(41, 48, 56, 0.08);
  }
  body[data-discovery-page] .radius-chip.active:hover {
    color: #ffffff;
    transform: translateY(-1px);
    background: var(--pet-green-dark, #257d5c);
    border-color: var(--pet-green-dark, #257d5c);
    box-shadow: 0 3px 8px rgba(50, 165, 121, 0.25);
  }
}

body[data-discovery-page] .radius-chip:active {
  transform: scale(0.96);
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition-duration: 80ms;
}

body[data-discovery-page] .radius-chip.active {
  background: var(--pet-green, #32a579);
  border-color: var(--pet-green, #32a579);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(50, 165, 121, 0.2);
}

.radius-chip:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.radius-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--pet-muted, #7a8699);
  margin-top: 6px;
}

/* Date Section */
.date-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  min-height: 22px;
}

.date-header-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pet-muted, #7a8699);
}

body[data-discovery-page] .reset-link-btn,
body[data-discovery-page] button.reset-link-btn {
  background: transparent;
  border: 0;
  padding: 2px 4px;
  color: var(--pet-muted, #7a8699);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 140ms ease;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .reset-link-btn:hover,
  body[data-discovery-page] button.reset-link-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--pet-green-dark, #257d5c);
  }
}

body[data-discovery-page] .reset-link-btn:focus-visible,
body[data-discovery-page] button.reset-link-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
  border-radius: 4px;
}

.date-trigger-bar {
  display: block;
  margin-bottom: 8px;
}

.date-summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pet-charcoal, #293038);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.04);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  body[data-discovery-page] .date-summary-btn:hover {
    color: var(--pet-charcoal, #293038);
    transform: translateY(-1px);
    border-color: var(--pet-green, #32a579);
    background: #fbfdfc;
    box-shadow: 0 3px 8px rgba(41, 48, 56, 0.06);
  }
}

body[data-discovery-page] .date-summary-btn:active {
  background: #ffffff;
  color: var(--pet-charcoal, #293038);
  transform: scale(0.985);
  box-shadow: 0 1px 2px rgba(41, 48, 56, 0.04);
  transition-duration: 80ms;
}

body[data-discovery-page] .date-summary-btn[aria-expanded="true"] {
  color: var(--pet-charcoal, #293038);
  border-color: var(--pet-green, #32a579);
  box-shadow: 0 0 0 2px rgba(50, 165, 121, 0.16);
  background: #fdfefe;
}

.date-summary-btn:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.date-summary-btn .date-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-summary-btn .field-icon {
  stroke: var(--pet-green-dark, #257d5c);
}

.date-summary-btn .chevron-arrow {
  color: var(--pet-muted, #7a8699);
  font-size: 0.82rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.date-summary-btn[aria-expanded="true"] .chevron-arrow {
  transform: rotate(180deg);
}

.date-selection-display {
  font-size: 0.82rem;
  color: var(--pet-muted, #7a8699);
  margin: 6px 0;
}

#date-calendar[hidden] {
  display: none !important;
}

/* Embedded Date Calendar Styling */
#date-calendar {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(41, 48, 56, 0.06);
  transform-origin: top center;
}

#date-calendar:not([hidden]) {
  animation: calendarEnter 160ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes calendarEnter {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#date-calendar .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#date-calendar .cal-month-label {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pet-charcoal, #293038);
}

#date-calendar .cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: transparent;
  color: var(--pet-green-dark, #257d5c);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

#date-calendar .cal-nav:hover {
  background: var(--pet-soft, #eef7f2);
  border-color: var(--pet-green, #32a579);
}

#date-calendar .cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
}

#date-calendar .cal-dow {
  display: grid;
  place-items: center;
  min-height: 22px;
  color: var(--pet-muted, #7a8699);
  font-size: 0.72rem;
  font-weight: 600;
}

#date-calendar .cal-day {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--pet-charcoal, #293038);
  font: 500 0.86rem var(--pet-font);
  cursor: pointer;
  transition: all 0.12s ease;
}

#date-calendar .cal-day:hover:not(:disabled) {
  border-color: var(--pet-green, #32a579);
  background: var(--pet-soft, #eef7f2);
}

#date-calendar .cal-day:disabled {
  color: var(--pet-muted, #7a8699);
  opacity: 0.4;
  cursor: not-allowed;
}

#date-calendar .cal-day.today {
  border-color: var(--pet-green, #32a579);
  color: var(--pet-green-dark, #257d5c);
  font-weight: 600;
}

#date-calendar .cal-day.between,
#date-calendar .cal-day.preview {
  background: rgba(50, 165, 121, 0.12);
  border-color: rgba(50, 165, 121, 0.22);
  color: var(--pet-green-dark, #257d5c);
}

#date-calendar .cal-day.start,
#date-calendar .cal-day.end {
  background: var(--pet-green, #32a579);
  border-color: var(--pet-green, #32a579);
  color: #ffffff;
  font-weight: 600;
}

#date-calendar .cal-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 0;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: var(--pet-muted, #7a8699);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

#date-calendar .cal-clear:hover {
  color: var(--pet-charcoal, #293038);
}

.expanded-panel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #edf0f2;
}

.expanded-panel-footer.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  top: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.expanded-panel-footer .button {
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .expanded-panel-footer .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 48, 56, 0.1);
  }
}

.expanded-panel-footer .button:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.1);
  transition-duration: 80ms;
}

.expanded-panel-footer .button:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.expanded-panel-footer .button.primary {
  background: var(--pet-green, #32a579);
  color: #ffffff;
  border: 0;
}

.expanded-panel-footer .button.primary:hover {
  background: var(--pet-green-dark, #257d5c);
}

.expanded-panel-footer .button.secondary {
  background: #f1f4f6;
  color: var(--pet-charcoal, #293038);
  border: 0;
}

/* ==========================================================================
   3. Filter Modal / Bottom Sheet
   ========================================================================== */
.filter-modal {
  border: 0;
  padding: 0;
  background: transparent;
  margin: auto;
  max-width: 540px;
  width: 90%;
  border-radius: 20px;
  overflow: hidden;
}

.filter-modal::backdrop {
  background: rgba(30, 36, 44, 0.45);
  backdrop-filter: blur(4px);
}

.filter-modal-inner {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(41, 48, 56, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #edf0f2;
  flex-shrink: 0;
}

.filter-modal-head h2 {
  margin: 0;
  font-family: var(--pet-font, "Fredoka", sans-serif);
  font-size: 1.30rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
}

.filter-modal-content {
  padding: 22px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-sizing: border-box;
  min-width: 0;
}

.filter-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.filter-section h3 {
  margin: 0 0 10px;
  font-family: var(--pet-font, "Fredoka", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
}

.chip-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.filter-radio-chip {
  position: relative;
  cursor: pointer;
}

.filter-radio-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-radio-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #f4f6f8;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--pet-charcoal, #293038);
  transition: all 0.15s ease;
}

.filter-radio-chip:hover span {
  background: #e9ecef;
}

.filter-radio-chip input[type="radio"]:checked + span {
  background: #eef7f2;
  border-color: var(--pet-green, #32a579);
  color: var(--pet-green-dark, #257d5c);
  font-weight: 600;
}

.star-accent {
  color: #d99b26;
  margin-right: 2px;
  display: inline-block;
  line-height: 1;
}

.filter-radio-chip input[type="radio"]:checked + span .star-accent {
  color: #b87a0f;
}

.price-fields {
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.price-input-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--pet-muted, #7a8699);
}

.price-input-label input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  color: var(--pet-charcoal, #293038);
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.price-input-label input:focus {
  outline: none;
  border-color: var(--pet-green, #32a579);
  box-shadow: 0 0 0 3px rgba(50, 165, 121, 0.15);
}

.price-context-hint {
  margin: 6px 0 0;
  font-size: 0.80rem;
  color: var(--pet-muted, #7a8699);
}

.care-filter-checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.care-filter-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid rgba(41, 48, 56, 0.12);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--pet-charcoal, #293038);
  cursor: pointer;
  user-select: none;
  transition: border-color 140ms ease, background-color 140ms ease;
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
}

.care-filter-check:hover {
  background: #f7faf8;
  border-color: rgba(50, 165, 121, 0.35);
}

.care-filter-check:has(input:checked) {
  background: #f0f7f3;
  border-color: var(--pet-green, #32a579);
  color: var(--pet-green-dark, #257d5c);
  font-weight: 500;
}

.care-filter-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #a0aec0;
  border-radius: 6px;
  background: #ffffff;
  display: grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 120ms ease;
}

.care-filter-check input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  background-color: #ffffff;
  transition: transform 120ms ease;
}

.care-filter-check input[type="checkbox"]:checked {
  background: var(--pet-green, #32a579);
  border-color: var(--pet-green, #32a579);
}

.care-filter-check input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.care-filter-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.care-filter-subgroup {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.care-filter-subgroup[hidden] {
  display: none !important;
}

.care-subgroup-title {
  margin: 6px 0 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pet-muted, #7a8699);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.care-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.care-size-option {
  display: inline-flex;
  cursor: pointer;
}

.care-size-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.care-size-option span {
  display: inline-block;
  padding: 6px 12px;
  background: #f4f6f8;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--pet-charcoal, #293038);
  transition: all 0.14s ease;
}

.care-size-option input:checked + span {
  background: #eef7f2;
  border-color: var(--pet-green, #32a579);
  color: var(--pet-green-dark, #257d5c);
  font-weight: 600;
}

.care-hint {
  margin: 8px 0 0;
  font-size: 0.80rem;
  color: var(--pet-muted, #7a8699);
}

footer.filter-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #edf0f2;
  background: #fafbfb;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-shrink: 0;
}

.filter-modal-foot .button {
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-modal-foot .button.primary {
  background: var(--pet-green, #32a579);
  color: #ffffff;
  border: 0;
}

.filter-modal-foot .button.primary:hover {
  background: var(--pet-green-dark, #257d5c);
}

.filter-modal-foot .button.secondary {
  background: transparent;
  color: var(--pet-muted, #7a8699);
  border: 0;
}

.filter-modal-foot .button.secondary:hover {
  color: var(--pet-charcoal, #293038);
  text-decoration: underline;
}

/* ==========================================================================
   4. Desktop Layout (Results 48% | Map 52%)
   ========================================================================== */
.discovery-layout {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.results-column {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 40px;
  background: #fbfaf8;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(41, 48, 56, 0.08);
  box-sizing: border-box;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}

.results-title {
  margin: 0;
}

.results-count {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
}

.sort-note {
  font-size: 0.8rem;
  color: var(--pet-muted, #7a8699);
}

#results-toggle {
  display: none;
}

.sitter-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  flex-shrink: 0;
}

.results-alternative {
  margin: 1.25rem 0 .25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(50, 165, 121, .25);
  border-radius: var(--pet-radius, 16px);
  background: var(--pet-soft, #f2f8f5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.results-alternative h3 {
  margin: 0;
  color: var(--pet-charcoal, #293038);
  font-size: 1.05rem;
  font-weight: 600;
}

.results-alternative p {
  margin: 0;
  color: var(--pet-muted, #7a8699);
  font-size: 0.88rem;
  line-height: 1.45;
}

.results-alternative .button {
  display: inline-flex;
  width: 100%;
  margin-top: 6px;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.sitter-join {
  display: block;
  flex-shrink: 0;
  color: var(--pet-green-dark, #257d5c);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 8px 0 4px;
}

.sitter-join:hover {
  color: var(--pet-green, #32a579);
}

/* ==========================================================================
   5. Sitter Result Cards (Calmer, Larger, Scannable)
   ========================================================================== */
.sitter-card {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1.5px solid rgba(41, 48, 56, 0.08);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(41, 48, 56, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.sitter-card:hover {
  border-color: var(--pet-green, #32a579);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41, 48, 56, 0.08);
}

.sitter-card.selected {
  border-color: var(--pet-green, #32a579);
  outline: 2px solid var(--pet-green, #32a579);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(50, 165, 121, 0.12);
}

.sitter-card:focus-visible {
  outline: 3px solid var(--pet-green, #32a579);
  outline-offset: 2px;
}

.sitter-card-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
}

.sitter-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.sitter-card-photo-wrap .sitter-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7f2, #dcefe5);
  color: var(--pet-green-dark, #257d5c);
  font-size: 1.8rem;
  font-weight: 700;
}

.sitter-result-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(41, 48, 56, 0.85);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.sitter-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sitter-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.sitter-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sitter-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitter-identity-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef7f2;
  color: var(--pet-green-dark, #257d5c);
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sitter-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.84rem;
  color: var(--pet-charcoal, #293038);
  flex-shrink: 0;
}

.sitter-rating-badge .star-accent {
  color: #f59e0b;
  font-size: 0.92rem;
}

.sitter-rating-badge .rating-count {
  color: var(--pet-muted, #7a8699);
  font-size: 0.78rem;
}

.review-label {
  font-size: 0.78rem;
  color: var(--pet-muted, #7a8699);
}

.sitter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--pet-muted, #7a8699);
  margin-bottom: 6px;
}

.sitter-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sitter-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #556270;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sitter-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.sitter-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sitter-services span {
  padding: 3px 8px;
  background: #f1f4f6;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #4a5568;
}

.sitter-services .more-services {
  background: transparent;
  color: var(--pet-muted, #7a8699);
  padding: 3px 2px;
}

.sitter-price-wrap {
  flex-shrink: 0;
}

.sitter-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pet-green-dark, #257d5c);
}

.sitter-price .price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.sitter-price .price-prefix {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--pet-muted, #5c6c64);
}

.sitter-price .price-amount {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--pet-green-dark, #257d5c);
}

.sitter-price .price-unit {
  font-size: 0.85em;
  font-weight: 500;
  color: var(--pet-muted, #5c6c64);
}

.sitter-price .price-quote {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--pet-muted, #5c6c64);
}

.sitter-actions {
  display: none;
}

.sitter-status {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pet-green-dark, #257d5c);
  margin-top: 4px;
}

/* ==========================================================================
   6. Map Column
   ========================================================================== */
.map-column {
  position: relative;
  height: 100%;
  min-height: 0;
  width: 100%;
  display: block;
}

.discovery-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.map-privacy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 8px;
  color: var(--pet-muted, #7a8699);
  box-shadow: 0 1px 4px rgba(41, 48, 56, 0.1);
  z-index: 5;
}

/* ==========================================================================
   7. MapLibre Pins & Group Markers (Preserved PT-414 & PT-426)
   ========================================================================== */
.map-marker.sitter-marker {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 40px;
  min-width: 40px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.sitter-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

.sitter-pin-shape {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 48px;
  overflow: visible;
}

.sitter-pin-shape path {
  fill: var(--pet-green, #32a579);
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.marker-number {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.sitter-pin:hover .sitter-pin-shape path,
.sitter-pin:focus-visible .sitter-pin-shape path {
  fill: var(--pet-green-dark, #257d5c);
}

.sitter-pin:focus-visible {
  outline: 3px solid var(--pet-green-dark, #257d5c);
  outline-offset: 4px;
  border-radius: 18px;
}

.map-marker.sitter-marker.selected {
  z-index: 20;
}

.map-marker.sitter-marker.selected .sitter-pin-shape path {
  fill: var(--pet-charcoal, #293038);
  stroke: var(--pet-green, #32a579);
  stroke-width: 5;
}

.map-marker.sitter-marker.selected .marker-number {
  margin-top: -6px;
}

.map-marker.sitter-marker.selected .sitter-pin::after {
  content: '✓';
  position: absolute;
  top: -7px;
  right: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--pet-green, #32a579);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.25);
}

/* PT-426: Adaptive PetTogether rank-group pins */
.map-marker.group-marker {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.sitter-pin.group-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

.group-pin .group-pin-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 48px;
  overflow: visible;
}

.group-pin .group-pin-shape path {
  fill: var(--pet-green, #32a579);
  stroke: white;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.group-pin .marker-number {
  position: relative;
  z-index: 1;
  margin-top: -8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
  white-space: nowrap;
  padding: 0 6px;
}

.group-pin:hover .group-pin-shape path,
.group-pin:focus-visible .group-pin-shape path {
  fill: var(--pet-green-dark, #257d5c);
}

.group-pin:focus-visible {
  outline: 3px solid var(--pet-green-dark, #257d5c);
  outline-offset: 4px;
  border-radius: 18px;
}

.map-marker.group-marker.selected .group-pin-shape path {
  fill: var(--pet-charcoal, #293038);
  stroke: var(--pet-green, #32a579);
  stroke-width: 5;
}

.map-marker.group-marker.selected .marker-number {
  margin-top: -6px;
}

.map-marker.group-marker.selected .group-pin::after {
  content: '✓';
  position: absolute;
  top: -7px;
  right: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--pet-green, #32a579);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(41, 48, 56, 0.25);
}

/* Ensure hidden map markers are never displayed */
.map-marker[hidden],
.map-marker.is-hidden {
  display: none !important;
}

/* PT-426.1: Group Member Picker */
.maplibregl-popup.group-picker-popup {
  z-index: 50 !important;
  max-width: 280px;
}

.group-picker-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(41, 48, 56, 0.22);
  border: 1px solid rgba(41, 48, 56, 0.12);
  overflow: hidden;
}

.group-picker-popup .maplibregl-popup-tip {
  border-top-color: #ffffff;
}

.group-member-picker {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  max-width: 270px;
}

.group-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.group-member-row:last-child {
  border-bottom: 0;
}

.group-member-row:hover,
.group-member-row:focus-visible {
  background: #f4f8f6;
  outline: none;
}

.group-member-row.selected {
  background: #e8f5f0;
}

.group-member-row .member-rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pet-green, #32a579);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.group-member-row.selected .member-rank {
  background: var(--pet-charcoal, #293038);
  box-shadow: 0 0 0 2px var(--pet-green, #32a579);
}

.group-member-row .member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.group-member-row .member-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.group-member-row .member-meta {
  font-size: 0.72rem;
  color: var(--pet-muted, #7a8699);
  line-height: 1.2;
}

.group-member-row.selected .member-meta {
  color: var(--pet-green-dark, #257d5c);
  font-weight: 500;
}

/* ==========================================================================
   8. Mobile Discovery (<= 700px)
   ========================================================================== */
@media (max-width: 768px) {
  body[data-discovery-page] .discovery-header {
    height: auto;
    padding: 10px 16px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: center;
  }

  body[data-discovery-page] .discovery-main {
    height: calc(100dvh - 104px);
  }

  .discovery-brand-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .discovery-nav-wrap {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .discovery-header .discovery-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: block;
    padding: 0;
  }

  .search-summary-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .compact-search-trigger {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9.5px 10px 9.5px 14px;
    gap: 6px;
    justify-content: space-between;
  }

  .summary-content {
    min-width: 0;
  }

  .summary-primary {
    font-size: 0.92rem;
    max-width: 160px;
  }

  .summary-secondary {
    font-size: 0.82rem;
    max-width: 200px;
  }

  .summary-service {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .summary-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .summary-action-icon {
    width: 26px;
    height: 26px;
    margin-left: 0;
  }

  .summary-action-icon svg {
    width: 13px;
    height: 13px;
  }

  .filter-trigger-btn {
    flex: 0 0 auto;
    padding: 8.5px 13px;
    font-size: 0.92rem;
    gap: 5px;
  }

  .mobile-view-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 8.5px 13px;
    font-size: 0.92rem;
    gap: 5px;
    margin-left: 0;
  }

  .expanded-search-panel {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(41, 48, 56, 0.12) !important;
    box-shadow: 0 16px 40px rgba(41, 48, 56, 0.14) !important;
    box-sizing: border-box;
    max-height: calc(100dvh - 120px);
    overflow-y: auto !important;
  }

  .expanded-search-panel.open {
    transform: translateY(0) scale(1) !important;
  }

  .mobile-search-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f2;
  }

  .quick-search-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    white-space: normal;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .search-toolbar-anchor {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  body[data-discovery-page] .search-toolbar-item,
  body[data-discovery-page] button.search-toolbar-item {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    box-sizing: border-box;
  }

  .field-dropdown {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1.5px solid #edf0f2 !important;
    border-radius: 14px !important;
    margin-top: 8px;
    margin-bottom: 4px;
    padding: 10px !important;
  }

  .field-dropdown.open {
    transform: none !important;
  }

  .toolbar-item-val-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .toolbar-divider {
    display: none;
  }

  .toolbar-actions {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }

  .toolbar-search-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.96rem;
  }

  .toolbar-actions .close-icon-btn {
    display: none;
  }

  .service-cards-grid {
    grid-template-columns: 1fr;
  }

  #search-view-service .service-card {
    min-height: 78px;
    padding: 8px 12px;
    gap: 12px;
  }

  #search-view-service .service-card-icon {
    width: 60px;
    height: 60px;
  }

  #search-view-service .service-card-icon .service-icon-img {
    width: 54px;
    height: 54px;
  }

  #search-view-service .service-card-info strong {
    font-size: 0.94rem;
  }

  .location-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .near-me-action {
    width: 100%;
    justify-content: center;
  }

  #search-view-service .service-card-info small {
    font-size: 0.78rem;
  }

  .location-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Single-surface layout on mobile */
  .discovery-layout {
    grid-template-columns: 1fr;
    height: 100%;
  }

  .results-column {
    display: flex;
    width: 100%;
    padding: 12px 14px 80px;
    border-right: 0;
  }

  .sitter-card {
    padding: 14px;
    gap: 12px;
  }

  .sitter-card-photo-wrap {
    width: 92px;
    height: 92px;
  }

  .sitter-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .map-column {
    display: none;
  }

  /* When mobile map active: show map, hide results column */
  body.mobile-map-active .results-column {
    display: none;
  }

  body.mobile-map-active .map-column {
    display: block;
    height: 100%;
  }

  /* Mobile bottom sheet for filter modal */
  .filter-modal {
    margin: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
  }

  .filter-modal-inner {
    border-radius: 20px 20px 0 0 !important;
    max-height: 88dvh !important;
    width: 100% !important;
  }

  .filter-modal-content {
    padding: 18px 18px !important;
    gap: 18px !important;
  }

  footer.filter-modal-foot {
    padding: 14px 18px !important;
    gap: 12px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .filter-modal-foot .button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.90rem;
    white-space: nowrap;
  }
}


/* ==========================================================================
   9. Own Profile Distinction
   ========================================================================== */
.sitter-own-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(50, 165, 121, 0.12);
  color: var(--pet-green-dark, #257d5c);
  margin-left: 6px;
  vertical-align: middle;
}

.sitter-own-note {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--pet-muted, #7a8699);
  padding: 8px 12px;
}


.discovery-search-form {
  display: contents;
}


.discovery-header .discovery-search form,
.discovery-search form.discovery-search-form {
  display: contents;
}

/* ==========================================================================
   10. Current Location Marker & Feedback
   ========================================================================== */
.current-location-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--pet-green, #32a579);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(50, 165, 121, 0.5), 0 3px 8px rgba(0, 0, 0, 0.25);
  cursor: default;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  box-sizing: border-box;
}

.current-location-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.current-location-dot.locating-pulse {
  animation: pt-location-pulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) 2;
}

@keyframes pt-location-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 165, 121, 0.65), 0 3px 8px rgba(0, 0, 0, 0.25);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(50, 165, 121, 0), 0 3px 8px rgba(0, 0, 0, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 165, 121, 0), 0 3px 8px rgba(0, 0, 0, 0.25);
  }
}

/* Location Inline Feedback */
.location-inline-feedback {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--pet-muted, #7a8699);
  padding: 2px 4px;
}

.location-inline-feedback[hidden] {
  display: none !important;
}

/* ==========================================================================
   Location Autocomplete Dropdown List
   ========================================================================== */
.location-input-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

#location-results,
.location-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-width: 100%;
  max-height: 275px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  border: 1.5px solid #edf0f2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(41, 48, 56, 0.12), 0 2px 8px rgba(41, 48, 56, 0.04);
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  margin: 0;
  box-sizing: border-box;
}

#location-results[hidden],
.location-results[hidden] {
  display: none !important;
}

#location-results::-webkit-scrollbar,
.location-results::-webkit-scrollbar {
  width: 6px;
}

#location-results::-webkit-scrollbar-thumb,
.location-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#location-results::-webkit-scrollbar-track,
.location-results::-webkit-scrollbar-track {
  background: transparent;
}

/* Individual Location Result Item - resets all global button styles */
#location-results button,
.location-result-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  background: transparent !important;
  color: var(--pet-charcoal, #293038) !important;
  border: none !important;
  border-bottom: 1px solid rgba(41, 48, 56, 0.06) !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  font-weight: normal !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background-color 120ms ease !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

#location-results button:last-child,
.location-result-item:last-child {
  border-bottom: none !important;
}

#location-results button:hover,
#location-results button.highlighted,
#location-results button[aria-selected="true"],
.location-result-item:hover,
.location-result-item.highlighted,
.location-result-item[aria-selected="true"] {
  background: #f4f8f5 !important;
  color: var(--pet-charcoal, #293038) !important;
  border-color: rgba(41, 48, 56, 0.06) !important;
  box-shadow: none !important;
  transform: none !important;
}

.location-item-icon {
  width: 16px;
  height: 16px;
  stroke: var(--pet-muted, #7a8699);
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
}

#location-results button:hover .location-item-icon,
#location-results button.highlighted .location-item-icon {
  stroke: var(--pet-green, #32a579);
}

.location-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.location-item-primary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pet-charcoal, #293038);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-item-secondary {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--pet-muted, #7a8699);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-empty-notice {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--pet-muted, #7a8699);
  text-align: center;
  user-select: none;
}


/* ==========================================================================
   11. Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .search-panel-view,
  .search-panel-view.transition-in,
  .search-panel-view.transition-out,
  .search-toolbar-item,
  .toolbar-search-btn,
  .picker-back-btn,
  .compact-search-trigger,
  .filter-trigger-btn,
  .expanded-search-panel,
  .service-card,
  .radius-chip,
  .near-me-action,
  .date-summary-btn,
  .expanded-panel-footer .button,
  .close-icon-btn,
  .mobile-view-toggle,
  .summary-icon,
  .summary-action-icon,
  .date-summary-btn .chevron-arrow,
  #date-calendar {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .compact-search-trigger,
  .compact-search-trigger:hover,
  .compact-search-trigger:active,
  .filter-trigger-btn,
  .filter-trigger-btn:hover,
  .filter-trigger-btn:active,
  .service-card,
  .service-card:hover,
  .service-card:active,
  .radius-chip,
  .radius-chip:hover,
  .radius-chip:active,
  .near-me-action,
  .near-me-action:hover,
  .near-me-action:active,
  .date-summary-btn,
  .date-summary-btn:hover,
  .date-summary-btn:active,
  .expanded-panel-footer .button,
  .expanded-panel-footer .button:hover,
  .expanded-panel-footer .button:active,
  .close-icon-btn,
  .close-icon-btn:hover,
  .close-icon-btn:active,
  .mobile-view-toggle,
  .mobile-view-toggle:active,
  .summary-icon,
  .summary-action-icon,
  #date-calendar {
    transform: none !important;
  }

  .expanded-search-panel {
    transform: translateX(-50%) !important;
  }

  @media (max-width: 768px) {
    .expanded-search-panel {
      transform: none !important;
    }
  }
}


/* ==========================================================================
   Discovery Legal Footer (Inside Results Column)
   ========================================================================== */
.discovery-legal-footer,
.results-column .legal-footer {
  margin-top: 36px;
  padding: 24px 0 20px;
  border-top: 1px solid rgba(41, 48, 56, 0.08);
  font-size: 0.82rem;
  color: var(--pet-muted, #7a8699);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.discovery-legal-footer nav,
.results-column .legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.discovery-legal-footer a,
.results-column .legal-footer a {
  color: var(--pet-muted, #7a8699);
  text-decoration: none;
  font-weight: 500;
  transition: color 140ms ease;
}

.discovery-legal-footer a:hover,
.results-column .legal-footer a:hover {
  color: var(--pet-green-dark, #257d5c);
  text-decoration: underline;
}
