/* Areas Section */
.areas-section {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .areas-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.areas-carousel {
  position: relative;
}

@media (min-width: 1024px) {
  .areas-carousel {
    overflow: hidden;
    position: relative;
  }

  .areas-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    grid-template-columns: none;
    will-change: transform;
  }

  .area-card {
    flex: 0 0 260px;
  }
}

.area-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .area-card:hover {
    box-shadow:
      0 10px 15px -3px rgba(0, 0, 0, 0.1),
      0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
  }
}

/* Mobile: hide content by default */
@media (max-width: 767px) {
  .area-card .area-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition: all 0.3s ease;
  }

  /* Show content when expanded */
  .area-card.expanded .area-content {
    max-height: 600px;
    opacity: 1;
    padding: 0.75rem;
  }
}

.area-image {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.6), transparent);
}

.area-title {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  font-weight: 600;
  color: var(--primary-foreground);
  font-size: 1.125rem;
  z-index: 1;
}

.area-content {
  padding: 0.75rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .area-content {
    padding: 1.25rem;
  }
}

.area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.area-item {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  word-break: break-word;
}

@media (min-width: 768px) {
  .area-item {
    font-size: 0.875rem;
  }
}

.area-item::before {
  content: "•";
  color: var(--accent);
  margin-top: 0.25rem;
}
