/* Bikeley – Search page UI (Airbnb-inspired) */

/* ---------------------------------
   Header (search page only)
   --------------------------------- */
.site-header--search{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  /* Ensure dropdowns always sit ABOVE the map */
  z-index: 3000;
  isolation: isolate;
}

/* Mobile – results layout (default 1-up, switch to 2-up when there are many results) */
@media (max-width: 760px){
  .search-page{
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Default: 1 provider per row on phones (clean + readable) */
  .search-page .provider-grid{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Dense mode: once there are many results, show 2-up for faster scanning */
  .search-page .provider-grid.grid--mobile-two{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .search-page .provider-grid.grid--mobile-two .provider-card__body{
    padding: 10px 10px 12px;
  }

  .search-page .provider-grid.grid--mobile-two .provider-card__name{
		font-size: 13.5px;
  }

  .search-page .provider-grid.grid--mobile-two .provider-card__meta,
  .search-page .provider-grid.grid--mobile-two .provider-card__types{
		font-size: 12px;
  }
}

.nav__search-header{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}
@media (min-width: 761px){
  .nav__search-header{ flex-wrap: nowrap; }
}

/* Click catcher (Airbnb feeling) */
.search-backdrop{
  position: fixed;
  inset: 0;
  /*
    Must sit ABOVE the map
    but BELOW the sticky header + its dropdown panels.
    Header is at z-index: 1000 (app.css).
  */
  z-index: 900;
  background: rgba(var(--accent-rgb), 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.2,0,0,1);
}
body.is-search-ui-open .search-backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------
   Page layout
   --------------------------------- */
.search-page{ padding-top: 22px; }

/* Desktop: Split view (Airbnb-ish)
   - Left: results list scrolls
   - Right: map stays sticky (handled in app.css)
*/
.search-shell{
  gap: 22px;
  align-items: start;
}

/* Keep the map in its own stacking context so map controls
   can never escape above dropdowns/modals. */
.search-right{ z-index: 1; }
.search-map{
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Map overlay UI (preview card like Airbnb) */
.search-map-wrap{ position: relative; }
.map-overlay{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200; /* Above map controls */
  pointer-events: none;
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 761px){
  .map-overlay{ left: 14px; right: auto; max-width: 420px; }
}

/* On mobile the toggle button sits at the bottom center.
   Lift the preview card above it so it never overlaps. */
@media (max-width: 1100px){
  .map-overlay{ bottom: 78px; }
}

.search-map-area{
  position:absolute;
  top:14px;
  left:50%;
  transform:translate(-50%, -8px);
  z-index:1200;
  pointer-events:none;
  opacity:0;
  transition:opacity 180ms cubic-bezier(0.2,0,0,1), transform 180ms cubic-bezier(0.2,0,0,1);
}
.search-map-area.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
  pointer-events:auto;
}
.map-area-search__btn{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  background:#fff;
  color:#111827;
  font-weight:900;
  letter-spacing:-0.01em;
  box-shadow:0 18px 36px rgba(15,23,42,0.18);
  cursor:pointer;
  white-space:nowrap;
}
.map-area-search__btn:hover{ filter:brightness(0.98); }
.map-area-search__btn:focus{ outline:3px solid var(--cta-focus); outline-offset:2px; }

/* Preview card motion + map-friendly sizing */
.selected-preview--map{
  position: relative;
  margin: 0;
  max-width: 100%;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms cubic-bezier(0.2,0,0,1), transform 180ms cubic-bezier(0.2,0,0,1);
}
.selected-preview--map.is-open{ opacity: 1; transform: translateY(0); }



/* ---------------------------------------------
   STEP 7 – Header centering + Airbnb-like filter
---------------------------------------------- */

@media (min-width: 761px){
  /* Center the search pill and keep the filter button on the far right (Airbnb feel). */
  .site-header--search .nav__grow{ display:none; }

  .site-header--search .nav__search-header{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .site-header--search .nav__search-header .searchbar--header{
    width: clamp(520px, 55vw, 920px);
    max-width: 100%;
  }

  .site-header--search .nav__search-header .filter-pill{
    flex: 0 0 auto;
  }
}

/* Results meta (count + sorting link) */
.search-results-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 650;
}
.search-results-meta__count{ font-weight: 850; }

.sort-info{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}
.sort-info:hover{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
}
.sort-info__dot{ color: var(--muted); }

/* Filter modal layout */
.modal{ position: fixed; }
.modal__backdrop{
  position:absolute;
  inset:0;
}
.modal__panel{
  position: relative;
  z-index: 1;
}
.filter-modal__head{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  align-items:center;
  padding: 12px 18px;
  border-bottom:1px solid var(--border);
}
.filter-modal__head-spacer{ width:44px; height:44px; }
.filter-modal__title{
  justify-self:center;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.filter-modal__close,
.filter-modal__close:visited{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  color:var(--text) !important;
  -webkit-appearance:none;
  appearance:none;
  text-decoration:none;
  box-shadow:none;
  line-height:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:background 160ms cubic-bezier(0.2,0,0,1), border-color 160ms cubic-bezier(0.2,0,0,1), transform 160ms cubic-bezier(0.2,0,0,1);
}
.filter-modal__close:hover{ background: rgba(15,23,42,0.05); border-color:rgba(15,23,42,0.12); }
.filter-modal__close:active{ transform:scale(0.98); }
.filter-modal__close:focus,
.filter-modal__close:focus-visible{ color:var(--text) !important; outline:none; }
.filter-modal__close svg{ display:block; color:currentColor; }

.filter-modal__body{
  padding: 18px;
}

.filter-modal__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top:1px solid var(--border);
  background: rgba(255,255,255,0.98);
}

.filter-clear{
  font-weight: 650;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.22);
}
.filter-clear:hover{ text-decoration-color: rgba(0,0,0,0.55); }

@media (max-width: 720px){
  .filter-modal__body{ padding: 16px; }
  .filter-modal__footer{ flex-direction: column; align-items: stretch; }
  .filter-modal__footer .btn{ width:100%; }
  .filter-clear{ text-align:center; }
}

/* Filter sections */
.filter-section{ margin: 0 0 18px; }
.filter-section__title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.filter-hint{ margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.filter-divider{ height:1px; background: var(--border); margin: 18px 0; }
.filter-subtitle{ margin: 12px 0 10px; color: var(--muted); font-weight: 850; font-size: 13px; }

/* Tiles (recommended filters) */
.filter-tiles{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px){
  .filter-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.filter-tile{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 10px;
  padding: 14px 14px 12px;
  border:1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  transition: transform 160ms cubic-bezier(0.2,0,0,1), box-shadow 160ms cubic-bezier(0.2,0,0,1), border-color 160ms cubic-bezier(0.2,0,0,1);
}
.filter-tile:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.filter-tile.is-active{
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 16px 34px rgba(0,0,0,0.14);
}
.filter-tile__input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
.filter-tile__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  display:flex;
  align-items:center;
  justify-content:center;
}
.filter-tile__label{
  font-weight: 850;
  font-size: 14px;
}

/* Pills (type + features) */
.filter-pills{ display:flex; flex-wrap:wrap; gap: 10px; }
.filter-pills--types{ gap: 12px; }

.filter-pill-option{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 650;
  font-size: 14px;
  cursor:pointer;
  transition: box-shadow 160ms cubic-bezier(0.2,0,0,1), border-color 160ms cubic-bezier(0.2,0,0,1), transform 160ms cubic-bezier(0.2,0,0,1);
}
.filter-pill-option:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.filter-pill-option.is-active{
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-sm);
}
.filter-pill-option__input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

/* Sort select */
.filter-select-row{ margin-top: 4px; }
.filter-select-wrap{
  position:relative;
  display:block;
}
.filter-select{
  width: 100%;
  min-height: 56px;
  padding: 0 52px 0 16px;
  border-radius: 18px;
  border:1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg,#ffffff 0%, #fbfcff 100%);
  color:var(--text);
  font-weight: 800;
  font-size: 15px;
  letter-spacing:-0.01em;
  -webkit-appearance:none;
  appearance:none;
  box-shadow: 0 12px 28px rgba(15,23,42,0.05);
  transition:border-color 160ms cubic-bezier(0.2,0,0,1), box-shadow 160ms cubic-bezier(0.2,0,0,1), background 160ms cubic-bezier(0.2,0,0,1);
}
.filter-select:hover{
  border-color:rgba(15,23,42,0.16);
  box-shadow: 0 16px 34px rgba(15,23,42,0.08);
}
.filter-select:focus,
.filter-select:focus-visible{
  border-color:rgba(var(--primary-rgb),0.30);
  box-shadow:0 0 0 4px rgba(var(--primary-rgb),0.10), 0 16px 34px rgba(15,23,42,0.08);
  outline:none;
}
.filter-select__icon{
  position:absolute;
  inset:0 16px 0 auto;
  display:grid;
  place-items:center;
  color:#64748b;
  pointer-events:none;
}

@media (prefers-reduced-motion: reduce){
  .selected-preview--map{ transition: none; transform: none; }
}

/* Preview card surface + typography polish (Airbnb-ish) */
.selected-preview--map{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 14px;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

/* Subtle brand accent — keeps it lively without turning text orange */
.selected-preview--map::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height: 3px;
  /* Neutral “metal hairline” (no orange/purple) */
  background: linear-gradient(90deg,
    rgba(15, 23, 42, 0.26) 0%,
    rgba(15, 23, 42, 0.08) 55%,
    rgba(15, 23, 42, 0.18) 100%
  );
  opacity: 0.90;
}

.selected-preview--map .selected-preview__img{
  width: 112px;
  height: 84px;
  border-radius: 16px;
}

/* Make image + title clickable (more intuitive) */
.selected-preview__mediaLink{
  display:block;
  text-decoration:none;
  border-radius: 16px;
  overflow:hidden;
}
.selected-preview__mediaLink:focus{ outline: 3px solid var(--cta-focus); outline-offset: 2px; }

.selected-preview__nameLink{
  color: rgba(15, 23, 42, 0.95);
  text-decoration:none;
}
.selected-preview__nameLink:hover{ text-decoration: underline; }
.selected-preview__nameLink:focus{ outline: 3px solid var(--cta-focus); outline-offset: 2px; border-radius: 10px; }

.selected-preview--map .selected-preview__name,
.selected-preview--map .selected-preview__nameLink{
  font-size: 15.5px;
  line-height: 1.2;
  font-weight: 950;
}

.selected-preview--map .selected-preview__meta{
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Keep rating readable and neutral (no “orange text”) */
.selected-preview__dot{
  color: rgba(15, 23, 42, 0.25);
  font-weight: 950;
}
.selected-preview__rating{
  color: rgba(15, 23, 42, 0.88);
  font-weight: 900;
}

/* Chips and actions spacing */
.selected-preview__services{
  margin-top: 10px;
}
.selected-preview__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selected-preview__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Compact action pills (Call / Book / Website) */
.sp-action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.92);
  color: rgba(15, 23, 42, 0.92);
  text-decoration:none;
  font-weight: 850;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.sp-action:hover{ background: rgba(15, 23, 42, 0.04); box-shadow: 0 14px 28px rgba(0,0,0,0.12); }
.sp-action:focus{ outline: 3px solid var(--cta-focus); outline-offset: 2px; }

.sp-action__icon{ width:18px; height:18px; display:inline-flex; }
.sp-action__icon svg{ width:18px; height:18px; display:block; }

@media (hover: hover) and (pointer: fine){
  .sp-action{ padding: 9px 10px; }
  .sp-action__label{ display:none; }
}

/*
  CTA placement (input-modality based)
  - Desktop: CTA under the cover image (left column)
  - Mobile (touch): CTA below the category pills (full width)
*/

/* Make the media column a small vertical stack so the desktop CTA naturally sits under the image. */
.selected-preview__media{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Desktop-first: show the CTA under the cover image */
.selected-preview__cta--media{
  display: inline-flex;
  width: 112px;
  justify-content: center;
  margin-top: 10px;
}

/* Mobile (touch): show the CTA under the category pills */
.selected-preview__cta--body{
  display: none;
}

@media (hover: none) and (pointer: coarse){
  .selected-preview__cta--media{ display: none; }
  .selected-preview__cta--body{
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
}

/* CTA sizing (don’t set display here — it would override the hide/show rules above) */
.selected-preview--map .selected-preview__cta{
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

@media (max-width: 560px){
  .selected-preview--map{
    width: min(92vw, 420px);
    padding: 12px;
    gap: 12px;
  }
  .selected-preview--map .selected-preview__img{
    width: 88px;
    height: 66px;
    border-radius: 14px;
  }
  /* On very small screens keep it focused: chips + “Profil ansehen” */
  .selected-preview--map .selected-preview__actions{ display: none; }
  .selected-preview--map .selected-preview__cta{ height: 46px; }
}

/* Close button (centered ×, no weird offset) */
.selected-preview__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.78);
}
.selected-preview__close:hover{ filter: brightness(0.98); }

/* Ensure contrast in the preview CTA */
.selected-preview--map .btn-brand,
.selected-preview--map .btn-brand:visited{ color: #fff !important; }

/* ---------------------------------
   Mobile Map/List toggle (Airbnb-ish)
   --------------------------------- */

.mobile-map-toggle{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 3400;
  border: none;
  border-radius: 14px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
}
.mobile-map-toggle:hover{ filter: brightness(1.04); }
.mobile-map-toggle:focus{ outline: 3px solid var(--cta-focus); outline-offset: 2px; }

.mobile-map-toggle__icon{
  width: 18px;
  height: 18px;
  display: none;
}
.mobile-map-toggle[data-view="list"] .mobile-map-toggle__icon--map{ display:block; }
.mobile-map-toggle[data-view="map"] .mobile-map-toggle__icon--list{ display:block; }

.mobile-map-toggle__label{ line-height: 1; }

.mobile-home-toggle{
  position: fixed;
  left: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 3400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
}
.mobile-home-toggle:hover{ background: #f5f5f5; }
.mobile-home-toggle__icon{ width: 20px; height: 20px; }

/* Desktop: hide mobile-only elements */
@media (min-width: 1101px){
  .mobile-map-toggle{ display:none; }
  .mobile-home-toggle{ display:none; }
}

/* Give the page some breathing room so the floating button never covers the last card */
@media (max-width: 1100px){
  .search-page{ padding-bottom: 92px; }

  /* Mobile: hide map by default, show only via toggle */
  .search-right{ display: none !important; }
  .search-shell.list-hidden .search-right{ display: block !important; }
  .search-shell.list-hidden .search-left{ display: none !important; }
  .search-shell.list-hidden .search-map{
    height: calc(100vh - 180px);
    min-height: 400px;
  }
}

/* Map-only view on mobile (when user toggles to map) */
.search-shell.list-hidden{ grid-template-columns: 1fr; }
.search-shell.list-hidden .search-left{ display:none; }
.search-shell.list-hidden .search-right{ display:block; }

@media (max-width: 1100px){
  .search-shell.list-hidden{ gap: 0; }
  .search-shell.list-hidden .search-map{
    height: clamp(460px, calc(100vh - 240px), 760px);
    min-height: 460px;
  }
}

/* Hide the toggle while a modal is open (prevents accidental taps) */
body.modal-open .mobile-map-toggle,
body.modal-open .mobile-home-toggle{ display:none; }

/* Grids */
.search-page .grid{ gap: 20px; }

/* Top grid stays 2-up on desktop */
.search-page .grid.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* NOTE:
   We intentionally do NOT force a 2-up grid on small screens.
   The server decides when to enable 2-up (only if there are many results)
   via the .grid--mobile-two class.
*/

/* Bottom grid: 4-up below the map (handled by .grid-4 in app.css) */

.search-results-meta{
  margin: 6px 0 14px 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ---------------------------------
   Provider cards (search page polish)
   --------------------------------- */

.search-page .provider-card{
  border-radius: 24px;
  transition: transform 180ms cubic-bezier(0.2,0,0,1);
  will-change: transform;
}

/* Airbnb-ish image shape (almost square) */
.search-page .provider-card__media{
  border-radius: 24px;
  aspect-ratio: 20 / 18;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  transition: box-shadow 180ms cubic-bezier(0.2,0,0,1), transform 180ms cubic-bezier(0.2,0,0,1), border-color 180ms cubic-bezier(0.2,0,0,1);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.03));
}

/* app.css sets a fixed img height for some card variants.
   On the search page we MUST fill the aspect-ratio box. */
.search-page .provider-card__media img{
  display:block;
  width:100%;
  height:100% !important;
  object-fit:cover;
}

.search-page .provider-card__body{ padding-top: 10px; }
.search-page .provider-card__top{ gap: 10px; align-items: flex-start; }

/* Typography tuned for "premium" readability (Airbnb-ish hierarchy) */
.search-page .provider-card__name{
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.search-page .provider-card__meta{
  margin: 4px 0 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
}
.search-page .provider-card__types{
  margin: 6px 0 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(var(--primary-rgb), 0.62);
}

.search-page .provider-card__rating{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 950;
  color: rgba(var(--primary-rgb), 0.92);
  white-space: nowrap;
}
.search-page .provider-card__rating-count{ color: var(--muted); font-weight: 800; font-size: 12.5px; }

.search-page .provider-card:hover{ transform: translateY(-2px); }
.search-page .provider-card:hover .provider-card__media{ box-shadow: 0 22px 46px rgba(15,23,42,0.14); }

/* Featured/Community: keep the premium ring on the image, not as a box-outline */
.search-page .provider-card.is-featured,
.search-page .provider-card.is-community{
  outline: none !important;
}
.search-page .provider-card.is-featured .provider-card__media{
  outline: 2px solid rgba(17,24,39,0.55);
  outline-offset: -2px;
}
.search-page .provider-card.is-community .provider-card__media{
  outline: 2px solid rgba(196, 139, 46, 0.56);
  outline-offset: -2px;
}

/* Marker hover -> card hover (subtle, premium) */
.search-page .provider-card.is-map-hover{ transform: translateY(-2px); }
.search-page .provider-card.is-map-hover .provider-card__media{
  box-shadow: 0 22px 46px rgba(15,23,42,0.14);
  border-color: rgba(var(--primary-rgb), 0.12);
  outline: 2px solid rgba(var(--primary-rgb), 0.10);
}

/* Selected card: put the focus on the image (cleaner than outlining the whole link box) */
.search-page .provider-card.is-selected{
  outline: none !important;
  box-shadow: none !important;
}
.search-page .provider-card.is-selected .provider-card__media{
  outline: 2px solid rgba(var(--primary-rgb), 0.16);
  outline-offset: -2px;
  box-shadow: 0 26px 60px rgba(15,23,42,0.16);
}

/* ---------------------------------
   Header search pill (Airbnb-ish)
   --------------------------------- */

/* Mobile-only search sheet elements (hidden on desktop by default) */
.searchbar__mobile-open,
.searchbar__mobile-close,
.searchbar__mobile-footer{ display:none; }

.searchbar--header{
  margin-top: 0;
  height: 60px;
  max-width: 940px;
  width: clamp(560px, 60vw, 1040px);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 28px rgba(15,23,42,0.08);
  transition: box-shadow 220ms cubic-bezier(0.2,0,0,1), transform 220ms cubic-bezier(0.2,0,0,1), border-color 220ms cubic-bezier(0.2,0,0,1);
}
.searchbar--header:hover{ box-shadow: 0 14px 34px rgba(15,23,42,0.10); }
.searchbar--header.is-engaged{
  box-shadow: 0 18px 46px rgba(15,23,42,0.14);
  transform: translateY(-1px);
  border-color: rgba(15,23,42,0.10);
  background: rgba(243,244,246,0.92);
}

/* Make active segment feel like Airbnb: white "lifted" chip */
.searchbar--header.is-engaged .searchbar__field{ background: transparent; }
.searchbar--header.is-engaged .searchbar__field.is-active{
  background: #fff;
  box-shadow: 0 14px 38px rgba(15,23,42,0.14);
}

.searchbar--header .searchbar__field{
  padding: 12px 18px;
  min-width: 0;
}
.searchbar--header .searchbar__label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
}
.searchbar--header .searchbar__control{
  font-size: 14.5px;
  font-weight: 700;
}

/* Remove Safari/Chrome search cancel button (Airbnb doesn't show it) */
.searchbar--header input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance: none;
  display:none;
}
.searchbar--header .searchbar__control{
  -webkit-appearance: none;
}

.searchbar--header .searchbar__btn--submit{
  position: relative;
  overflow: hidden;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    var(--cta-fill) padding-box,
    var(--cta-border) border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
  margin: 0 6px 0 0;
  align-self: center;
  transition: transform .12s ease, box-shadow .18s ease;
}
.searchbar--header .searchbar__btn--submit::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(260px 90px at 20% 0%, rgba(255,255,255,0.16), transparent 65%);
  opacity:0.50;
  transition: opacity .18s ease;
  pointer-events:none;
}
.searchbar--header .searchbar__btn--submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}
.searchbar--header .searchbar__btn--submit:hover::before{
  opacity:0.90;
}
.searchbar--header .searchbar__btn--submit:active{ transform: translateY(0); }

.searchbar--header .searchbar__btn--submit img{ filter: invert(1) brightness(2); }
.searchbar--header .searchbar__btn--submit span{ font-size: 14px; }

.searchbar--header .searchbar__chev{
  font-size: 12px;
  opacity: 0.7;
  margin-left: 6px;
}

@media (max-width: 560px){
  .searchbar--header .searchbar__btn--submit span{ display:none; }
  .searchbar--header .searchbar__btn--submit{ padding: 0 14px; }
}

/* Collapsed header pill on scroll (Airbnb style) */
@media (min-width: 761px){
  body.is-search-header-collapsed .site-header--search .nav{ min-height: 74px; }

  body.is-search-header-collapsed .searchbar--header{
    height: 46px;
    width: clamp(340px, 42vw, 560px);
    box-shadow: 0 8px 22px rgba(15,23,42,0.08);
  }
  /* Airbnb-style collapsed pill: no top labels */
  body.is-search-header-collapsed .searchbar--header .searchbar__label{ display:none; }
  body.is-search-header-collapsed .searchbar--header .searchbar__field{ padding: 13px 14px; }
  body.is-search-header-collapsed .searchbar--header .searchbar__divider{ margin: 8px 0; }

  body.is-search-header-collapsed .searchbar--header .searchbar__btn--submit{
    height: 34px;
    width: 34px;
    padding: 0;
    margin-right: 4px;
    box-shadow: none;
    justify-content: center;
  }
  body.is-search-header-collapsed .searchbar--header .searchbar__btn--submit span{ display:none; }

  body.is-search-header-collapsed .filter-pill{ padding: 9px 12px; }
  body.is-search-header-collapsed .filter-pill__label{ display:none; }
}

/* Dropdown panels */
.searchbar--header .dd-panel{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(460px, 94vw);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px;
  background: var(--surface);
  box-shadow: 0 26px 60px rgba(15,23,42,0.18);
  /* Above the map + above the click-catcher backdrop */
  z-index: 3050;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  will-change: transform, opacity;
  pointer-events: none;
  transition: opacity 160ms cubic-bezier(0.2,0,0,1), transform 160ms cubic-bezier(0.2,0,0,1);
}
.searchbar--header .dd-panel.is-right{ left: auto; right: 0; }

/* "Wo" dropdown can be a bit wider on desktop (bigger cards, like Airbnb) */
@media (min-width: 761px){
  .searchbar--header .dd-panel[data-sb-panel="where"]{ width: min(560px, 94vw); }
}

.searchbar--header .dd-panel.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dd-sep{ height: 1px; background: var(--border); margin: 10px 8px; }
.dd-title{ font-size: 12px; font-weight: 900; color: rgba(var(--primary-rgb), 0.72); padding: 8px 10px 6px 10px; }
.dd-hint{ font-size: 13px; color: var(--muted); padding: 8px 10px 10px 10px; }
.dd-item__meta{ font-size: 12px; color: var(--muted); font-weight: 650; }

/* Suggestion list (scrollable like Airbnb) */
.dd-list{
  display: grid;
  gap: 4px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 2px;
}

.dd-list::-webkit-scrollbar{ width: 10px; }
.dd-list::-webkit-scrollbar-thumb{
  background: rgba(var(--primary-rgb), 0.14);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

/* Bigger, airbnb-ish hit-area for location suggestions */
.searchbar--header [data-sb-panel="where"] .dd-item{ padding: 14px 14px; border-radius: 18px; }
.searchbar--header [data-sb-panel="where"] .dd-item__left{ gap: 14px; }

/* Dropdown thumbs – Airbnb-like rounded squares */
.dd-thumb{
  width: 48px;
  height: 48px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  overflow: hidden;
}

.dd-thumb__img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dd-thumb__pin{
  width: 24px;
  height: 24px;
  opacity: 0.92;
}

.dd-thumb.has-img .dd-thumb__pin{ opacity: 0; }

/* Smaller category icons in the "Was" dropdown */
.dd-thumb--cat{
  width: 26px;
  height: 26px;
}
.dd-thumb--cat .dd-thumb__icon{
  width: 16px;
  height: 16px;
  opacity: 0.92;
}

.dd-item__title{ font-weight: 950; letter-spacing: -0.01em; color: var(--text); }
.dd-item--type{ padding: 10px 12px; }

/* Filter button (Airbnb-ish) */
.filter-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(15,23,42,0.06);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2,0,0,1), box-shadow 160ms cubic-bezier(0.2,0,0,1), background 160ms cubic-bezier(0.2,0,0,1);
  white-space: nowrap;
}
.filter-pill:hover{
  background: rgba(255,255,255,1);
  box-shadow: 0 16px 34px rgba(15,23,42,0.10);
  transform: translateY(-1px);
}
.filter-pill img{ opacity: 0.82; }

