/**
 * Mart-io Marketplace — composants UI (maquettes Figma HF §2)
 * Style Apple-like : Plus Jakarta Sans, surfaces claires, cartes arrondies.
 */
:root {
  --mp-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mp-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mp-color-primary: #0a2540;
  --mp-color-accent: #007aff;
  --mp-color-rating-star: #f5c542;
  --mp-color-surface: #ffffff;
  --mp-color-surface-muted: #f5f5f7;
  --mp-color-partner: #34c759;
  --mp-color-partner-muted: #e8f8ec;
  --mp-color-text: #1d1d1f;
  --mp-color-text-secondary: #6e6e73;
  --mp-color-border: #d2d2d7;
  --mp-radius-card: 12px;
  --mp-radius-sheet: 20px;
  --mp-radius-pill: 999px;
  --mp-radius-button: 10px;
  --mp-space-unit: 8px;
  --mp-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --mp-max-content: 1200px;
  --mp-max-content-wide: 1200px;
  --mp-font-size-body: 16px;
  --mp-font-size-secondary: 16px;
  --mp-hero-gradient: linear-gradient(135deg, #1a4a6e 0%, #0a2540 100%);
  --mp-hero-overlay: linear-gradient(180deg, rgba(10, 37, 64, 0.82) 0%, rgba(10, 37, 64, 0.94) 100%);
  --mp-footer-gradient: linear-gradient(90deg, #1a4a6e 0%, #0a2540 100%);
  --mp-footer-overlay: linear-gradient(180deg, rgba(10, 37, 64, 0.88) 0%, rgba(10, 37, 64, 0.96) 100%);
}

/* ——— Base ——— */
.qmp-martio-ui,
.qmp-page {
  font-family: var(--mp-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--mp-color-text, #1d1d1f);
  -webkit-font-smoothing: antialiased;
}

/* ——— Boutons ——— */
.qmp-btn-primary,
.btn.qmp-btn-primary {
  display: inline-block;
  background: var(--mp-color-accent, #007aff);
  color: #fff !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--mp-radius-button, 10px);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

.qmp-btn-primary:hover,
.btn.qmp-btn-primary:hover {
  background: #0066d6;
  color: #fff !important;
  text-decoration: none;
}

.qmp-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--mp-color-primary, #0a2540);
  border: 1px solid var(--mp-color-border, #d2d2d7);
  padding: 10px 20px;
  border-radius: var(--mp-radius-button, 10px);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.qmp-btn-search {
  background: var(--mp-color-accent, #007aff);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ——— Badge partenaire ——— */
.qmp-partner-badge,
.badge-partner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mp-color-partner-muted, #e8f8ec);
  color: #1a7a34;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--mp-radius-pill, 999px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.qmp-partner-badge::before,
.badge-partner::before {
  content: "✓";
  font-size: 10px;
}

.qmp-partner-badge-lg {
  font-size: 0.85rem;
  padding: 6px 14px;
}

/* ——— Search hero ——— */
.qmp-search-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--mp-shadow-card, 0 2px 16px rgba(0, 0, 0, 0.08));
}

.qmp-search-hero-field {
  flex: 1 1 0;
  min-width: 140px;
  padding: 12px 16px;
  border-right: 1px solid var(--mp-color-border, #d2d2d7);
}

.qmp-search-hero-field:last-of-type {
  border-right: none;
}

.qmp-search-hero,
.qmp-search-hero *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]):not(svg):not(path) {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.qmp-search-hero-field label {
  display: block;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 11px;
  font-weight: 600;
  color: var(--mp-color-text-secondary, #6e6e73);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-right: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qmp-search-hero-field input,
.qmp-search-hero-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-color-text, #1d1d1f);
  padding: 0;
  outline: none;
  font-family: inherit;
}

.qmp-search-hero-field select {
  padding-right: 1.75rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236e6e73' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  background-size: 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qmp-search-hero-action {
  display: flex;
  align-items: center;
  padding: 4px;
}

/* ——— City picker Apple-like ——— */
.qmp-city-picker {
  position: relative;
  text-align: left;
}

.qmp-city-picker select.qmp-city-picker-select,
.qmp-city-picker select.qmp-apple-picker-select,
.qmp-city-picker #qmp-hub-destination,
.qmp-city-picker #qmp-hub-type,
.qmp-city-picker #qmp-zone,
.qmp-city-picker #qmp-quartier,
.qmp-city-picker #qmp_id_quartier,
.qmp-city-picker #qmp-accommodation-type {
  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;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.qmp-city-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-color-text, #1d1d1f);
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.qmp-city-picker__trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.qmp-city-picker__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qmp-city-picker__trigger .qmp-apple-picker__icon,
.qmp-city-picker__trigger .qmp-city-picker__pin {
  flex-shrink: 0;
  color: var(--mp-color-accent, #007aff);
}

.qmp-city-picker__trigger:focus,
.qmp-city-picker__trigger:focus-visible {
  outline: none;
  box-shadow: none;
}

.qmp-city-picker.is-open .qmp-city-picker__trigger,
.qmp-search-hero-field:focus-within {
  outline: none;
}

.qmp-city-picker__value.is-placeholder {
  color: var(--mp-color-text-secondary, #6e6e73);
  font-weight: 500;
}

.qmp-city-picker__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236e6e73' d='M0 0h10L5 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.qmp-city-picker.is-open .qmp-city-picker__chevron {
  transform: rotate(180deg);
}

.qmp-city-picker__list {
  position: fixed;
  z-index: 5000;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  box-sizing: border-box;
  /* Firefox : invisible par défaut, visible au survol / scroll */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.qmp-city-picker__list:hover,
.qmp-city-picker__list.is-scrolling {
  scrollbar-color: rgba(60, 60, 67, 0.28) transparent;
}

/* Scrollbar masquée tant qu’on ne survole / scroll pas (WebKit) */
.qmp-city-picker__list::-webkit-scrollbar {
  width: 6px;
}

.qmp-city-picker__list::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.qmp-city-picker__list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.qmp-city-picker__list:hover::-webkit-scrollbar-thumb,
.qmp-city-picker__list.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 67, 0.28);
}

.qmp-city-picker__list:hover::-webkit-scrollbar-thumb:hover,
.qmp-city-picker__list.is-scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 60, 67, 0.42);
}

.qmp-city-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  margin: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-color-text, #1d1d1f);
  cursor: pointer;
  transition: background 0.12s ease;
}

.qmp-city-picker__option:hover,
.qmp-city-picker__option:focus {
  background: rgba(0, 0, 0, 0.05);
}

.qmp-city-picker__option[aria-selected="true"]:not(.qmp-city-picker__option--placeholder) {
  background: rgba(0, 122, 255, 0.1);
  color: var(--mp-color-accent, #007aff);
}

.qmp-city-picker__option--placeholder {
  color: var(--mp-color-text-secondary, #6e6e73);
  font-weight: 500;
}

.qmp-city-picker__option--placeholder[aria-selected="true"] {
  background: rgba(0, 0, 0, 0.04);
  color: var(--mp-color-text-secondary, #6e6e73);
}

.qmp-city-picker__pin,
.qmp-apple-picker__icon {
  flex-shrink: 0;
  color: var(--mp-color-accent, #007aff);
  opacity: 0.9;
}

.qmp-city-picker__option--placeholder .qmp-city-picker__pin,
.qmp-city-picker__option--placeholder .qmp-apple-picker__icon {
  display: none;
}

.qmp-city-picker__option--all .qmp-apple-picker__icon {
  color: var(--mp-color-text-secondary, #6e6e73);
}

/* Focus soft — pas d’encadré / fond bleu sur le champ */
.qmp-search-hero input:focus,
.qmp-search-hero input:focus-visible,
.qmp-search-hero select:focus,
.qmp-search-hero select:focus-visible,
.qmp-search-hero .qmp-city-picker__trigger:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.qmp-search-hero-field:focus-within,
.qmp-city-picker.is-open {
  background: transparent;
  border-radius: 0;
}

/* ——— Date picker Apple-like ——— */
.qmp-date-picker {
  position: relative;
  text-align: left;
}

.qmp-date-picker input[type="date"].qmp-date-picker-input,
.qmp-date-picker #qmp-hub-from,
.qmp-date-picker #qmp-hub-to,
.qmp-date-picker #qmp_date_from,
.qmp-date-picker #qmp_date_to {
  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;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.qmp-date-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-color-text, #1d1d1f);
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.qmp-date-picker__trigger:focus,
.qmp-date-picker__trigger:focus-visible {
  outline: none;
  box-shadow: none;
}

.qmp-date-picker__value.is-placeholder {
  color: var(--mp-color-text-secondary, #6e6e73);
  font-weight: 500;
}

.qmp-date-picker__chevron {
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236e6e73' d='M0 0h10L5 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.qmp-date-picker.is-open .qmp-date-picker__chevron {
  transform: rotate(180deg);
}

.qmp-date-picker__panel {
  position: fixed;
  z-index: 10050;
  box-sizing: border-box;
  padding: 14px 14px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mp-color-text, #1d1d1f);
  user-select: none;
  overscroll-behavior: contain;
  /* Même scrollbar fine que la liste des zones (hub) */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.qmp-date-picker__panel:hover,
.qmp-date-picker__panel.is-scrolling {
  scrollbar-color: rgba(60, 60, 67, 0.28) transparent;
}

.qmp-date-picker__panel::-webkit-scrollbar {
  width: 6px;
}

.qmp-date-picker__panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.qmp-date-picker__panel::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.qmp-date-picker__panel:hover::-webkit-scrollbar-thumb,
.qmp-date-picker__panel.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(60, 60, 67, 0.28);
}

.qmp-date-picker__panel:hover::-webkit-scrollbar-thumb:hover,
.qmp-date-picker__panel.is-scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(60, 60, 67, 0.42);
}

.qmp-date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.qmp-date-picker__month {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}

.qmp-date-picker__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--mp-color-accent, #007aff);
  cursor: pointer;
  transition: background 0.15s ease;
}

.qmp-date-picker__nav:hover {
  background: rgba(0, 122, 255, 0.12);
}

.qmp-date-picker__nav:active {
  background: rgba(0, 122, 255, 0.18);
}

.qmp-date-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.qmp-date-picker__weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--mp-color-text-secondary, #6e6e73);
  line-height: 28px;
}

.qmp-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.qmp-date-picker__cell.is-empty {
  height: 40px;
}

.qmp-date-picker__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--mp-color-text, #1d1d1f);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.qmp-date-picker__day:hover:not(:disabled):not(.is-selected) {
  background: rgba(0, 0, 0, 0.06);
}

.qmp-date-picker__day.is-today:not(.is-selected) {
  color: var(--mp-color-accent, #007aff);
  font-weight: 600;
}

.qmp-date-picker__day.is-today:not(.is-selected)::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 122, 255, 0.35);
  pointer-events: none;
}

.qmp-date-picker__day.is-in-range {
  background: rgba(0, 122, 255, 0.1);
  border-radius: 0;
}

.qmp-date-picker__day.is-selected {
  background: var(--mp-color-accent, #007aff) !important;
  color: #fff !important;
  border-radius: 50%;
  font-weight: 600;
  z-index: 1;
}

.qmp-date-picker__day.is-selected.is-range-start:not(.is-range-end) {
  border-radius: 50% 0 0 50%;
}

.qmp-date-picker__day.is-selected.is-range-end:not(.is-range-start) {
  border-radius: 0 50% 50% 0;
}

.qmp-date-picker__day.is-disabled,
.qmp-date-picker__day:disabled {
  color: rgba(60, 60, 67, 0.28);
  cursor: default;
  background: transparent;
}

.qmp-date-picker__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 4px;
}

.qmp-date-picker__clear {
  margin: 0;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--mp-color-accent, #007aff);
  cursor: pointer;
}

.qmp-date-picker__clear:hover {
  background: rgba(0, 122, 255, 0.08);
}

.qmp-search-hero .qmp-date-picker__trigger:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.qmp-date-picker.is-open {
  background: transparent;
  border-radius: 0;
}

/* ——— Hub hero ——— */
body.qmp-hub-page .qmp-hero-hub {
  margin-top: 0;
  /* Place pour la barre glass flottante + contenu lisible */
  padding-top: 100px;
}

.qmp-hero-hub {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0a2540;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 122, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(26, 74, 110, 0.55), transparent 50%),
    linear-gradient(160deg, #0c2f52 0%, #0a2540 42%, #071a2e 100%);
  background-size: cover;
  color: #fff;
  padding: 40px 24px 48px;
  text-align: center;
  margin: 0;
  animation: qmp-hero-in 0.7s ease-out both;
}

.qmp-hero-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0 80h160M80 0v160'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.qmp-hero-hub > * {
  position: relative;
  z-index: 1;
}

.qmp-hero-hub,
.qmp-hero-hub *:not(.icon):not([class^="icon-"]):not([class*=" icon-"]):not(.fa):not([class^="fa-"]) {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.qmp-hero-hub h1 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .qmp-hero-hub h1 {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
    white-space: nowrap;
  }
}

.qmp-hero-hub .qmp-hero-lead {
  max-width: 34rem;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 1;
  color: rgba(255, 255, 255, 0.78);
}

.qmp-hero-hub .qmp-search-hero {
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: qmp-rise-in 0.75s ease-out 0.12s both;
  flex-wrap: nowrap;
}

.qmp-name-search-field {
  flex: 1.2 1 150px;
  min-width: 150px;
}

.qmp-name-search-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qmp-name-search-icon {
  flex-shrink: 0;
  color: var(--mp-color-accent, #007aff);
  opacity: 0.9;
}

.qmp-name-search-field input {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qmp-name-search-field input::-webkit-search-decoration,
.qmp-name-search-field input::-webkit-search-cancel-button,
.qmp-name-search-field input::-webkit-search-results-button,
.qmp-name-search-field input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.qmp-search-hero .qmp-city-picker-field {
  flex: 1.1 1 140px;
  min-width: 140px;
}

.qmp-search-hero .qmp-type-picker-field {
  flex: 0.9 1 110px;
  min-width: 110px;
}

#qmp-zone .qmp-search-hero {
  max-width: 980px;
  flex-wrap: nowrap;
}

/* Cartes destinations — animation légère à l’apparition */
body.qmp-hub-page .qmp-dest-card {
  animation: qmp-rise-in 0.6s ease-out both;
}

body.qmp-hub-page .qmp-dest-card:nth-child(1) { animation-delay: 0.05s; }
body.qmp-hub-page .qmp-dest-card:nth-child(2) { animation-delay: 0.1s; }
body.qmp-hub-page .qmp-dest-card:nth-child(3) { animation-delay: 0.15s; }
body.qmp-hub-page .qmp-dest-card:nth-child(4) { animation-delay: 0.2s; }
body.qmp-hub-page .qmp-dest-card:nth-child(5) { animation-delay: 0.25s; }
body.qmp-hub-page .qmp-dest-card:nth-child(6) { animation-delay: 0.3s; }

body.qmp-hub-page .qmp-dest-card:hover {
  transform: translateY(-3px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.qmp-hub-page .qmp-dest-card-thumb-img {
  transition: transform 0.45s ease;
}

body.qmp-hub-page .qmp-dest-card:hover .qmp-dest-card-thumb-img {
  transform: scale(1.04);
}

@keyframes qmp-hero-in {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes qmp-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qmp-hero-hub,
  .qmp-hero-hub .qmp-search-hero,
  body.qmp-hub-page .qmp-dest-card {
    animation: none !important;
  }

  body.qmp-hub-page .qmp-dest-card:hover .qmp-dest-card-thumb-img {
    transform: none;
  }
}

/* ——— Sections ——— */
.qmp-section {
  padding: 48px 24px;
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
}

.qmp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-section-muted {
  background: var(--mp-color-surface-muted, #f5f5f7);
  max-width: 100%;
}

.qmp-trust-grid {
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  padding: 48px 24px;
}

.qmp-trust-grid strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-trust-grid p {
  font-size: 16px;
  color: var(--mp-color-text-secondary, #6e6e73);
  margin: 0;
  line-height: 1.5;
}

/* ——— Destinations grid ——— */
.qmp-grid-dest {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.qmp-dest-card {
  display: block;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qmp-dest-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

/* Pas de contour noir / bleu au clic ou au focus */
.qmp-dest-card:focus,
.qmp-dest-card:focus-visible,
.qmp-dest-card:active,
.qmp-dest-card:focus-within {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
}

.qmp-dest-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--mp-radius-card, 12px);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.25) 0%, var(--mp-color-primary, #0a2540) 100%);
}

.qmp-dest-card-thumb.has-cover {
  background: var(--mp-color-primary, #0a2540);
}

.qmp-dest-card-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.qmp-dest-card-info {
  padding: 12px 2px 0;
  background: transparent;
  border: none;
}

.qmp-dest-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-dest-card-info span {
  font-size: 13px;
  color: var(--mp-color-text-secondary, #6e6e73);
}

/* ——— Hotel card (catalogue) ——— */
.qmp-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.qmp-listing-card,
.qmp-hotel-card {
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  transition: transform 0.15s ease;
}

.qmp-listing-card:hover,
.qmp-hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.qmp-listing-card:focus,
.qmp-listing-card:focus-visible,
.qmp-listing-card:active,
.qmp-listing-card:focus-within,
.qmp-hotel-card:focus,
.qmp-hotel-card:focus-visible,
.qmp-hotel-card:active,
.qmp-hotel-card:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
}

.qmp-listing-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--mp-radius-card, 12px);
  background: var(--mp-color-surface-muted, #f5f5f7);
}

.qmp-listing-card-media--notice {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: linear-gradient(160deg, #eef1f4 0%, #e4e8ed 100%);
  box-sizing: border-box;
}

.qmp-listing-card-cover-notice {
  margin: 0;
  max-width: 28em;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: #3a3a3c;
  text-align: center;
}

.qmp-listing-card-cover-notice .qmp-cover-notice-cta,
.qmp-room-cover-notice__text .qmp-cover-notice-cta {
  color: #007aff;
  font-weight: 600;
  text-decoration: none;
}

.qmp-listing-card-cover-notice a.qmp-cover-notice-cta:hover,
.qmp-room-cover-notice__text a.qmp-cover-notice-cta:hover {
  text-decoration: underline;
}

.qmp-listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qmp-listing-card-media .qmp-partner-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.qmp-listing-card-media .qmp-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: rgba(10, 37, 64, 0.82);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  box-sizing: border-box;
}

.qmp-listing-card-media .qmp-listing-card-stars {
  display: inline;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: var(--mp-color-rating-star, #f5c542);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.qmp-listing-card-media .qmp-quartier-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #0a2540;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.qmp-type-badge--hotel {
  background: rgba(10, 37, 64, 0.88);
}

.qmp-type-badge--guest-house {
  background: rgba(124, 58, 18, 0.9);
}

.qmp-type-badge--residence {
  background: rgba(30, 64, 175, 0.9);
}

.qmp-type-badge--apartment {
  background: rgba(5, 122, 85, 0.9);
}

.qmp-type-badge--villa {
  background: rgba(109, 40, 217, 0.9);
}

.qmp-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.qmp-type-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mp-color-primary, #0a2540);
  font-size: var(--mp-font-size-secondary, 16px);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}

.qmp-type-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--mp-color-accent, #007aff);
}

.qmp-type-filter-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.qmp-type-filter-label {
  line-height: 1.2;
}

.qmp-type-filter:hover,
.qmp-type-filter:focus {
  border-color: transparent;
  background: rgba(0, 122, 255, 0.08);
  text-decoration: none;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-type-filter.is-active {
  background: rgba(10, 37, 64, 0.08);
  border-color: transparent;
  color: var(--mp-color-primary, #0a2540);
  font-weight: 600;
}

.qmp-type-filter.is-active .qmp-type-filter-icon {
  color: var(--mp-color-accent, #007aff);
}

.qmp-type-filter-count {
  display: inline-flex;
  min-width: 1.5em;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
}

.qmp-type-filter.is-active .qmp-type-filter-count {
  background: rgba(0, 122, 255, 0.12);
  color: var(--mp-color-accent, #007aff);
}

.qmp-listing-card-body {
  padding: 12px 2px 0;
  background: transparent;
  border: none;
}

.qmp-listing-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.qmp-listing-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-listing-card-rooms {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mp-color-accent, #007aff);
  white-space: nowrap;
  text-align: right;
}

.qmp-listing-card-meta {
  font-size: 13px;
  color: var(--mp-color-text-secondary, #6e6e73);
  margin: 0 0 8px;
}

.qmp-listing-card-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: -4px 0 10px;
}

.qmp-listing-card-phone,
.qmp-listing-card-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mp-color-accent, #007aff);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qmp-listing-card-phone::before,
.qmp-listing-card-email::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: var(--mp-color-rating-star, #f5c542);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.qmp-listing-card-phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E");
}

.qmp-listing-card-email::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5L4 8V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.qmp-listing-card-phone:hover,
.qmp-listing-card-email:hover {
  text-decoration: underline;
}

.qmp-listing-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-color-primary, #0a2540);
  margin: 0 0 8px;
}

.qmp-listing-card-cta {
  font-size: 16px;
  font-weight: 600;
  color: var(--mp-color-accent, #007aff);
}

.qmp-listing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-tap-highlight-color: transparent;
}

.qmp-listing-card-link:focus,
.qmp-listing-card-link:focus-visible,
.qmp-listing-card-link:active,
.qmp-listing-card-link:hover {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  text-decoration: none;
  color: inherit;
}

body.qmp-martio-ui a.qmp-dest-card:focus-visible,
body.qmp-martio-ui a.qmp-listing-card-link:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* ——— Zone page ——— */
.qmp-zone-intro {
  padding: 24px 24px 16px;
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
}

.qmp-zone-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--mp-color-primary, #0a2540);
}

.qmp-breadcrumb {
  font-size: 13px;
  color: var(--mp-color-text-secondary, #6e6e73);
  padding: 16px 24px 0;
  max-width: var(--mp-max-content, 1200px);
  margin: 0 auto;
}

.qmp-breadcrumb a {
  color: var(--mp-color-accent, #007aff);
  text-decoration: none;
}

/* ——— Trust banner ——— */
.qmp-trust-banner {
  font-size: 12px;
  color: var(--mp-color-text-secondary, #6e6e73);
  text-align: center;
  padding: 12px;
  background: var(--mp-color-surface-muted, #f5f5f7);
  border-radius: 10px;
}

.qmp-hotel-partner-banner {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--mp-color-partner-muted, #e8f8ec);
  border-radius: var(--mp-radius-card, 12px);
}

.qmp-trust-line {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--mp-color-text-secondary, #6e6e73);
}

/* ——— Portail gérant ——— */
.qmp-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--mp-color-primary, #0a2540);
  color: #fff;
  font-size: 16px;
}

.qmp-portal-topbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qmp-portal-topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qmp-portal-topbar-end {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
  min-width: 0;
}

.qmp-portal-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.qmp-portal-simplified-banner {
  margin-bottom: 16px;
}

.qmp-portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.qmp-portal-logout {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  white-space: nowrap;
}

.qmp-portal-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.qmp-portal-layout {
  display: flex;
  min-height: calc(100vh - 56px);
  background: var(--mp-color-surface-muted, #f5f5f7);
}

.qmp-portal-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--mp-color-surface-muted, #f5f5f7);
  border-right: 1px solid var(--mp-color-border, #d2d2d7);
  padding: 24px 0;
}

.qmp-portal-sidebar-link {
  display: block;
  padding: 10px 24px;
  font-size: 16px;
  color: var(--mp-color-text-secondary, #6e6e73);
  text-decoration: none;
}

.qmp-portal-sidebar-link:hover {
  color: var(--mp-color-text, #1d1d1f);
  text-decoration: none;
}

.qmp-portal-sidebar-link.is-active {
  background: #fff;
  color: var(--mp-color-accent, #007aff);
  font-weight: 600;
  border-right: 3px solid var(--mp-color-accent, #007aff);
}

.qmp-portal-sidebar-link.is-disabled {
  color: var(--mp-color-text-muted, #aeaeb2);
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}

.qmp-portal-main {
  flex: 1;
  padding: 32px 24px 80px;
  max-width: 100%;
}

.qmp-page.qmp-portal,
.qmp-page.qmp-catalog.qmp-hub-page {
  padding: 0;
}

.qmp-portal-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  justify-content: space-around;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0));
  background: #fff;
  border-top: 1px solid var(--mp-color-border, #d2d2d7);
  font-size: 11px;
}

.qmp-portal-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--mp-color-text-secondary, #6e6e73);
  text-decoration: none;
  padding: 4px 8px;
  min-width: 44px;
}

.qmp-portal-tabbar a.is-active {
  color: var(--mp-color-accent, #007aff);
  font-weight: 600;
}

.qmp-portal-tabbar span.is-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--mp-color-text-muted, #aeaeb2);
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
  padding: 4px 8px;
  min-width: 44px;
}

.qmp-kpi-tile {
  background: var(--mp-color-surface, #fff);
  border-radius: var(--mp-radius-card, 12px);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--mp-color-border, #d2d2d7);
  box-shadow: var(--mp-shadow-card);
}

.qmp-kpi-tile .qmp-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mp-color-primary, #0a2540);
  display: block;
}

.qmp-kpi-tile .qmp-kpi-label {
  font-size: 12px;
  color: var(--mp-color-text-secondary, #6e6e73);
  margin-top: 4px;
}

.qmp-kpi-tile.is-highlight {
  background: #fff8e6;
  border-color: rgba(255, 214, 10, 0.35);
}

.qmp-kpi-tile.is-highlight .qmp-kpi-value {
  color: #b25000;
}

.qmp-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #fff;
  border-radius: var(--mp-radius-card, 12px);
  overflow: hidden;
}

.qmp-data-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--mp-color-border, #d2d2d7);
  font-weight: 600;
  color: var(--mp-color-text-secondary, #6e6e73);
  font-size: 12px;
  text-transform: uppercase;
}

.qmp-data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--mp-color-border, #d2d2d7);
}

.qmp-panel {
  background: #fff;
  border: 1px solid var(--mp-color-border, #d2d2d7);
  border-radius: var(--mp-radius-card, 12px);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--mp-shadow-card);
}

.qmp-panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
}

/* ——— Pagination ——— */
.qmp-pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  justify-content: center;
}

.qmp-pagination-item a {
  display: inline-block;
  min-width: 36px;
  padding: 8px 12px;
  text-align: center;
  border-radius: var(--mp-radius-button, 10px);
  border: 1px solid var(--mp-color-border, #d2d2d7);
  text-decoration: none;
  color: var(--mp-color-text, #1d1d1f);
  font-weight: 600;
}

.qmp-pagination-item.is-current a {
  background: var(--mp-color-primary, #0a2540);
  border-color: var(--mp-color-primary, #0a2540);
  color: #fff;
}

.qmp-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--mp-radius-card, 12px);
  border: 1px solid var(--mp-color-border, #d2d2d7);
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
  .qmp-search-hero {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .qmp-hero-hub .qmp-search-hero,
  #qmp-zone .qmp-search-hero {
    flex-wrap: wrap;
  }

  /* En colonne, flex-basis ne doit PAS devenir une hauteur (sinon champs trop hauts). */
  .qmp-search-hero-field,
  .qmp-search-hero .qmp-city-picker-field,
  .qmp-search-hero .qmp-type-picker-field,
  .qmp-name-search-field {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }

  /* Valeurs filtre (ville / quartier / type / nom) un peu plus compactes */
  .qmp-search-hero-field input,
  .qmp-search-hero-field select,
  .qmp-search-hero .qmp-city-picker__trigger,
  .qmp-search-hero .qmp-city-picker__value {
    font-size: 13px;
    line-height: 1.25;
  }

  .qmp-search-hero .qmp-city-picker__trigger {
    min-height: 0;
  }

  .qmp-search-hero .qmp-city-picker__trigger .qmp-apple-picker__icon,
  .qmp-search-hero .qmp-city-picker__trigger .qmp-city-picker__pin {
    width: 15px;
    height: 15px;
  }

  .qmp-search-hero-field {
    border-right: none;
    border-bottom: 1px solid var(--mp-color-border, #d2d2d7);
  }

  .qmp-search-hero-field:last-of-type {
    border-bottom: none;
  }

  .qmp-search-hero-action {
    width: 100%;
    flex: 0 0 auto;
    padding: 6px 4px 4px;
  }

  .qmp-btn-search {
    width: 100%;
  }

  .qmp-section {
    padding: 32px 20px;
  }

  /* Hub — filtre empilé (hauteur), même gabarit horizontal que les cartes zone */
  body.qmp-hub-page .qmp-hero-hub {
    padding: 88px 16px 40px;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body.qmp-hub-page .qmp-section {
    padding: 32px 20px;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body.qmp-hub-page .qmp-section-muted {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body.qmp-hub-page .qmp-zone-intro,
  body.qmp-hub-page .qmp-type-filters {
    max-width: 100%;
    overflow-x: clip;
  }

  body.qmp-hub-page .qmp-hero-hub .qmp-search-hero {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .qmp-trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qmp-portal-sidebar {
    display: none;
  }

  .qmp-portal-tabbar {
    display: flex;
  }

  .qmp-portal-main {
    padding: 20px 16px 88px;
  }

  .qmp-hero-hub {
    padding: 40px 16px 32px;
  }

  /* Cartes destination : une colonne, bandeau 16:9 pleine largeur */
  .qmp-grid-dest {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Page zone (après clic localité) — textes un peu plus compacts */
  body.qmp-zone-page #qmp-zone .qmp-breadcrumb {
    font-size: 12px;
    padding: 12px 16px 0;
  }

  body.qmp-zone-page #qmp-zone .qmp-zone-intro {
    padding: 16px 16px 12px;
  }

  body.qmp-zone-page #qmp-zone .qmp-zone-intro h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  body.qmp-zone-page #qmp-zone .qmp-lead {
    font-size: 14px;
    line-height: 1.45;
  }

  body.qmp-zone-page #qmp-zone .qmp-search-hero-field {
    padding: 10px 12px;
  }

  body.qmp-zone-page #qmp-zone .qmp-search-hero-field label {
    font-size: 10px;
  }

  body.qmp-zone-page #qmp-zone .qmp-search-hero-field input,
  body.qmp-zone-page #qmp-zone .qmp-search-hero-field select,
  body.qmp-zone-page #qmp-zone .qmp-city-picker__trigger,
  body.qmp-zone-page #qmp-zone .qmp-city-picker__value,
  body.qmp-zone-page #qmp-zone .qmp-date-picker__trigger {
    font-size: 13px;
  }

  body.qmp-zone-page #qmp-zone .qmp-btn-search {
    font-size: 15px;
    padding: 12px 18px;
  }

  body.qmp-zone-page #qmp-zone .qmp-type-filter {
    font-size: 13px;
    padding: 6px 12px;
    min-height: 40px;
  }

  body.qmp-zone-page #qmp-zone .qmp-type-filter-count {
    font-size: 11px;
  }

  body.qmp-zone-page #qmp-zone .qmp-listing-card-title {
    font-size: 15px;
  }

  body.qmp-zone-page #qmp-zone .qmp-listing-card-meta,
  body.qmp-zone-page #qmp-zone .qmp-listing-card-rooms,
  body.qmp-zone-page #qmp-zone .qmp-listing-card-phone,
  body.qmp-zone-page #qmp-zone .qmp-listing-card-email {
    font-size: 12px;
  }

  body.qmp-zone-page #qmp-zone .qmp-listing-card-price,
  body.qmp-zone-page #qmp-zone .qmp-listing-card-cta {
    font-size: 14px;
  }

  body.qmp-zone-page #qmp-zone .qmp-section {
    padding: 24px 16px;
  }
}

/* Tablette — champs recherche hub moins serrés (ex. 820×1180) */
@media (min-width: 769px) and (max-width: 1100px) {
  body.qmp-hub-page .qmp-hero-hub .qmp-search-hero,
  body.qmp-zone-page #qmp-zone .qmp-search-hero {
    flex-wrap: wrap;
  }

  body.qmp-hub-page .qmp-search-hero-field:first-child,
  body.qmp-zone-page #qmp-zone .qmp-search-hero-field:first-child {
    flex: 1 1 calc(50% - 6px);
    min-width: 160px;
    border-right: 1px solid var(--mp-color-border, #d2d2d7);
    border-bottom: none;
  }

  body.qmp-hub-page .qmp-search-hero-field,
  body.qmp-zone-page #qmp-zone .qmp-search-hero-field {
    flex: 1 1 calc(50% - 6px);
    min-width: 160px;
  }

  body.qmp-hub-page .qmp-name-search-field,
  body.qmp-zone-page #qmp-zone .qmp-name-search-field {
    flex: 1 1 100%;
    min-width: 100%;
    border-right: none;
  }

  body.qmp-hub-page .qmp-search-hero-action,
  body.qmp-zone-page #qmp-zone .qmp-search-hero-action {
    flex: 1 1 100%;
    justify-content: stretch;
    padding-top: 4px;
  }

  body.qmp-hub-page .qmp-search-hero-action .qmp-btn-search,
  body.qmp-zone-page #qmp-zone .qmp-search-hero-action .qmp-btn-search {
    width: 100%;
  }
}

/* Textes secondaires — lisibilité marketplace (16px) */
body.qmp-martio-ui .qmp-muted,
body.qmp-martio-ui .qmp-lead,
body.qmp-martio-ui .qmp-avail-help-text {
  font-size: var(--mp-font-size-secondary, 16px);
  line-height: 1.5;
}

/* L2.8 — Accessibilité : zones tactiles (focus header géré dans martio-shell) */
.qmp-btn-primary,
.qmp-pagination a,
.qmp-pagination span {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.qmp-martio-ui a:focus-visible,
body.qmp-martio-ui button:focus-visible,
body.qmp-martio-ui input:focus-visible,
body.qmp-martio-ui select:focus-visible,
body.qmp-martio-ui textarea:focus-visible {
  outline: 2px solid var(--mp-color-accent, #007aff);
  outline-offset: 2px;
}

body.qmp-martio-ui #header a:focus-visible,
body.qmp-martio-ui #header button:focus-visible,
body.qmp-martio-ui #header_logo a:focus-visible {
  outline: none;
  outline-offset: 0;
}
