/* ==========================================================================
   1. CORE & GLOBAL STYLES
   ========================================================================== */
.site-content {
    display: unset;
}

body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.pm-container {
    max-width: 1300px;
    margin: auto;
    padding: 30px 0px 0px;
}

.pm-bt-content {
    background: white;   
}

/* ==========================================================================
   2. MAIN LAYOUT GRID SYSTEM
   ========================================================================== */
.pm-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: start;
}

.pm-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pm-content-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================================================
   3. PREMIUM MEDIA GALLERY & SLIDER
   ========================================================================== */
.pm-gallery {
    background: #f7f8fa;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.pm-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.pm-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: .4s;
    display: block;
}

.pm-image-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 10;
}

/* Thumbnails Container */
.pm-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.pm-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Single Thumbnail Layout */
.pm-thumb {
    flex: 0 0 calc(15% - 8px);
    height: 119px;
    border-radius: 10px;
    overflow: hidden;
    margin: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
    opacity: 0.6;
}

.pm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pm-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.pm-thumb.active {
    border-color: #5b21b6;
    opacity: 1;
    transform: scale(1.05);
}

/* Slider Controls */
.pm-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    padding: 0px;
}

.pm-slider-btn:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

.pm-slider-btn svg {
    stroke: #0f172a;
}

.pm-prev { left: 15px; }
.pm-next { right: 15px; }

/* ==========================================================================
   4. CONTEXTUAL SIDEBAR & CTA BUTTONS
   ========================================================================== */
.pm-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    position: sticky;
    top: 30px;
    border: 1px solid #dde5eb;
}

.pm-sidebar h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #0f172a;
}

.pm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}

.pm-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.pm-location {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-location svg {
    color: red;    
}

.pm-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 24px 0;
}

.pm-price-label, .pm-emi-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 5px;
}

.pm-price {
    font-size: 38px;
    font-weight: 800;
    color: #312e81;
    line-height: 1;
}

.pm-tax {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.pm-emi {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

/* Call to Action Elements */
.pm-offer-btn {
    width: 100%;
    border: none;
    background: #312e81;
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    margin-top: 25px;
}

.pm-offer-btn:hover {
    background: #28256e;
}

.pm-whatsapp-btn {
    margin-top: 15px;
    align-items: center;
    display: flex;
    text-align: center;
    background: #fff;
    border: 1px solid #25d366;
    color: #25d366;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    justify-content: center;
}

.pm-whatsapp-btn:hover {
    background: #f0fdf4;
}

.pm-sold-out-cta {
    background-color: #fef2f2;
    color: #ef4444;
    border: 2px solid #fee2e2;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: not-allowed;
    user-select: none;
    box-sizing: border-box;
}

/* Sharing UI */
.pm-share {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.pm-share-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.pm-share-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: .3s;
}

.pm-share-icons a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* ==========================================================================
   5. SPECIFICATIONS & FEATURES CONTENT
   ========================================================================== */
.pm-overview-section,
.pm-features {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.pm-overview-section h2,
.pm-features h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    margin-top: 0;
}

.pm-overview-section p {
    color: #475569;
    line-height: 1.6;
}

.pm-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.pm-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: .3s;
}

.pm-spec-icon {
    display: flex;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.02);
}

.pm-spec-info {
    display: flex;
    flex-direction: column;
}

.pm-spec-info strong {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 500;
}

.pm-spec-info span {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.pm-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.pm-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 500;
}

/* ==========================================================================
   6. PREMIUM ACCORDION OVERVIEW DETAILS
   ========================================================================== */
.pm-overview-section {
    border: 1px solid #e2e8f0;
    max-width: 100%;
    margin-top: 30px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.pm-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pm-overview-header h2 {
    font-weight: 700;
    margin: 0;
}

.pm-accordion-arrow {
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pm-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
}

.pm-overview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #e2e8f0; 
}

.pm-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pm-item-data {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pm-item-data label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.pm-item-data strong {
    font-size: 17px;
    color: #0f172a;
    font-weight: 700;
}

.pm-overview-description {
    margin-top: 25px;
    padding-top: 5px;
}

.pm-overview-description p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. LUXURY BENEFITS SYSTEM
   ========================================================================== */
.pm-benefits-section {
    max-width: 1300px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px 0px;
    border-radius: 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pm-benefits-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
}

.pm-badge-budget {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.pm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.pm-benefit-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); 
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 26px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
    .pm-benefit-card:hover {
        transform: translateY(-8px);
        background: #ffffff;
        border-color: #6366f1;
        box-shadow: 0 20px 35px rgba(79, 70, 229, 0.08);
    }
    .pm-benefit-card:hover .pm-benefit-icon {
        transform: scale(1.12) rotate(2deg);
    }
}

.pm-benefit-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.pm-benefit-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.pm-benefit-icon {
    width: 85px;
    height: 85px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-benefit-icon img {
    max-width: 190%;
    max-height: 100%;
    object-fit: contain;
}


/* ==========================================================================
  8.  PRIME MOTORS - ULTRA PREMIUM FAQ STYLING
   ========================================================================== */
.pm-faq-section {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 15px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.pm-faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.pm-faq-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.pm-faq-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.pm-faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Accordion Card Design */
.pm-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
    transition: all 0.3s ease;
}

/* Open/Active State Box Shadow & Border */
.pm-faq-item[open] {
    border-color: #312e81; /* Themes matched indigo */
    box-shadow: 0 10px 25px rgba(49, 46, 129, 0.05);
}

/* Question Header Area */
.pm-faq-question {
    padding: 22px 25px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Default arrow hide karne ke liye */
    user-select: none;
    transition: background 0.2s ease;
}

/* Chrome/Safari me list marker hide karne ke liye */
.pm-faq-question::-webkit-details-marker {
    display: none;
}

.pm-faq-question:hover {
    background: #f8fafc;
}

/* Premium Custom Plus/Minus Arrow Icon */
.pm-faq-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
}