/* Responsive: header pill becomes full-width */
@media (max-width: 980px){
  .searchbar--header{ width: min(720px, 100%); }
}

@media (max-width: 760px){
  /* Mobile header: compact row with small home link */
  .site-header--search .nav__links,
  .site-header--search .nav__grow{ display:none !important; }

  /* Show brand as small home/back icon */
  .site-header--search .nav__brand{
    display: flex !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    overflow: hidden;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.04);
    flex: 0 0 auto;
  }
  .site-header--search .nav__brand img{
    max-height: 20px !important;
    width: auto !important;
  }
  .site-header--search .nav__brand-text,
  .site-header--search .nav__brand-sub,
  .site-header--search .nav__brand-initials{ display: none !important; }

  .nav__search-header{
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .site-header--search .nav{ min-height: 60px; gap: 10px; padding: 8px 0 !important; }

  /* nav__search-header grid: defined above with brand */

  .searchbar--header{
    width: 100%;
    height: 52px;
    padding: 6px;
    border-radius: 999px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 26px rgba(15,23,42,0.10);
  }

  /* Hide the top labels like Airbnb's compact pill */
  .searchbar--header .searchbar__label{ display:none; }
  .searchbar--header .searchbar__divider{ display:none; }

  .searchbar--header .searchbar__field{ padding: 0 10px; }
  .searchbar--header .searchbar__control{ font-size: 14px; font-weight: 800; }

  /* Type selector becomes a small chip button */
  .searchbar--header [data-sb-field="type"]{ flex: 0 0 auto; }
  .searchbar--header .searchbar__control--btn{
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.03);
    font-weight: 850;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Submit button becomes icon-only */
  .searchbar--header .searchbar__btn--submit{
    width: 42px;
    height: 42px;
    padding: 0;
    margin-right: 0;
    box-shadow: none;
    justify-content: center;
  }
  .searchbar--header .searchbar__btn--submit span{ display:none; }

  /* Filter button matches height, icon-only on small screens */
  .filter-pill{ height: 52px; padding: 0 14px; box-shadow: none; }
  .filter-pill__label{ display:none; }

  /* Dropdown panels: full width under the pill */
  .searchbar--header .dd-panel{ width: min(560px, 94vw); left: 0; right: 0; margin-left:auto; margin-right:auto; }
  .searchbar--header .dd-panel.is-right{ left: auto; right: 0; }
}



