:root {
    --orange-400: #F21A36;
    --orange-500: #D50025;
    --orange-600: #D50025;
    --orange-700: #A80020;
    --primary-rgb: 213, 0, 37;
    --primary-dark-rgb: 168, 0, 32;
    --tw-primary: #D50025;
    --tw-primary-light: #F21A36;
    --tw-primary-dark: #A80020;
    --gradient-primary: linear-gradient(135deg, #D50025 0%, #A80020 100%);
}

.vehicle-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark .vehicle-card {
    background-color: var(--bg-primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.dark .vehicle-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.vehicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.dark .vehicle-title {
    color: var(--text-primary);
}

.vehicle-features {
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vehicle-feature {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.dark .vehicle-feature {
    color: var(--text-secondary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.price-section {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.dark .price-section {
    border-top: 1px solid var(--border-primary);
}

.promotional-price {
    color: var(--orange-600);
    font-weight: 700;
    font-size: 1.25rem;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.regular-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #333;
}

.dark .regular-price {
    color: var(--text-primary);
}

.price-period {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.dark .price-period {
    color: var(--text-tertiary);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.favorite-button, .rent-button {
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-button {
    border: 1px solid #333;
    color: #333;
}

.dark .favorite-button {
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.favorite-button:hover {
    background-color: #e53e3e;
    border-color: #e53e3e;
    color: white;
}

.rent-button {
    background-color: var(--orange-600);
    color: white;
    border: 1px solid var(--orange-600);
}

.dark .rent-button {
    background-color: var(--orange-600);
    border-color: var(--orange-700);
}

.rent-button:hover {
    background-color: var(--orange-700);
    border-color: var(--orange-700);
}

.button-icon {
    margin-bottom: 0.25rem;
    width: 20px;
    height: 20px;
}

.vehicle-card--campaign {
    border: 2px solid var(--orange-500) !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.18);
}

.campaign-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);
    color: #1f2937;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border-bottom-right-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.campaign-price-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    background: radial-gradient(circle at 30% 30%, #ef4444 0%, #dc2626 55%, #b91c1c 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.campaign-price-badge__amount {
    font-size: 0.78rem;
    font-weight: 900;
}

.campaign-price-badge__daily {
    font-size: 0.58rem;
    font-weight: 700;
    opacity: 0.95;
}

.vehicle-price-special-tag {
    display: inline-flex;
    align-items: center;
    background: #fef08a;
    color: #854d0e;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    white-space: nowrap;
}

.vehicle-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
}

.dark .vehicle-price-current {
    color: #f9fafb;
}

.vehicle-price-original {
    display: block;
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: line-through;
    margin-bottom: 0.1rem;
}

/* Promotional price in dark mode. The brand colour itself sits at ~2.9:1 on the dark
   panels, so it is lightened toward white; the flat fallback is hue-neutral so that any
   brand palette stays legible on engines without color-mix(). */
.dark .vehicle-price-amount--promo {
    color: #f3f4f6;
    color: color-mix(in srgb, var(--orange-500) 45%, #ffffff);
}
