/* VEHICLES SECTION */

/* Outer section wrapper - full width background */
.vehicles__section {
  width: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 4rem 0;
}

/* Inner content container - constrained width */
.vehicles__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Remove tap highlight for all interactive elements */
button,
a,
.vehicle-book-btn,
.pagination-btn,
.whatsapp-btn,
.close-modal,
.feature-tag {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.vehicles__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.vehicles__section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  margin: 0;
  padding-top: 1.5rem;
}

.vehicles__subtitle {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.vehicles__wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 20px;
  margin: 0 -20px;
}

/* SLIDER */
.vehicles__slider {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
}

.vehicles__slider.dragging {
  cursor: grabbing;
  transition: none;
}

/* Vehicle Cards */
.vehicle-card {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-radius: 0.8rem;
  flex: 0 0 calc((100% - 2rem) / 3);
  padding: 15px;
  text-align: center;
  box-sizing: border-box;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.vehicle-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  pointer-events: none;
  background: #f8f9fa;
  padding: 10px;
}

.vehicle-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vehicle-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: #555;
}

.detail-item i {
  font-size: 1.2rem;
  color: #fd8f44;
}

/* Vehicle Features */
.vehicle-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 1px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #f5f7fa;
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  font-size: 0.6rem;
  color: #555;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  outline: none;
}

.feature-tag i {
  font-size: 0.9rem;
  color: #fd8f44;
}

.feature-tag:hover {
  background: #fd8f44;
  color: #fff;
  border-color: #fd8f44;
  transform: translateY(-2px);
}

.feature-tag:hover i {
  color: #fff;
}

/* Book Now Button */
.vehicle-book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  background: #fd8f44;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px auto 0 auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.vehicle-book-btn span {
  display: flex;
  align-items: center;
}

.vehicle-book-btn i {
  font-size: 1.2rem;
}

.vehicle-book-btn:hover {
  background: #e07b33;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vehicle-book-btn:active {
  transform: translateY(0);
}


/* PAGINATION */
.pagination-counter {
  display: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination-btn.circle {
  background: #fd8f44;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.pagination-btn.circle:hover:not(:disabled) {
  background: #e07b33;
  animation: wiggle 0.4s ease;
}

.pagination-btn.circle:active {
  background: #01bda4;
}

.pagination-btn.circle:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes wiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

/* BOOKING MODAL */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.booking-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: auto;
  -webkit-overflow-scrolling: touch;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.close-modal:hover {
  color: #333;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Form Styles */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  width: 100%;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fd8f44;
}

.form-group input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Validation Warning Message */
.validation-warning {
  font-size: 0.8rem;
  color: #f44336;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.validation-warning.show {
  display: block;
}

.form-group input.error {
  border-color: #f44336;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.whatsapp-btn i {
  font-size: 1.5rem;
}

.whatsapp-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 500;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.toast-success {
  background: #4caf50;
}

.toast-error {
  background: #f44336;
}

.toast-warning {
  background: #ff9800;
}

.toast-info {
  background: #2196f3;
}

.toast-message {
  font-size: 0.95rem;
  color: #fff;
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 1560px) {
  .vehicle-card {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
  .vehicles__wrapper {
    padding: 10px 15px;
    margin: 0 -15px;
  }
}

@media (max-width: 1064px) {
  .vehicle-card {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
  .vehicles__wrapper {
    padding: 10px 15px;
    margin: 0 -15px;
  }
}

@media (max-width: 992px) {
  .vehicle-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
  .vehicles__wrapper {
    padding: 10px 15px;
    margin: 0 -15px;
  }
}

@media (max-width: 768px) {
  .vehicles__container {
    padding: 0 1.5rem;
  }

  .booking-modal {
    padding: 15px;
    align-items: center;
  }

  .modal-content {
    width: 100%;
    max-width: calc(100% - 30px);
    padding: 20px 15px;
    max-height: 85vh;
  }

  .modal-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }

  #booking-form {
    gap: 12px;
  }

  .form-row {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .form-group {
    min-width: 0;
  }

  .form-group label {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 8px;
    font-size: 0.9rem;
    width: 100%;
  }

  .whatsapp-btn {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .validation-warning {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .vehicle-card {
    flex: 0 0 100%;
  }
  
  .vehicles__section {
    padding: 3rem 0;
  }
  
  .vehicles__container {
    padding: 0 1rem;
  }
  
  .vehicles__section__header {
    font-size: 32px;
  }

  .vehicles__subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  
  .vehicle-image {
    height: 180px;
    padding: 8px;
  }

  .vehicle-features {
    gap: 0.4rem;
  }

  .feature-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .feature-tag i {
    font-size: 0.8rem;
  }

  .toast {
    right: 10px;
    left: 10px;
    top: 10px;
  }

  .whatsapp-btn {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  .booking-modal {
    padding: 10px;
    align-items: center;
  }

  .modal-content {
    width: 100%;
    max-width: calc(100% - 20px);
    padding: 18px 12px;
    border-radius: 12px;
    max-height: 88vh;
  }

  .modal-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .close-modal {
    top: 10px;
    right: 12px;
    font-size: 22px;
  }

  #booking-form {
    gap: 10px;
  }

  .form-row {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  .form-group {
    min-width: 0;
  }

  .form-group label {
    font-size: 0.82rem;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 6px;
    font-size: 0.88rem;
    width: 100%;
    min-width: 0;
  }

  .form-group textarea {
    min-height: 70px;
  }

  .whatsapp-btn {
    font-size: 0.92rem;
    padding: 12px 14px;
  }

  .whatsapp-btn i {
    font-size: 1.3rem;
  }

  .vehicle-book-btn {
    font-size: 0.9rem;
    padding: 9px 20px;
    min-width: 100px;
  }

  .validation-warning {
    font-size: 0.72rem;
    margin-top: 3px;
  }
  
  .vehicles__wrapper {
    padding: 10px;
    margin: 0 -10px;
  }
}

@media (max-width: 400px) {
  .form-row {
    gap: 6px;
    grid-template-columns: 1fr 1fr;
  }

  .form-group {
    min-width: 0;
  }

  .form-group input {
    padding: 9px 5px;
    font-size: 0.85rem;
  }

  .form-group label {
    font-size: 0.78rem;
  }

  .validation-warning {
    font-size: 0.68rem;
  }
}