/* Estilos modernos 2025 */
.vehicle-detail-page {
    background-color: #fff;
    padding: 30px 0;
}

.vehicle-header {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.vehicle-header .container {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
}

.vehicle-slider {
    margin-top: 40px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-save, .btn-contact {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-save {
    background-color: #fff;
    color: #333;
    border: 2px solid #ffd700;
}

.btn-save:hover {
    background-color: #ffd700;
    color: #333;
}

.btn-save.active {
    background-color: #ffd700;
    color: #333;
}

.btn-contact {
    background-color: #ffd700;
    color: #333;
}

.btn-contact:hover {
    background-color: #ffed4a;
    transform: translateY(-2px);
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

.vehicle-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.vehicle-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-modern {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-modern {
    background: #ffd700;
    color: #1a202c;
    border: none;
}

.btn-outline-modern {
    background: #fff;
    color: #ffd700;
    border: 2px solid #ffd700;
}

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

/* Galería moderna */
.gallery-section {
    position: relative;
    margin-bottom: 3rem;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f0f0f0;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 100px;
    height: 75px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active {
    border-color: #ffd700;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-nav button:hover {
    background: rgba(255, 215, 0, 0.4);
}

.modal-nav i {
    font-size: 24px;
}

/* Estilos para las flechas de navegación */
.nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.nav-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-arrow i {
    font-size: 20px;
}

/* Estilos de la tarjeta del vendedor */
.seller-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffd700;
    background-color: #f8f9fa;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info {
    flex-grow: 1;
    min-width: 0;
}

.seller-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    font-size: 1.1rem;
}

.rating-stars i {
    color: #ffd700;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.rating-count {
    color: #666;
}

.seller-contact {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #4a5568;
}

.contact-item i {
    flex-shrink: 0;
    width: 20px;
    color: #ffd700;
}

.contact-item a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item a:hover {
    color: #ffd700;
}

.btn-contact-seller {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: #ffd700;
    color: #1a202c;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-contact-seller:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #ffed4a;
    color: #1a202c;
}

.btn-contact-seller i {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .seller-card {
        position: static;
    }
}

/* Detalles del vehículo */
.vehicle-details {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: #ffd700;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: #fff9e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
}

.spec-info {
    flex: 1;
}

.spec-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.2rem;
}

.spec-value {
    font-weight: 600;
    color: #1a202c;
}

/* Información del vendedor */
.seller-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e6f0ff;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #4a5568;
}

.contact-item i {
    color: #ffd700;
    width: 20px;
}

/* Estilos para las opiniones */
.no-reviews {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #718096;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.reviewer-details h4 {
    font-size: 1rem;
    margin: 0;
    color: #2d3748;
}

.review-date {
    font-size: 0.875rem;
    color: #718096;
}

.review-rating {
    color: #ffd700;
}

.review-content {
    color: #4a5568;
    line-height: 1.6;
}

.add-review-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.add-review-section h4 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.rating-selector {
    margin-bottom: 1.5rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #cbd5e0;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffd700;
}

.review-form textarea {
    min-height: 120px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #718096;
}

.login-prompt i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.login-prompt a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Estilos para las secciones de detalles */
.vehicle-details-section {
    padding: 0;
    background-color: #fff;
}

.detail-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.detail-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: #ffd700;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: #fff9e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon i {
    color: #ffd700;
    font-size: 1.5rem;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-label {
    color: #666;
    font-size: 0.9rem;
}

.spec-value {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff9e6;
}

.feature-item i {
    color: #ffd700;
}

.description-content {
    line-height: 1.6;
    color: #444;
    white-space: pre-line;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el scroll suave */
html {
    scroll-behavior: smooth;
}

/* Ajuste para el scroll y compensar headers fijos */
#seller-info {
    scroll-margin-top: 100px;
}

/* Contenedor principal y estructura base */
.main-wrapper {
    width: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
}

.vehicle-detail-page {
    width: 100%;
    background: #fff;
    padding: 30px 0;
}

.container,
.vehicle-header .container,
.gallery-section,
.vehicle-details-section .container,
.detail-section,
.seller-card {
    max-width: 1350px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.vehicle-header {
    width: 100%;
    background: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.gallery-section {
    width: 100%;
    position: relative;
    margin-bottom: 3rem;
}

.vehicle-details-section {
    background: #fff;
    width: 100%;
}

.detail-section {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Footer ajuste */
footer {
    margin-top: 0;
}

/* Sección de opiniones del vendedor */
.reviews-section {
    margin-top: 20px;
}

#seller-info {
    margin-top: 20px;
}

/* Estilos para el enlace del perfil del vendedor */
.seller-name {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.seller-name:hover {
    color: #ffd700;
}

.seller-name h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Estilos para el modal de contacto */
#send_message_modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#send_message_modal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    position: relative;
    border-bottom: none;
}

#send_message_modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#send_message_modal .seller-info {
    padding-left: 2rem;
}

#send_message_modal .seller-info h6 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#send_message_modal .seller-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

#send_message_modal .seller-info p i {
    margin-right: 8px;
    color: #ffd700;
}

#send_message_modal .seller-avatar {
    width: 52px;
    height: 52px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #ffd700;
    flex-shrink: 0;
}

#send_message_modal .seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#send_message_modal .avatar-placeholder {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px;
    font-weight: 600;
}

#send_message_modal .message-form textarea {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

#send_message_modal .btn-modern {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    background-color: #ffd700;
    border: none;
    color: #333;
    transition: all 0.3s ease;
}

#send_message_modal .btn-modern:hover {
    background-color: #ffed4a;
    transform: translateY(-1px);
}

#send_message_modal .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

#send_message_modal .seller-info-modal {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
}

#send_message_modal .seller-info-modal .d-flex {
    gap: 1.5rem;
}

.main-content {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
}

.listing-detail {
    width: 100%;
}

.vehicle-detail-page {
    width: 100%;
    background-color: #fff;
}

.vehicle-header {
    width: 100%;
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.vehicle-header .container,
.gallery-section,
.vehicle-details-section .container,
.detail-section,
.seller-card {
    max-width: 1350px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1350px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.main-wrapper {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding: 0;
}

.vehicle-detail-page {
    width: 100%;
    background: #fff;
}

.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.gallery-section {
    width: 100%;
    margin-bottom: 30px;
}

.vehicle-header {
    width: 100%;
    background: #fff;
    padding: 20px 0;
}

.vehicle-details-section {
    background: #fff;
    width: 100%;
}

/* Contenedor principal y estructura base */
.main-wrapper {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
    background: #fff;
    padding: 0;
}

.vehicle-detail-page {
    width: 100%;
    background: #fff;
    padding: 30px 0;
}

.container {
    max-width: 1350px !important;
    width: 95% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
    font-weight: 500;
}
.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}
.btn-warning:disabled {
    background-color: #ffc107;
    border-color: #ffc107;
    opacity: 0.65;
}
#messageAlert {
    margin-top: 1rem;
    font-weight: 500;
}
.seller-details {
    border: 1px solid #e9ecef;
}
.seller-details .btn-primary {
    padding: 0.75rem 1.5rem;
}
.seller-avatar {
    flex-shrink: 0;
}
.seller-info {
    flex-grow: 1;
    min-width: 0;
}
.btn-outline-secondary {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}
.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

@endpush

<style>
.seller-header .btn-outline-secondary {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    color: #6c757d;
    border-color: #dee2e6;
}

.seller-header .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #ced4da;
}

.seller-header .btn-outline-secondary i {
    font-size: 0.75rem;
}