/* Vehicle Card Widget styles */
.carous-vehicle-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

/* Equal height cards in grid layouts */
.elementor-widget-carous_vehicle_card {
    height: 100%;
}
.elementor-widget-carous_vehicle_card .elementor-widget-container {
    height: 100%;
}
.carous-vehicle-card__link {
    height: 100%;
}

/* Hover effect class - can be toggled on/off */
.carous-vehicle-card--hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Card link styling */
.carous-vehicle-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.carous-vehicle-card__link:hover {
    text-decoration: none;
    color: inherit;
}

.carous-vehicle-card__image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carous-vehicle-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Condition badge styling */
.carous-vehicle-card__condition-badge {
    position: absolute;
    background-color: #e63946;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    z-index: 1;
    text-transform: uppercase;
}

/* Condition badge positions */
.carous-vehicle-card__condition-badge--top-left {
    top: 10px;
    left: 10px;
}

.carous-vehicle-card__condition-badge--top-right {
    top: 10px;
    right: 10px;
}

.carous-vehicle-card__condition-badge--bottom-left {
    bottom: 10px;
    left: 10px;
}

.carous-vehicle-card__condition-badge--bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Gallery count badge styling */
.carous-vehicle-card__gallery-count {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1;
}

/* Gallery count positions */
.carous-vehicle-card__gallery-count--top-left {
    top: 10px;
    left: 10px;
}

.carous-vehicle-card__gallery-count--top-right {
    top: 10px;
    right: 10px;
}

.carous-vehicle-card__gallery-count--bottom-left {
    bottom: 10px;
    left: 10px;
}

.carous-vehicle-card__gallery-count--bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Video badge styling */
.carous-vehicle-card__video-badge {
    position: absolute;
    display: flex;
    align-items: center;
    background-color: rgba(255, 0, 0, 0.8);
    padding: 6px 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.carous-vehicle-card__video-badge-icon {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

/* Video badge positions */
.carous-vehicle-card__video-badge--top-left {
    top: 10px;
    left: 10px;
}

.carous-vehicle-card__video-badge--top-right {
    top: 10px;
    right: 10px;
}

.carous-vehicle-card__video-badge--bottom-left {
    bottom: 10px;
    left: 10px;
}

.carous-vehicle-card__video-badge--bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Shortlist button */
.carous-vehicle-card__shortlist-btn {
    position: absolute;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: none;
}

.carous-vehicle-card__shortlist-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}

.carous-vehicle-card__shortlist-btn:focus {
    outline: none;
}

.carous-vehicle-card__shortlist-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #666;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.carous-vehicle-card__shortlist-btn.shortlisted svg {
    fill: #e63946;
    stroke: #e63946;
}

/* Shortlist button positions */
.carous-vehicle-card__shortlist-btn--top-left {
    top: 10px;
    left: 10px;
}

.carous-vehicle-card__shortlist-btn--top-right {
    top: 10px;
    right: 10px;
}

.carous-vehicle-card__shortlist-btn--bottom-left {
    bottom: 10px;
    left: 10px;
}

.carous-vehicle-card__shortlist-btn--bottom-right {
    bottom: 10px;
    right: 10px;
}

.carous-vehicle-card__shortlist-btn--middle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carous-vehicle-card__shortlist-btn--middle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.carous-vehicle-card__gallery-count-icon {
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
}

.carous-vehicle-card__gallery-count-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: inherit;
    fill: currentColor;
}

.carous-vehicle-card__content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carous-vehicle-card__make-model {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    line-height: 1.2;
}

.carous-vehicle-card__derivative {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.3;
}

.carous-vehicle-card__pricing {
    margin-bottom: 15px;
}

.carous-vehicle-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 3px;
}

.carous-vehicle-card__finance-price {
    font-size: 14px;
    color: #444444;
}

.carous-vehicle-card__finance-label {
    font-size: 12px;
    color: #666666;
    margin-left: 3px;
}

.carous-vehicle-card__specs {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
}

/* With Icon layout */
.carous-vehicle-card__specs--with_icon {
    display: flex;
    flex-wrap: wrap;
}

.carous-vehicle-card__specs--with_icon .carous-vehicle-card__specs-item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #555555;
    margin-right: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Without Icon layout */
