/* Custom CSS for Nasia Taxi Service Enhanced Features */

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.testimonial-slides {
  display: flex;
  height: 100%;
}

.testimonial-slide {
  min-width: 100%;
  transition: transform 0.5s ease;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #0F4C81;
}

.carousel-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0F4C81;
  transition: all 0.3s;
}

.carousel-arrow:hover {
  background-color: #0F4C81;
  color: white;
}

/* Booking Form Styles */
.booking-form {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.booking-form:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #2C3E50;
  background-color: #f8f9fa;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #0F4C81;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2C3E50;
}

/* Google Map Container */
.map-container {
  height: 400px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 200px;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .overlay {
  height: 100%;
}

.gallery-item .overlay-text {
  color: white;
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp i {
  font-size: 30px;
}

.floating-whatsapp .tooltip {
  position: absolute;
  right: 70px;
  background-color: #fff;
  color: #333;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.floating-whatsapp:hover .tooltip {
  opacity: 1;
}

/* Price Comparison Table */
.price-comparison {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.price-header {
  background-color: #0F4C81;
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}

.price-row {
  display: flex;
  border-bottom: 1px solid #eeeeee;
}

.price-col {
  flex: 1;
  padding: 1rem;
  text-align: center;
  background-color: white;
}

.price-col:first-child {
  background-color: #f8f9fa;
  font-weight: 500;
  text-align: left;
}

.price-col.highlight {
  background-color: #F39C12;
  color: white;
  position: relative;
}

.price-saving {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #16A085;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 404 Error Page */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  padding: 0 2rem;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: #0F4C81;
  margin-bottom: 1rem;
  position: relative;
}

.error-message {
  font-size: 1.5rem;
  color: #2C3E50;
  margin-bottom: 2rem;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 1s ease-in-out;
}

.bounce {
  animation: bounce 1s ease infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery-item .overlay-text {
    font-size: 0.875rem;
  }
  
  .price-row {
    flex-direction: column;
  }
  
  .price-col {
    border-bottom: 1px solid #eeeeee;
  }
  
  .price-col:first-child {
    background-color: #0F4C81;
    color: white;
    text-align: center;
  }
  
  .price-comparison {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
} 