
.owner-section {
  margin-bottom: 2rem;
}

.owner-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #d75252d7; 
}

/* liste de restos */
.resto-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* carte resto */
.resto-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 280px;
  transition: all 0.3s ease;
  color: #333;
  position: relative;
  overflow: hidden;
}

.resto-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
  transition: all 0.5s ease;
}

.resto-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.resto-card.resto-ferme {
  border: 1px solid rgba(75, 75, 75, 0.3) !important;
}

.resto-card.resto-ferme:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(23, 23, 23, 0.123);
  border: 1px solid rgba(52, 52, 52, 0.4) !important;
}

.resto-card:hover::before {
  top: -20%;
  left: -20%;
}

.resto-card h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resto-card p {
  margin: 0.5rem 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.resto-card p strong {
  color: #ff6b6b;
  font-weight: 600;
}



.btn {
  display: inline-block;
  margin-top: 0.7rem;
  margin-right: 0.5rem;
  text-decoration: none;
  text-align: center;
  padding: 0.6rem 0.9rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8c42);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  border-radius: 0.8rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff8c42, #ff6b6b);
}

.btn:hover::after {
  left: 0;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.back-link {
  display: inline-block;
  margin-top: -10px;
  text-decoration: none;
  color: #ff6b6b;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  background: rgba(255, 107, 107, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-link:hover {
  transform: scale(1.05);
  background: rgba(255, 107, 107, 0.2);
  color: #e05555;
}
.leaflet-control-zoom {
  z-index: 999 !important;
}
.leaflet-control {
  z-index: 999 !important;
}

.btn-favorite {
    background: rgba(240, 168, 168, 0.33);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
    padding: 0.3rem;
    position: relative;
    margin-top: -10px;
    margin-right: -10px;
    z-index: 10;
}

.btn-favorite:hover {
    transform: scale(1.2);
}

.btn-favorite.active .favorite-icon {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.49);
    backdrop-filter: blur(12px);
    color: #333;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'HSR', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
    z-index: 10000;
    font-weight: 600;
}

.flash-message.success {
    border-left: 4px solid #4CAF50;
}

.flash-message.error {
    border-left: 4px solid #ff6b6b;
}

.flash-message.hide {
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: all 0.4s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

h1 {
  text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.3);
}

.resto-card.resto-ferme {
  border: 1px solid rgba(75, 75, 75, 0.3);
  backdrop-filter: blur(15px);
}

.card-dimmed {
    opacity: 0.7;
    filter: blur(2px);
}

.overlay-ferme {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 1rem;
  pointer-events: auto;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 0.8; }
}

.overlay-controls {
  position: absolute;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  pointer-events: none;
  background: transparent;
}

.overlay-ferme-text {
  display: block;
  font-family: 'HSR', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  color: #ff6b6b;
  text-shadow: 0 2px 10px rgba(255, 107, 107, 0.45);
  pointer-events: auto;
}

.btn-modifier-ferme {
  display: inline-block;
  font-family: 'HSR', sans-serif;
  font-size: 1rem !important;
  padding: 0.6rem 1.1rem !important;
  background: linear-gradient(135deg, #ff6b6b, #ff8c42) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modifier-ferme:hover {
    background: linear-gradient(135deg, rgb(255,107,107), rgb(255,140,66)) !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 14px rgba(255, 107, 107, 0.45);
    color: #fff !important;
}
/* ══════════════════════════════════════════════
   Panneau de filtres (recherche / prix / proprio)
   ══════════════════════════════════════════════ */
.filter-wrapper {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 999999999;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 230px;
  max-width: calc(100vw - 2rem);
  font-family: 'HSR', sans-serif;
}

.filter-title {
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-align: center;
}

.filter-subtitle {
  color: #333;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.3rem;
  margin-bottom: -0.2rem;
}

/* ── Recherche texte ── */
.filter-search-box {
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.filter-search-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  background: rgba(207, 207, 207, 0.1);
  backdrop-filter: blur(10px);
  font-family: 'HSR', sans-serif;
  font-size: 0.9rem;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: all 0.25s ease;
  border: 2px solid rgba(228, 121, 121, 0.35) !important;
  background-clip: padding-box;
}

.filter-search-input::placeholder {
  color: rgba(51, 51, 51, 0.6);
  font-size: 0.9rem;
}

.filter-search-input:focus {
  border-color: #ff6b6b !important;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
  transform: scale(1.03);
}

.filter-search-results {
  display: none;
  position: fixed;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 320px;
  margin-top: -3.8px;
  overflow-y: auto;
  z-index: 2147483647;
  border: none;
}

.filter-search-results.open {
  display: block;
}

/* scrollbar personnalisée */ 
.filter-search-results.open::-webkit-scrollbar { 
  width: 4px; 
}

.filter-search-results.open::-webkit-scrollbar-track {
  background: rgba(255, 255, 254, 0.1); 
  border-radius: 20px; 
}

.filter-search-results.open::-webkit-scrollbar-thumb {
  background: rgba(228, 128, 128, 0.5);
  border-radius: 20px;
  transition: all ease 0.2s;
}

.filter-search-results.open::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 95, 95, 0.7);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
  line-height: 1.2;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 107, 107, 0.12);
}

