/* =========================================================
   EVCompareHub Search Results - DB version
   Desktop sidebar + mobile off-canvas filter
   ========================================================= */

:root {
    --bg: #f6f7f8;
    --card: #ffffff;
    --text: #171717;
    --muted: #70757a;
    --line: #e5e7eb;
    --green: #16896b;
    --green-dark: #0f6d55;
    --green-soft: #eaf6f1;
    --green-softer: #f4fbf7;
    --yellow-soft: #fff7e8;
    --blue-soft: #eaf1ff;
    --blue-dark: #395680;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    --container: 1320px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
a:visited{
    /*color: #800080 !important;*/
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

body.drawer-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}
html, body {
  background: #ffffff !important;
  color: #111111 !important;
  color-scheme: light;
}

body.ev-page,
.ev-page,
.site,
.site-main,
main,
.page-shell,
.evch-page-wrap {
  background: #ffffff !important;
  color: #111111 !important;
}
button,
input,
select {
    font: inherit;
}

.page-main {
    /*padding: 18px 0 20px;*/
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.search-shell {
    max-width: 1320px;
}

.search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.search-title-wrap h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #3D4452;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef1f2;
    border: 1px solid #dfe3e6;
    border-radius: 14px;
    padding: 9px 14px;
    font-weight: 600;
    font-size: 0.98rem;
    /*color: #1f3158;*/
}

.search-tag b {
    color: #4b5563;
}

.search-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    min-width: 220px;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #374151;
    font-weight: 600;
}

.share-box a {
    color: #7a197e;
    font-size: 1.1rem;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 12px;
    /*box-shadow: var(--shadow);*/
}

.sort-box label {
    font-weight: 700;
    color: #1f2937;
}

.sort-box select {
    border: 0;
    outline: 0;
    background: transparent;
    /*font-weight: 800;*/
    color: #0f172a;
    cursor: pointer;
}

.mobile-filter-trigger {
    display: none;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    font-weight: 800;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.search-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    /*gap: 16px;*/
    align-items: start;
}

.search-sidebar {
    /*position: sticky;*/
    top: 96px;
}

.filter-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
}

.filter-group + .filter-group {
    border-top: 1px solid var(--line);
}

.filter-head {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 14px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.06rem;
    font-weight: 800;
    color: #111827;
}

.filter-body {
    padding: 0 14px 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    color: #111827;
    margin-bottom: 10px;
    cursor: pointer;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.range-inline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.range-pill-input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #f7f7f7;
    border-radius: 12px;
    font-weight: 700;
    color: #4b5563;
    outline: 0;
}

.range-full {
    width: 100%;
}

.range-text {
    color: #374151;
    font-size: 0.95rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.brand-logo {
    position: relative;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    font-weight: 800;
    color: #374151;
    text-align: center;
    padding: 8px;
    cursor: pointer;
}

.brand-logo input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.brand-logo.active {
    border-color: #d8e9e1;
    background: var(--green-softer);
    color: var(--green-dark);
}

.filter-actions,
.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
}

.filter-submit-btn,
.filter-reset-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
}

.filter-submit-btn {
    border: 0;
    background: var(--green);
    color: #fff;
}

.filter-reset-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #111827;
}

.search-results {
    min-width: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.result-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 0 1px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 0;
}

.result-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 10px 0;
    min-height: 66px;
}

.card-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.result-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    /*border-radius: 999px;*/
    padding: 6px 10px;
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.result-badge-gold {
    background: var(--yellow-soft);
    color: #94611f;
}

.result-badge-green {
    background: var(--green-soft);
    color: var(--green-dark);
}

.result-badge-blue {
    background: #334e74;
    color: #fff;
}

.card-score-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--green);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green);
    flex: 0 0 auto;
    background: #fff;
}

.result-image-wrap {
    display: block;
    padding: 0 10px;
}

.result-image {
    width: 100%;
    aspect-ratio: 16 / 9.6;
    object-fit: contain;
}

.result-body {
    padding: 2px 12px 10px;
}

.result-title {
    margin: 2px 0 6px;
    font-size: 1.3rem;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    min-height: 48px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.84rem;
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1;
    font-weight: 700;
}

