/* ============================================
   PREMIUM.CSS - Shared Premium Visual Overrides
   Applied across ALL pages for consistent dark theme
   ============================================ */

/* --- Base & Background --- */
body {
    background-color: #080c14 !important;
}

/* --- Enhanced Section Titles --- */
.section-title h2,
.section-subtitle {
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.section-title p {
    color: rgba(156, 163, 175, 0.7);
}

/* --- Card Redesign --- */
.card {
    background: rgba(15, 20, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    border-color: rgba(245, 158, 11, 0.25) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 158, 11, 0.08) !important;
    background: rgba(20, 28, 50, 0.8) !important;
    transform: translateY(-10px) !important;
}

.card h3 {
    color: #fff;
}

.card p {
    color: rgba(156, 163, 175, 0.7);
    line-height: 1.7;
}

/* --- Enhanced Contact Hero --- */
.contact-hero {
    background: linear-gradient(135deg, rgba(8, 12, 20, 0.95), rgba(15, 23, 42, 0.9)) !important;
    position: relative;
    overflow: hidden;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #080c14, transparent);
}

.contact-hero .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}

/* --- Enhanced Info Cards --- */
.info-card {
    background: rgba(15, 20, 35, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.info-card:hover {
    background: rgba(20, 28, 50, 0.7) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card i {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease !important;
}

.info-card:hover i {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #080c14 !important;
    border-color: transparent !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* --- Enhanced FAQ Container --- */
.faq-container {
    background: rgba(15, 20, 35, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px;
}

.faq-item h3 {
    color: #fbbf24 !important;
}

.faq-item p {
    color: rgba(156, 163, 175, 0.75);
}

/* --- Enhanced Steps --- */
.step {
    background: rgba(15, 20, 35, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(20, 28, 50, 0.6) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
    transform: translateX(5px);
}

.step-number {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* --- Enhanced Quick Contact Card --- */
.quick-contact-card {
    background: rgba(15, 20, 35, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* --- Enhanced Policy Card --- */
.policy-card {
    background: rgba(15, 20, 35, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.policy-card h1 {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}

.policy-card h2 {
    color: #fbbf24 !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.policy-card p,
.policy-card ul {
    color: rgba(209, 213, 219, 0.85);
}

/* --- Enhanced Article Hero --- */
.article-hero {
    background: linear-gradient(135deg, rgba(8, 12, 20, 0.95), rgba(30, 41, 59, 0.85)) !important;
}

/* --- Enhanced Article Container --- */
.article-container {
    background: rgba(15, 20, 35, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-content h2 {
    color: #fbbf24 !important;
}

.pipe-type-card {
    background: rgba(15, 20, 35, 0.5) !important;
    border-radius: 18px !important;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-radius: 16px !important;
}

/* --- Enhanced Affiliate Links --- */
.affiliate-link {
    background: rgba(15, 20, 35, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 20px;
}

.affiliate-link:hover {
    background: rgba(20, 28, 50, 0.6) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.1) !important;
}

/* --- Enhanced Floating CTA --- */
.btn-floating {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45) !important;
    border-radius: 16px !important;
}

.btn-floating:hover {
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6) !important;
}

/* --- Section Divider --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.15), transparent);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PREMIUM FOOTER
   ============================================ */
.premium-footer {
    padding: 4rem 2rem 2rem;
    background: #060a10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: rgba(156, 163, 175, 0.6);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(156, 163, 175, 0.6);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #f59e0b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(156, 163, 175, 0.4);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #f59e0b;
    text-decoration: none;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(156, 163, 175, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-tagline {
        display: block;
    }
}

/* --- Enhanced Hero for Subpages --- */
.hero {
    background: linear-gradient(135deg, rgba(8, 12, 20, 0.95), rgba(15, 23, 42, 0.9)) !important;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 50%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}

/* --- Map Container Enhancement --- */
.map-container {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* --- Services Section Background --- */
.services {
    background: #080c14 !important;
}

/* --- Contact Section Enhancement --- */
.contact-section {
    background: #080c14;
}

/* ============================================
   PREMIUM MECHANIC MODAL OVERRIDES
   ============================================ */

/* Modal backdrop glass */
.mechanic-modal-content {
    background: rgba(8, 12, 20, 0.92) !important;
    border: 1px solid rgba(245, 158, 11, 0.12) !important;
    border-radius: 28px !important;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(245, 158, 11, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    overflow: hidden !important;
}

/* Top accent gradient line */
.mechanic-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #6366f1, #10b981);
    z-index: 10;
    border-radius: 28px 28px 0 0;
}

/* Left pane styling */
.pane-left {
    background: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 2.5rem 2rem !important;
}

.pane-left h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.pane-left p {
    color: rgba(156, 163, 175, 0.6) !important;
    font-size: 0.9rem;
}

/* Enhanced mechanic items */
.mechanic-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    padding: 16px 22px !important;
    gap: 16px !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.mechanic-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.mechanic-item i {
    width: 40px !important;
    height: 40px;
    min-width: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
}

.mechanic-item span {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.mechanic-item:hover {
    background: rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
    transform: translateX(6px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mechanic-item:hover::after {
    background: #f59e0b;
}

.mechanic-item.active {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.1);
    transform: translateX(6px) !important;
}

.mechanic-item.active::after {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.mechanic-item.active i {
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Right pane styling */
.pane-right {
    background: rgba(255, 255, 255, 0.015) !important;
    padding: 2.5rem 2rem !important;
}

.pane-right h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.pane-right p {
    color: rgba(156, 163, 175, 0.6) !important;
    font-size: 0.9rem;
}

/* Enhanced location items */
.location-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 14px 22px !important;
    gap: 14px !important;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.location-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.location-item:hover {
    background: transparent !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fff !important;
    transform: translateX(6px) scale(1.01) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.location-item:hover::before {
    opacity: 1;
}

.location-item:hover i,
.location-item:hover span {
    position: relative;
    z-index: 2;
}

.location-item i {
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.location-item:hover i {
    opacity: 1;
    color: #f59e0b !important;
}

/* Modal icon enhancements */
.mechanic-modal-content .modal-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.25));
}

/* Close button enhancement */
.mechanic-modal-content .close-btn {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease !important;
    font-size: 1.2rem !important;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 50;
}

.mechanic-modal-content .close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.mobile-back-btn {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mechanic-modal-content {
        border-radius: 20px !important;
    }

    .pane-left {
        padding: 2rem 1.5rem !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    }

    .pane-right {
        padding: 1.5rem !important;
        overflow-y: auto;
        max-height: 45vh;
    }

    .mechanic-item {
        padding: 14px 16px !important;
    }
}


/* --- Mechanic Modal Restyle (Tailwind SaaS style) --- */

.mechanic-modal-content {
    background: rgba(12, 16, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    flex-direction: row;
    max-width: 900px !important;
    padding: 0 !important;
}

.left-header h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 15px;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(156, 163, 175, 0.6);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px 12px 38px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    outline: none;
}

.mechanic-accordion-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mechanic-accordion-list::-webkit-scrollbar {
    width: 4px;
}

.mechanic-accordion-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mechanic-accordion-list::-webkit-scrollbar-track {
    background: transparent;
}

.mech-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mech-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.mech-group-header:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.mech-group-header i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: rgba(156, 163, 175, 0.6);
}

.mech-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mech-group.open .mech-group-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
    padding: 0 8px 12px 8px;
}

.mech-group.open .mech-group-header i {
    transform: rotate(180deg);
}

.mechanic-item {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    gap: 12px !important;
}

.mechanic-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(4px) !important;
    box-shadow: none !important;
}

.mechanic-item.active {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
    transform: translateX(4px) !important;
}

/* Right pane styling update */
.pane-right {
    background: rgba(0, 0, 0, 0.2) !important;
    flex: 1;
}

.location-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.location-tabs::-webkit-scrollbar {
    display: none;
}

.loc-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 16px;
    color: #9ca3af;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.loc-tab.active,
.loc-tab:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.location-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.location-item {
    padding: 12px 18px !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
}

/* Skeleton Loading */
.skeleton-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    height: 52px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .mechanic-modal-content {
        flex-direction: column !important;
        max-width: 100% !important;
        margin: auto 0 0 0 !important;
        /* Bottom sheet */
        border-radius: 24px 24px 0 0 !important;
        max-height: 90vh !important;
        overflow: hidden !important;
    }

    .modal-overlay {
        align-items: flex-end !important;
        /* align modal to bottom */
    }

    .pane-left {
        width: 100%;
        padding: 1.5rem !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.05) !important;
        border-right: none !important;
    }

    .mechanic-accordion-list {
        max-height: 35vh;
    }

    .pane-right {
        padding: 1.5rem !important;
        max-height: 45vh;
        overflow-y: auto;
    }

    .location-grid-container {
        grid-template-columns: 1fr;
    }
}

/* --- Mechanic Modal Restyle (Tailwind SaaS style) --- */

.mechanic-modal-content {
    background: rgba(12, 16, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    flex-direction: row;
    max-width: 600px !important;
    width: 90vw !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s ease !important;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .mechanic-modal-content.expanded-desktop {
        max-width: 1200px !important;
    }
}

.pane-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    width: 100%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 769px) {
    .mechanic-modal-content.expanded-desktop .pane-left {
        width: 45%;
    }
}

.left-header h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(156, 163, 175, 0.8);
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 13px 14px 13px 40px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
    outline: none;
}

.mechanic-accordion-list {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* allow it to grow in column flex */
    max-height: 400px;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mechanic-accordion-list::-webkit-scrollbar {
    width: 4px;
}

.mechanic-accordion-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.mechanic-accordion-list::-webkit-scrollbar-track {
    background: transparent;
}

.mech-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* FIX: Prevents headers from being squished when accordion opens */
}

/* Popular Highlight Glow */
.mech-group[data-group="popular"] {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.01));
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.05);
}

.mech-group[data-group="popular"] .mech-group-header {
    color: #fbbf24;
}

.mech-group[data-group="popular"] .mech-group-header i {
    color: #fbbf24;
}

.mech-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.mech-group-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.mech-group-header i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: rgba(156, 163, 175, 0.6);
}

/* FIX: Grid Accordion approach for super smooth animation */
.mech-group-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mech-group.open .mech-group-content {
    grid-template-rows: 1fr;
}

.mech-group-content-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px 0 10px;
    /* Base padding */
    transition: padding 0.35s ease;
}

/* Add bottom padding only when open, this triggers smoothly via flex inside the grid inner cell */
.mech-group.open .mech-group-content-inner {
    padding: 0 10px 14px 10px;
}

.mech-group-header i {
    transform: rotate(0deg);
}

.mech-group.open .mech-group-header i {
    transform: rotate(180deg);
}

.mechanic-item {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    gap: 16px !important;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mechanic-item i {
    font-size: 1.15rem;
    width: 30px;
    text-align: center;
}

.mechanic-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
    color: #fff;
}

.mechanic-item.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.03)) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    transform: translateX(4px) scale(1.01) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1) !important;
    color: #fff;
}


/* Right pane styling update */
.pane-right {
    background: rgba(0, 0, 0, 0.3) !important;
    display: none !important;
    flex: 1;
    padding: 2rem 2.5rem !important;
}

@media (min-width: 769px) {
    .mechanic-modal-content.expanded-desktop .pane-right {
        display: flex !important;
        flex-direction: column;
        animation: fadeInPane 0.5s ease forwards;
    }
}

@keyframes fadeInPane {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.location-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.location-tabs::-webkit-scrollbar {
    display: none;
}

.loc-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 18px;
    color: #9ca3af;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.loc-tab.active,
.loc-tab:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.location-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.location-item {
    padding: 14px 18px !important;
    border-radius: 14px !important;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Skeleton Loading */
.skeleton-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 14px;
    height: 55px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .mechanic-modal-content {
        flex-direction: column !important;
        max-width: 95% !important;
        margin: auto !important;
        border-radius: 20px !important;
        max-height: 85vh !important;
        overflow: hidden !important;
    }

    .modal-overlay {
        align-items: center !important;
        padding: 5vh 0;
    }

    .pane-left {
        width: 100%;
        padding: 4.5rem 1.5rem 1.5rem 1.5rem !important;
        border-bottom: none !important;
        border-right: none !important;
        max-height: 85vh;
        /* Full scrollable */
        overflow-y: auto;
    }

    /* Sticky header for mobile */
    .left-header {
        position: sticky;
        top: 0;
        background: rgba(12, 16, 26, 0.95);
        z-index: 10;
        padding-bottom: 10px;
    }

    .mechanic-accordion-list {
        max-height: unset;
        /* let parent scroll */
        flex: unset;
        overflow-y: visible;
    }

    .pane-right {
        display: none !important;
        /* Hidden initially */
        padding: 4.5rem 1.5rem 1.5rem 1.5rem !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* Pane switching */
    .mechanic-modal-content.mobile-view-location .pane-left {
        display: none !important;
    }

    .mechanic-modal-content.mobile-view-location .pane-right {
        display: flex !important;
        flex-direction: column;
    }

    .mobile-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* User specifically requested 2-column grid on mobile too! */
    .location-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .location-item {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
    }

    .location-item i {
        font-size: 0.9rem !important;
    }
}


@media (max-width: 768px) {

    /* FIX: Force accordion items to remain horizontal on mobile instead of stacking icons over text */
    .mechanic-accordion-list .mechanic-item {
        flex-direction: row !important;
        text-align: left !important;
        padding: 12px 16px !important;
        gap: 16px !important;
    }

    .mechanic-accordion-list .mechanic-item i {
        font-size: 1.15rem !important;
        width: 30px !important;
    }
}