/*--------------------------------------------------------------
# Landing Page Styles - CarPrime
# Estilos específicos para la página de vehículos en venta
--------------------------------------------------------------*/

/* Header personalizado para landing - fondo blanco sin menú */
.landing-page .header {
  background-color: #ffffff !important;
  box-shadow: 0px 0 18px rgba(1, 41, 112, 0.1);
  padding: 10px 0 !important;
}

.landing-page .header .logo img {
  max-height: 28px;
}

.landing-page .header .logo h1 {
  font-size: 22px;
}

.landing-page .navmenu a {
  padding: 10px 12px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Hero Section Landing
--------------------------------------------------------------*/
.hero-landing {
  min-height: 40vh;
  background: linear-gradient(135deg, #012970 0%, #4154f1 100%);
  padding: 100px 0 60px 0;
}

.hero-landing h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-landing p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Barra de Filtros
--------------------------------------------------------------*/
.filters-bar {
  background: #ffffff;
  padding: 30px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  border-radius: 8px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.filters-bar .form-control,
.filters-bar .form-select {
  height: 45px;
  border: 1px solid #dce0e7;
  border-radius: 4px;
  font-size: 15px;
  padding: 0 15px;
}

.filters-bar .form-control:focus,
.filters-bar .form-select:focus {
  border-color: #4154f1;
  box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.15);
}

.filters-bar label {
  font-weight: 600;
  color: #012970;
  margin-bottom: 8px;
  font-size: 14px;
}

.filters-bar .btn-clear {
  background: #6c757d;
  color: white;
  border: none;
  height: 45px;
  border-radius: 4px;
  transition: 0.3s;
}

.filters-bar .btn-clear:hover {
  background: #5a6268;
}

/*--------------------------------------------------------------
# Resultados Info
--------------------------------------------------------------*/
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 2px solid #f0f0f0;
}

.results-count {
  font-size: 18px;
  font-weight: 600;
  color: #012970;
}

.results-count span {
  color: #4154f1;
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.view-toggle .btn {
  padding: 8px 15px;
  border: 2px solid #dce0e7;
  background: white;
  color: #012970;
  transition: 0.3s;
}

.view-toggle .btn:hover,
.view-toggle .btn.active {
  background: #012970;
  color: white;
  border-color: #012970;
}

.view-toggle .btn i {
  font-size: 18px;
}

/*--------------------------------------------------------------
# Vista de Tarjetas (Card View)
--------------------------------------------------------------*/
.vehicle-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 0 20px rgba(1, 41, 112, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 30px rgba(1, 41, 112, 0.15);
}

.vehicle-card .card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.vehicle-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.vehicle-card:hover .card-img img {
  transform: scale(1.1);
}

.vehicle-card .card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card .vehicle-title {
  font-size: 22px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 5px;
}

.vehicle-card .vehicle-year {
  color: #6c757d;
  font-size: 15px;
  margin-bottom: 15px;
}

.vehicle-card .vehicle-details {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.vehicle-card .vehicle-details li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.vehicle-card .vehicle-details li:last-child {
  border-bottom: none;
}

.vehicle-card .vehicle-details .label {
  color: #6c757d;
  font-weight: 500;
}

.vehicle-card .vehicle-details .value {
  color: #012970;
  font-weight: 600;
}

.vehicle-card .vehicle-price {
  font-size: 28px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 15px;
  text-align: center;
}

.vehicle-card .vehicle-price small {
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

.vehicle-card .btn-consult {
  background: #012970;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.vehicle-card .btn-consult:hover {
  background: #4154f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

.vehicle-card .btn-action {
  background: #012970;
  color: white;
  border: none;
  padding: 10px 8px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
}

.vehicle-card .btn-action:hover {
  background: #4154f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

.vehicle-card .btn-action i {
  font-size: 16px;
}

/*--------------------------------------------------------------
# Vista de Lista (List View)
--------------------------------------------------------------*/
.vehicle-list-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 0 20px rgba(1, 41, 112, 0.08);
  margin-bottom: 20px;
  overflow: hidden;
  transition: 0.3s;
}

.vehicle-list-item:hover {
  box-shadow: 0px 5px 25px rgba(1, 41, 112, 0.15);
}

.vehicle-list-item .row {
  align-items: center;
}

.vehicle-list-item .list-img {
  height: 180px;
  overflow: hidden;
}

.vehicle-list-item .list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-list-item .list-info {
  padding: 20px;
}

.vehicle-list-item .list-title {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 10px;
}

.vehicle-list-item .list-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.vehicle-list-item .list-details .detail-item {
  display: flex;
  flex-direction: column;
}

.vehicle-list-item .list-details .detail-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
}

.vehicle-list-item .list-details .detail-value {
  font-size: 15px;
  color: #012970;
  font-weight: 600;
}

.vehicle-list-item .list-price {
  text-align: center;
  padding: 20px;
}

.vehicle-list-item .list-price .price {
  font-size: 32px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 15px;
}

.vehicle-list-item .list-price small {
  display: block;
  font-size: 14px;
  color: #6c757d;
}

/*--------------------------------------------------------------
# Control de Vistas
--------------------------------------------------------------*/
.list-view {
  display: block;
}

.list-view.d-none {
  display: none !important;
}

.grid-view.d-none {
  display: none !important;
}

/*--------------------------------------------------------------
# Modal de Consulta
--------------------------------------------------------------*/
#consultModal .modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 40px rgba(1, 41, 112, 0.2);
}

#consultModal .modal-header {
  background: linear-gradient(135deg, #012970 0%, #4154f1 100%);
  color: white;
  border-radius: 10px 10px 0 0;
  padding: 20px 25px;
}

#consultModal .modal-header .modal-title {
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
}

#consultModal .modal-header .modal-title i {
  color: #ffffff;
}

#consultModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

#consultModal .modal-body {
  padding: 30px 25px;
}

