/* ===== MAPPA E LISTA RISTORANTI ===== */

#spec-map-container {
  min-height: 600px;
}

#spec-map {
  height: 100%;
  min-height: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#spec-restaurant-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Scrollbar personalizzata */

#spec-restaurant-list::-webkit-scrollbar {
  width: 8px;
}

#spec-restaurant-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#spec-restaurant-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#spec-restaurant-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Restaurant Cards */

.restaurant-card {
  transition: all 0.3s ease;
  background: #fff;
}

.restaurant-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.restaurant-card.highlighted {
  border-color: #0d6efd !important;
  border-width: 2px;
  background-color: #f0f8ff;
}

/* Custom Markers */

.custom-marker, .user-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 30px;
  height: 40px;
  background-color: #ff6b6b;
  border-radius: 50% 50% 50% 0;
  position: relative;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.marker-highlighted .marker-pin {
  background-color: #0d6efd !important;
  transform: rotate(-45deg) scale(1.2);
  z-index: 1000 !important;
}

.marker-pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: white;
  font-size: 16px;
}

.user-marker-pin {
  width: 30px;
  height: 40px;
  background-color: #4CAF50;
  border-radius: 50% 50% 50% 0;
  position: relative;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-marker-pin i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  color: white;
  font-size: 14px;
}

/* Marker Popup */

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
  margin: 0;
  width: auto !important;
}

.marker-popup {
  min-width: 150px;
}

.marker-popup-content {
  padding: 12px 15px;
}

.marker-popup-title {
  display: block;
  font-size: 1rem;
  color: #333;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}

.marker-popup-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Geolocation Button */

#geo-location-btn {
  transition: all 0.3s ease;
}

#geo-location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive */

@media (max-width: 991px) {
  #spec-map {
    min-height: 400px;
    margin-bottom: 1rem;
  }
}

.offcanvas-body {
    padding: 1rem;
}

#spec-restaurant-list-mobile .restaurant-card {
    border-left: none;
    border-right: none;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    border-top: none;
    border-bottom: 1px solid #eee;
    padding-left: 0;
    padding-right: 0;
}

#spec-restaurant-preview .restaurant-card:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  #spec-restaurant-list {
    max-height: none;
  }
}

/* ===== FASCIA PREZZO ===== */

.price-indicator {
  font-weight: 600;
  color: #64473a;
  font-size: 1rem;
  letter-spacing: -1px;
}

/* ===== ATMOSFERA TAGS (stile Notion) ===== */

.atmosphere-tag {
  display: inline-block;
  padding: 3px 8px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64473a;
  background-color: #f5e6d3;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.atmosphere-tag:hover {
  background-color: #ead5bb;
  transform: translateY(-1px);
}

/* Varianti colore atmosfera (opzionale) */

.atmosphere-tag.romantic {
  background-color: #ffe0e6;
  color: #8b3a3a;
}

.atmosphere-tag.family {
  background-color: #d4edda;
  color: #155724;
}

.atmosphere-tag.professional {
  background-color: #cfe2ff;
  color: #084298;
}

.atmosphere-tag.seaview {
  background-color: #d1ecf1;
  color: #0c5460;
}

.atmosphere-tag.downtown {
  background-color: #fff3cd;
  color: #856404;
}

