/* Wine Farms Section */
.wine-farms-section {
  padding: 40px 0;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #ddd;
}

.search-box i {
  color: var(--maroon);
  margin-right: 10px;
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #333;
}

.search-input:focus {
  outline: none;
}

/* Wine Farms Grid */
.wine-farms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.wine-farm-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.wine-farm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== IMAGE FIX - UPDATED ===== */
.wine-farm-image-container {
  height: 200px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.wine-farm-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.wine-farm-card:hover .wine-farm-image {
  transform: scale(1.05);
}
/* ===== END IMAGE FIX ===== */

.wine-farm-label {
  background: #1b1b1b;
  color: white;
  padding: 16px;
  border-radius: 0 0 12px 12px;
}

.wine-farm-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: 'Montserrat', sans-serif;
}

.wine-farm-location {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wine-farm-location i {
  color: var(--maroon);
}

.wine-farm-description {
  font-size: 13px;
  opacity: 0.8;
  margin: 8px 0;
  line-height: 1.4;
  max-height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Contact Info */
.wine-farm-contact {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
  color: var(--maroon);
  font-size: 11px;
}

/* Video Indicator */
.video-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--maroon);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff5f5;
  border-radius: 12px;
  border: 1px solid #ffcccc;
}

.error-state i {
  font-size: 48px;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.error-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.error-state p {
  color: #6d6d6d;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f8f8f8;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.empty-state i {
  font-size: 64px;
  color: var(--maroon);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1b1b1b;
  margin-bottom: 10px;
}

.empty-state p {
  color: #6d6d6d;
  font-size: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Active Nav Link */
.main-nav a.active {
  color: var(--maroon);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1100px) {
  .wine-farms-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .wine-farms-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 600px) {
  .wine-farms-grid {
    grid-template-columns: 1fr;
  }
  
  .wine-farm-image-container {
    height: 180px;
  }
}

@media (max-width: 400px) {
  .wine-farm-image-container {
    height: 160px;
  }
  
  .wine-farm-title {
    font-size: 16px;
  }
  
  .wine-farm-description {
    font-size: 12px;
  }
}