/**
 * Vehicle Manager Custom Public Styles
 * Override or extend the default styles
 */

/* Custom color overrides */
:root {
    --vm-primary: #135bec;
    --vm-gold: #C5A059;
    --vm-background-light: #f6f6f8;
    --vm-background-dark: #101622;
}

/* Vehicle card enhancements */
.vm-vehicle-card {
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
}

.dark .vm-vehicle-card {
    background: linear-gradient(to bottom, #1e293b, #0f172a);
}

.vm-vehicle-card .badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-featured {
    background: #135bec;
    color: white;
}

.badge-popular {
    background: #C5A059;
    color: white;
}

.badge-new {
    background: #10b981;
    color: white;
}

.badge-best-value {
    background: #10b981;
    color: white;
}

/* Gallery enhancements */
.vm-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.vm-gallery-main img {
    transition: transform 0.7s ease;
}

.vm-gallery-main:hover img {
    transform: scale(1.05);
}

.vm-gallery-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.vm-gallery-thumb {
    width: 6rem;
    height: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.vm-gallery-thumb.active {
    border-color: var(--vm-primary);
}

.vm-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vm-gallery-thumb:hover {
    border-color: var(--vm-primary);
    opacity: 0.8;
}

/* Pricing table */
.vm-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .vm-pricing-table {
    background: #0f172a;
}

.vm-pricing-table thead {
    background: #0f172a;
    color: white;
}

.dark .vm-pricing-table thead {
    background: #020617;
}

.vm-pricing-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.vm-pricing-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .vm-pricing-table td {
    border-bottom-color: #1e293b;
}

.vm-pricing-table tr:last-child td {
    border-bottom: none;
}

.vm-price {
    font-weight: 900;
    color: var(--vm-primary);
    font-size: 1.25rem;
}

/* Features grid */
.vm-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .vm-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vm-feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.dark .vm-feature-item {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.vm-feature-item:hover {
    border-color: var(--vm-primary);
    transform: translateY(-2px);
}

.vm-feature-icon {
    color: var(--vm-primary);
    font-size: 1.5rem;
}

/* Services grid */
.vm-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .vm-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vm-service-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

.dark .vm-service-item {
    background: rgba(30, 41, 59, 0.5);
    border-color: #334155;
}

.vm-service-item:hover {
    border-color: var(--vm-primary);
}

.vm-service-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(19, 91, 236, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s;
}

.vm-service-item:hover .vm-service-icon {
    background: var(--vm-primary);
}

.vm-service-icon span {
    color: var(--vm-primary);
    font-size: 1.875rem;
    transition: all 0.3s;
}

.vm-service-item:hover .vm-service-icon span {
    color: white;
}

/* FAQ */
.vm-faq-item {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dark .vm-faq-item {
    background: #1e293b;
    border-color: #334155;
}

.vm-faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.vm-faq-question .material-icons {
    color: var(--vm-primary);
    transition: transform 0.3s;
}

.vm-faq-question.active .material-icons {
    transform: rotate(180deg);
}

.vm-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #64748b;
    display: none;
}

.dark .vm-faq-answer {
    color: #94a3b8;
}

/* Sidebar booking card */
.vm-booking-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 4px solid var(--vm-primary);
}

.dark .vm-booking-card {
    background: #0f172a;
}

.vm-price-tag {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--vm-primary);
    line-height: 1;
}

.vm-price-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.vm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    space-y: 1rem;
}

.vm-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.vm-feature-list .material-symbols-outlined {
    color: #10b981;
}

/* Buttons */
.vm-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.vm-btn-primary {
    background: var(--vm-primary);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(19, 91, 236, 0.2);
}

.vm-btn-primary:hover {
    background: #1045b3;
    transform: translateY(-2px);
}

.vm-btn-gold {
    background: var(--vm-gold);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(197, 160, 89, 0.2);
}

.vm-btn-gold:hover {
    background: #ad8a4c;
    transform: translateY(-2px);
}

.vm-btn-outline {
    background: transparent;
    border: 2px solid var(--vm-primary);
    color: var(--vm-primary);
}

.vm-btn-outline:hover {
    background: var(--vm-primary);
    color: white;
}

.vm-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.vm-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Search form */
.vm-search-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.dark .vm-search-form {
    background: #1e293b;
    border-color: #334155;
}

.vm-search-field {
    margin-bottom: 1rem;
}

.vm-search-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.vm-search-field select,
.vm-search-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
}

.dark .vm-search-field select,
.dark .vm-search-field input {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

/* Loading states */
.vm-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.vm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--vm-primary);
    border-radius: 50%;
    animation: vm-spin 1s linear infinite;
}

/* Compare bar */
.vm-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    z-index: 50;
    display: none;
}

.dark .vm-compare-bar {
    background: #0f172a;
    border-top-color: #1e293b;
}

/* Dark mode toggle */
.vm-dark-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--vm-primary);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(19, 91, 236, 0.3);
    z-index: 40;
    transition: all 0.3s;
}

.vm-dark-toggle:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .vm-booking-card {
        padding: 1.5rem;
    }
    
    .vm-price-tag {
        font-size: 1.875rem;
    }
    
    .vm-gallery-thumb {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 640px) {
    .vm-pricing-table th,
    .vm-pricing-table td {
        padding: 0.75rem 1rem;
    }
    
    .vm-feature-item {
        padding: 1rem;
    }
    
    .vm-service-item {
        padding: 1rem;
    }
    
    .vm-service-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .vm-service-icon span {
        font-size: 1.5rem;
    }
}