/* ==========================================================================
   Sagar Travels - Car Details Popup Modal Styles
   ========================================================================== */

/* Cursor pointer for View Details triggers */
a[data-popup="View Details"],
.custom-View-btn {
    cursor: pointer !important;
}

.car-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.car-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.car-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-modal-overlay.active .car-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Close Button */
.car-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.car-modal-close:hover {
    background: #f97150;
    border-color: #ffffff;
    transform: rotate(90deg);
}

.car-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Modal Hero Image & Header */
.car-modal-hero {
    position: relative;
    width: 100%;
    height: 240px;
    background: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

.car-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-modal-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 16px 22px;
    box-sizing: border-box;
}

.car-modal-hero-info {
    color: #ffffff;
}

.car-modal-category {
    display: inline-block;
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #ff9800, #f97150);
    color: #ffffff;
    border-radius: 30px;
    margin-bottom: 6px;
}

.car-modal-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #ffffff !important;
}

/* Scrollable Content Body */
.car-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Specifications Grid */
.car-modal-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.car-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.car-spec-card:hover {
    border-color: #f97150;
    background: #fff;
    box-shadow: 0 4px 12px rgba(249, 113, 80, 0.12);
}

.car-spec-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97150;
}

.car-spec-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.car-spec-label {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.car-spec-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* About Car Section */
.car-modal-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-modal-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: #f97150;
    border-radius: 2px;
}

/* Description Text */
.car-modal-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 16px;
    background: #fdfefe;
    border-left: 3px solid #f97150;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

/* Features List */
.car-modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-bottom: 16px;
}

.car-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 500;
}

.car-feature-item svg {
    width: 15px;
    height: 15px;
    fill: #10b981;
    flex-shrink: 0;
}

/* Inquire Box Notice */
.car-modal-inquire-box {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.car-modal-inquire-icon {
    width: 34px;
    height: 34px;
    background: #ffedd5;
    color: #ea580c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.car-modal-inquire-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.car-modal-inquire-text strong {
    display: block;
    font-size: 13px;
    color: #9a3412;
    margin-bottom: 2px;
}

.car-modal-inquire-text p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Footer / CTA Actions */
.car-modal-footer {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.car-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.car-modal-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* WhatsApp CTA */
.car-modal-btn-wa {
    background: #25d366;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.car-modal-btn-wa:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Call CTA */
.car-modal-btn-call {
    background: linear-gradient(135deg, #ff9800, #f97150);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(249, 113, 80, 0.35);
}

.car-modal-btn-call:hover {
    background: linear-gradient(135deg, #f57c00, #e55a39);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 113, 80, 0.45);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .car-modal-dialog {
        max-height: 94vh;
        border-radius: 14px;
    }
    .car-modal-hero {
        height: 180px;
    }
    .car-modal-title {
        font-size: 20px;
    }
    .car-modal-body {
        padding: 14px;
    }
    .car-modal-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .car-modal-features {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .car-modal-footer {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }
    .car-modal-btn {
        width: 100%;
        flex: none;
    }
}
