/* ============================================================
   Motorfactors Vehicle Search — Hero dizainas
   Akcentinė spalva: #2176c7
   ============================================================ */

.mf-vehicle-module {
    position: relative;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0d1b2e;
    /* Foninė nuotrauka — apibrėžta CSS, kad Elementor neiškirptų (norėdami pakeisti — keiskite URL žemiau) */
    background-image:
        linear-gradient(90deg, rgba(13,27,46,0.88) 0%, rgba(13,27,46,0.55) 42%, rgba(13,27,46,0.1) 72%, rgba(13,27,46,0) 100%),
        url('https://www.motorfactors.lt/wp-content/uploads/2026/05/photo_upscaled-scaled.jpeg');
    background-repeat: no-repeat;
    /* cover — nuotrauka užpildo visą kortelę be matomo krašto/siūlės */
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    box-sizing: border-box;
    /* Suapvalinta kortelė su tarpu aplink */
    border-radius: 16px;
    margin: 24px 0;
    /* Vidinis tarpas (breathing room) — dedamas ant kortelės, kad tikrai pritaiktų */
    padding: 42px 46px 46px !important;
}

.mf-vehicle-module *,
.mf-vehicle-module *::before,
.mf-vehicle-module *::after {
    box-sizing: border-box;
}

.mf-vehicle-module .mf-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important;
}

/* --- HERO TEKSTAS --- */
.mf-hero-header {
    margin-bottom: 22px;
}

.mf-hero-title {
    font-size: clamp(20px, 2.4vw, 34px);
    font-weight: 800;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0 0 10px 0;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mf-hero-title .mf-accent {
    color: #2176c7 !important;
    -webkit-text-fill-color: #2176c7 !important;
}

.mf-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #b9c7d8 !important;
    -webkit-text-fill-color: #b9c7d8;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* --- TABS --- */
.mf-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 0;
    margin-left: 14px;        /* pastumti į dešinę nuo apvalaus kampo */
    position: relative;
    z-index: 2;
}

.mf-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #8ba3c0;
    cursor: pointer;
    user-select: none;
    border: none;
    background: transparent;
    border-top: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
    transition: color 0.18s, background 0.18s;
}

.mf-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mf-tab:hover:not(.active) {
    color: #d4e0f0;
    background: rgba(255,255,255,0.04);
}

.mf-tab.active {
    color: #ffffff;
    background: #16273f;          /* tokia pat spalva kaip dėžės — sujungta */
    border-top-color: #2176c7;    /* mėlynas akcentas viršuje */
    margin-bottom: -1px;          /* persidengia su dėže, panaikina siūlę */
    position: relative;
    border-radius: 10px 10px 0 0;
}

/* Įgaubti apatiniai kampai — perėjimas iš tabo į dėžę (apvalinasi Į hero) */
.mf-tab.active::before,
.mf-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    width: 12px;
    height: 12px;
    background: transparent;
    pointer-events: none;
}

.mf-tab.active::before {
    left: -12px;
    border-bottom-right-radius: 12px;
    box-shadow: 6px 0 0 0 #16273f;
}

.mf-tab.active::after {
    right: -12px;
    border-bottom-left-radius: 12px;
    box-shadow: -6px 0 0 0 #16273f;
}

.mf-tab.active svg {
    color: #2176c7;
}

/* --- PAIEŠKOS DĖŽĖ --- */
.mf-search-box {
    position: relative;
    background: #16273f;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

/* --- DROPDOWN'AI --- */
.mf-dropdowns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mf-select {
    flex: 1;
    min-width: 0;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    padding: 0 36px 0 16px;
    font-size: 14px;
    color: #1a2d45;
    -webkit-text-fill-color: #1a2d45;
    font-weight: 600;
    cursor: pointer;
    opacity: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%232176c7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.mf-select:hover:not(:disabled) {
    border-color: #2176c7;
}

.mf-select:disabled {
    background-color: #eef2f7;
    color: #6b8299;
    -webkit-text-fill-color: #6b8299;
    opacity: 1;
    cursor: not-allowed;
    font-weight: 500;
    border-color: #e1e8f0;
}

.mf-select:focus {
    outline: none;
    border-color: #2176c7;
    box-shadow: 0 0 0 3px rgba(33,118,199,0.25);
}

/* --- MYGTUKAS --- */
.mf-vehicle-module .mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: #1a5fa0 !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 8px;
    padding: 0 28px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.3px !important;
    word-spacing: normal !important;
    font-kerning: normal;
    text-rendering: auto;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    text-shadow: none;
    transition: background 0.18s, transform 0.05s;
}

.mf-vehicle-module .mf-btn:hover {
    background: #134c7d !important;
    border: none !important;
}

.mf-vehicle-module .mf-btn:focus,
.mf-vehicle-module .mf-btn:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mf-vehicle-module .mf-btn:active {
    transform: translateY(1px);
}

.mf-arrow {
    font-size: 16px;
    line-height: 1;
}

/* --- OEM EILUTĖ --- */
.mf-oem-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mf-oem-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 18px;
    font-size: 14px;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    caret-color: #111111;
    box-shadow: none !important;
}