.pill-soft {
    background: #eef8f4;
    color: var(--green-dark);
}

.result-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
}

.result-installment {
    font-size: 0.92rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 10px;
}

.result-specline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 4px;
}

.result-scores {
    margin-top: 8px;
        border-top: 1px solid #bbbbbb80;
    padding-top: 8px;
}

.mini-score-row {
    display: grid;
    grid-template-columns: 80px 1fr 36px;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
}

.mini-score-row span {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.mini-score-row strong {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
}

.mini-score-bar {
    height: 8px;
    /*border-radius: 999px;*/
    background: #e7f0ec;
    overflow: hidden;
}

.mini-score-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2ca77d, #16896b);
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    font-size: 0.95rem;
}

.compare-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.detail-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    font-size: 0.95rem;
}

.detail-btn:hover {
    background: var(--green-dark);
}

.empty-state {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.compare-sticky {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 80;
    width: min(560px, calc(100% - 24px));
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    display: grid;
    grid-template-columns: 84px 1fr auto 34px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}

.compare-sticky-car img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.compare-sticky-text strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.compare-sticky-link {
    color: var(--green);
    font-weight: 800;
    font-size: 1.1rem;
    white-space: nowrap;
}

.compare-sticky-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.filter-drawer,
.drawer-backdrop {
    display: none;
}

.bottom-header-wrapper,
.middle-header-wrapper {
    max-width: 1320px;
    margin: 0 auto;
}

@media (max-width: 1360px) {
    .results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
    }

    .search-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-tools {
        align-items: flex-start;
    }

    .desktop-filter {
        display: none;
    }

    .mobile-filter-trigger {
        display: inline-flex;
    }

    .filter-drawer,
    .drawer-backdrop {
        display: block;
    }

    .drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 89;
        background: rgba(17, 24, 39, 0.45);
    }

    .filter-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 84vw);
        background: #fff;
        z-index: 90;
        transform: translateX(-100%);
        transition: transform .22s ease;
        /*box-shadow: 20px 0 60px rgba(0,0,0,0.18);*/
        overflow: hidden;
    }

    .filter-drawer.open {
        transform: translateX(0);
    }

    .filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
}

.filter-drawer-head strong {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.filter-drawer-head button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    flex: 0 0 40px;
}

    .filter-drawer-body {
        height: calc(100vh - 76px);
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .drawer-section-title {
        display: grid;
        place-items: center;
        min-height: 74px;
        border-bottom: 1px solid var(--line);
        font-size: 1.5rem;
        font-weight: 800;
    }

    .drawer-group {
        border-bottom: 1px solid var(--line);
    }

    .drawer-group-head {
        width: 100%;
        min-height: 70px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 0;
        background: #fff;
        font-size: 1.22rem;
        font-weight: 800;
        color: #111827;
    }

    .drawer-group-body {
        padding: 0 20px 18px;
    }

    .drawer-group .check-row {
        font-size: 1.18rem;
        margin-bottom: 14px;
    }

    .drawer-group .check-row input {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 20px, 100%);
    }

    .page-main {
        padding-bottom: 20px;
    }

    .search-title-wrap h1 {
        font-size: 1.65rem;
        margin-bottom: 10px;
    }

    .search-tools {
        gap: 12px;
    }

    .share-box {
        font-size: 0.95rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        border-radius: 6px;
    }

    .result-title {
        min-height: auto;
        font-size: 1.4rem;
    }

    .mini-score-row {
        grid-template-columns: 70px minmax(88px, 120px) 28px;
        gap: 8px;
    }

    .result-actions {
        gap: 10px;
    }

    .detail-btn {
        min-height: 40px;
    }

    .compare-sticky {
        grid-template-columns: 72px 1fr auto 28px;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 18px;
        bottom: 14px;
    }

    .compare-sticky-text strong {
        font-size: 1rem;
    }

    .compare-sticky-link {
        font-size: 0.9rem;
    }

    .filter-drawer {
        width: min(340px, 84vw);
    }
}
.result-spec-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 15px 0 15px;
}

.spec-icon-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.spec-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #7a7f86;
}

@media (max-width: 767px) {
    .result-spec-icons {
        gap: 6px 12px;
    }

    .spec-icon-item {
        font-size: 0.92rem;
    }

    .spec-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
}
.filter-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-row {
        display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    line-height: 1.4;
}