.pm-faq-arrow::before,
.pm-faq-arrow::after {
    content: '';
    position: absolute;
    background-color: #64748b;
    transition: transform 0.3s ease;
}

/* Horizontal Line */
.pm-faq-arrow::before {
    top: 9px;
    left: 2px;
    width: 16px;
    height: 2px;
}

/* Vertical Line */
.pm-faq-arrow::after {
    top: 2px;
    left: 9px;
    width: 2px;
    height: 16px;
}

/* Jab details Open ho tab Vertical line ko rotate aur scale karke hide kar denge (Plus turns into Minus) */
.pm-faq-item[open] .pm-faq-question .pm-faq-arrow::after {
    transform: rotate(90deg) scaleY(0);
}

.pm-faq-item[open] .pm-faq-question .pm-faq-arrow::before {
    background-color: #312e81; /* Active state pe icon color change */
}

/* Answer Area Design */
.pm-faq-answer {
    padding: 0 25px 22px 25px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

/* Active box padding border look adjustment */
.pm-faq-item[open] .pm-faq-answer {
    border-top-color: #f1f5f9;
}



/* ========================================== */
/* SIMILAR CARS CAROUSEL & CARDS STYLING    */
/* ========================================== */
.similar-cars-container {
       max-width: 1300px;
    margin: 60px auto;
    padding: 0 0px;
    font-family: system-ui, -apple-system, sans-serif;
}

.similar-cars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.similar-cars-header h2 {
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
    margin: 0;
}

.carousel-navigation {
    display: flex;
    gap: 10px;
}

.carousel-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.carousel-navigation button:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Card Styling */
.car-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.car-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.car-image-box {
    position: relative;
    width: 100%;
    padding-top: 65%; /* 16:9 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}

.car-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.status-available {
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
}

.status-sold {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-available .badge-dot { background: #22c55e; }
.status-sold .badge-dot { background: #ef4444; }

.car-details-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
       font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.car-specs-grid {
        display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
      
}

.spec-tag {
    background: #f3f4f6;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.car-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.emi-label {
       font-size: 13px;
    color: #1a202c;
    font-weight: 600;
    border-bottom: 1px dotted #4a5568;
}

.car-price {
     font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

/* ==========================================================================
   9. RESPONSIVE LAYOUT SYSTEM (MEDIA QUERIES)
   ========================================================================== */

/* --- Tablet / Large Displays Breakpoints --- */
@media (max-width: 1023px) {
    .pm-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media(max-width: 991px) {
    .pm-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .pm-left-col {
        display: contents !important; /* Left column structural bypass */
    }
    
    .pm-gallery {
        order: 1 !important;
    }
    
    .pm-sidebar {
        order: 2 !important;
        position: relative;
        top: auto;
    }
    
    .pm-content-section {
        order: 3 !important;
    }
    
    .pm-main-image img {
        height: 220px;
    }

    .pm-main-image {
         padding: 9px;   
    }
    
    .pm-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pm-feature-list {
        grid-template-columns: 1fr;
    }

    .pm-thumb {
        flex: 0 0 calc(20% - 8px);
        height: 83px;
    }
}

@media (max-width: 901px) {
    .pm-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
    }
}

/* --- Mobile Device Core Breakpoints --- */
@media (max-width: 768px) {
    .pm-slider-btn {
        width: 35px;
        height: 35px;
    }
    .pm-prev { left: 10px; }
    .pm-next { right: 10px; }

    /* Bottom spacing calculation for active sticky bar */
    body {
        padding-bottom: 85px !important; 
    }

    /* Target Activation of Sticky Layout Container */
    .pm-sticky-bottom-bar {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 12px 16px !important;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08) !important; 
        z-index: 99999 !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .pm-sticky-bottom-bar .pm-offer-btn,
    .pm-sticky-bottom-bar .pm-whatsapp-btn,
    .pm-sticky-bottom-bar .pm-sold-out-cta {
        margin-top: 0 !important;
        flex: 1 !important;
        height: 50px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .pm-sticky-bottom-bar .pm-sold-out-cta {
        background-color: #fef2f2;
        color: #ef4444;
    }
}

@media (max-width: 600px) {
    .pm-benefits-section {
        padding: 25px 15px;
        margin: 30px 10px;
        border-radius: 20px;
    }

    .pm-benefits-header h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .pm-benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .pm-benefit-card {
        min-height: 130px;
        padding: 14px 6px;
        border-radius: 14px;
    }

    .pm-benefit-text h3 {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .pm-benefit-text p {
        font-size: 9.5px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pm-benefit-icon {
        width: 48px;
        height: 48px;
        margin-top: 10px;
    }

    .pm-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
    }
    
    .pm-overview-item {
        padding: 16px 0;
        gap: 10px;
    }
    
    .pm-item-data label {
        font-size: 11px;
    }
    
    .pm-item-data strong {
        font-size: 14px;
    }
    
    .pm-overview-header h2 {
        font-size: 20px;
    }
      .pm-faq-header h2 {
        font-size: 22px;
    }
    
    .pm-faq-header p {
        font-size: 13px;
    }

    .pm-faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }

    .pm-faq-answer {
        padding: 0 18px 16px 18px;
        font-size: 13px;
    }
}

@media(max-width: 500px){
    .pm-spec-grid {
        grid-template-columns: 1fr;
    }
}