/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.card {
    display: flex;
    background: white;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.card .img_section {
flex-shrink: 0;
}

.card .img_section img.car-image {
width: 350px;
height: 100%;
max-width: 100%;
object-fit: cover;
display: block;
}

.card .card-content {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.card .top-content {
display: flex;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
}

.card .left-details {
flex: 2;
min-width: 250px;
}

.card .right-prices {
flex: 1;
text-align: right;
color: #d2a143;
font-size: 20px;
font-weight: 600;
min-width: 180px;
}

.card .car-title {
font-size: 18px !important;
font-weight: 600;
margin-bottom: 8px;
color: #000 !important;
}

.card .badges {
display: flex;
gap: 10px;
margin-bottom: 10px;
flex-wrap: wrap;
}

.card .badge {
background-color: #f5f5f5;
padding: 4px 10px;
border-radius: 20px;
font-size: 14px;
}

.card .features {
font-size: 14px;
margin: 0;
padding: 0;
}

.card .features li {
list-style: none;
margin-bottom: 6px;
display: flex;
align-items: center;
gap: 8px;
}

.card .features img {
width: 14px;
height: 14px;
}

.card .right-prices div {
margin-bottom: 10px;
}

.card .right-prices span {
display: block;
font-size: 14px;
color: #555;
font-weight: normal;
}

.card .actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-top: 20px;
}

.card .btn {
padding: 10px 16px !important;
border-radius: 8px;
font-size: 14px;
cursor: pointer;
flex: 1;
min-width: 100px;
text-align: center;
background-color: #d2a143;
border: none;
color: white;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.3s ease;
}

.card .btn img {
width: 20px;
height: 20px;
}

.card .btn.whatsapp {
background-color: #eaffea;
border: 1px solid #81c784;
color: #388e3c;
}

.card .btn.call {
background-color: #f3e8ff;
border: 1px solid #d1c4e9;
color: #7e57c2;
}

.card .btn.email {
background-color: #d2a143;
color: white;
}

.card .btn.get-quote {
background-color: #d2a143;
color: white;
font-weight: bold;
}

.card .btn.get-quote:hover,
.card .btn.email:hover {
background-color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .card .card {
        flex-direction: column;
    }


    .card .img_section img.car-image {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .card .right-prices {
        text-align: left;
        margin-top: 10px;
    }


    .card .btn {
        width: 100%;
        height: 42px;
    }
}


@media (max-width: 500px) {
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card .car-title {
        text-align: left;
    }

    .card .img_section {
    width: 100%;
    }

    .card .img_section img.car-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .card .card-content {
        padding: 30px;
        align-items: center;
    }

    .card .top-content {
        flex-direction: column;
    }

    .card .left-details,
    .card .right-prices {
        width: 100%;
    }

    .card .actions {
        width: 100%;
    }

    .card .btn {
        max-width: 100%;
    }

    .card .badges {
        margin: 20px 0px ;
    }

    .card .btn.email {
        display: none;
    }

}


.alpha-container{
    max-width: min(100%, 1250px);
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}


.mini-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: auto;
    width: 100%;
}

.mini-card img.car-image {
	width: 100%;
	height: 200px;
	display: block;
	object-fit: cover;
}

.mini-card .card-content {
    padding: 10px 15px 20px;
}

.mini-card .car-title {
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 16px;
    color: #333;
    text-decoration: unset !important;
}

.mini-card .price-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mini-card .price-block {
    color: #D2A143;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.mini-card .price-block span.unit {
    font-weight: normal;
    font-size: 14px;
    margin-left: 4px;
}

.mini-card .km-line {
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-top: 4px;
    color: #333;
}

.mini-card .km-line img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.mini-card .actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mini-card .btn {
    flex: 1;
    min-width: 50px;
    padding: 10px 5px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: unset !important;
}

.mini-card .btn img {
    width: 20px;
    height: 20px;
}

.mini-card .btn.call {
    background-color: #f3e8ff;
    border: 1px solid #d1c4e9;
    color: #7e57c2;
}

.mini-card .btn.whatsapp {
    background-color: #eaffea;
    border: 1px solid #81c784;
    color: #388e3c;
}

.mini-card .btn.get-quote {
    background-color: #d2a143;
    color: white;
    font-weight: 600;
}

.mini-card .btn.get-quote:hover {
    background-color: #000;
}

@media (max-width: 480px) {
    .mini-card .actions {
    flex-direction: column;
    }

    .mini-card .btn {
    width: 100%;
    }
}
.ata-slider .slick-slide {
    margin: 0 7.5px;
}
.ata-slider .slick-list {
    overflow: visible;
}
.mini-card .badges {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mini-card .badge {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}



/* Popup Quote form styling */

.gq-modal {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.gq-modal-content {
    background: #fff;
    padding: 25px;
    width: 95%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.gq-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
    padding: 10px 17px;
}

.gq-close-btn:hover {
    color: #000;
}

/* Modal Body */
.gq-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Vehicle Info Section */
.gq-vehicle-info {
    display: flex;
    gap: 20px;
    align-items: stretch;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Image */
.gq-vehicle-image-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: auto;
    border: 2px solid #ffbc3c;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gq-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vehicle Details */
.gq-vehicle-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gq-vehicle-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: bold;
    color: #222;
    border-left: 4px solid #ffbc3c;
    padding-left: 10px;
}

.gq-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    font-size: 14px;
    color: #555;
}

.gq-vehicle-specs div {
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ffbc3c;
}

/* Price List (Optional if you want it separate) */
.gq-price-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #555;
}

/* Form Styling */
.gq-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.gq-form-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.gq-form-group input,
.gq-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

.gq-form-group input:focus,
.gq-form-group textarea:focus {
    border-color: #ffbc3c;
}

/* Submit Button */
.gq-submit-btn {
    background: #ffbc3c;
    color: #333;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.gq-submit-btn:hover {
    background: #e0a932;
    transform: translateY(-1px);
}

/* Response Message */
.gq-response {
    margin-top: 10px;
    font-size: 14px;
    color: green;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 480px) {
    .gq-vehicle-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .gq-form-group {
        flex-direction: column;
    }

    .gq-vehicle-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .gq-vehicle-image-wrapper {
        width: 100%;
    }
}

/* Floating WhatsApp Button Styles */
.alpha-whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: whatsapp-bounce 2s infinite, whatsapp-zoom 3s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alpha-whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    animation-play-state: paused;
}