.option-row input[type="checkbox"],
.option-row input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--green);
    flex: 0 0 18px;
}

.option-row span {
    display: inline-block;
}

.radio-list .option-row {
    font-weight: 500;
}

.filter-head,
.drawer-group-head {
    cursor: pointer;
}

.filter-head span,
.drawer-group-head span {
    transition: transform .18s ease;
}

.filter-group.is-collapsed .filter-head span,
.drawer-group.is-collapsed .drawer-group-head span {
    transform: rotate(-90deg);
}

.filter-group.is-collapsed .filter-body,
.drawer-group.is-collapsed .drawer-group-body {
    display: none;
}

.filter-group.is-collapsed .filter-head span,
.drawer-group.is-collapsed .drawer-group-head span {
    transform: rotate(-90deg);
}

.filter-head span,
.drawer-group-head span {
    transition: transform .18s ease;
}
.filter-card {
    border: 1px solid #d9dde3;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.filter-group + .filter-group {
    border-top: 1px solid #e5e7eb;
}

.filter-head {
    padding: 18px 18px 14px;
    font-size: 1.05rem;
    font-weight: 800;
    background: #fff;
}

.filter-body {
    padding: 0 18px 18px;
}

.filter-actions {
    border-top: 1px solid #e5e7eb;
    padding: 16px 18px 18px;
}

.filter-actions-single {
    display: block;
}

.filter-actions-single .filter-reset-btn {
    width: 100%;
    min-height: 46px;
}

.option-row {
    min-height: 20px;
}
.filter-head span,
.drawer-group-head span {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    transition: transform .18s ease;
}

.filter-group.is-collapsed .filter-head span,
.drawer-group.is-collapsed .drawer-group-head span {
    transform: rotate(-90deg);
}
.price-manual-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.price-manual-label {
    margin-bottom: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #4b5563;
}

.price-range-inline {
    margin-bottom: 12px;
}

.price-manual-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-apply-btn,
.price-clear-btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
}

.price-apply-btn {
    border: 0;
    background: var(--green);
    color: #fff;
}

.price-clear-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: #111827;
}

@media (max-width: 1180px) {
    .drawer-group-body .price-manual-label {
        font-size: 1rem;
    }

    .drawer-group-body .price-apply-btn,
    .drawer-group-body .price-clear-btn {
        min-height: 46px;
        font-size: 1rem;
    }
}
.mobile-search-toolbar {
    display: none;
}

@media (max-width: 767px) {
    .search-tools {
        display: none;
    }

    .mobile-search-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .mobile-toolbar-btn {
        min-height: 48px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 14px;
        font-weight: 700;
        font-size: 16px;
    }

    .mobile-filter-btn {
        justify-content: center;
    }

    .mobile-sort-btn {
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-sort-btn select {
        border: 0;
        outline: 0;
        background: transparent;
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        font-weight: 700;
        color: #111827;
        cursor: pointer;
    }

    .mobile-sort-label {
        white-space: nowrap;
        color: #374151;
    }

    .mobile-sort-btn .fa-chevron-down {
        pointer-events: none;
        font-size: 0.9rem;
        color: #374151;
    }
}
.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
}

.page-btn:hover {
    border-color: #cfd6dd;
    background: #f9fafb;
}

.page-btn.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.page-dots {
    color: #6b7280;
    font-weight: 700;
    padding: 0 4px;
}

@media (max-width: 767px) {
    .search-pagination {
        gap: 10px;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.95rem;
    }
}
.ev-site-footer {
    margin-top: 32px;
    background: #111827;
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ev-footer-inner {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 18px;
}

.ev-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding-bottom: 20px;
}

.ev-footer-brand {
    min-width: 0;
}

.ev-footer-logo {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
}

.ev-footer-desc {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    line-height: 1.7;
}

.ev-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ev-footer-col h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.ev-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-footer-col li + li {
    margin-top: 8px;
}

.ev-footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color .18s ease;
}

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

