/* ════════════════════════════════════════════════
   Composants : cards, chips, badges, étoiles, search
   ════════════════════════════════════════════════ */

/* ─── Étoiles ─── */
.stars { display: flex; align-items: center; gap: 2px; font-size: 15px; letter-spacing: 1px; }
.stars__full { color: var(--orange); }
.stars__empty { color: #d6d3c9; }

/* ─── Chips / badges ─── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.chip { background: var(--vert-pale); color: var(--vert-primaire); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 8px; }
.badge { font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: var(--radius-chip); letter-spacing: .04em; }
.badge--region { position: absolute; top: 12px; left: 12px; background: rgba(27,67,50,.9); color: #fff; }
.badge--cat { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--vert-noir); }

/* ─── Card camping ─── */
.card-camping {
  background: #fff; border: 1px solid var(--bordure); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: .15s;
}
.card-camping:hover { border-color: var(--vert-primaire); }
.card-camping__media {
  position: relative; height: 184px; display: block; text-decoration: none;
  background-color: #d7e3da; background-size: cover; background-position: center;
}
.card-camping__media:not([style])  { background: repeating-linear-gradient(135deg, #cfe0d4 0 18px, #c4d9ca 18px 36px); }
.card-camping__ph { position: absolute; bottom: 10px; right: 12px; font-size: 9.5px; letter-spacing: .06em; color: rgba(27,42,34,.55); font-weight: 700; }
.card-camping__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-camping__title { font-weight: 700; font-size: 20px; margin: 0; color: #28332c; }
.card-camping__title a { text-decoration: none; }
.card-camping__city { margin: 0; color: var(--texte-secondaire); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card-camping__city svg { width: 14px; height: 14px; color: var(--texte-gris-clair); }
.card-camping__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #F1EFE8; }
.price { font-size: 13px; color: var(--texte-secondaire); font-weight: 600; }
.price strong { color: var(--vert-fonce); font-size: 16px; }

/* ─── Bouton favori ─── */
.fav-btn { position: absolute; top: 11px; right: 11px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fav-btn svg { width: 16px; height: 16px; color: var(--vert-primaire); }
.fav-btn.is-fav svg { fill: var(--orange); color: var(--orange); }

/* ─── Barre de recherche (hero) ─── */
.search-bar {
  margin-top: 34px; width: 100%; max-width: 840px; background: var(--blanc-casse);
  border-radius: 18px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
}
.search-field { flex: 1 1 150px; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 14px; }
.search-field--where { flex: 2 1 220px; }
.search-field label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--vert-primaire); }
.search-field .input-wrap { display: flex; align-items: center; gap: 8px; }
.search-field input, .search-field select { border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--texte-principal); width: 100%; cursor: pointer; }
.search-field svg { width: 17px; height: 17px; color: var(--texte-secondaire); flex: 0 0 auto; }
.search-sep { width: 1px; background: var(--bordure); align-self: stretch; margin: 6px 0; }
.search-bar .btn { margin-left: auto; min-height: 54px; padding: 0 26px; }

/* ─── Cards "étoiles" (home) ─── */
.star-card { cursor: pointer; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: .15s; }
.star-card:hover { border-color: var(--vert-primaire); }
.star-card h3 { font-weight: 700; font-size: 20px; margin: 0; color: #28332c; }
.star-card p { margin: 0; color: var(--texte-secondaire); font-size: 14px; font-weight: 600; }
.star-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #F1EFE8; display: flex; align-items: center; justify-content: space-between; }
.star-card__count { font-size: 13.5px; color: var(--vert-fonce); font-weight: 800; }

/* ─── Pagination ─── */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--bordure-input); background: #fff; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--texte-principal); padding: 0 10px; }
.pagination .is-current { background: var(--vert-primaire); color: #fff; border-color: var(--vert-primaire); }
.pagination .disabled { opacity: .4; pointer-events: none; }

@media (max-width: 768px) {
  .search-bar { flex-direction: column; }
  .search-sep { display: none; }
  .search-bar .btn { margin-left: 0; width: 100%; }
}
