/* ============================================================
   Page /services2 — variante type marketplace avec carte
   ============================================================ */

body.page-services2 {
  background: #fff;
}

body.page-services2 .sv2-page-root {
  --sv2-border: #dddddd;
  --sv2-muted: #717171;
  --sv2-text: #222222;
  --sv2-soft: #f7f7f7;
  --sv2-brand: #034AAA;
  --sv2-radius: 18px;
  --sv2-mobile-bottom-nav-height: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  color: var(--sv2-text);
  background: #fff;
}

body.page-services2 .sv2-page-wrap {
  min-height: calc(100vh - var(--site-header-height, 88px));
  padding-bottom: 0;
}

/* Hero + recherche */
body.page-services2 .sv2-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 32px;
  display: grid;
  grid-template-columns: max-content minmax(520px, 720px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
}

body.page-services2 .sv2-hero-copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

body.page-services2 .sv2-eyebrow {
  margin: 0;
  color: var(--sv2-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-services2 .sv2-hero h1 {
  margin: 0;
  color: var(--sv2-text);
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body.page-services2 .sv2-search-card {
  min-height: 62px;
  padding: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(128px, 160px) auto;
  align-items: center;
  gap: 0;
  border: 1px solid var(--sv2-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

body.page-services2 .sv2-search-field,
body.page-services2 .sv2-sort-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
}

body.page-services2 .sv2-search-field {
  max-width: none;
}

body.page-services2 .sv2-search-label {
  display: block;
  margin: 0 0 3px;
  color: var(--sv2-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

body.page-services2 .sv-search-icon {
  left: 16px;
  top: 34px;
  color: var(--sv2-muted);
}

body.page-services2 .sv2-search-field input {
  height: 24px;
  padding: 0 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sv2-text);
  font-size: 14px;
}

body.page-services2 .sv2-search-field input:focus {
  background: transparent;
  box-shadow: none;
}

body.page-services2 .sv2-search-field input::placeholder {
  color: var(--sv2-muted);
}

body.page-services2 .sv2-search-divider {
  width: 1px;
  height: 34px;
  background: var(--sv2-border);
}

body.page-services2 .sv2-sort-field .sv-sort {
  width: 100%;
  max-width: none;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sv2-muted);
  font-size: 14px;
}

body.page-services2 .sv2-locate {
  width: 50px;
  height: 50px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--sv2-brand);
  color: #fff;
  font-size: 17px;
}

body.page-services2 .sv2-locate span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.page-services2 .sv-search-dd {
  left: 18px;
  right: 18px;
  top: calc(100% + 8px);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* Catégories */
body.page-services2 .sv2-categories-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  max-width: none;
  padding: 0 32px;
  border-top: 1px solid var(--sv2-border);
  border-bottom: 1px solid var(--sv2-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-services2 .sv2-categories-bar .sv-hscroll-wrap {
  max-width: 1440px;
  margin: 0 auto;
}
body.page-services2 .sv2-categories-bar .sv-cat-scroll {
  padding: 12px 0 10px;
}
body.page-services2 .sv2-subcat-bar .sv-hscroll-wrap {
  max-width: 1440px;
  margin: 0 auto;
}

body.page-services2 .sv-cat.sv-cat--chip {
  min-height: 44px;
  padding: 8px 15px;
  border-color: transparent;
  background: #fff;
  color: var(--sv2-text);
}

body.page-services2 .sv-cat.sv-cat--chip:hover {
  border-color: var(--sv2-border);
  background: var(--sv2-soft);
}

body.page-services2 .sv-cat.sv-cat--chip.on {
  background: #222;
  border-color: #222;
  box-shadow: none;
}

body.page-services2 .sv2-subcat-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 12px;
  border-top: 1px dashed var(--sv2-border);
}

body.page-services2 .sv-subcat-kicker {
  margin: 8px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sv-g400, #6b7280);
}

body.page-services2 .sv-subcat-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 6px;
}
body.page-services2 .sv-subcat-scroll::-webkit-scrollbar { display: none; }

body.page-services2 .sv-subcat-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 2px;
}

body.page-services2 .sv-subcat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--sv2-border);
  background: #fff;
  color: var(--sv2-text);
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

body.page-services2 .sv-subcat:hover {
  border-color: #2a6fcc;
  background: var(--sv2-soft);
}

body.page-services2 .sv-subcat.on {
  background: #2a6fcc;
  border-color: #2a6fcc;
  color: #fff;
}

body.page-services2 .sv-subcat-count {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Layout principal */
body.page-services2 .sv2-main-stage {
  background: #fff;
}

body.page-services2 .sv2-layout {
  max-width: none;
  width: 100%;
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(560px, 58%) minmax(380px, 42%);
  align-items: stretch;
  border-bottom: 1px solid var(--sv2-border);
}

body.page-services2 .sv2-results-pane,
body.page-services2 .sv2-map-pane {
  height: calc(100vh - var(--site-header-height, 88px) - 118px) !important;
  min-height: 580px !important;
  max-height: none !important;
}

@supports (height: 100dvh) {
  body.page-services2 .sv2-results-pane,
  body.page-services2 .sv2-map-pane {
    height: calc(100dvh - var(--site-header-height, 88px) - 118px) !important;
  }
}

body.page-services2 .sv2-results-pane {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--sv2-border);
  background: #fff;
}

body.page-services2 .sv2-panel-hd {
  padding: 22px 32px 14px;
  border-bottom: 0;
}

body.page-services2 .sv2-results-kicker {
  margin: 0 0 4px;
  color: var(--sv2-muted);
  font-size: 13px;
  font-weight: 600;
}

body.page-services2 .sv2-panel-hd h2 {
  margin: 0;
  color: var(--sv2-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.page-services2 .sv2-panel-hd h2 em {
  color: inherit;
  font-style: normal;
}

body.page-services2 .sv2-panel-hd .sv-panel-sub {
  margin-top: 5px;
  color: var(--sv2-muted);
  font-size: 13px;
}

body.page-services2 #sv-locate-feedback {
  padding: 0 32px 8px;
}

body.page-services2 .sv2-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 10px 32px 32px;
  border-top: 0;
  background: #fff;
}

body.page-services2 .sv-empty {
  grid-column: 1 / -1;
}

body.page-services2 .sv2-list > .text-center {
  grid-column: 1 / -1;
}

/* Cartes de résultat façon Airbnb */
body.page-services2 .sv-pro.sv-pro--rail {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-services2 .sv-pro.sv-pro--rail:hover {
  transform: none;
  box-shadow: none;
}

body.page-services2 .sv-pro.sv-pro--rail.sel {
  background: transparent;
  box-shadow: none;
}

body.page-services2 .sv-pro.sv-pro--rail::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 18px;
  background: transparent;
  transition: background 0.16s ease;
}

body.page-services2 .sv-pro.sv-pro--rail:hover::after,
body.page-services2 .sv-pro.sv-pro--rail.sel::after {
  background: var(--sv2-soft);
}

/* Carte mise en avant — contour certifié discret */
body.page-services2 .sv-pro.sv-pro--boost.sv-pro--rail {
  border-radius: calc(var(--sv2-radius) + 2px);
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.32),
    0 0 0 1px rgba(29, 155, 240, 0.12),
    0 4px 14px rgba(29, 155, 240, 0.08);
  background: #fff;
}