.ev-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.ev-footer-bottom p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 767px) {
    .ev-footer-inner {
        width: min(100% - 20px, 100%);
        padding: 24px 0 16px;
    }

    .ev-footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ev-footer-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ev-footer-logo {
        font-size: 1.22rem;
    }

    .ev-footer-desc {
        font-size: 0.95rem;
    }
}
.search-intro{
    margin:10px 0 0;
    color:#5f6368;
    font-size:15px;
    line-height:1.7;
    max-width:900px;
}
.search-editorial-block{
    margin-top: 28px;
}

.search-editorial-inner{
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
}

.search-editorial-inner h2{
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.search-editorial-inner p{
    margin: 0 0 10px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.75;
}

.search-editorial-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.search-editorial-links a{
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.search-editorial-links a:hover{
    background: #eef2f7;
}

@media (max-width: 767px){
    .search-editorial-inner{
        padding: 18px;
        border-radius: 14px;
    }

    .search-editorial-inner h2{
        font-size: 18px;
    }

    .search-editorial-inner p{
        font-size: 14px;
    }
}
.landing-shell .search-layout{
    display:block;
}

.landing-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.landing-tools{
    flex:0 0 auto;
}

.landing-results-wrap{
    margin-top:8px;
}

.landing-results{
    width:100%;
}

.landing-detail-btn{
    margin-left:auto;
}

@media (max-width: 767px){
    .landing-header{
        display:block;
    }

    .landing-tools{
        margin-top:12px;
    }
}
.landing-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:14px;
}

.landing-tools{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:12px;
}

.landing-primary-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
}

.landing-cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    font-size:15px;
    transition:.2s ease;
    border:1px solid #d9e2e8;
}

.landing-cta-primary{
    background:#3f8f73;
    border-color:#3f8f73;
    color:#fff;
}

.landing-cta-primary:hover{
    background:#377e65;
    border-color:#377e65;
    color:#fff;
}

.landing-cta-secondary{
    background:#fff;
    color:#22313f;
}

.landing-cta-secondary:hover{
    background:#f7f9fc;
    color:#22313f;
}

.landing-mobile-actions{
    display:none;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:10px;
}

.landing-mobile-sort{
    min-height:46px;
}

.landing-mobile-sort select{
    width:100%;
}

.landing-bottom-cta{
    display:flex;
    gap:12px;
    justify-content:center;
    margin-top:24px;
    margin-bottom:8px;
}

@media (max-width: 991px){
    .landing-header{
        display:block;
    }

    .landing-tools{
        margin-top:12px;
        align-items:stretch;
    }

    .landing-primary-actions{
        display:none;
    }
}

@media (max-width: 767px){
    .landing-tools .sort-box{
        display:none;
    }

    .landing-mobile-actions{
        display:grid;
    }

    .landing-bottom-cta{
        flex-direction:column;
    }

    .landing-bottom-cta .landing-cta-btn{
        width:100%;
    }
}
.search-related-links{
    margin-top:24px;
    padding:24px;
    border:1px solid #e7ebf0;
    border-radius:16px;
    background:#fff;
}

.search-related-links h2{
    margin:0 0 14px;
    font-size:20px;
    line-height:1.4;
}

.related-links-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.related-links-grid a{
    display:block;
    padding:14px 16px;
    border-radius:12px;
    background:#f7f9fc;
    color:#1f2d3d;
    text-decoration:none;
    font-weight:600;
    line-height:1.5;
    transition:.2s ease;
}

.related-links-grid a:hover{
    background:#eef3f8;
}

@media (max-width: 767px){
    .related-links-grid{
        grid-template-columns:1fr;
    }
}
/* =========================================================
   MOBILE CARD COMPACT PATCH
   Goal: show ~2 cards on iPhone 14 Pro Max / similar screens
   Append this at the END of search.css
   ========================================================= */