.alpha-whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 50%;
}

.alpha-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Bouncing Animation */
@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Zoom In/Out Animation */
@keyframes whatsapp-zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Pulse Ring Animation */
.alpha-whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: whatsapp-pulse-ring 2s infinite;
    opacity: 0;
}

@keyframes whatsapp-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alpha-whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .alpha-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .alpha-whatsapp-float::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-width: 2px;
    }
    
    /* Slightly reduce bounce on mobile */
    @keyframes whatsapp-bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-6px);
        }
        60% {
            transform: translateY(-3px);
        }
    }
}

/* Additional attention-grabbing effects */
.alpha-whatsapp-float:active {
    transform: scale(0.95);
}

/* Recent Sales Popup Styles */
.alpha-sales-popup {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 999998;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alpha-sales-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.alpha-sales-popup .popup-content {
    display: flex;
    flex-direction: column;
    position: relative;
}

.alpha-sales-popup .popup-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.alpha-sales-popup .notification-icon {
    font-size: 16px;
    margin-right: 8px;
    animation: bell-ring 2s infinite;
}

.alpha-sales-popup .notification-text {
    flex: 1;
}

.alpha-sales-popup .popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.alpha-sales-popup .popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.alpha-sales-popup .popup-body {
    padding: 16px;
    flex: 1;
}

.alpha-sales-popup .booking-info {
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    margin-bottom: 8px;
}

.alpha-sales-popup .booking-time {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.alpha-sales-popup .popup-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    overflow: hidden;
}

.alpha-sales-popup .popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Bell ring animation */
@keyframes bell-ring {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .alpha-sales-popup {
        width: calc(100vw - 40px);
        max-width: 300px;
        bottom: 80px;
        left: 20px;
    }
    
    .alpha-sales-popup .popup-image {
        width: 70px;
    }
    
    .alpha-sales-popup .popup-body {
        padding-right: 85px;
    }
}

@media (max-width: 480px) {
    .alpha-sales-popup {
        width: calc(100vw - 20px);
        left: 10px;
        bottom: 70px;
    }
    
    .alpha-sales-popup .popup-header {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .alpha-sales-popup .popup-body {
        padding: 12px;
        padding-right: 75px;
    }
    
    .alpha-sales-popup .booking-info {
        font-size: 13px;
    }
    
    .alpha-sales-popup .booking-time {
        font-size: 11px;
    }
    
    .alpha-sales-popup .popup-image {
        width: 60px;
    }
}

/* CSS-only Tooltip Fallback Styles - Only show when explicitly enabled */
.badge.css-tooltip-enabled:hover {
    position: relative;
}

.badge.css-tooltip-enabled:hover::after {
    content: attr(data-original-title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltip-fade-in 0.2s ease-out forwards;
}

.badge.css-tooltip-enabled:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltip-fade-in 0.2s ease-out forwards;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Badge Styles for Better Tooltip Support */
.badges .badge {
    position: relative;
    cursor: help;
    transition: all 0.2s ease;
}

.badges .badge:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* Ensure proper spacing for tooltips */
.badges {
    margin: 10px 0 15px;
}

/* Mobile responsive tooltip adjustments */
@media (max-width: 768px) {
    .badge.css-tooltip-enabled:hover::after {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 130%;
        white-space: normal;
        max-width: 200px;
        word-wrap: break-word;
    }
}

/* Additional styling for tooltip consistency */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

/* Enhanced Get Quote Form Styles - Compact */
.gq-form {
    gap: 10px;
}

.gq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.gq-form-row:last-child {
    margin-bottom: 0;
}

.gq-form-row input,
.gq-form-row select,
.gq-single-field {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
}

.gq-single-field {
    width: 100%;
    margin-bottom: 8px;
}

.gq-form-row input:focus,
.gq-form-row select:focus,
.gq-single-field:focus {
    border-color: #ffbc3c;
    box-shadow: 0 0 0 2px rgba(255, 188, 60, 0.15);
}

.gq-service-details {
    margin: 8px 0;
}

.gq-dynamic-fields {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #ffbc3c;
    margin-bottom: 8px;
}

.gq-form textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    resize: vertical;
    min-height: 50px;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: 8px;
}

.gq-form textarea:focus {
    border-color: #ffbc3c;
    box-shadow: 0 0 0 2px rgba(255, 188, 60, 0.15);
}

/* Hide spec items that are not relevant */
.gq-spec-item {
    display: none;
}

.gq-spec-item.show {
    display: block;
}

/* Enhanced modal for better mobile experience */
@media (max-width: 600px) {
    .gq-modal-content {
        width: 98%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .gq-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gq-vehicle-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .gq-vehicle-image-wrapper {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .gq-vehicle-specs {
        grid-template-columns: 1fr;
    }
}