.search-result-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.search-result-label {
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sublabel {
  font-size: 0.72rem;
  line-height: 1.15;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-empty {
  padding: 0.8rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* ── Filtre prix moyen ── */
.filter-select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 2px solid rgba(228, 121, 121, 0.35);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-family: 'HSR', sans-serif;
  font-size: 0.88rem;
  color: #333;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #ff6b6b;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

/* ── Boutons filtre proprio ── */
/* Conteneur extérieur : gère le scroll vertical et absorbe le débordement
   du scale() des boutons pour éviter qu'il ne soit rogné (overflow-x devient
   automatiquement "auto" dès que overflow-y n'est pas "visible" — c'est ce
   padding qui donne la marge nécessaire, sans réduire la taille des boutons). */
.filter-owner-scroll {
  max-height: 224px;
  overflow-y: auto;
  padding: 2px 0px;
  margin: 0 -8px;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / Edge */
}

.filter-owner-scroll::-webkit-scrollbar {
  display: none;              /* Chrome / Safari / Edge Chromium */
}

/* Conteneur intérieur : taille d'origine, aucun padding, aucun overflow */
.filter-owner-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #222;
  border: none;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  font-family: 'HSR', sans-serif;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  flex-shrink: 0;
  width: 90%;
  box-sizing: border-box;
  text-align: center;
  z-index: 1000;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
  transition: all ease 0.2s;
}

.filter-btn.active {
  background: #ff6b6b;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
}

/* Animation douce quand les sections apparaissent/disparaissent */
.owner-section {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.owner-section.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

@media (max-width: 480px) {
  .filter-wrapper {
    width: 190px;
    padding: 0.7rem;
    right: 0.5rem;
  }

  .filter-owner-scroll {
    max-height: 160px;
  }
}

/* ── Message "aucun résultat" (filtres combinés sans correspondance) ── */
.filter-no-results {
  display: none;
  text-align: center;
  margin: 2.5rem auto;
  padding: 1.6rem 2rem;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.2rem;
  color: #555;
  font-family: 'HSR', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.filter-no-results.visible {
  display: block;
  animation: fadeInNoResults 0.35s ease;
}

.filter-no-results-icon {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

@keyframes fadeInNoResults {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Pagination liste restaurants ── */
.resto-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}
.pagination-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8c42);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
  transition: all 0.3s ease;
}
.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.4);
  background: linear-gradient(135deg, #ff8c42, #ff6b6b);
}
.pagination-info {
  font-weight: 600;
  color: #555;
  font-family: 'HSR', sans-serif;
}

/* ══════════════════════════════════════════════
   Skeleton loaders (état de chargement AJAX)
   Remplace l'ancien fade à opacité 0.35 : affiche des
   placeholders animés le temps que la requête AJAX réponde.
   ══════════════════════════════════════════════ */
.skeleton-group {
  margin-bottom: 2rem;
}

.skeleton-owner-title {
  width: 180px;
  height: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.skeleton-resto-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.skeleton-card {
  width: 280px;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skeleton-line {
  height: 0.9rem;
  border-radius: 0.4rem;
}

.skeleton-line.skeleton-title { height: 1.25rem; width: 70%; }
.skeleton-line.skeleton-short { width: 50%; }
.skeleton-line.skeleton-btn   { height: 2.2rem; width: 45%; margin-top: 0.4rem; border-radius: 0.8rem; }

.skeleton-owner-title,
.skeleton-line {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.15) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Pagination restaurants : numéros de page circulaires ── */
.resto-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0 0.5rem;
  flex-wrap: wrap;
  margin-top: -14px;
}

.resto-pager-arrow,
.resto-pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 107, 107, 0.25);
  color: #333;
  font-family: 'HSR', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.resto-pager-arrow {
  font-size: 1.3rem;
}

.resto-pager-num:hover,
.resto-pager-arrow:hover {
  transform: translateY(-3px) scale(1.08);
  background: rgba(255, 107, 107, 0.18);
  border-color: #ff6b6b;
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.25);
}

.resto-pager-num.active {
  background: linear-gradient(135deg, #ff6b6b, #ff8c42);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.45);
  transform: scale(1.08);
}

.resto-pager-arrow.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.resto-pager-ellipsis {
  color: #888;
  font-weight: 700;
  padding: 0 0.2rem;
}

.resto-pager-info {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.6rem;
  font-family: 'HSR', sans-serif;
}