@media (max-width: 767px) {
    .results-grid {
        gap: 8px;
    }

    .result-card {
        border-radius: 6px;
        overflow: hidden;
    }

    .result-topline {
        padding: 8px 10px 0;
        min-height: 46px;
        gap: 8px;
        align-items: flex-start;
    }

    .card-badges {
        gap: 4px;
        min-width: 0;
        max-width: calc(100% - 58px);
    }

    .result-badge {
        padding: 5px 9px;
        font-size: 0.76rem;
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ให้โชว์ badge แค่ตัวแรกบน mobile เพื่อลดความสูง */
    .card-badges .result-badge:nth-child(n+2) {
        display: none;
    }

    .card-score-circle {
        width: 44px;
        height: 44px;
        font-size: 1.08rem;
        border-width: 2.5px;
        flex: 0 0 44px;
    }

    .result-image-wrap {
        padding: 0 10px;
    }

    .result-image {
        aspect-ratio: 16 / 8.2;
        max-height: 150px;
        object-fit: contain;
    }

    .result-body {
        padding: 0 10px 10px;
    }

    .result-meta {
        gap: 6px;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
    }

    .pill {
        font-size: 0.76rem;
        padding: 4px 8px;
    }

    .result-title {
        margin: 0 0 6px;
        font-size: 1.05rem;
        line-height: 1.25;
        min-height: auto;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .result-price {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 1px;
    }

    .result-installment {
        font-size: 0.84rem;
        margin-bottom: 8px;
    }

    .result-spec-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        margin: 8px 0 8px;
    }

    .spec-icon-item {
        gap: 5px;
        font-size: 0.82rem;
        line-height: 1.3;
        min-width: 0;
    }

    .spec-icon-item:last-child {
        grid-column: 1 / -1;
    }

    .spec-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }

    .result-scores {
        margin-top: 4px;
    }

    .mini-score-row {
        grid-template-columns: 68px 1fr 30px;
        gap: 6px;
        margin-bottom: 4px;
    }

    .mini-score-row span,
    .mini-score-row strong {
        font-size: 0.8rem;
    }

    .mini-score-bar {
        height: 8px;
    }


    .result-actions {
        margin-top: 10px;
        gap: 8px;
        align-items: center;
    }

    .compare-toggle {
        gap: 6px;
        font-size: 0.84rem;
    }

    .compare-toggle input {
        width: 16px;
        height: 16px;
    }

    .detail-btn {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 0.88rem;
    }
}
@media (max-width: 767px) {
    .results-grid {
        gap: 8px;
    }

    .result-card {
        border-radius: 6px;
        overflow: hidden;
    }

    .result-topline {
        padding: 8px 10px 0;
        min-height: 46px;
        gap: 8px;
        align-items: flex-start;
    }

    .card-badges {
        gap: 4px;
        min-width: 0;
        max-width: calc(100% - 58px);
    }

    .result-badge {
        padding: 5px 9px;
        font-size: 0.76rem;
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-badges .result-badge:nth-child(n+2) {
        display: none;
    }

    .card-score-circle {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        border-width: 2.5px;
        flex: 0 0 44px;
    }

    .result-image-wrap {
        padding: 0 10px;
    }

    .result-image {
        aspect-ratio: 16 / 8.2;
        max-height: 138px;
        object-fit: contain;
    }

    .result-body {
        padding: 0 10px 10px;
    }

    .result-meta {
        gap: 6px;
        margin-bottom: 6px;
    }

    .pill {
        font-size: 0.76rem;
        padding: 4px 8px;
    }

    .result-title {
        margin: 0 0 6px;
        font-size: 1.02rem;
        line-height: 1.24;
        min-height: auto;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .result-price {
        font-size: 1rem;
        line-height: 1.18;
        margin-bottom: 1px;
    }

    .result-installment {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    .result-spec-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        margin: 8px 0 8px;
    }

    .spec-icon-item {
        gap: 5px;
        font-size: 0.81rem;
        line-height: 1.28;
        min-width: 0;
    }

    .spec-icon-item:last-child {
        grid-column: 1 / -1;
    }

    .spec-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }

    .result-scores {
        margin-top: 6px;
    }

    .mini-score-row {
        grid-template-columns: 62px 1fr 28px;
        gap: 6px;
        align-items: center;
        margin-bottom: 3px;
    }

    .mini-score-row:last-child {
        margin-bottom: 0;
    }

    .mini-score-row span,
    .mini-score-row strong {
        font-size: 0.76rem;
        line-height: 1.1;
    }

    .mini-score-row strong {
        letter-spacing: -0.01em;
    }

    .mini-score-bar {
        height: 8px;
        /*border-radius: 999px;*/
    }

    .result-actions {
        margin-top: 10px;
        gap: 8px;
        align-items: center;
    }

    .compare-toggle {
        gap: 6px;
        font-size: 0.82rem;
    }

    .compare-toggle input {
        width: 16px;
        height: 16px;
    }

    .detail-btn {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 0.86rem;
    }
}

/* =========================================================
   MOBILE REDESIGN V2 - EV SEARCH COMPACT MEDIA CARD
   append at end of search.css
   ========================================================= */

@media (max-width: 767px) {
    .results-grid {
        gap: 10px;
    }

    .result-card {
        position: relative;
        border-radius: 6px;
        border: 1px solid #bbbbbb80;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
        overflow: hidden;
        background: #fff;
    }

    /* ---------- media zone ---------- */
    .result-topline {
        margin-top: 10px;
        margin-left: 10px;
        margin-right: 10px;
        min-height: 0;
        padding: 0;
        gap: 8px;
        pointer-events: none;
        position: relative;
        z-index: 1;
    }

    .card-badges {
        max-width: calc(100% - 64px);
        gap: 6px;
    }

    .result-badge {
        padding: 6px 10px;
        font-size: 0.74rem;
        line-height: 1;
        border-radius: 999px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
        background-clip: padding-box;
    }

    /* mobile ให้โชว์แค่ badge แรก */
    .card-badges .result-badge:nth-child(n+2) {
        display: none;
    }

    .card-score-circle {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-width: 2.5px;
        font-size: 1.02rem;
        background: rgba(255,255,255,.96);
        box-shadow: 0 1px 2px rgba(0,0,0,.05);
    }

    .result-image-wrap {
        display: block;
        padding: 10px 10px 0;
    }

    .result-image {
        width: 100%;
        height: 168px;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center 58%;
        /*background: linear-gradient(180deg, #fbfcfc 0%, #f7f8f8 100%);*/
        border-radius: 16px 16px 12px 12px;
        transform: scale(1.4);
    }

    /* ---------- content zone ---------- */
    .result-body {
        padding: 8px 12px 12px;
    }

    .result-meta {
        gap: 6px;
        margin-bottom: 8px;
    }

    .pill {
        font-size: 0.76rem;
        padding: 4px 8px;
        border-radius: 999px;
    }

    .result-title {
        margin: 0 0 6px;
        min-height: auto;
        font-size: 1.25rem;
        line-height: 1.24;
        letter-spacing: -0.01em;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .result-price {
        font-size: 1.2rem;
        line-height: 1.18;
        margin-bottom: 2px;
    }

    .result-installment {
        font-size: 0.83rem;
        line-height: 1.25;
        margin-bottom: 8px;
        color: #5b6470;
    }

    /* specs = 2 columns + 3rd row full width */
    .result-spec-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        margin: 8px 0 10px;
    }

    .spec-icon-item {
        display: flex;
        align-items: center;
        gap: 5px;
        min-width: 0;
        font-size: 0.82rem;
        line-height: 1.28;
        color: #44505d;
    }

    .spec-icon-item:last-child {
        grid-column: 1 / -1;
    }

    .spec-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        color: #7d8792;
    }

    /* ---------- score zone ---------- */
    .result-scores {
        margin-top: 2px;
        padding-top: 8px;
        border-top: 1px solid #bbbbbb80;
    }

    .mini-score-row {
        display: grid;
        grid-template-columns: 70px 1fr 24px;
        gap: 12px;
        align-items: center;
        margin-bottom: 4px;
    }

    .mini-score-row:last-child {
        margin-bottom: 0;
    }

    .mini-score-row span,
    .mini-score-row strong {
        font-size: 0.72rem;
        line-height: 1.05;
    }

    .mini-score-row span {
                font-weight: 700;
        color: #334155;
        letter-spacing: -0.01em;
        font-size: 13px;
    }

    .mini-score-row strong {
        text-align: right;
        font-weight: 800;
        color: #334155;
    }

    .mini-score-bar {
        height: 8px;
        /*border-radius: 999px;*/
        background: #e6efeb;
        overflow: hidden;
    }

    .mini-score-bar i {
        border-radius: inherit;
    }


    .compare-toggle {
        gap: 6px;
        font-size: 0.82rem;
        color: #4b5563;
        white-space: nowrap;
    }

    .compare-toggle input {
        width: 16px;
        height: 16px;
    }

}
@media (max-width: 767px) {
  .result-scores {
    margin-top: 8px;
    padding-top: 8px;
    padding-left: 6px;   /* ขยับทั้งกลุ่มเข้าไปนิด */
    border-top: 1px solid #bbbbbb80;
    display: block;
  }

  .mini-score-row {
    display: grid;
    grid-template-columns: 86px 1fr 34px; /* ให้ label มีที่หายใจ */
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
  }

  .mini-score-row:last-child {
    margin-bottom: 0;
  }

  .mini-score-row span {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
    color: #334155;
  }

  .mini-score-row strong {
    font-size: 12px;
    line-height: 1.1;
    text-align: right;
    font-weight: 800;
    color: #334155;
  }

  .mini-score-bar {
    height: 6px;
    background: #e6efeb;
    overflow: hidden;
  }
}
.compare-sticky-link.is-disabled {
    opacity: 0.55;
    pointer-events: auto;
}
.sort-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 14px;
}