.carous-vehicle-card__specs--without_icon {
    display: flex;
    flex-wrap: wrap;
}

.carous-vehicle-card__specs--without_icon .carous-vehicle-card__specs-item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #555555;
    margin-right: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Text Only layout */
.carous-vehicle-card__specs--text_only {
    display: flex;
    flex-direction: column;
}

.carous-vehicle-card__specs--text_only .carous-vehicle-card__specs-item {
    font-size: 12px;
    color: #555555;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Badge style specs */
.carous-vehicle-card__specs--badges {
    display: flex;
    flex-wrap: wrap;
}

.carous-vehicle-card__specs--badges .carous-vehicle-card__specs-item {
    display: inline-flex;
    align-items: center;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 6px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #555555;
    line-height: 1;
}

.carous-vehicle-card__specs-icon {
    margin-right: 5px;
    color: #333333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

/* Pipe-separated specs */
.carous-vehicle-card__specs--pipes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.carous-vehicle-card__specs--pipes .carous-vehicle-card__specs-item {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
    margin-bottom: 0;
    font-size: 12px;
    color: #555555;
    background-color: transparent;
}

.carous-vehicle-card__specs--pipes .carous-vehicle-card__specs-item:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #ddd;
}

/* Plain text specs */
.carous-vehicle-card__specs--plain {
    display: flex;
    flex-direction: column;
}

.carous-vehicle-card__specs--plain .carous-vehicle-card__specs-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    margin-right: 0;
    margin-bottom: 3px;
    font-size: 12px;
    color: #555555;
    border-bottom: 1px dotted #eee;
    background-color: transparent;
}

.carous-vehicle-card__specs--plain .carous-vehicle-card__specs-label {
    font-weight: 500;
    margin-right: 5px;
}

/* Grid layout specs */
.carous-vehicle-card__specs--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.carous-vehicle-card__specs--grid .carous-vehicle-card__specs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    color: #555555;
}

.carous-vehicle-card__specs--grid .carous-vehicle-card__specs-icon {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.carous-vehicle-card__specs--grid.carous-vehicle-card__specs--columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.carous-vehicle-card__specs--grid.carous-vehicle-card__specs--columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Spec prefixes and suffixes */
.carous-vehicle-card__specs-prefix {
    margin-right: 3px;
    opacity: 0.7;
    font-size: 0.9em;
}

.carous-vehicle-card__specs-suffix {
    margin-left: 3px;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Price layout variations */
.carous-vehicle-card__pricing {
    margin-bottom: 15px;
}

/* Default pricing layout */
.carous-vehicle-card__pricing--default .carous-vehicle-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 3px;
}

.carous-vehicle-card__pricing--default .carous-vehicle-card__finance-price {
    font-size: 14px;
    color: #444444;
}

/* Compact pricing layout */
.carous-vehicle-card__pricing--compact {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.carous-vehicle-card__pricing--compact .carous-vehicle-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
}

.carous-vehicle-card__pricing--compact .carous-vehicle-card__finance-price {
    font-size: 14px;
    color: #444444;
}

/* Highlighted pricing layout */
.carous-vehicle-card__pricing--highlight .carous-vehicle-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 5px;
}