#consultModal .vehicle-info-modal h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#consultModal .alert-info {
  background-color: rgba(65, 84, 241, 0.1);
  border: 1px solid rgba(65, 84, 241, 0.3);
  color: #012970;
}

#consultModal .form-label {
  font-weight: 600;
  color: #012970;
  font-size: 14px;
}

#consultModal .form-control {
  border: 1px solid #dce0e7;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 15px;
  transition: 0.3s;
}

#consultModal .form-control:focus {
  border-color: #4154f1;
  box-shadow: 0 0 0 0.2rem rgba(65, 84, 241, 0.15);
}

#consultModal .form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #dce0e7;
  margin-top: 2px;
}

#consultModal .form-check-input:checked {
  background-color: #4154f1;
  border-color: #4154f1;
}

#consultModal .form-check-label {
  font-size: 14px;
  margin-left: 8px;
  color: #444;
}

#consultModal .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 20px 25px;
}

#consultModal .btn-secondary {
  background: #6c757d;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  transition: 0.3s;
}

#consultModal .btn-secondary:hover {
  background: #5a6268;
}

#consultModal .btn-primary {
  background: #012970;
  border: none;
  padding: 10px 25px;
  font-weight: 600;
  transition: 0.3s;
}

#consultModal .btn-primary:hover {
  background: #4154f1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(65, 84, 241, 0.3);
}

#consultModal .invalid-feedback {
  font-size: 13px;
  margin-top: 5px;
}

#consultModal .form-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

/* Animación del modal */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero-landing {
    min-height: auto;
    padding: 80px 0 30px 0;
  }

  .hero-landing h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .hero-landing p {
    font-size: 16px;
    margin-bottom: 0;
  }

  .filters-bar {
    margin-top: 0;
    padding: 20px;
  }

  .results-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .vehicle-list-item .list-img {
    height: 200px;
  }

  .vehicle-list-item .list-price {
    border-top: 2px solid #f0f0f0;
  }

  .vehicle-card .card-img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-landing h1 {
    font-size: 28px;
  }

  .hero-landing p {
    font-size: 16px;
  }

  .filters-bar .col-lg-1,
  .filters-bar .col-lg-2,
  .filters-bar .col-lg-3 {
    margin-bottom: 10px;
  }

  .vehicle-card .vehicle-title {
    font-size: 20px;
  }

  .vehicle-card .vehicle-price {
    font-size: 24px;
  }

  .vehicle-list-item .list-title {
    font-size: 20px;
  }

  .vehicle-list-item .list-price .price {
    font-size: 28px;
  }
}
