/* Custom styles for vehicle listings */
.vehicle-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.vehicle-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.vehicle-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.sold-overlay span {
    transform: rotate(-18deg);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(220, 38, 38, 0.35);
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    text-transform: uppercase;
}

.vehicle-card.sold .vehicle-title,
.vehicle-card.sold .vehicle-specs,
.vehicle-card.sold .vehicle-description {
    color: #6b7280;
}

.vehicle-card.sold .vehicle-price {
    color: #6b7280;
}

.sold-text {
    color: #6b7280 !important;
}

.vehicle-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.vehicle-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.vehicle-specs {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.vehicle-description {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.search-input, .filter-select, .form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

/* Hero Video Section Styles */
.hero-video-section {
    height: 38vh;
    min-height: 280px;
    position: relative;
    width: 100%;
    margin: 0;
}

.hero-video-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hero-video-section video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-video-section .container {
    position: relative;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-video-section {
        height: 32vh;
        min-height: 220px;
        width: 100%;
    }

    .hero-video-content {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .hero-video-section h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-video-section p {
        font-size: 1.125rem;
        line-height: 1.35;
    }
}

.search-input, .filter-select, .form-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus, .filter-select:focus, .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* Admin styles */
.admin-form {
    max-width: 42rem;
    margin: 0 auto;
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 8rem;
}

.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-checkbox {
    margin-right: 0.5rem;
}

.lang-selector-highlight {
    border: 2px solid #dc2626;
}

.lang-selector-highlight:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