.sort-box label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
}

.sort-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    min-width: 140px;
    height: 46px;
    padding: 0 34px 0 0;
    border: 0;
    outline: 0;
    background: transparent;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    cursor: pointer;
}

.sort-box::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #4b5563;
    border-bottom: 2px solid #4b5563;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.sort-box:hover {
    border-color: #c9d2da;
}

.sort-box:focus-within {
    border-color: #16896b;
    box-shadow: 0 0 0 3px rgba(22, 137, 107, 0.12);
}
.mobile-sort-btn {
    position: relative;
    min-height: 48px;
    border: 1px solid #d9dde3;
    border-radius: 14px;
    background: #fff;
    padding: 0 14px;
}

.mobile-sort-btn select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 46px;
    padding-right: 28px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.mobile-sort-btn .fa-chevron-down {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
/* Landing page filter layout */
.landing-filter-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.landing-filter-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.landing-filter-form {
  width: 100%;
}

#evchFilterLoader {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 99999;
  background: #12372a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

@media (max-width: 768px) {
  .landing-filter-layout {
    display: block;
  }

  .landing-filter-sidebar {
    position: static;
    margin-bottom: 16px;
  }
}
/* Landing header action + sort alignment */
.landing-tools {
  align-items: flex-end;
  gap: 10px;
}

.landing-primary-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.landing-tools .sort-box {
  min-width: 260px;
  justify-content: space-between;
}

.landing-active-tags {
  margin-top: 12px;
}

.landing-clear-tag {
  background: #fff3f3;
  border-color: #ffd7d7;
  color: #9f2a2a;
}

.landing-filter-reset-row {
  padding: 14px 18px 18px;
}

.landing-filter-reset-row .filter-reset-btn {
  width: 100%;
}

@media (max-width: 991px) {
  .landing-tools {
    align-items: stretch;
  }

  .landing-tools .sort-box {
    min-width: 100%;
  }
}
/* Landing mobile should behave like search mobile filter drawer */
@media (max-width: 1180px) {
  .landing-filter-layout {
    display: block;
  }

  .landing-filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 84vw);
    max-width: 360px;
    margin: 0;
    background: #fff;
    z-index: 90;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
    /*box-shadow: 20px 0 60px rgba(0,0,0,.18);*/
  }

  body.landing-filter-open .landing-filter-sidebar {
    transform: translateX(0);
  }

  .landing-filter-sidebar .filter-card {
    border-radius: 0;
    border: 0;
    min-height: 100%;
  }

  .landing-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(17, 24, 39, 0.45);
  }

  .landing-filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .landing-filter-drawer-head strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
  }

  .landing-filter-drawer-head button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .landing-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .landing-mobile-actions .mobile-toolbar-btn {
    min-height: 48px;
    border-radius: 14px;
  }

  .landing-tools .sort-box {
    display: none;
  }

  .landing-primary-actions {
    display: none;
  }
}
/* Search mobile drawer: font-size align with landing drawer only */
@media (max-width: 1180px) {
  .filter-drawer-head strong {
    font-size: 1.25rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
  }

  .drawer-section-title {
    font-size: 1.25rem !important;
    line-height: 1.1 !important;
    min-height: 56px !important;
  }

  .drawer-group-head {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
    min-height: 56px !important;
    padding: 0 18px !important;
  }

  .drawer-group-head span {
    font-size: 1rem !important;
  }

  .drawer-group-body {
    padding: 0 18px 18px !important;
  }

  .drawer-group .option-row,
  .drawer-group .check-row {
    font-size: 14px !important;
    line-height: 1.4 !important;
    min-height: 24px !important;
    margin-bottom: 10px !important;
  }

  .drawer-group .option-row input[type="checkbox"],
  .drawer-group .option-row input[type="radio"],
  .drawer-group .check-row input[type="checkbox"],
  .drawer-group .check-row input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  .drawer-group .price-manual-label {
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
  }

  .drawer-group .range-pill-input {
    font-size: 15px !important;
    min-height: 44px !important;
  }

  .drawer-group .price-apply-btn,
  .drawer-group .price-clear-btn {
    font-size: 0.95rem !important;
    min-height: 42px !important;
  }
}
/* Hide drawer close button when filter is rendered as landing sidebar */
.landing-filter-layout .filter-drawer-head button {
    display: none !important;
}
/* Landing filter drawer head: hide on desktop/sidebar */
.landing-filter-drawer-head {
  display: none !important;
}