/* ---------------------------------
   STEP 8 – Layout spacing + cleaner focus states
   --------------------------------- */

/* Slightly wider gutters on the search page (desktop) – makes it feel more premium */
@media (min-width: 761px){
  .site-header--search .wrap--wide{ padding-left: 28px !important; padding-right: 28px !important; }
  .site-header--search ~ main .wrap--wide{ padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 760px){
  .site-header--search .wrap--wide{ padding-left: 16px !important; padding-right: 16px !important; }
  .site-header--search ~ main .wrap--wide{ padding-left: 16px; padding-right: 16px; }
}

/* The "Was" segment shouldn't stretch like a full empty field.
   We size it like Airbnb: compact segment, and the "Wo" field gets the space. */
@media (min-width: 761px){
  .searchbar--header [data-sb-field="where"]{ flex: 1 1 auto; }
  .searchbar--header [data-sb-field="type"]{ flex: 0 0 clamp(180px, 20vw, 260px); }
}

/* Clean focus rings: remove the heavy browser outlines on click.
   Keep a subtle focus for keyboard users (focus-visible). */
.search-page .provider-card:focus{ outline: none !important; }
.search-page .provider-card:focus-visible{ outline: 3px solid var(--focus); outline-offset: 4px; }

.search-page .cat:focus{ outline: none !important; }
.search-page .cat:focus-visible{ outline: 3px solid var(--focus); outline-offset: 4px; }

.site-header--search .searchbar--header :is(input,button,select):focus{ outline: none !important; box-shadow: none !important; }
.site-header--search .searchbar--header input:focus{ border-color: transparent !important; }

.site-header--search .dd-item:focus{ outline: none !important; }
.site-header--search .dd-item:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }

