/* ============================================================================
   Evotic — /manger page (Phase Tourisme MG Batch A)
   Reprend les tokens orange (--primary #FF6600) + classes communes app-header,
   search-row, mng-tabs scrollable horiz, cards restos, bottom-sheet detail.
   ============================================================================ */

.manger-body {
  padding: 0;
  background: var(--bg);
  min-height: 100dvh;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 102, 0, 0.05), transparent 45%);
  background-attachment: fixed;
}

/* App-header re-déclaré (cohérent /services /pharma) */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
  box-shadow: var(--shadow-header);
}
.app-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
.app-header-title { flex: 1; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.app-header-name {
  font-size: 18px; font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header-sub {
  font-size: 11px; font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hdr-back {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text);
  text-decoration: none; font-size: 16px; flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hdr-back:hover { background: var(--skeleton); }
.hdr-back:active { transform: scale(0.92); }

.manger-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Search */
.manger-search { padding: var(--sp-3); }
.search-row { display: flex; align-items: center; gap: var(--sp-2); }
.search-input-wrap { position: relative; flex: 1; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
#mng-search-input {
  width: 100%; padding: 12px 12px 12px 40px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--input-bg, var(--card-bg));
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border var(--t-fast);
}
#mng-search-input:focus { border-color: var(--primary); }

/* Tabs cuisines scrollable horiz */
.mng-tabs {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.mng-tabs::-webkit-scrollbar { display: none; }
.mng-tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit; font-weight: 700; font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
  scroll-snap-align: start;
}
.mng-tab i { font-size: 13px; }
.mng-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}
.mng-tab:active { transform: scale(0.95); }

/* Pills prix */
.mng-pills {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.mng-pills::-webkit-scrollbar { display: none; }
.mng-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit; font-weight: 700; font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
}
.mng-pill.active {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}
.mng-pill:active { transform: scale(0.95); }

.mng-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 2px 0;
}

/* Liste cards */
.mng-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.resto-card {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.resto-card:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }

.resto-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.resto-init {
  font-size: 28px; font-weight: 900;
  z-index: 2;
}
.resto-thumb-ic {
  position: absolute; right: 4px; bottom: 4px;
  font-size: 14px;
  opacity: 0.45;
  z-index: 1;
}

.resto-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.resto-name {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resto-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden;
}
.resto-cuisine { overflow: hidden; text-overflow: ellipsis; }
.resto-prix {
  flex-shrink: 0;
  font-weight: 800; color: var(--primary);
  letter-spacing: 0.02em;
}
.resto-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
}
.resto-meta i { margin-right: 3px; }
.resto-rating { color: #F9A825; font-weight: 700; }
.resto-dist { color: var(--primary); font-weight: 700; }

.resto-call {
  align-self: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.resto-call:active { transform: scale(0.92); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-5);
}
.empty-icon {
  font-size: 32px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: var(--sp-2);
}

.mng-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  text-align: center;
  line-height: 1.4;
}
.mng-disclaimer i { margin-right: 4px; }
.mng-disclaimer a { color: var(--primary); text-decoration: none; font-weight: 700; }

.err {
  color: #C62828;
  font-size: 13px;
  margin: 4px 2px;
}

/* ─── Bottom sheet detail ─── */
.mng-sheet {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mng-sheet.open {
  pointer-events: auto;
  opacity: 1;
}
.mng-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.mng-sheet-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}
.mng-sheet.open .mng-sheet-card { transform: translateY(0); }
.mng-sheet-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 4px auto 12px;
}

.mng-sheet-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.mng-sheet-ic { font-size: 28px; }
.mng-sheet-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: inherit;
}
.mng-sheet-title p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
}

.mng-sheet-info p {
  margin: 6px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.mng-sheet-info i {
  width: 18px;
  color: var(--primary);
  margin-right: 6px;
}

.mng-sheet-map {
  width: 100%; height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin: 14px 0;
  background: var(--skeleton);
}

.mng-sheet-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}
.mng-sheet-action {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--skeleton);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast);
}
.mng-sheet-action:active { transform: scale(0.98); }
.mng-sheet-action.primary {
  background: var(--primary);
  color: #fff;
}
.mng-sheet-action i { font-size: 14px; }

.mng-approx-warn {
  margin-top: 12px;
  padding: 8px 12px;
  background: #FFF8E1;
  color: #F57F17;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.mng-approx-warn i { margin-right: 6px; }

.mng-sources {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
}
