/* ================================================
   ENHANCED LOCATIONS SECTION - Mauno Rental
   ================================================ */

.locations-section {
  padding: 80px 0;
  background: white;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.location-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(26, 54, 93, 0.2);
  border-color: #1a365d;
}

.location-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.location-card:hover .location-image img {
  transform: scale(1.1);
}

.location-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 54, 93, 0) 0%,
    rgba(26, 54, 93, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.location-card:hover .location-overlay {
  opacity: 1;
}

.location-overlay i {
  font-size: 3rem;
  color: white;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.location-content {
  padding: 30px;
}

.location-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 15px;
  font-family: 'Poppins', Arial, sans-serif;
}

.location-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.location-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.location-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.location-feature:hover {
  color: #1a365d;
  transform: translateX(5px);
}

.location-feature i {
  color: #1a365d;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.location-btn:hover {
  background: linear-gradient(135deg, #0d1b2e 0%, #1a365d 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
  color: white;
  text-decoration: none;
}

.location-btn i {
  transition: transform 0.3s ease;
}

.location-btn:hover i {
  transform: translateX(5px);
}

.locations-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px dashed #e0e0e0;
}

.locations-cta-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 991px) {
  .locations-section {
    padding: 60px 0;
  }

  .locations-grid {
    gap: 30px;
  }

  .location-image {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .location-image {
    height: 200px;
  }

  .location-content {
    padding: 25px;
  }

  .location-title {
    font-size: 1.4rem;
  }

  .location-description {
    font-size: 0.95rem;
  }

  .locations-cta {
    margin-top: 40px;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .location-image {
    height: 180px;
  }

  .location-content {
    padding: 20px;
  }

  .location-title {
    font-size: 1.3rem;
  }

  .location-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

.location-btn:focus {
  outline: 3px solid #ffd700;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .location-card:hover {
    transform: none;
  }

  .location-card:hover .location-image img {
    transform: none;
  }

  .location-overlay i {
    animation: none;
  }

  .location-feature:hover {
    transform: none;
  }

  .location-btn:hover {
    transform: none;
  }
}