.filter-form :is(input,select,button):focus{ outline: none !important; box-shadow: none !important; }
.filter-form :is(input,select,button):focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }

/* Optional: show a very subtle ring around the whole pill only for keyboard focus (modern browsers). */
@supports selector(:has(*)){
  .searchbar--header:has(:focus-visible){
    box-shadow: 0 18px 46px rgba(15,23,42,0.14), 0 0 0 4px rgba(var(--accent-rgb), 0.10);
  }
}

/* Mobile collapse on scroll (so the sticky header never feels "über allem") */
@media (max-width: 760px){
  body.is-search-header-collapsed .site-header--search .nav{ min-height: 66px; }
  body.is-search-header-collapsed .searchbar--header{ height: 44px; padding: 4px; }
  body.is-search-header-collapsed .searchbar--header .searchbar__field{ padding: 0 8px; }
  body.is-search-header-collapsed .searchbar--header .searchbar__control{ font-size: 13.5px; }
  body.is-search-header-collapsed .searchbar--header .searchbar__control--btn{ padding: 8px 10px; font-size: 12.5px; }
  body.is-search-header-collapsed .searchbar--header .searchbar__btn--submit{ width: 36px; height: 36px; }
  body.is-search-header-collapsed .filter-pill{ height: 44px; padding: 0 12px; }
}