/* Show only when landing filter is used as mobile drawer */
@media (max-width: 1180px) {
  .landing-filter-drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .landing-filter-drawer-head strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
  }

  .landing-filter-drawer-head button {
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        color: #6b7280;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        line-height: 1;
        padding: 0;
        margin: 0;
        flex: 0 0 40px;
  }
}
.ev-card .ev-detail-btn,
.ev-card .ev-detail-btn:visited {
  background: #2f6f4f;
  color: #ffffff;
  text-decoration: none;
}

.ev-card .ev-detail-btn:hover,
.ev-card .ev-detail-btn:focus,
.ev-card .ev-detail-btn:active {
  background: #265c42;
  color: #ffffff;
  text-decoration: none;
}

.result-card .detail-btn:hover,
.result-card .detail-btn:focus,
.result-card .detail-btn:active {
  background: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
}
/* =========================================================
   Search Page - EV Landing Hub Links
   ========================================================= */

.search-hub-links {
    margin-top: 24px;
}

.search-hub-links-head {
    margin-bottom: 16px;
}

.search-hub-links-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 900;
    color: #1f2937;
}

.search-hub-links-head p {
    margin: 0;
    max-width: 860px;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.search-hub-link-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.search-hub-link-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fbfcfd;
}

.search-hub-link-group h3 {
    margin: 0 0 10px;
    color: #0f6d55;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
}

