/* ===== RECOMMENDATIONS PAGE STYLES ===== */

/* Recommendations Section */
.recommendations-section {
  padding: 40px 0;
  background: white;
}

/* Map Hero Section */
.map-hero {
  position: relative;
  padding: 0;
  min-height: 1100px;
  background: white;
}

.map-hero-content {
  position: relative;
  z-index: 5;
  padding: 60px 20px 100px;
  text-align: center;
  background: white;
}

.map-hero .hero-title {
  font-size: 3.5rem;
  color: #333;
  margin: 0 0 10px 0;
}

.map-hero .hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
}

/* Map Wrapper */
.map-wrapper {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  height: 650px;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 0;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.map-hero .map-wrapper {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.map-legend {
  background: white;
  padding: 20px;
  border-right: 1px solid #f0f0f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-legend h3 {
  margin: 0 0 15px 0;
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  color: #333;
}

.legend-item {
  font-size: 0.9rem;
  color: #666;
  padding: 8px 0;
  font-family: 'Quicksand', sans-serif;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

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

/* Legend Filter Buttons */
.legend-filter {
  display: block;
  width: 100%;
  padding: 10px 8px;
  margin: 0;
  border: 2px solid #ddd;
  background: white;
  color: #333;
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: right;
  margin-bottom: 8px;
}

.legend-filter:hover {
  border-color: #667eea;
  background: #f9f9ff;
  transform: translateY(-2px);
}

.legend-filter.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.legend-filter:last-of-type {
  margin-bottom: 0;
}

/* Map Markers */
.map-marker {
  width: 45px;
  height: 45px;
  background: white;
  border: 3px solid #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.map-icon-beach .map-marker {
  border-color: #3498db;
}

.map-icon-restaurant .map-marker {
  border-color: #e74c3c;
}

.map-icon-village .map-marker {
  border-color: #f39c12;
}

.map-icon-mustSee .map-marker {
  border-color: #e91e63;
}

/* Map Popup */
.map-popup {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
}

/* Leaflet Popup z-index */
.leaflet-popup {
  z-index: 10000 !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
  z-index: 10000 !important;
}

/* Ensure popup is always on top */
.map-wrapper .leaflet-popup-pane {
  z-index: 10000 !important;
}

.popup-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.map-popup h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.map-popup p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.popup-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.popup-btn:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .map-hero .hero-title {
    font-size: 2rem;
  }

  .map-hero .hero-subtitle {
    font-size: 1rem;
  }

  .map-hero {
    min-height: 900px;
  }

  .map-hero-content {
    padding: 60px 20px 80px;
  }

  .recommendations-section {
    padding: 30px 0;
  }

  .map-wrapper {
    grid-template-columns: 1fr;
    height: 500px;
  }

  .map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    max-width: 150px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.95);
    z-index: 400;
  }

  #map {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .recommendations-hero {
    min-height: 300px;
  }

  .recommendations-hero .hero-title {
    font-size: 1.6rem;
  }

  .recommendations-hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .recommendations-section {
    padding: 20px 0;
  }

  .map-wrapper {
    height: 400px;
  }

  .map-legend {
    font-size: 0.85rem;
    padding: 12px;
  }

  .legend-item {
    font-size: 0.8rem;
  }
}

/* ===== ATTRACTIONS GALLERY STYLES ===== */

.attractions-gallery {
  background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin: 0 0 50px 0;
  font-weight: 600;
  font-family: 'Heebo', sans-serif;
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.attraction-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.attraction-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.attraction-header {
  padding: 20px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.attraction-header .icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.attraction-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
  font-family: 'Heebo', sans-serif;
  flex: 1;
}

.attraction-header .region {
  font-size: 0.85rem;
  color: #999;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-family: 'Quicksand', sans-serif;
}

.attraction-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 12px;
  background: #f9f9f9;
  min-height: 180px;
}

.attraction-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.attraction-image:hover {
  transform: scale(1.05);
}

.attraction-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-family: 'Quicksand', sans-serif;
}

.best-for {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.best-for strong {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
  font-family: 'Heebo', sans-serif;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: #e8eef7;
  color: #667eea;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}

.amenities {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.amenities strong {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
  font-family: 'Heebo', sans-serif;
}

.amenities ul {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.amenities li {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
  font-family: 'Quicksand', sans-serif;
  position: relative;
  padding-right: 8px;
}

.amenities li:before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #667eea;
  font-weight: bold;
}

.attraction-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

.btn-link {
  flex: 1;
  display: inline-block;
  padding: 8px 12px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  border: 2px solid transparent;
}

.btn-link:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .attractions-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .attraction-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .attraction-image {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .attractions-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .attraction-images {
    grid-template-columns: 1fr;
  }

  .attraction-image {
    height: 200px;
  }

  .attraction-header {
    flex-direction: column;
    text-align: center;
  }

  .attraction-header h3 {
    flex: none;
  }

  .attraction-header .region {
    width: 100%;
  }

  .attraction-links {
    flex-direction: column;
  }

  .btn-link {
    width: 100%;
  }
}