.mf-oem-input::placeholder {
    color: #8a97a6;
    -webkit-text-fill-color: #8a97a6;
    opacity: 1;
}

.mf-oem-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,118,199,0.25);
    background: #ffffff;
}

/* Naršyklės autofill — juodas tekstas baltame fone */
.mf-oem-input:-webkit-autofill,
.mf-oem-input:-webkit-autofill:hover,
.mf-oem-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111111 !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: #111111;
}

/* === KATEGORIJŲ PLYTELĖS === */
.mf-categories {
    max-width: 1240px;
    margin: 28px auto;
    padding: 0 16px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.mf-cat-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1a2d45;
    margin: 0 0 16px 0;
}

.mf-cat-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.mf-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 18px 10px;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.1s;
}

.mf-cat-card:hover {
    border-color: #2176c7;
    box-shadow: 0 8px 20px rgba(26,45,69,0.12);
    transform: translateY(-2px);
}

.mf-cat-img {
    display: block;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mf-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: #2176c7;
}

.mf-cat-icon svg {
    width: 44px;
    height: 44px;
}

.mf-cat-card:hover .mf-cat-icon {
    color: #1a5fa0;
}

.mf-cat-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a2d45;
    text-align: center;
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .mf-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .mf-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .mf-cat-img,
    .mf-cat-icon { width: 52px; height: 52px; }
    .mf-cat-icon svg { width: 36px; height: 36px; }
    .mf-cat-name { font-size: 12px; }
}

@media (max-width: 420px) {
    .mf-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === REZULTATŲ PRANEŠIMAS === */
.mf-results-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    background: #f1f5fa;
    border: 1px solid #e0e8f2;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #1a2d45;
}

.mf-results-notice .mf-rn-warn {
    color: #b45309;
}

.mf-results-notice .mf-rn-count strong,
.mf-results-notice .mf-rn-warn strong {
    color: #1a2d45;
}

.mf-results-notice .mf-rn-empty {
    color: #8a3b3b;
}

/* --- AKTYVAUS FILTRO JUOSTA (parduotuvėje) --- */
.mf-active-filter {
    background: #1a2d45;
    color: #ccd6e8;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mf-active-filter strong { color: #fff; }

.mf-active-filter a {
    color: #8ba3c0;
    text-decoration: none;
    font-size: 12px;
    flex-shrink: 0;
}

.mf-active-filter a:hover { color: #fff; }

/* ============================================================
   PLANŠETĖ
   ============================================================ */
@media (max-width: 1024px) {
    .mf-hero-inner { padding: 40px 32px 44px; }
    .mf-hero-title { font-size: 28px; }
}

/* ============================================================
   TELEFONAS
   ============================================================ */
@media (max-width: 768px) {
    .mf-vehicle-module {
        background-size: cover;
        background-position: center right !important;
        padding: 24px 18px 26px !important;
    }

    .mf-hero-inner { padding: 28px 18px 30px; }

    .mf-hero-title { font-size: 21px; }
    .mf-hero-subtitle { font-size: 13px; }

    .mf-tabs { gap: 2px; }

    .mf-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .mf-search-box { padding: 12px; }

    .mf-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mf-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mf-oem-row { flex-direction: column; }

    .mf-oem-input,
    .mf-oem-row .mf-btn { width: 100%; }
}

@media (max-width: 420px) {
    .mf-dropdowns { grid-template-columns: 1fr; }
    .mf-hero-title { font-size: 18px; }
}