/* ---------------------------------
   STEP 9 – Mobile search sheet (Airbnb-ish)
   - mobile header shows ONE clean search pill
   - tap opens a full-screen sheet with suggestions + actions
   --------------------------------- */

@media (max-width: 760px){
  /* Placeholder used when we portal the real form to <body>.
     Keeps the header layout stable while the sheet is open. */
  .searchbar--placeholder{
    visibility: hidden;
    pointer-events: none;
  }

  /* Default (closed) state: show the mobile summary button */
  .searchbar--header .searchbar__mobile-open{
    display: flex;
    align-items: center;
    gap: 12px;
	    position: relative;
	    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0 12px;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .searchbar--header .searchbar__mobile-icon{
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.06);
    flex: 0 0 auto;
  }

  .searchbar--header .searchbar__mobile-lines{ display:flex; flex-direction:column; min-width:0; }
  .searchbar--header .searchbar__mobile-title{
    font-weight: 950;
    letter-spacing: -0.01em;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .searchbar--header .searchbar__mobile-sub{
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 750;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide desktop inputs/buttons in the closed pill */
  .searchbar--header .searchbar__field,
  .searchbar--header .searchbar__divider,
  .searchbar--header .searchbar__btn--desktop,
  .searchbar--header .searchbar__mobile-close,
  .searchbar--header .searchbar__mobile-footer{ display:none; }

  /* When the sheet is open */
  body.is-mobile-search-open{ overflow: hidden; }
  body.is-mobile-search-open::after{
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 3100;
    pointer-events: auto;
  }

  body.is-mobile-search-open .mobile-map-toggle,
  body.is-mobile-search-open .mobile-home-toggle{ display:none; }
  body.is-mobile-search-open .filter-pill{ visibility: hidden; }

  .searchbar--header.is-mobile-open{
    position: fixed;
    top: calc(8px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    bottom: auto;
    height: auto;
    width: auto;
    max-width: 640px;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(var(--bk-vh, 50vh) - 16px - env(safe-area-inset-top));
    transform: none;
    border-radius: 20px;
    padding: 52px 14px 14px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 3200;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-open{ display:none; }

    .searchbar--header.is-mobile-open .searchbar__mobile-close{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: rgba(0,0,0,0.78);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-close svg{
    width: 22px;
    height: 22px;
    display: block;
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-close:active{
    transform: scale(0.98);
    opacity: 0.75;
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-close:focus{
    outline: none;
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-close:focus-visible{
    outline: 2px solid rgba(var(--accent-rgb),0.35);
    outline-offset: 2px;
  }

  /* Show fields again inside the sheet */
  /* IMPORTANT: app.css sets .searchbar__field{flex:1}. In the mobile sheet this created
     huge empty blocks. We want fields to size to their content. */
  .searchbar--header.is-mobile-open .searchbar__field{
    display:block;
    padding: 0;
    flex: 0 0 auto;
  }
  .searchbar--header.is-mobile-open .searchbar__divider{ display:none; }

  /* Headings like Airbnb */
  .searchbar--header.is-mobile-open [data-sb-field="where"] .searchbar__label{
    display:block;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
  }
  .searchbar--header.is-mobile-open [data-sb-field="type"] .searchbar__label{
    display:block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 4px 0 6px;
  }

  /* Airbnb-like input surface */
  .searchbar--header.is-mobile-open .searchbar__control{
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    font-size: 15px;
    font-weight: 750;
  }

  .searchbar--header.is-mobile-open .searchbar__control--btn{
    width: 100%;
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.16);
    background: #fff;
  }

  /* Dropdown panels become in-flow lists inside the sheet */
  .searchbar--header.is-mobile-open .dd-panel{
    position: static;
    width: 100%;
    margin-top: 6px;
    border-radius: 14px;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: none;
    padding: 0;
  }

  .searchbar--header.is-mobile-open .dd-list{ max-height: min(24dvh, 180px); max-height: min(var(--bk-list-h, 24vh), 180px); overflow-y: auto; }

  /* Footer actions (Alle löschen + Suche) */
  .searchbar--header.is-mobile-open .searchbar__mobile-footer{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    padding: 8px 4px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-clear{
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-weight: 800;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.25);
  }

  .searchbar--header.is-mobile-open .searchbar__mobile-submit{
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    height: 44px;
    border-radius: 12px;
    border: 1px solid transparent;
    background:
      var(--cta-fill) padding-box,
      var(--cta-border) border-box;
    color: #fff;
    font-weight: 950;
    letter-spacing: -0.01em;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease, box-shadow .18s ease;
}
.searchbar--header.is-mobile-open .searchbar__mobile-submit::before{
    content:"";
    position:absolute;
    inset:-2px;
    background: radial-gradient(240px 70px at 22% 0%, rgba(255,255,255,0.16), transparent 62%);
    opacity:0.82;
    transform: translateX(-12%);
    transition: transform .35s ease, opacity .25s ease;
    pointer-events:none;
}
.searchbar--header.is-mobile-open .searchbar__mobile-submit:active{ transform: translateY(0); filter: brightness(.99); }

}


/* ---------------------------------
   Map pins (Airbnb-ish, no prices)
   --------------------------------- */

/* Google Maps marker wrapper */
.bk-pin-wrap{
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}

/* The pin itself */
.bk-pin{
  width: 34px;
  height: 42px;
  transform-origin: 50% 100%;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
  transition: transform 160ms cubic-bezier(0.2,0,0,1), filter 160ms cubic-bezier(0.2,0,0,1);
  will-change: transform, filter;
}

.bk-pin__svg{
  display: block;
  width: 34px;
  height: 42px;
}

/* Default: clean white pin with dark stroke */
.bk-pin__shape{
  fill: #fff;
  stroke: rgba(var(--primary-rgb), 0.92);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.bk-pin__dot{
  fill: rgba(var(--primary-rgb), 0.92);
}

/* Community favorite: subtle teal outline */
.bk-pin.is-community .bk-pin__shape{ stroke: rgba(196, 139, 46, 0.95); }
.bk-pin.is-community .bk-pin__dot{ fill: rgba(196, 139, 46, 0.95); }

/* Featured: filled dark pin */
.bk-pin.is-featured .bk-pin__shape{
  fill: var(--primary);
  stroke: var(--primary);
}
.bk-pin.is-featured .bk-pin__dot{ fill: #fff; }

/* Hover / selection */
.bk-pin.is-hover{
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.26));
}
.bk-pin.is-selected{
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,0.24));
}
.bk-pin.is-selected .bk-pin__shape{
  fill: var(--primary);
  stroke: var(--primary);
}
.bk-pin.is-selected .bk-pin__dot{ fill: #fff; }


@media (prefers-reduced-motion: reduce){
  .searchbar--header,
  .filter-pill,
  .search-backdrop,
  .searchbar--header .dd-panel,
  .filter-tile,
  .filter-pill-option,
  .bk-pin{
    transition: none !important;
  }
}


/* ---------------------------------
   STEP 11 – Mobile search popup (compact, clean)
   --------------------------------- */
@media (max-width: 760px){
  /* Each field as compact section inside popup */
  .searchbar--header.is-mobile-open .searchbar__field{
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.06);
  }

  .searchbar--header.is-mobile-open .searchbar__field.is-active{
    background: #fff;
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .searchbar--header.is-mobile-open .searchbar__field.is-active .searchbar__control{
    width: 100%;
  }

  /* Panels inside active field: inline, compact */
  .searchbar--header.is-mobile-open .searchbar__field.is-active .dd-panel{
    border: 0;
    padding: 0;
    background: transparent;
    margin-top: 8px;
  }

  .searchbar--header.is-mobile-open .searchbar__field.is-active .dd-title{
    padding: 0 2px 4px;
    font-size: 12px;
  }

  .searchbar--header.is-mobile-open .searchbar__field.is-active .dd-list{
    padding: 0;
    max-height: min(28vh, 240px);
  }
}

/* Inline status message (e.g., geolocation permission hints) */
.dd-hint.is-error{
  color: rgba(185,28,28,0.92);
}


/* ===== STEP23: larger place/type suggestions, calmer tappable targets ===== */
.searchbar--header [data-sb-panel="where"] .dd-item,
.searchbar--header [data-sb-panel="type"] .dd-item{
  min-height:56px;
  padding:12px 14px;
  border-radius:14px;
}
.searchbar--header [data-sb-panel="where"] .dd-item__title,
.searchbar--header [data-sb-panel="type"] .dd-item__title,
.searchbar--header [data-sb-panel="where"] .dd-item__left > span > div:first-child,
.searchbar--header [data-sb-panel="type"] .dd-item__left > span > div:first-child{
  font-size:16px;
  font-weight:850;
  line-height:1.2;
}
.searchbar--header [data-sb-panel="where"] .dd-item__meta,
.searchbar--header [data-sb-panel="type"] .dd-item__meta{
  font-size:13px;
  line-height:1.35;
}
.searchbar--header .dd-list{
  gap:6px;
}
@media (max-width: 820px){
  .searchbar--header .dd-panel{
    max-height:min(68svh, 520px);
  }
}


/* ===== STEP24: search layout polish ===== */
.search-page,
.search-page .search-shell,
.search-page .search-left,
.search-page .search-right,
.search-page .provider-grid,
.search-page .provider-card,
.search-page .provider-card__body,
.search-page .provider-card__title,
.search-page .provider-card__name,
.search-page .provider-card__meta,
.search-page .provider-card__types,
.search-page .selected-preview--map{
  min-width:0;
}

.search-page .search-shell{
  gap:22px;
  align-items:start;
}
.search-page .search-map-wrap,
.search-page .search-map{
  width:100%;
}
.search-page .search-map{
  background:#dbe4ea;
}
.search-page .provider-grid{
  align-items:stretch;
}
.search-page .provider-card{
  height:100%;
}
.search-page .provider-card__body{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:10px;
  height:100%;
}
.search-page .provider-card__top{
  align-items:flex-start;
}
.search-page .provider-card__rating{
  flex:0 0 auto;
  white-space:nowrap;
}
.search-page .provider-card__name,
.search-page .provider-card__meta,
.search-page .provider-card__types{
  overflow-wrap:anywhere;
}

.search-page .map-overlay{
  max-width:min(420px, calc(100% - 24px));
}

@media (max-width: 1100px){
  .search-page .search-shell{
    gap:16px;
  }
}

@media (max-width: 760px){
  .search-page .provider-grid,
  .search-page .provider-grid.grid--mobile-two{
    align-items:stretch;
  }
  .search-page .provider-grid.grid--mobile-two .provider-card__name{
    font-size:14px;
    line-height:1.25;
  }
  .search-page .provider-grid.grid--mobile-two .provider-card__meta,
  .search-page .provider-grid.grid--mobile-two .provider-card__types{
    font-size:12px;
    line-height:1.35;
  }
  .search-page .search-map{
    min-height:420px;
  }
}

/* Google Maps overrides */
.search-page .gm-style{ border-radius: inherit; }
.search-page .gm-style iframe + div{ border: none !important; }
.search-page .gm-bundled-control,
.search-page .gmnoprint{ margin: 10px !important; }
.search-page .gm-style .gm-style-cc{ display: none; }
.search-page .gm-style a[href^="https://maps.google.com"]{ display: none !important; }


/* Search result cleanup: community favorites + no public ratings yet */
.search-page .badge--favorite,
.search-results .badge--favorite,
body.search-page.search-page--area-category .badge--favorite{
  background: rgba(20, 24, 33, 0.94) !important;
  color: #fff !important;
  border-color: rgba(196, 139, 46, 0.44) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.search-page .provider-card.is-community,
body.search-page.search-page--area-category .provider-card.is-community{
  border-color: rgba(196, 139, 46, 0.18) !important;
  outline: none !important;
}

.search-page .provider-card__rating,
.search-page .provider-card__rating-count,
body.search-page.search-page--area-category .provider-card__rating,
body.search-page.search-page--area-category .provider-card__rating-count,
.selected-preview__rating{
  display: none !important;
}


/* --- Reviews + community favorite cards (2026-03-19) --- */
.search-page .provider-card__badges--split,
body.search-page.search-page--area-category .provider-card__badges--split{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  width:100%;
}
.search-page .provider-card__media-left,
body.search-page.search-page--area-category .provider-card__media-left{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:flex-start;
}
.search-page .provider-card__media-rating,
body.search-page.search-page--area-category .provider-card__media-rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#0e1525 !important;
  font-weight:900;
  font-size:13px;
  line-height:1;
  box-shadow:0 10px 24px rgba(11,18,32,.18);
  white-space:nowrap;
}
.search-page .provider-card__media-rating strong,
.search-page .provider-card__media-rating span,
.search-page .provider-card__media-rating-star,
body.search-page.search-page--area-category .provider-card__media-rating strong,
body.search-page.search-page--area-category .provider-card__media-rating span,
body.search-page.search-page--area-category .provider-card__media-rating-star{
  display:inline-flex;
  align-items:center;
}
.search-page .provider-card__media-rating strong,
body.search-page.search-page--area-category .provider-card__media-rating strong{
  font-weight:900;
  color:#0e1525;
}
.search-page .provider-card__media-rating-star,
body.search-page.search-page--area-category .provider-card__media-rating-star{
  color:#0e1525;
  font-size:12px;
  line-height:1;
}
.search-page .provider-card__media-rating span,
body.search-page.search-page--area-category .provider-card__media-rating span{
  color:#556276;
  font-weight:800;
  font-size:12px;
}
.search-page .provider-card.is-community .provider-card__media,
body.search-page.search-page--area-category .provider-card.is-community .provider-card__media{
  box-shadow:0 18px 42px rgba(8,18,42,.18);
}
.search-page .badge--favorite,
body.search-page.search-page--area-category .badge--favorite{
  background:rgba(20,28,47,.9) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.18) !important;
}
.search-page .provider-card__body,
body.search-page.search-page--area-category .provider-card__body{
  padding:16px 18px 18px;
}
.search-page .provider-card__name,
body.search-page.search-page--area-category .provider-card__name{
  font-size:22px;
  line-height:1.08;
}
.search-page .provider-card__meta,
body.search-page.search-page--area-category .provider-card__meta{
  font-size:14px;
  line-height:1.45;
}
@media (max-width: 720px){
  .search-page .provider-card__media-rating,
  body.search-page.search-page--area-category .provider-card__media-rating{
    padding:7px 10px;
    font-size:12px;
  }
}


/* ===== STEP24b: mobile-first simplify search + cleaner rating pills (2026-03-19) ===== */
.site-header--search .nav{
  min-height:92px;
  padding-top:12px;
  padding-bottom:12px;
}
.site-header--search .nav__search-header{
  gap:14px;
}
.search-page{
  padding-top:12px;
}
.search-top--compact{
  margin:0;
  min-height:0;
  padding:0;
}
.search-filters{
  margin-top:0;
}
.search-page .cat-strip{
  margin-top:0 !important;
  padding-top:4px;
}
.searchbar--header{
  height:64px;
  width:clamp(620px, 62vw, 1080px);
  max-width:1040px;
  border-radius:22px;
  box-shadow:0 14px 34px rgba(15,23,42,0.09);
}
.searchbar--header:hover{
  box-shadow:0 18px 42px rgba(15,23,42,0.12);
}
.searchbar--header .searchbar__field{
  padding:14px 18px;
  transition:background-color .22s cubic-bezier(.2,0,0,1), box-shadow .22s cubic-bezier(.2,0,0,1), transform .18s cubic-bezier(.2,0,0,1);
}
.searchbar--header .searchbar__control{
  font-size:15.5px;
  transition:color .18s ease, opacity .18s ease;
}
.searchbar--header .searchbar__control::placeholder{
  color:rgba(15,23,42,.48);
}
.searchbar--header .searchbar__btn--submit{
  height:46px;
  padding:0 17px;
}
.searchbar--header [data-sb-panel="where"] .dd-item,
.searchbar--header [data-sb-panel="type"] .dd-item{
  transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.searchbar--header [data-sb-panel="where"] .dd-item:hover,
.searchbar--header [data-sb-panel="type"] .dd-item:hover{
  background:rgba(15,23,42,.04);
}
.searchbar--header .dd-panel{
  box-shadow:0 28px 64px rgba(15,23,42,.20);
}
.searchbar--header .dd-hint{
  padding:8px 10px 6px 10px;
}

.search-page .provider-card__badges,
body.search-page.search-page--area-category .provider-card__badges{
  left:12px;
  right:12px;
  top:12px;
}
.search-page .provider-card__badges--split,
body.search-page.search-page--area-category .provider-card__badges--split{
  width:auto;
  min-width:0;
  gap:8px;
}
.search-page .provider-card__media-left,
body.search-page.search-page--area-category .provider-card__media-left{
  min-width:0;
  flex:1 1 auto;
  gap:7px;
}
.search-page .provider-card__media-left .badge,
body.search-page.search-page--area-category .provider-card__media-left .badge{
  max-width:100%;
}
.search-page .provider-card__media-rating,
body.search-page.search-page--area-category .provider-card__media-rating{
  margin-left:auto;
  flex:0 0 auto;
  max-width:calc(100% - 96px);
}
.search-page .provider-card__media-rating span,
body.search-page.search-page--area-category .provider-card__media-rating span{
  white-space:nowrap;
}

@media (max-width: 760px){
  .site-header--search .nav{
    min-height:84px;
    padding-top:10px;
    padding-bottom:10px;
  }
  .search-page{
    padding-top:8px;
  }
  .search-page .cat-strip{
    padding-top:0;
  }
  .searchbar--header{
    height:58px;
    border-radius:20px;
  }
  .searchbar--header .searchbar__control{
    font-size:14.5px;
  }
  .search-page .provider-card__badges,
  body.search-page.search-page--area-category .provider-card__badges{
    left:10px;
    right:10px;
    top:10px;
  }
  .search-page .provider-card__badges--split,
  body.search-page.search-page--area-category .provider-card__badges--split{
    gap:6px;
    align-items:flex-start;
  }
  .search-page .provider-card__media-left,
  body.search-page.search-page--area-category .provider-card__media-left{
    gap:6px;
  }
  .search-page .provider-card__media-left .badge,
  body.search-page.search-page--area-category .provider-card__media-left .badge{
    max-width:calc(100% - 92px);
  }
  .search-page .provider-card__media-rating,
  body.search-page.search-page--area-category .provider-card__media-rating{
    padding:6px 9px;
    font-size:11.5px;
    max-width:none;
    box-shadow:0 8px 18px rgba(11,18,32,.16);
  }
  .search-page .provider-card__media-rating span,
  body.search-page.search-page--area-category .provider-card__media-rating span{
    font-size:10.5px;
  }
}


/* ===== STEP27: mobile search rating pill stability (2026-03-21) ===== */
@media (max-width: 560px){
  .search-page .provider-card__badges,
  body.search-page.search-page--area-category .provider-card__badges{
    left:12px;
    right:12px;
  }
  .search-page .provider-card__badges--split,
  body.search-page.search-page--area-category .provider-card__badges--split{
    align-items:flex-start;
    flex-wrap:nowrap;
    gap:8px;
  }
  .search-page .provider-card__media-left,
  body.search-page.search-page--area-category .provider-card__media-left{
    flex:1 1 auto;
    min-width:0;
    max-width:calc(100% - 74px);
  }
  .search-page .provider-card__media-left .badge,
  body.search-page.search-page--area-category .provider-card__media-left .badge{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .search-page .provider-card__media-rating,
  body.search-page.search-page--area-category .provider-card__media-rating{
    margin-left:auto;
    flex:0 0 auto;
    align-self:flex-start;
    min-width:auto;
    max-width:none;
    padding:6px 8px;
    gap:4px;
    font-size:11px;
    line-height:1;
  }
  .search-page .provider-card__media-rating span,
  body.search-page.search-page--area-category .provider-card__media-rating span{
    display:none;
  }
}


/* ===== INTEGRATED from search-mobile-fix.css (2026-04-01) ===== */

/* Mobile header: bigger, bolder search pill */
@media (max-width: 760px) {
  .searchbar--header {
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    background: #fff !important;
  }

  .searchbar__mobile-open {
    gap: 10px !important;
    padding: 0 14px !important;
  }

  .searchbar__mobile-icon {
    width: 32px !important;
    height: 32px !important;
    background: #0a0a0a !important;
    border: none !important;
    border-radius: 10px !important;
  }

  .searchbar__mobile-icon img {
    filter: brightness(0) invert(1) !important;
    width: 15px !important;
    height: 15px !important;
  }

  .searchbar__mobile-title {
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .searchbar__mobile-sub {
    font-size: 12px !important;
    color: #9ca3af !important;
  }

  /* Filter pill next to searchbar */
  .filter-pill {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    background: #fff !important;
  }
}

/* Visible title */
.search-top--compact h1 {
  clip: unset !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  overflow: visible !important;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin: 0;
  padding: 0;
}

.search-top--compact {
  padding-top: 8px;
}

/* Category strip: cleaner */
.search-filters .cat-strip {
  margin-top: 10px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 2px;
}

.cat {
  border-radius: 12px !important;
  padding: 10px 14px !important;
  gap: 6px !important;
  transition: all .15s ease !important;
}

.cat.is-active {
  background: #0a0a0a !important;
  color: #fff !important;
}

.cat.is-active .cat__icon {
  filter: brightness(0) invert(1) !important;
}

.cat:not(.is-active):hover {
  background: rgba(0,0,0,0.04) !important;
}

.cat__label {
  font-weight: 700 !important;
  font-size: 13px !important;
}

.cat__icon {
  width: 18px !important;
  height: 18px !important;
  opacity: 0.7;
}

/* Results meta: cleaner */
.search-results-meta {
  padding: 10px 0 6px !important;
}

.search-results-meta__count {
  font-weight: 800 !important;
  font-size: 14px !important;
  color: #0a0a0a !important;
}

/* Mobile category strip */
@media (max-width: 760px) {
  .search-filters .cat-strip {
    margin-top: 6px !important;
    padding-bottom: 10px;
  }

  .cat {
    padding: 8px 12px !important;
  }

  .cat__label {
    font-size: 12px !important;
  }

  .cat__icon {
    width: 16px !important;
    height: 16px !important;
  }

  .search-top--compact h1 {
    font-size: 20px;
  }

  .search-results-meta {
    font-size: 13px !important;
  }
}

/* Desktop: tighter spacing when few results */
@media (min-width: 1101px) {
  .search-page.section {
    padding-top: 16px !important;
  }

  .search-top--compact {
    padding-top: 4px;
    margin-bottom: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════
   INTEGRATED MOBILE FIXES (from search-mobile-fix.css)
   ═══════════════════════════════════════════════════ */

/* ── Mobile header: bigger, bolder search pill ── */
@media (max-width: 760px) {
  .site-header--search .nav {
    min-height: 60px;
    padding: 8px 0;
  }

  .searchbar--header {
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
  }

  .searchbar__mobile-open {
    gap: 10px;
    padding: 0 14px;
  }

  .searchbar--header .searchbar__mobile-icon {
    width: 32px;
    height: 32px;
    background: #0a0a0a;
    border: none;
    border-radius: 10px;
  }

  .searchbar--header .searchbar__mobile-icon img {
    filter: brightness(0) invert(1);
    width: 15px;
    height: 15px;
  }

  .searchbar--header .searchbar__mobile-title {
    font-size: 15px;
    font-weight: 800;
  }

  .searchbar--header .searchbar__mobile-sub {
    font-size: 12px;
    color: #9ca3af;
  }

  /* Filter pill next to searchbar */
  .filter-pill {
    height: 48px;
    width: 48px;
    min-width: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
  }
}

/* ── Search page body: visible title + cleaner filters ── */
.search-top--compact h1 {
  clip: unset;
  width: auto;
  height: auto;
  position: static;
  overflow: visible;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin: 0;
  padding: 0;
}

.search-top--compact {
  padding-top: 8px;
}

/* ── Category strip: cleaner ── */
.search-filters .cat-strip {
  margin-top: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 2px;
}

.search-page .cat {
  border-radius: 12px;
  padding: 10px 14px;
  gap: 6px;
  transition: all .15s ease;
}

.search-page .cat.is-active {
  background: #0a0a0a;
  color: #fff;
}

.search-page .cat.is-active .cat__icon {
  filter: brightness(0) invert(1);
}

.search-page .cat:not(.is-active):hover {
  background: rgba(0,0,0,0.04);
}

.search-page .cat__label {
  font-weight: 700;
  font-size: 13px;
}

.search-page .cat__icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}



/* ── Results meta: cleaner ── */
.search-results-meta {
  padding: 10px 0 6px;
}

.search-results-meta__count {
  font-weight: 800;
  font-size: 14px;
  color: #0a0a0a;
}

/* ── Mobile category strip ── */
@media (max-width: 760px) {
  .search-filters .cat-strip {
    margin-top: 6px;
    padding-bottom: 10px;
  }

  .search-page .cat {
    padding: 8px 12px;
  }

  .search-page .cat__label {
    font-size: 12px;
  }

  .search-page .cat__icon {
    width: 16px;
    height: 16px;
  }

  .search-top--compact h1 {
    font-size: 20px;
  }

  .search-results-meta {
    font-size: 13px;
  }
}

/* ── Desktop: tighter spacing when few results ── */
@media (min-width: 1101px) {
  .search-page.section {
    padding-top: 16px;
  }

  .search-top--compact {
    padding-top: 4px;
    margin-bottom: 0;
  }
}

/* ── Fix: search dropdown must be above map ── */
.site-header .dd-panel{
  z-index:3100 !important;
}
.searchbar--header.is-mobile-open .dd-panel{
  position:static !important;
  z-index:auto !important;
  box-shadow:none !important;
  border:none !important;
  max-height:none !important;
}
