/* ============================================================================
   Evotic — /dormir page (Phase Tourisme MG Batch B)
   Reprend tokens orange + structure manger.css. Spécifique : stars row + amenity chips.
   ============================================================================ */

.dormir-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 toutes pages services-like) */
.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); }

.dormir-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 */
.dormir-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;
}
#drm-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);
}
#drm-search-input:focus { border-color: var(--primary); }

/* Tabs types scrollable horiz */
.drm-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.drm-tabs::-webkit-scrollbar { display: none; }
.drm-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);
}
.drm-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.25);
}
.drm-tab:active { transform: scale(0.95); }

/* Pills (étoiles, prix, amenities) */
.drm-pills {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.drm-pills::-webkit-scrollbar { display: none; }
.drm-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  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);
}
.drm-pill.active {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}
.drm-pill:active { transform: scale(0.95); }
.drm-pills-amen .drm-pill i { font-size: 11px; }

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

/* Liste cards */
.drm-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.hotel-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);
}
.hotel-card:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }

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

.hotel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hotel-name {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hotel-sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.hotel-stars { color: #F9A825; font-size: 11px; }
.hotel-stars i { margin-right: 1px; }
.hotel-stars .far { color: rgba(249, 168, 37, 0.3); }
.hotel-prix {
  margin-left: auto;
  font-weight: 800; color: var(--primary);
  letter-spacing: 0.02em;
}
.hotel-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11px; color: var(--text-muted);
}
.hotel-meta i { margin-right: 3px; }
.hotel-rating { color: #43A047; font-weight: 700; }
.hotel-dist { color: var(--primary); font-weight: 700; }

.hotel-amen-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}
.hotel-amen-row i { opacity: 0.75; }

.hotel-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);
}
.hotel-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); }

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

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

/* ─── Bottom sheet ─── */
.drm-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;
}
.drm-sheet.open {
  pointer-events: auto;
  opacity: 1;
}
.drm-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.drm-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);
}
.drm-sheet.open .drm-sheet-card { transform: translateY(0); }
.drm-sheet-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 4px auto 12px;
}

.drm-sheet-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.drm-sheet-ic { font-size: 28px; }
.drm-sheet-title h3 { margin: 0; font-size: 18px; font-weight: 900; color: inherit; }
.drm-sheet-title p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.drm-sheet-title .hotel-stars,
.drm-sheet-title .fas.fa-star,
.drm-sheet-title .far.fa-star { color: #F9A825; }

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

.drm-amen-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0;
}
.drm-amen-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--skeleton);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.drm-amen-chip i {
  color: var(--primary);
  font-size: 11px;
}

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

.drm-sheet-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}
.drm-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);
}
.drm-sheet-action:active { transform: scale(0.98); }
.drm-sheet-action.primary {
  background: var(--primary);
  color: #fff;
}

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

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

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