/* ═══════════════════════════════════════════════
   BARRE DE RECHERCHE — MAISON ELBA PREMIUM
   ═══════════════════════════════════════════════ */

.search-bar-form {
  width: 100%;
  max-width: 900px;
  margin-top: 1.5rem;
}

.search-bar {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 6px;
  gap: 0;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 163, 108, 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-bar:hover,
.search-bar:focus-within {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.12);
  border-color: rgba(205, 163, 108, 0.6);
}

.search-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  flex: 1;
  min-width: 0;
  border-radius: 50px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.search-field:hover {
  background: rgba(245, 233, 214, 0.5);
}

.search-field-small {
  flex: 0.6;
}

.search-field label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b5b4a;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.search-field label i {
  margin-right: 3px;
  color: #b37a3d;
}

.search-field input,
.search-field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  width: 100%;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.search-field input::placeholder {
  color: #aaa;
}

.search-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.search-field input[type="number"] {
  -moz-appearance: textfield;
  width: 60px;
}

.search-field input[type="number"]::-webkit-outer-spin-button,
.search-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.search-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.search-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 0;
  flex-shrink: 0;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c88a3d, #9c5714);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(156, 87, 20, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #d49a4d, #b37a3d);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(156, 87, 20, 0.4);
}

.search-btn:active {
  transform: scale(0.98);
}

.search-btn i {
  font-size: 1.1rem;
}

.search-nights-info {
  text-align: center;
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.search-error {
  text-align: center;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════
   PAGE DE RESULTATS
   ═══════════════════════════════════════════════ */

.resultats-page {
  background: #0f0a06;
  color: #f2eadc;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.resultats-hero {
  background: linear-gradient(135deg, #1c0b03, #2d1a10);
  padding: 185px 0 40px;
}

.resultats-hero h1 {
  font-family: 'Playfair Display', 'Bodoni Moda', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f5e9d6;
}

.resultats-summary {
  color: #cda36c;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Search bar compact (page resultats) */
.search-bar-compact {
  margin-top: 1.5rem;
}

.search-bar-compact .search-bar {
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Resultats grid */
.resultats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 40px 0 60px;
}

/* Carte logement resultat */
.resultat-card {
  background: #1b110c;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(205, 163, 108, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.resultat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(205, 163, 108, 0.4);
}

.resultat-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.resultat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resultat-card:hover .resultat-card-img img {
  transform: scale(1.05);
}

.resultat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.resultat-badge-min {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.resultat-badge-flex {
  position: absolute;
  top: 42px;
  left: 12px;
  background: rgba(205, 163, 108, 0.82);
  color: #0f0a06;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.resultat-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resultat-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5e9d6;
  margin: 0;
}

.resultat-card-location {
  color: #cda36c;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.resultat-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.resultat-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #d1c4b0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.resultat-card-equipements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.equip-tag {
  background: rgba(205, 163, 108, 0.08);
  color: #cda36c;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(205, 163, 108, 0.15);
}

.resultat-card-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resultat-prix {
  display: flex;
  flex-direction: column;
}

.resultat-prix-main {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5e9d6;
}

.resultat-prix-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

.resultat-prix-total {
  font-size: 0.78rem;
  color: #cda36c;
  font-weight: 600;
  margin-top: 2px;
}

.resultat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f3c98c, #b37a3d);
  color: #0f0a06;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(179, 122, 61, 0.3);
}

.resultat-cta:hover {
  background: linear-gradient(135deg, #fdd8a0, #c88a3d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(179, 122, 61, 0.4);
  color: #0f0a06;
  text-decoration: none;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results-icon {
  font-size: 3.5rem;
  color: #cda36c;
  margin-bottom: 16px;
}

.no-results h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #f5e9d6;
  margin-bottom: 12px;
}

.no-results p {
  color: #9ca3af;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.alternatives-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #f5e9d6;
  margin-bottom: 20px;
}

.alternative-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(205, 163, 108, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.alternative-card:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 163, 108, 0.35);
}

.alternative-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.alternative-card-body {
  padding: 14px 16px;
}

.alternative-card-body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5e9d6;
  margin-bottom: 4px;
}

.alternative-card-body .alt-message {
  font-size: 0.78rem;
  color: #cda36c;
  margin-bottom: 8px;
}

.alternative-card-body .alt-cta {
  font-size: 0.78rem;
  color: #f3c98c;
  text-decoration: none;
  font-weight: 600;
}

.alternative-card-body .alt-cta:hover {
  text-decoration: underline;
}

/* Demande sur mesure CTA */
.custom-request-box {
  background: linear-gradient(135deg, rgba(205, 163, 108, 0.08), rgba(205, 163, 108, 0.02));
  border: 1px solid rgba(205, 163, 108, 0.25);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.custom-request-box h4 {
  font-family: 'Playfair Display', serif;
  color: #f5e9d6;
  margin-bottom: 8px;
}

.custom-request-box p {
  color: #9ca3af;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.custom-request-box .btn-custom-request {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid #cda36c;
  color: #cda36c;
  padding: 10px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.custom-request-box .btn-custom-request:hover {
  background: #cda36c;
  color: #0f0a06;
}

/* Validation errors */
.validation-errors {
  background: rgba(127, 29, 29, 0.2);
  border: 1px solid rgba(252, 165, 165, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.validation-errors li {
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 991.98px) {
  .search-bar {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 8px;
    gap: 2px;
  }

  .search-field {
    flex: 1 1 40%;
    min-width: 120px;
    padding: 8px 14px;
    border-radius: 16px;
  }

  .search-field-small {
    flex: 1 1 30%;
  }

  .search-divider {
    display: none;
  }

  .search-btn {
    width: 100%;
    margin-top: 4px;
    padding: 14px;
    border-radius: 16px;
    justify-content: center;
    font-size: 0.95rem;
  }

  .resultats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .search-bar-form {
    padding: 0 8px;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .search-field-small {
    flex: 1 1 45%;
  }

  .resultat-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .resultat-cta {
    width: 100%;
    justify-content: center;
  }

  .resultats-hero h1 {
    font-size: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════
   OVERLAY CHARGEMENT RECHERCHE
   ═══════════════════════════════════════════════ */

#searchLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 8, 6, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}

#searchLoadingOverlay p {
  color: #f5e9d6;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin: 0;
}

.spinner-elba {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(205, 163, 108, 0.22);
  border-top-color: #cda36c;
  border-radius: 50%;
  animation: spin-elba 0.9s linear infinite;
}

@keyframes spin-elba {
  to { transform: rotate(360deg); }
}