.search-hub-link-group .related-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.search-hub-link-group .related-links-grid a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #edf0f2;
    font-size: 13px;
    font-weight: 800;
}

.search-hub-link-group .related-links-grid a:hover {
    background: #eef8f4;
    border-color: #cde7dd;
    color: #0f6d55;
}

@media (max-width: 767px) {
    .search-hub-link-groups {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-hub-links {
        padding: 16px;
    }

    .search-hub-link-group {
        padding: 12px;
    }

    .search-hub-links-head h2 {
        font-size: 18px;
    }
}
/* =========================================================
   EV Score Tooltip - Search Card
   ========================================================= */

.ev-score-tooltip-wrap {
    position: relative;
}

.ev-score-tooltip-wrap > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ev-score-info-btn {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d7e7df;
    background: #ffffff;
    color: #16896b;
    font-size: 11px;
    font-weight: 900;
    line-height: 16px;
    padding: 0;
    cursor: help;
    z-index: 5;
}

.ev-score-info-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: 24px;
    width: 286px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.55;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.16s ease;
    z-index: 999;
    pointer-events: none;
}

.ev-score-info-btn:hover::after,
.ev-score-info-btn:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .ev-score-info-btn {
        right: -4px;
        top: -4px;
        width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 14px;
    }

    .ev-score-info-btn::after {
        right: -6px;
        width: 230px;
        font-size: 11px;
        line-height: 1.5;
    }
}