/* Estilos para la página de listado */
.main-content {
    max-width: 1350px !important;
    width: 95% !important;
    margin: 0 auto !important;
    background: #fff !important;
}

.listing-page {
    width: 100%;
    padding: 30px 0;
    background: #fff !important;
}

.page-content {
    background: #fff !important;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Estilos para los filtros */
.listing-filter {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.lf-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ffc107;
}

.filter-area {
    background: #000;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filter-area .container {
    position: relative;
}

.filter-area select,
.filter-area input {
    height: 45px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 0 15px;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s ease;
}

.filter-area select:focus,
.filter-area input:focus {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
    outline: none;
}

.filter-area select option {
    background: #000;
    color: #fff;
    padding: 10px;
}

.filter-area label {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-area .form-group {
    margin-bottom: 20px;
}

.filter-area .btn {
    background: #ffd700;
    color: #000;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 24px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-area .btn:hover {
    background: #ffdf2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.filter-area .btn i {
    margin-right: 8px;
}

@media (max-width: 991px) {
    .filter-area {
        padding: 25px;
        margin: 20px 0;
    }
}

@media (max-width: 767px) {
    .filter-area {
        padding: 20px;
        margin: 15px 0;
    }

    .filter-area select,
    .filter-area input {
        height: 40px;
        font-size: 14px;
    }

    .filter-area label {
        font-size: 13px;
    }

    .filter-area .btn {
        padding: 10px 20px;
        font-size: 15px;
        height: 40px;
    }
}

.search-container {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-button {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-button-yellow {
    background-color: #ffc107;
    color: #000;
}

.filter-button-yellow:hover {
    background-color: #ffca2c;
    transform: translateY(-1px);
}

.filter-button-dark {
    background-color: #212529;
    color: #fff;
}

.filter-button-dark:hover {
    background-color: #343a40;
    transform: translateY(-1px);
}

.filter-button .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Estilos para el modal de filtros */
.modal-content {
    border: none;
    border-radius: 8px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    color: #2c3e50;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Estilos para los inputs y selects */
.form-control-sm,
.form-select-sm {
    height: 35px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.form-label.small {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.form-check-inline {
    margin-right: 1rem;
}

.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.custom-input,
.custom-select,
.form-control,
.form-select {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    background-color: #fff;
    color: #2c3e50;
    font-weight: 500;
    width: 100%;
    height: 50px;
    line-height: 1.5;
}

input[type="text"].form-control {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.form-select {
    padding: 0.75rem 1.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    color: #2c3e50;
    font-weight: 500;
    width: 100%;
    height: 50px;
    line-height: 1.5;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.form-select option {
    padding: 0.75rem;
    background-color: #fff;
    color: #2c3e50;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    color: #2c3e50;
}

.custom-select option {
    background-color: #fff;
    color: #2c3e50;
    padding: 10px;
}

/* Estilos para la sección SEO */
.seo-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.feature-item h4 {
    color: #2c3e50;
    font-weight: 600;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 0.5rem;
}

.accordion-button {
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: #2c3e50;
}

.accordion-button:not(.collapsed) {
    background-color: #ffc107;
    color: #000;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.cta-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.list-unstyled li {
    padding: 0.5rem 0;
}

.text-success {
    color: #28a745 !important;
}

/* Estilos para el modal */
#advancedFiltersModal {
    z-index: 9999;
}

#advancedFiltersModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#advancedFiltersModal .modal-header {
    border: none;
    padding: 20px 30px;
}

#advancedFiltersModal .modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

#advancedFiltersModal .modal-body {
    padding: 20px 30px;
}

/* Estilos para las tarjetas de vehículos */
.main-content .vehicle-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.main-content .vehicle-card .row {
    display: flex;
    align-items: center;
}

.main-content .vehicle-card .col-md-4 {
    width: 250px !important;
    min-width: 250px !important;
    height: 180px !important;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.main-content .vehicle-card .col-md-4 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
}

.main-content .vehicle-card .card-body {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .main-content .vehicle-card .col-md-4 {
        width: 140px !important;
        min-width: 140px !important;
        height: 140px !important;
    }
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b00;
}

.vehicle-details {
    font-size: 0.9rem;
    color: #666;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.detail-item i {
    color: #666;
}

.listing-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-warning {
    background-color: #ff6b00;
    border-color: #ff6b00;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background-color: #ff5500;
    border-color: #ff5500;
    color: white;
}

/* Estilos para la paginación */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: #ffc107;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: #ffb300;
    background-color: #f8f9fa;
}

.page-item.active .page-link {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Estilos para el contenido SEO */
.seo-content {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.seo-content h2,
.seo-content h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Estilos para FAQs */
.faqs-container {
    margin-top: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: "Q:";
    color: #ffc107;
    font-weight: 700;
    margin-right: 0.5rem;
}

.faq-answer {
    color: #6c757d;
    padding-left: 1.5rem;
}

/* Estado vacío */
.empty-state {
    color: #6c757d;
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Estilos para encabezados */
h1.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

h2.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

h2.h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

h2.h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

h3.faq-question {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Estilo para los enlaces convertidos a párrafos */
.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.footer-link:hover {
    color: #ffc107;
}

/* Ajustamos el tamaño de la imagen en dispositivos móviles */
@media (max-width: 768px) {
    .listing-image {
        height: 200px;
    }
}

/* Estilos para la sección de localizaciones */
.locations-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.location-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.location-tag:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
    text-decoration: none;
}

@media (max-width: 768px) {
    .locations-tags-grid {
        gap: 0.4rem;
    }
    
    .location-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vehicle-card .row {
        flex-direction: column;
    }
    
    .vehicle-card .card-body {
        padding: 1rem;
    }
    
    .price-tag {
        font-size: 1.25rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
}

/* Estilos para la tarjeta de servicio y la imagen */
.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.service-card .col-md-4 {
    max-width: 250px;
    height: 180px;
    overflow: hidden;
}

.service-card .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .box-body {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .service-card .col-md-4 {
        max-width: 140px;
        height: 140px;
    }
}

/* Estilos para el listado de coches */
.listings-list {
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.box-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.brand-model {
    color: #6c757d;
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    background: #ffc107;
    color: #000 !important;
    padding: 15px;
    border-radius: 100px;
}

.listing-details {
    margin: 1rem 0;
    color: #6c757d;
}

.listing-details span {
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

.listing-details i {
    margin-right: 0.5rem;
    color: #ffc107;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .service-image {
        height: 200px;
    }
    
    .box-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.25rem;
    }
}
