/* Venues List Page Styles */

.venues-list-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.venues-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.venues-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.venues-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.venues-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  font-weight: 500;
}

.venues-main-content {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Left Section: Venues List */
.venues-list-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.venues-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.venues-list-header h2 {
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 700;
}

.venues-filter {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-select:hover {
  border-color: var(--primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.venue-card-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.venue-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Added background-size and background-position for venue photos */
.venue-card-image {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Kategoriye göre farklı gradient renkler eklendi */
.venue-card-image[data-category*="Restoran"] {
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
}

.venue-card-image[data-category*="Kafe"] {
  background: linear-gradient(135deg, #a0522d 0%, #6b4423 100%);
}

.venue-card-image[data-category*="Otel"] {
  background: linear-gradient(135deg, #4a90e2 0%, #2e5c8a 100%);
}

.venue-card-image[data-category*="Mağaza"] {
  background: linear-gradient(135deg, #9b59b6 0%, #6c3483 100%);
}

.venue-card-image[data-category*="Eğlence"] {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.venue-card-image[data-category*="Sağlık"] {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.venue-card-image[data-category*="Eğitim"] {
  background: linear-gradient(135deg, #3498db 0%, #2874a6 100%);
}

.venue-card-image[data-category*="Kültür"] {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* Placeholder ikon stili eklendi */
.venue-image-placeholder {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.venue-image-placeholder svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.venue-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c3e50;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.venue-card-content {
  padding: 1.5rem;
}

.venue-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.venue-card-location {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.venue-card-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

.venue-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

.venue-stat svg {
  color: var(--primary);
}

/* Right Section: Map */
.venues-map-section {
  position: relative;
}

.map-sticky-container {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.map-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.map-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.map-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

.venues-map {
  height: 600px;
  width: 100%;
}

/* Loading & Messages */
.loading-indicator {
  text-align: center;
  padding: 3rem 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.loading-indicator p {
  color: var(--gray);
  font-size: 1rem;
}

.no-more-message {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .venues-main-content {
    grid-template-columns: 1fr;
  }

  .venues-map-section {
    order: -1;
  }

  .map-sticky-container {
    position: relative;
    top: 0;
    z-index: 1;
  }

  .venues-map {
    height: 400px;
  }
}

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

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

  .venues-main-content {
    padding: 1rem;
    gap: 1rem;
  }

  .venues-list-section {
    padding: 1.5rem;
  }

  .venues-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .venues-map {
    height: 300px;
  }
}