body.page-services2 .sv-pro.sv-pro--boost.sv-pro--rail.sel {
  box-shadow:
    inset 0 0 0 1px rgba(29, 155, 240, 0.42),
    0 0 0 1px rgba(29, 155, 240, 0.18),
    0 4px 16px rgba(29, 155, 240, 0.1);
}

body.page-services2 .sv-pro.sv-pro--boost.sv-pro--rail .sv-pro-media,
body.page-services2 .sv-pro.sv-pro--boost.sv-pro--rail .sv-pro-avatar {
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.18);
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-media,
body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar {
  width: 100%;
  height: clamp(170px, 18vw, 240px);
  border-radius: var(--sv2-radius);
  box-shadow: none;
  background: linear-gradient(135deg, #edf3fb, #f8fbff);
  padding: 18px 22px;
  box-sizing: border-box;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-thumb {
  object-fit: contain;
  object-position: center;
  transition: transform 0.28s ease;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar {
  color: var(--sv2-brand);
  border: 1px solid var(--sv2-border);
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar .sv-ico,
body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar svg {
  width: 54px;
  height: 54px;
  stroke: currentColor;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar--affiliate {
  background: #fff;
  color: #034AAA;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-affiliate-logo-mark {
  font-size: 34px;
}

body.page-services2 .sv-pro.sv-pro--rail:hover .sv-pro-thumb {
  transform: scale(1.04);
}

body.page-services2 .sv-pro-body {
  padding-top: 12px;
}

body.page-services2 .sv-pro-row1 {
  align-items: flex-start;
}

body.page-services2 .sv-pro-name {
  color: var(--sv2-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

body.page-services2 .sv-pro-dist {
  color: var(--sv2-text);
  font-size: 13px;
  font-weight: 600;
}

body.page-services2 .sv-pro-row2 {
  margin-top: 6px;
  gap: 6px;
}

body.page-services2 .sv-pro-type {
  padding: 0;
  background: transparent;
  color: var(--sv2-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

body.page-services2 .sv-pro-rating {
  margin-left: auto;
  color: var(--sv2-text);
  font-size: 13px;
}

body.page-services2 .sv-pro-star {
  color: #222;
}

body.page-services2 .sv-pro-city {
  flex-basis: 100%;
  color: var(--sv2-muted);
  font-size: 13px;
}

body.page-services2 .sv-pro-desc {
  margin-top: 6px;
  color: var(--sv2-muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-desc {
  display: -webkit-box;
}

body.page-services2 .sv-pills {
  display: flex !important;
  margin-top: 8px;
  gap: 6px;
}

body.page-services2 .sv-pill {
  border: 1px solid var(--sv2-border);
  background: #fff;
  color: var(--sv2-text);
  font-size: 11px;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-card-gallery {
  box-shadow: none;
  background: #101828;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-card-gallery .sv-card-gallery-img {
  object-fit: cover;
}

body.page-services2 .sv-pro.sv-pro--boost.sv-pro--rail .sv-pro-card-gallery {
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.18);
}

body.page-services2 .sv-pro-media-wrap:has(.sv-pro-card-gallery) {
  width: 100%;
}

body.page-services2 .sv-pro.sv-pro--rail .sv-pro-media-wrap .sv-pro-card-gallery {
  width: 100%;
}

body.page-services2 .sv-pro-media-wrap {
  width: 100%;
}

body.page-services2 .sv-verified-badge--corner {
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 2.5px #fff, 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.page-services2 .sv-pro-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

body.page-services2 .sv-btn-profil {
  height: 36px;
  border-radius: 10px;
  background: #222;
  font-size: 13px;
}

body.page-services2 .sv-btn-profil:hover {
  background: #000;
}

body.page-services2 .sv-btn-tel {
  height: 36px;
  border-color: var(--sv2-border);
  border-radius: 10px;
  background: #fff;
  color: var(--sv2-text);
  font-size: 13px;
}

/* Carte */
body.page-services2 .sv2-map-pane {
  position: sticky !important;
  top: 0 !important;
  margin: 16px 16px 16px 0;
  border: 1px solid var(--sv2-border);
  border-radius: 24px;
  background: #e9eef5;
  overflow: hidden;
}

body.page-services2 .sv-map-panel,
body.page-services2 #sv-map {
  border-radius: inherit;
}

body.page-services2 #sv-map .leaflet-tile-pane {
  filter: grayscale(0.2) saturate(1.05) brightness(1.02);
}

body.page-services2 #sv-map .leaflet-control-attribution {
  display: none !important;
}

body.page-services2 .sv-map-wrap--booting #sv-map {
  visibility: hidden;
}

body.page-services2 .sv2-map-cta {
  bottom: 24px;
  left: 24px;
  max-width: 260px;
  border-radius: 18px;
  background: #222;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.page-services2 .sv2-map-cta .sv-map-cta-btn {
  min-height: 38px;
  font-size: 13px;
  border-radius: 11px;
}

body.page-services2 .sv-map-locate-btn {
  bottom: 24px;
  right: 24px;
  border-radius: 50%;
}

body.page-services2 .sv-list-scroll-btn--up {
  top: 86px;
}

body.page-services2 .sv2-map-list-fab {
  display: none;
}

/* Tablette */
@media (max-width: 1199.98px) and (min-width: 992px) {
  body.page-services2 .sv2-layout {
    grid-template-columns: minmax(480px, 56%) minmax(360px, 44%);
  }

  body.page-services2 .sv2-list {
    grid-template-columns: 1fr;
  }

  body.page-services2 .sv-pro.sv-pro--rail .sv-pro-media,
  body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar {
    height: 220px;
  }
}

/* Mobile : liste pleine largeur, carte en tiroir comme Airbnb */
@media (max-width: 991.98px) {
  body.page-services2 .sv2-page-wrap {
    padding-bottom: 5.5rem;
  }

  body.page-services2 .sv2-hero {
    padding: 12px 14px 10px;
    display: block;
  }

  body.page-services2 .sv2-hero-copy {
    display: block;
    margin-bottom: 10px;
    white-space: normal;
  }

  body.page-services2 .sv2-eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
  }

  body.page-services2 .sv2-hero h1 {
    font-size: 1.45rem;
  }

  body.page-services2 .sv2-search-card {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 999px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12);
  }

  body.page-services2 .sv2-search-divider,
  body.page-services2 .sv2-sort-field {
    display: none;
  }

  body.page-services2 .sv2-search-field {
    height: 46px;
    padding: 0 14px;
  }

  body.page-services2 .sv2-search-label {
    font-size: 10px;
  }

  body.page-services2 .sv-search-icon {
    left: 14px;
    top: 32px;
  }

  body.page-services2 .sv2-search-field input {
    font-size: 13px;
  }

  body.page-services2 .sv2-locate {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  body.page-services2 .sv2-categories-bar {
    top: 0;
    padding: 0 12px;
  }

  body.page-services2 .sv2-categories-bar .sv-cat-scroll {
    padding: 8px 0;
  }
  body.page-services2 .sv-hscroll-wrap--scrollable::before,
  body.page-services2 .sv-hscroll-wrap--scrollable::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.96) 30%, transparent);
  }
  body.page-services2 .sv-hscroll-wrap--scrollable::after {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 30%, transparent);
  }

  body.page-services2 .sv-cat.sv-cat--chip {
    min-height: 38px;
    padding: 7px 12px;
  }

  body.page-services2 .sv2-layout {
    display: flex;
    flex-direction: column;
    border-bottom: 0;
  }

  body.page-services2 .sv2-results-pane {
    height: auto !important;
    min-height: 0 !important;
    border: 0;
  }

  body.page-services2 .sv2-panel-hd {
    padding: 16px 16px 8px;
  }

  body.page-services2 .sv2-panel-hd h2 {
    font-size: 18px;
  }

  body.page-services2 .sv2-list {
    display: flex;
    max-height: none;
    overflow: visible;
    gap: 24px;
    padding: 8px 16px 24px;
  }

  body.page-services2 .sv-pro.sv-pro--rail {
    border-bottom: 0;
  }

  body.page-services2 .sv-pro.sv-pro--rail .sv-pro-media,
  body.page-services2 .sv-pro.sv-pro--rail .sv-pro-avatar {
    height: clamp(210px, 62vw, 320px);
  }

  body.page-services2 .sv-pro-name {
    font-size: 15px;
  }

  body.page-services2 .sv-pro-row2,
  body.page-services2 .sv-pro-desc,
  body.page-services2 .sv-pill {
    font-size: 12px;
  }

  body.page-services2 .sv-pro-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.page-services2 .sv2-map-pane {
    position: fixed !important;
    inset: var(--site-header-height, 68px) 0 var(--sv2-mobile-bottom-nav-height) 0 !important;
    top: var(--site-header-height, 68px) !important;
    right: 0 !important;
    bottom: var(--sv2-mobile-bottom-nav-height) !important;
    left: 0 !important;
    margin: 0;
    height: auto !important;
    min-height: 0 !important;
    border: 0;
    border-radius: 0;
    z-index: 1020;
  }

  @supports (height: 100dvh) {
    body.page-services2 .sv2-map-pane {
      height: calc(100dvh - var(--site-header-height, 68px) - var(--sv2-mobile-bottom-nav-height)) !important;
      max-height: calc(100dvh - var(--site-header-height, 68px) - var(--sv2-mobile-bottom-nav-height)) !important;
    }
  }

  body.page-services2 .sv2-map-pane .sv-map-panel,
  body.page-services2 .sv2-map-pane #sv-map {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.page-services2 .sv2-map-list-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    width: auto;
    min-width: 132px;
    height: 44px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }

  body.page-services2 .sv2-map-list-btn i {
    font-size: 13px;
  }

  body.page-services2.sv-map-drawer-active .sv2-map-list-fab {
    position: fixed;
    top: calc(var(--site-header-height, 68px) + env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    z-index: 3000;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 132px;
    height: 44px;
    padding: 0 16px;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  }

  body.page-services2 .sv2-map-fab {
    left: 50%;
    right: auto;
    bottom: calc(var(--sv2-mobile-bottom-nav-height) + 14px);
    transform: translateX(-50%);
    background: #222;
  }
}

@media (max-width: 575.98px) {
  body.page-services2 .sv2-hero {
    padding-top: 10px;
  }

  body.page-services2 .sv2-panel-hd {
    padding-top: 14px;
  }

  body.page-services2 .sv2-list {
    padding-left: 12px;
    padding-right: 12px;
  }
}