.carous-vehicle-card__pricing--highlight .carous-vehicle-card__finance-price {
    font-size: 15px;
    color: #444444;
    background-color: #f7f7f7;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

/* Box pricing layout */
.carous-vehicle-card__pricing--box {
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.carous-vehicle-card__pricing--box .carous-vehicle-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 5px;
}

.carous-vehicle-card__pricing--box .carous-vehicle-card__finance-price {
    font-size: 14px;
    color: #444444;
    padding-top: 5px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Stock status */
.carous-vehicle-card__stock-status {
    position: absolute;
    z-index: 2;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carous-vehicle-card__stock-status--in-stock {
    background-color: rgba(16, 185, 129, 0.9);
    color: white;
}

.carous-vehicle-card__stock-status--out-of-stock {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

.carous-vehicle-card__stock-status--limited {
    background-color: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Ribbon style */
.carous-vehicle-card__stock-status--ribbon {
    padding: 10px 10px;
    min-width: 104px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
}

.carous-vehicle-card__stock-status--ribbon.carous-vehicle-card__stock-status--top-left {
    top: 20px;
    left: -5px;
    transform: rotate(-45deg) translateX(-30%);
    transform-origin: top left;
}

.carous-vehicle-card__stock-status--ribbon.carous-vehicle-card__stock-status--top-right {
    top: 20px;
    right: -5px;
    transform: rotate(45deg) translateX(30%);
    transform-origin: top right;
}

/* Badge style */
.carous-vehicle-card__stock-status--badge {
    border-radius: 50px;
    padding: 5px 12px;
}

/* Banner style */
.carous-vehicle-card__stock-status--banner {
    width: 100%;
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.carous-vehicle-card__stock-status--banner.carous-vehicle-card__stock-status--top {
    top: 0;
    left: 0;
}

.carous-vehicle-card__stock-status--banner.carous-vehicle-card__stock-status--bottom {
    bottom: 0;
    left: 0;
}

/* Diagonal style */
.carous-vehicle-card__stock-status--diagonal {
    width: 200px;
    text-align: center;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carous-vehicle-card__stock-status--diagonal.carous-vehicle-card__stock-status--top-left {
    top: 25px;
    left: -50px;
    transform: rotate(-45deg);
}

.carous-vehicle-card__stock-status--diagonal.carous-vehicle-card__stock-status--top-right {
    top: 25px;
    right: -50px;
    transform: rotate(45deg);
}

/* Responsive adjustments for vehicle card */
@media (max-width: 767px) {
    .carous-vehicle-card__image {
        height: 180px;
    }
    
    .carous-vehicle-card__make-model {
        font-size: 16px;
    }
    
    .carous-vehicle-card__derivative {
        font-size: 13px;
    }
    
    .carous-vehicle-card__price {
        font-size: 18px;
    }
    
    .carous-vehicle-card__finance-price {
        font-size: 13px;
    }
    
    .carous-vehicle-card__condition-badge,
    .carous-vehicle-card__gallery-count {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.spec-display-pill .carous-spec-value {
    font-weight: 600;
}

/* Action Buttons */
.carous-vehicle-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.carous-button-wrap {
    flex: 1;
}

.carous-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
}

.carous-btn-primary {
    background-color: #3b82f6;
    color: #fff;
    border: 1px solid #3b82f6;
}

.carous-btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.carous-btn-secondary {
    background-color: #10b981;
    color: #fff;
    border: 1px solid #10b981;
}

.carous-btn-secondary:hover {
    background-color: #059669;
    border-color: #059669;
}

.carous-btn-outline {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.carous-btn-outline:hover {
    background-color: #eff6ff;
}

.carous-btn-link {
    background-color: transparent;
    color: #3b82f6;
    border: none;
    padding: 8px 0;
}

.carous-btn-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.carous-button-icon {
    font-size: 14px;
}

/* Layout Specific Styles */

/* Basic Layout */
.carous-vehicle-card-basic .carous-vehicle-image {
    height: 180px;
}

.carous-vehicle-card-basic .carous-vehicle-card-content {
    padding: 12px;
}

.carous-vehicle-card-basic .carous-vehicle-title {
    font-size: 16px;
}

.carous-vehicle-card-basic .carous-vehicle-price {
    font-size: 18px;
}

.carous-vehicle-card-basic .carous-spec-item {
    flex-direction: row;
    justify-content: flex-start;
}

.carous-vehicle-card-basic .carous-spec-label {
    display: none;
}

/* Standard Layout */
.carous-vehicle-card-standard .carous-vehicle-image {
    height: 200px;
}

.carous-vehicle-card-standard .carous-vehicle-specs {
    background-color: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
}

/* Premium Layout */
.carous-vehicle-card-premium .carous-vehicle-image {
    height: 240px;
}

.carous-vehicle-card-premium .carous-vehicle-card-content {
    padding: 20px;
}

.carous-vehicle-card-premium .carous-vehicle-title {
    font-size: 20px;
}

.carous-vehicle-card-premium .carous-vehicle-price {
    font-size: 24px;
    color: #16a34a;
}

.carous-vehicle-card-premium .carous-vehicle-specs {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.carous-vehicle-card-premium .carous-btn {
    padding: 10px 20px;
}
