/* ============================================================
   DESIGN SYSTEM — Location Cameroun
   Thème "Marché moderne" (défaut)
   Polices : Manrope (display + text), DM Sans (alt)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Manrope:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens CSS (modifiables via Customizer) ──────────────── */
:root {
  /* Couleurs – Marché moderne */
  --bg:             #FAFAF7;
  --surface:        #FFFFFF;
  --surface-alt:    #F4F4EE;
  --surface-muted:  #EBEBE5;
  --ink:            #0A0A0A;
  --ink-soft:       #404040;
  --ink-faint:      #A3A3A3;
  --border:         #E5E5E2;
  --border-strong:  #C7C7C2;

  --accent:         #E94E1B;
  --accent-strong:  #C73E0E;
  --accent-soft:    #FDE0D2;
  --on-accent:      #FFFFFF;

  --success:        #1B5E3F;
  --success-soft:   #D6EAE0;
  --danger:         #C92D2D;
  --danger-soft:    #F8D6D6;
  --warning:        #B45309;
  --warning-soft:   #FEF3C7;

  /* Étoiles */
  --stars:          #F59E0B;

  /* Rayon */
  --radius-xs:      4px;
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-pill:    999px;

  /* Ombres */
  --shadow-xs:      0 1px 2px rgba(10,10,10,0.04);
  --shadow-sm:      0 1px 2px rgba(10,10,10,0.05);
  --shadow:         0 4px 14px rgba(10,10,10,0.07);
  --shadow-md:      0 8px 24px rgba(10,10,10,0.09);
  --shadow-lg:      0 14px 36px rgba(10,10,10,0.10);

  /* Typographie */
  --font-display:   "Manrope", system-ui, sans-serif;
  --font-text:      "Manrope", system-ui, sans-serif;
  --font-mono:      "JetBrains Mono", monospace;

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Layout mobile */
  --max-width:     480px;
  --nav-height:    64px;
  --header-height: 56px;
  --page-px:       16px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
*::-webkit-scrollbar { display: none; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ── App shell ─────────────────────────────────────────────── */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* ── Page wrapper (avec padding bottom pour navbar) ────────── */
.page-content {
  padding-bottom: calc(var(--nav-height) + 16px);
  min-height: 100vh;
}
.page-content--no-nav {
  padding-bottom: 0;
}

/* ================================================================
   COMPOSANTS DE BASE
   ================================================================ */

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover { background: var(--accent-strong); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-alt); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn--ghost:hover { background: var(--surface-alt); }

.btn--danger {
  background: var(--danger);
  color: #FFFFFF;
}

.btn--full { width: 100%; }

.btn--sm {
  padding: 9px var(--space-4);
  font-size: 13px;
}

.btn--lg {
  padding: 18px var(--space-8);
  font-size: 16px;
}

/* ── Inputs ────────────────────────────────────────────────── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  padding: 14px var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--ink-faint); }
.input--error { border-color: var(--danger); }

.input-with-icon {
  position: relative;
}
.input-with-icon .input {
  padding-left: 44px;
}
.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.input-error-msg {
  font-size: 12px;
  color: var(--danger);
}

/* ── Textarea ──────────────────────────────────────────────── */
.textarea {
  width: 100%;
  padding: 14px var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.textarea:focus { border-color: var(--ink); }

/* ── Select ────────────────────────────────────────────────── */
.select {
  width: 100%;
  padding: 14px var(--space-4);
  padding-right: 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ── Checkbox / Radio ──────────────────────────────────────── */
.checkbox-row, .radio-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"],
.radio-row input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.badge--accent    { background: var(--accent-soft); color: var(--accent-strong); }
.badge--success   { background: var(--success-soft); color: var(--success); }
.badge--danger    { background: var(--danger-soft); color: var(--danger); }
.badge--warning   { background: var(--warning-soft); color: var(--warning); }
.badge--muted     { background: var(--surface-muted); color: var(--ink-soft); }
.badge--dark      { background: var(--ink); color: var(--surface); }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card--bordered {
  border: 1px solid var(--border);
  box-shadow: none;
}
.card-body {
  padding: var(--space-4);
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}
.divider--muted {
  background: var(--surface-muted);
  height: 8px;
  margin: var(--space-4) calc(-1 * var(--page-px));
}

/* ── Avatar ────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--surface-muted);
  flex-shrink: 0;
}
.avatar--sm  { width: 32px; height: 32px; }
.avatar--md  { width: 44px; height: 44px; }
.avatar--lg  { width: 56px; height: 56px; }
.avatar--xl  { width: 72px; height: 72px; }
.avatar--2xl { width: 96px; height: 96px; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--ink-faint);
  font-weight: 600;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

/* ── Stars ─────────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--stars);
}
.stars__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-left: 4px;
}
.stars__reviews {
  font-size: 12px;
  color: var(--ink-faint);
  margin-left: 2px;
}

/* ── Photo placeholder ─────────────────────────────────────── */
.photo-placeholder {
  width: 100%;
  background: linear-gradient(135deg, #F2A687 0%, #C73E0E 100%);
  position: relative;
  overflow: hidden;
}
.photo-placeholder--b { background: linear-gradient(135deg, #A7B5A4 0%, #1B5E3F 100%); }
.photo-placeholder--c { background: linear-gradient(135deg, #D9C9B7 0%, #7A6452 100%); }
.photo-placeholder--d { background: linear-gradient(135deg, #9CB0C2 0%, #4A5C70 100%); }
.photo-placeholder--e { background: linear-gradient(135deg, #E6B89A 0%, #A05A2C 100%); }
.photo-placeholder--f { background: linear-gradient(135deg, #C2BFB8 0%, #525151 100%); }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

/* ── Toast / Alert ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
.toast--success { background: var(--success); }
.toast--danger  { background: var(--danger); }

/* ── Alert box ─────────────────────────────────────────────── */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.alert--info    { background: #EFF6FF; color: #1D4ED8; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--danger  { background: var(--danger-soft); color: var(--danger); }
.alert--warning { background: var(--warning-soft); color: var(--warning); }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */

/* ── Top header ────────────────────────────────────────────── */
.top-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--page-px);
  gap: var(--space-3);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  z-index: 100;
}
/* Compense l'espace occupé par le header fixe */
.app-shell:has(.top-header) {
  padding-top: var(--header-height);
}
.top-header__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--ink);
  flex-shrink: 0;
}
.top-header__back:hover { background: var(--surface-alt); }
.top-header__title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
.top-header__action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-soft);
}

/* ── Bottom navbar (client) ────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 200;
  padding: 0 var(--space-2);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
}
.bottom-nav__item.active {
  color: var(--accent);
}
.bottom-nav__badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Bottom navbar (host) ──────────────────────────────────── */
.bottom-nav--host .bottom-nav__item.active { color: var(--ink); }

/* ================================================================
   LISTING CARD
   ================================================================ */

.listing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.listing-card--horizontal {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
}
.listing-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}
.listing-card__photo--thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.listing-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  transition: transform 0.2s;
}
.listing-card__fav:active { transform: scale(1.15); }
.listing-card__fav.active { color: var(--accent); }
.listing-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.listing-card__body {
  padding: var(--space-3) var(--space-3) var(--space-4);
}
.listing-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}
.listing-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.listing-card__subtitle {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.listing-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.listing-card__price span {
  font-weight: 400;
  color: var(--ink-soft);
}
.listing-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.listing-card__rating svg { color: var(--stars); }

/* Carousel card (scroll horizontal) */
.carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--page-px) var(--space-2);
}
.carousel-track__item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc(50% - var(--space-2));
}

/* ================================================================
   SEARCH BAR
   ================================================================ */

.search-bar {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 10px var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow);
}
.search-bar__icon { color: var(--ink-faint); flex-shrink: 0; }
.search-bar__text { flex: 1; }
.search-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.search-bar__sub {
  font-size: 11px;
  color: var(--ink-faint);
  display: block;
}
.search-bar__filter {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

/* ================================================================
   CATEGORIES GRID
   ================================================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  padding: 0 var(--page-px);
}
.category-item {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
}
.category-item__photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.category-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-item__body {
  padding: 6px 4px 8px;
}
.category-item__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.category-item__count {
  font-size: 10px;
  color: var(--ink-faint);
}

/* ================================================================
   TABS
   ================================================================ */

.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}
.tabs__item {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tabs__item.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.tabs__item:hover { color: var(--ink-soft); }

/* Tab sections */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ================================================================
   SECTION HEADER
   ================================================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--page-px) var(--space-3);
}
.section-header__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.section-header__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}

/* ================================================================
   PROFILE / USER INFO
   ================================================================ */

.user-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--page-px);
}
.user-header__info { flex: 1; }
.user-header__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.user-header__sub {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.user-header__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ================================================================
   LIST ITEMS (profil menu, settings)
   ================================================================ */

.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--page-px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.1s;
}
.list-item:hover { background: var(--surface-alt); }
.list-item:active { background: var(--surface-muted); }
.list-item__icon {
  width: 40px;
  height: 40px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.list-item__body { flex: 1; }
.list-item__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.list-item__sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.list-item__right {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.list-item__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ================================================================
   TRIP / BOOKING CARD
   ================================================================ */

.trip-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.trip-card__photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.trip-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trip-card__body {
  padding: var(--space-4);
}
.trip-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.trip-card__dates {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.trip-card__status {
  margin-top: var(--space-3);
}
.trip-card__footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
}

/* ================================================================
   MESSAGING
   ================================================================ */

.conversation-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--page-px);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.1s;
}
.conversation-item:hover { background: var(--surface-alt); }
.conversation-item__body { flex: 1; min-width: 0; }
.conversation-item__name {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.conversation-item__time {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 400;
}
.conversation-item__preview {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.conversation-item--unread .conversation-item__name { color: var(--ink); }
.conversation-item--unread .conversation-item__preview { color: var(--ink-soft); font-weight: 500; }
.conversation-item__unread-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Chat messages */
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.chat-bubble--out {
  background: var(--ink);
  color: var(--surface);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble--in {
  background: var(--surface-alt);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-time {
  font-size: 10px;
  color: var(--ink-faint);
  text-align: center;
  margin: var(--space-4) 0;
}

/* ================================================================
   RATING / REVIEW
   ================================================================ */

.review-card {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }
.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.review-card__meta { flex: 1; }
.review-card__name { font-size: 14px; font-weight: 600; }
.review-card__date { font-size: 12px; color: var(--ink-faint); }
.review-card__text { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* Star input */
.star-input {
  display: flex;
  gap: 8px;
}
.star-input__star {
  font-size: 32px;
  color: var(--border-strong);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
}
.star-input__star.active { color: var(--stars); }
.star-input__star:hover { transform: scale(1.1); }

/* ================================================================
   CALENDAR
   ================================================================ */

.calendar {
  padding: 0 var(--page-px);
}
.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.calendar__month {
  font-size: 16px;
  font-weight: 700;
}
.calendar__nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar__day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  padding: var(--space-2) 0;
}
.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.calendar__day:hover { background: var(--surface-muted); }
.calendar__day.selected { background: var(--ink); color: var(--surface); }
.calendar__day.in-range { background: var(--accent-soft); color: var(--accent-strong); }
.calendar__day.range-start, .calendar__day.range-end {
  background: var(--ink);
  color: var(--surface);
}
.calendar__day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.calendar__day.unavailable {
  color: var(--ink-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}
.calendar__day.empty { cursor: default; }

/* ================================================================
   MAP
   ================================================================ */

.map-container {
  width: 100%;
  height: 240px;
  background: var(--surface-muted);
  position: relative;
  overflow: hidden;
}
.map-container #map { width: 100%; height: 100%; }
.map-container--full { height: 100vh; }
.map-container--half { height: 50vh; }

/* ================================================================
   PAYMENT
   ================================================================ */

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s;
}
.payment-option.selected { border-color: var(--ink); }
.payment-option__icon {
  width: 44px;
  height: 44px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.payment-option__body { flex: 1; }
.payment-option__title { font-size: 15px; font-weight: 600; }
.payment-option__sub   { font-size: 12px; color: var(--ink-faint); }
.payment-option__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-option.selected .payment-option__check {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* ================================================================
   PRICE SUMMARY
   ================================================================ */

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.price-row--total {
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
}
.price-row__label { color: var(--ink-soft); }
.price-row__label--underline { text-decoration: underline; }
.price-row__value { font-weight: 600; }
.price-row__value--commission { color: var(--ink-faint); }

/* ================================================================
   PACKAGE CARDS
   ================================================================ */

.package-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.package-card.selected { border-color: var(--ink); }
.package-card.recommended::before {
  content: "Recommandé";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}
.package-card__name { font-size: 17px; font-weight: 700; }
.package-card__price { font-size: 22px; font-weight: 700; color: var(--accent); margin: 4px 0; }
.package-card__desc { font-size: 13px; color: var(--ink-faint); }
.package-card__features { margin-top: var(--space-3); }
.package-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 3px 0;
}

/* ================================================================
   STAT CARDS
   ================================================================ */

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border);
}
.stat-card__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.stat-card__label {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}
.stat-card__trend {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.stat-card__trend--up   { color: var(--success); }
.stat-card__trend--down { color: var(--danger); }

/* ================================================================
   MODALS / BOTTOM SHEETS
   ================================================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-3) var(--page-px) var(--space-8);
  z-index: 501;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateX(-50%) translateY(0); }
.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-4);
}
.bottom-sheet__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

/* ================================================================
   EMPTY STATES
   ================================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--page-px);
  text-align: center;
  gap: var(--space-4);
}
.empty-state__icon {
  width: 80px;
  height: 80px;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}
.empty-state__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.empty-state__text {
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* ================================================================
   STEP INDICATOR (wizard multi-étapes)
   ================================================================ */

.step-bar {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--page-px);
  gap: 0;
}
.step-bar__item {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.step-bar__item.done, .step-bar__item.active { background: var(--ink); }

.step-label {
  font-size: 12px;
  color: var(--ink-faint);
  padding: 0 var(--page-px) var(--space-2);
}
.step-label strong { color: var(--ink); }

/* ================================================================
   SWITCH TOGGLE
   ================================================================ */

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  cursor: pointer;
}
.switch__slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch__slider { background: var(--accent); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }

/* ================================================================
   QUANTITY SELECTOR
   ================================================================ */

.qty-selector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.qty-selector__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.qty-selector__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-selector__value {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* ================================================================
   FILTER CHIPS
   ================================================================ */

.filter-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 0 var(--page-px);
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px var(--space-3);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

/* ================================================================
   ICON SVG HELPERS
   ================================================================ */

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon--sm  { width: 16px; height: 16px; }
.icon--md  { width: 20px; height: 20px; }
.icon--lg  { width: 24px; height: 24px; }
.icon--xl  { width: 32px; height: 32px; }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */

.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.px { padding-left: var(--page-px); padding-right: var(--page-px); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.text-sm    { font-size: 13px; }
.text-xs    { font-size: 11px; }
.text-base  { font-size: 15px; }
.text-lg    { font-size: 17px; }
.text-xl    { font-size: 20px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold   { font-weight: 700; }
.text-faint  { color: var(--ink-faint); }
.text-soft   { color: var(--ink-soft); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-center  { text-align: center; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Sticky bottom bar (bouton réserver, etc.) ─────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--page-px) var(--space-4);
  z-index: 150;
}

/* ── Page transitions ──────────────────────────────────────── */
.page-enter {
  animation: pageEnter 0.25s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive desktop (>480px centré) ───────────────────── */
@media (min-width: 481px) {
  body {
    background: #E8E8E4;
  }
  .bottom-nav,
  .sticky-bar,
  .bottom-sheet,
  .toast {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
