/* ═══════════════════════════════════════════════════════════════════════════
   css_hebergement.css  —  Système de réservation hébergement
   Couleur principale : #0369a1  (sky-700)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --hb-blue:       #131313;
  --hb-blue-light: #474747;
  --hb-blue-pale:  #e6e6e6;
  --hb-text:       #1e293b;
  --hb-muted:      #64748b;
  --hb-border:     #e2e8f0;
  --hb-bg:         #f8fafc;
  --hb-radius:     14px;
  --hb-shadow:     0 2px 16px rgba(3,105,161,.10);
}

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.hbp-page       { padding: 24px 16px 60px; }
.hbp-titre      { font-size: 22px; font-weight: 700; color: var(--hb-text); margin-bottom: 20px; }
.hbp-sous-titre { font-size: 15px; color: var(--hb-muted); margin-bottom: 20px; margin-top: 20px;}

/* ── Filtres (index) ─────────────────────────────────────────────────────── */
.hb-filtres {
  background: #fff;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.hb-filtres label   { font-size: 12px; font-weight: 600; color: var(--hb-muted); display: block; margin-bottom: 4px; }
.hb-filtres select,
.hb-filtres input   { border: 1px solid var(--hb-border); border-radius: 8px; padding: 7px 12px;
                       font-size: 13px; color: var(--hb-text); background: #fff; outline: none; }
.hb-filtres select:focus,
.hb-filtres input:focus  { border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
.hb-filtres .hb-filtre-group { display: flex; flex-direction: column; min-width: 140px; }
.btn-hb-filtrer {
  background: #000000; color: #fff; border: none; border-radius: 8px;
  padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; align-self: flex-end;
}
.btn-hb-filtrer:hover { background: #2e2e2e; }
.btn-hb-reset {
  background: transparent; color: var(--hb-muted); border: 1px solid var(--hb-border);
  border-radius: 8px; padding: 8px 14px; font-size: 12px; cursor: pointer; align-self: flex-end;
}
.btn-hb-reset:hover { background: var(--hb-bg); }

/* ── Catégories pills (index) ────────────────────────────────────────────── */
.hb-cats-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px;
  scrollbar-width: none;
}
.hb-cats-scroll::-webkit-scrollbar { display: none; }
.hb-cat-pill {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--hb-border);
  border-radius: 30px; padding: 6px 14px; font-size: 13px; font-weight: 500;
  color: var(--hb-text); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.hb-cat-pill:hover  { border-color: #000000; color: #000000; }
.hb-cat-pill.active { border-color: #000000; background:#000000; color: #fff; }

/* ── Grille de cards (index) ─────────────────────────────────────────────── */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.hb-card {
  background: #fff;
  border-radius: var(--hb-radius);
  overflow: hidden;
  border: 1px solid var(--hb-border);
  box-shadow: var(--hb-shadow);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.hb-card:hover { transform: translateY(-4px); box-shadow: 0 6px 28px rgba(3,105,161,.16); color: inherit; }

.hb-card-img  { position: relative; width: 100%; padding-top: 60%; overflow: hidden; background: var(--hb-bg); }
.hb-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .3s;
}
.hb-card:hover .hb-card-img img { transform: scale(1.04); }
.hb-card-img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--hb-muted);
}
.hb-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.92); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; font-weight: 600; color: var(--hb-blue);
  backdrop-filter: blur(4px);
}
.hb-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hb-card-titre {
  font-size: 14px; font-weight: 700; color: var(--hb-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hb-card-meta { font-size: 12px; color: var(--hb-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.hb-card-meta span { display: flex; align-items: center; gap: 4px; }
.hb-card-prix {
  margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 800; color: var(--hb-blue);
  display: flex; align-items: baseline; gap: 4px;
}
.hb-card-prix small { font-size: 11px; font-weight: 400; color: var(--hb-muted); }

/* ── Page annonce ────────────────────────────────────────────────────────── */
.hba-layout      { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .hba-layout { grid-template-columns: 1fr; } }

.hba-gallery { border-radius: var(--hb-radius); overflow: hidden; background: var(--hb-bg); }
.hba-main-img  { position: relative; width: 100%; padding-top: 55%; }
.hba-main-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hba-thumbs {
  display: flex; gap: 6px; padding: 6px; overflow-x: auto; background: #f1f5f9;
  scrollbar-width: thin; scrollbar-color: var(--hb-border) transparent;
}
.hba-thumb {
  width: 70px; height: 52px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color .15s;
}
.hba-thumb.active { border-color: var(--hb-blue); }
.hba-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hba-info  { margin-top: 20px; }
.hba-titre { font-size: 22px; font-weight: 800; color: var(--hb-text); line-height: 1.3; }
.hba-type  { font-size: 13px; color: var(--hb-muted); margin-top: 4px; }
.hba-specs {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0;
  padding: 14px; background: var(--hb-bg); border-radius: 10px;
}
.hba-spec { display: flex; flex-direction: column; align-items: center; gap: 3px;
            min-width: 80px; font-size: 12px; color: var(--hb-muted); }
.hba-spec strong { font-size: 16px; font-weight: 700; color: var(--hb-text); }
.hba-desc { font-size: 14px; color: var(--hb-text); line-height: 1.7; margin-top: 12px; }

.hba-section-titre { font-size: 15px; font-weight: 700; color: var(--hb-text); margin: 20px 0 10px; }

/* Équipements */
.hba-equip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hba-equip-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--hb-bg); border: 1px solid var(--hb-border);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; color: var(--hb-text);
}
.hba-equip-chip i { color: var(--hb-blue); font-size: 13px; }

/* Widget réservation (sticky) */
.hba-widget {
  background: #fff; border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius); padding: 22px; 
  position: sticky; top: 80px;
}
.hba-widget-prix { font-size: 22px; font-weight: 800; color: var(--hb-blue); }
.hba-widget-prix small { font-size: 13px; font-weight: 400; color: var(--hb-muted); }
.hba-widget .hb-form-group   { margin-top: 14px; }
.hba-widget label             { font-size: 12px; font-weight: 600; color: var(--hb-muted); display: block; margin-bottom: 4px; }
.hba-widget input[type=date],
.hba-widget select            { width: 100%; border: 1px solid var(--hb-border); border-radius: 8px;
                                 padding: 9px 12px; font-size: 13px; color: var(--hb-text); outline: none; background: #fff; }
.hba-widget input[type=date]:focus,
.hba-widget select:focus      { border-color: var(--hb-blue); box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
.hba-dates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hba-recalc {
  margin-top: 14px; padding: 12px; background: var(--hb-blue-pale);
  border-radius: 10px; font-size: 13px; color: var(--hb-blue); display: none;
}
.hba-recalc strong { font-weight: 700; }
.btn-hb-reserver {
  width: 100%; margin-top: 16px; background: var(--hb-blue); color: #fff;
  border: none; border-radius: 10px; padding: 13px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-hb-reserver:hover { background: #000000; }
.btn-hb-reserver:disabled { background: #333333; cursor: not-allowed; }
.hba-widget-msg { margin-top: 10px; font-size: 13px; border-radius: 8px; padding: 8px 12px; display: none; }

/* ── Panier hébergement ───────────────────────────────────────────────────── */
.hb-panier-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.hb-panier-item {
  background: #fff; 
  display: flex; gap: 16px; align-items: flex-start; 
  margin-bottom: 14px;
  transition: box-shadow .15s;
}

.hb-panier-img { width: 150px; height: 130px; border-radius: 10px; overflow: hidden;
                  flex-shrink: 0; background: var(--hb-bg); }
.hb-panier-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-panier-infos { flex: 1; min-width: 0; }
.hb-panier-titre { font-size: 14px; font-weight: 700; color: var(--hb-text);
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-panier-dates { font-size: 12px; color: var(--hb-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.hb-panier-dates span { display: flex; align-items: center; gap: 4px; }
.hb-panier-prix-total { font-size: 16px; font-weight: 800; color: var(--hb-blue); margin-top: 8px; }
.btn-hb-supprimer {
  background: none; border: none; color: #ef4444; cursor: pointer; padding: 4px;
  font-size: 18px; flex-shrink: 0; opacity: .7;
}
.btn-hb-supprimer:hover { opacity: 1; }

.hb-resume-box { 
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius); padding: 10px; 
   position: sticky; top: 80px;
}
.hb-resume-titre   { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.hb-resume-ligne   { display: flex; justify-content: space-between; font-size: 13px; color: var(--hb-muted); margin-bottom: 8px; }
.hb-resume-total   { font-size: 16px; font-weight: 800; color: var(--hb-text); padding-top: 8px; }
.btn-hb-reserver-all {
  display: block; width: 100%; margin-top: 14px; background: var(--hb-blue); color: #fff;
  border: none; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-align: center; text-decoration: none; transition: background .15s;
}
.btn-hb-reserver-all:hover { background: #000000; color: #fff; }
.btn-hb-continuer {
  display: block; width: 100%; margin-top: 10px; background: transparent; color: var(--hb-blue);
  border: 1.5px solid var(--hb-border); border-radius: 10px; padding: 11px; font-size: 13px;
  font-weight: 600; cursor: pointer; text-align: center; text-decoration: none;
}
.btn-hb-continuer:hover { border-color: var(--hb-blue); color: var(--hb-blue); }

/* ── Réservation (formulaire) ────────────────────────────────────────────── */
.hb-reserver-page { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }
.hb-form-box {
  background: #fff;
  border-radius: var(--hb-radius); margin-bottom: 20px;
}
.hb-form-box h5 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.hb-form-box label { font-size: 13px; font-weight: 600; color: var(--hb-muted); display: block; margin-bottom: 4px; }
.hb-form-box input,
.hb-form-box textarea,
.hb-form-box select {
  width: 100%; border: 1px solid var(--hb-border); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; color: var(--hb-text); outline: none; background: #fff;
  margin-bottom: 14px;
}
.hb-form-box input:focus,
.hb-form-box textarea:focus,
.hb-form-box select:focus { border-color: #aaa;}
.hb-paiement-option { display: flex; align-items: center; gap: 10px; cursor: pointer;
                       padding: 10px 14px; border: 1.5px solid var(--hb-border);
                       border-radius: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.hb-paiement-option:has(input:checked) { border-color: #000000; background:#000000; color: #FFFFFF; }
.hb-paiement-option input { width: auto; margin-bottom: 0; }
.btn-hb-confirmer {
  width: 100%; background: var(--hb-blue); color: #fff; border: none;
  border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-hb-confirmer:hover    { background: #202020; }
.btn-hb-confirmer:disabled { background: #333333; cursor: not-allowed; }

/* ── Confirmation ────────────────────────────────────────────────────────── */
.hb-confirm-box {
  max-width: 480px; margin: 20px auto; text-align: center;
  background: #fff; border-radius: var(--hb-radius); padding: 36px 24px;
  border: 1px solid var(--hb-border);
}
.hb-confirm-icon { font-size: 52px; color: #10b981; margin-bottom: 12px; }
.hb-confirm-titre { font-size: 22px; font-weight: 800; color: var(--hb-text); }
.hb-confirm-sous  { font-size: 14px; color: var(--hb-muted); margin-top: 6px; }
.hb-confirm-items { text-align: left; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.hb-confirm-item {
  display: flex; align-items: center; gap: 14px;  
}
.hb-confirm-item-img  { width: 60px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.hb-confirm-item-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-confirm-item-info { flex: 1; font-size: 13px; }
.hb-confirm-item-info strong { display: block; font-weight: 700; }
.hb-confirm-btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.btn-hb-mes-resa {
  background: var(--hb-blue); color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.btn-hb-mes-resa:hover { background: #000000; color: #fff; }
.btn-hb-explorer {
  background: transparent; color: var(--hb-blue); border: 1.5px solid var(--hb-blue);
  border-radius: 10px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.btn-hb-explorer:hover { background: var(--hb-blue-pale); color: var(--hb-blue); }

/* ── Mes réservations / Mes locations ────────────────────────────────────── */
.hb-resa-page { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
.hb-resa-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hb-resa-filter-btn {
  background: #fff; border: 1.5px solid var(--hb-border); border-radius: 20px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--hb-muted);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.hb-resa-filter-btn:hover,
.hb-resa-filter-btn.active { border-color: var(--hb-blue); color: var(--hb-blue); background: var(--hb-blue-pale); }

.hb-resa-card {
  background: #fff;  padding: 16px;
  display: flex; gap: 16px; align-items: flex-start; 
  margin-bottom: 14px;
}
@media (max-width: 600px) { .hb-resa-card { flex-direction: column; } }
.hb-resa-img { width: 90px; height: 70px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.hb-resa-img img { width: 100%; height: 100%; object-fit: cover; }
.hb-resa-body  { flex: 1; min-width: 0; }
.hb-resa-titre { font-size: 14px; font-weight: 700; color: var(--hb-text); }
.hb-resa-meta  { font-size: 12px; color: var(--hb-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.hb-resa-meta span { display: flex; align-items: center; gap: 4px; }
.hb-resa-prix  { font-size: 15px; font-weight: 800; color: var(--hb-blue); margin-top: 6px; }
.hb-resa-ref   { font-size: 10px; color: #aaa; margin-top: 3px; }
.hb-resa-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Statut badges */
.hb-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px;
             padding: 3px 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hb-badge-attente  { background: #fef3c7; color: #d97706; }
.hb-badge-confirmee { background: #d1fae5; color: #059669; }
.hb-badge-refusee  { background: #fee2e2; color: #dc2626; }
.hb-badge-annulee  { background: #f1f5f9; color: #64748b; }
.hb-badge-terminee { background: #ede9fe; color: #7c3aed; }

/* Boutons actions */
.btn-hb-valider {
  background: #059669; color: #fff; border: none; border-radius: 7px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-hb-valider:hover { background: #047857; }
.btn-hb-refuser {
  background: #dc2626; color: #fff; border: none; border-radius: 7px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-hb-refuser:hover { background: #b91c1c; }
.btn-hb-annuler {
  background: transparent; color: #64748b; border: 1px solid var(--hb-border); border-radius: 7px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-hb-annuler:hover { color: #dc2626; border-color: #dc2626; }

/* Message client */
.hb-msg-client {
  background: #f8fafc; border-left: 3px solid var(--hb-blue);
  border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 12px;
  color: var(--hb-muted); margin-top: 8px; font-style: italic;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.hb-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.18); transform: translateX(120%);
  transition: transform .3s ease; max-width: 320px;
}
.hb-toast-ok  { background: #059669; color: #fff; }
.hb-toast-err { background: #dc2626; color: #fff; }

/* ── Vide state ──────────────────────────────────────────────────────────── */
.hb-vide { text-align: center; padding: 60px 20px; }
.hb-vide-icon { font-size: 52px; color: #cbd5e1; margin-bottom: 12px; }
.hb-vide p { font-size: 15px; color: var(--hb-muted); margin-bottom: 16px; }
.btn-hb-goto { background: var(--hb-blue); color: #fff; border: none; border-radius: 10px;
                padding: 10px 22px; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn-hb-goto:hover { background: #000000; color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .hb-grid { grid-template-columns: 1fr; }
  .hba-dates-grid { grid-template-columns: 1fr; }
  .hb-filtres { flex-direction: column; }
  .hb-filtres .hb-filtre-group { min-width: 100%; }
}
