/*
Theme Name: Carz Child
Theme URI: https://carz.ancorathemes.com/
Template: carz
Author: AncoraThemes
Author URI: https://ancorathemes.com/
Description: Carz is a Premium WordPress theme.
Tags: blog,e-commerce,portfolio
Version: 1.8.0.1771348808
Updated: 2026-02-17 17:20:08
*/

/* ============================================================================
   CUSTOM FONTS
   ============================================================================ */
@font-face {
    font-family: 'CaliforniaGothic';
    src: url('fonts/CaliforniaGothic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BankGothic';
    src: url('fonts/BankGothic Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.sc_title_subtitle {
    letter-spacing: 0.12em;
}

.sc_title_descr p {
    letter-spacing: 0.04em;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.sc_layouts_menu_nav > li > a,
.sc_layouts_menu > ul > li > a {
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    font-size: 13px !important;
}
.sc_layouts_menu_nav li ul a,
.sc_layouts_menu_nav .sub-menu a {
    text-transform: none !important;
}

/* ============================================================================
   TRACTOR LISTING CARDS
   ============================================================================ */
.sc_cars_columns_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.sc_cars_item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.sc_cars_item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sc_cars_item .sc_item_container,
.sc_cars_item .post_container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sc_cars_item .sc_cars_item_info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 1.5em 1.8em;
}

.sc_cars_item .sc_cars_item_agent_footer {
    margin-top: auto;
}

/* Card thumbnails — unified aspect ratio */
.sc_cars_item .post_featured,
.sc_cars_item .post_featured.with_thumb,
.sc_cars_item .post_featured.without_thumb {
    position: relative !important;
    padding-bottom: 62% !important;
    height: 0 !important;
    overflow: hidden !important;
    display: block !important;
    margin-bottom: 0;
}

.sc_cars_item .post_featured img,
.sc_cars_item .post_featured.with_thumb img,
.sc_cars_item .post_featured.without_thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Card header — title styled as link */
.sc_cars_item .sc_cars_item_header {
    padding-bottom: 2px;
    margin-bottom: 0;
    border-bottom: none !important;
}

.sc_cars_item .sc_cars_item_title {
    font-family: 'BankGothic', sans-serif;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    padding-right: 0;
    border-bottom: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.sc_cars_item .sc_cars_item_title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc_cars_item .sc_cars_item_title a:hover {
    color: #0268A9;
}

.sc_cars_item .sc_cars_item_subtitle,
.sc_cars_item .sc_cars_item_compare,
.sc_cars_item .sc_cars_item_type,
.sc_cars_item .sc_cars_item_produced {
    display: none;
}

/* Card price block — top of card */
.sc_cars_item_price_block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 10px;
    border-bottom: none !important;
}

.sc_cars_item_sale_price {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 30px;
    font-weight: normal;
    color: #0268A9;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sc_cars_item_sale_price.is_on_sale {
    color: #e87722;
}

.sc_cars_item_msrp {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    letter-spacing: 0.02em;
    line-height: 1;
}

.sc_cars_item_call_for_price {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #1E3144;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Card meta badges — inline pills, single row */
.sc_cars_item .sc_cars_item_badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 0 0;
    margin-top: 6px;
    overflow: hidden;
}

.sc_cars_item_badge {
    display: inline-flex;
    align-items: center;
    font-family: 'BankGothic', sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.sc_cars_item_badge_condition {
    color: #3d8c5c;
    background-color: rgba(61, 140, 92, 0.1);
}

.sc_cars_item_badge_condition.sc_cars_item_badge_used {
    color: #6b7c93 !important;
    background-color: rgba(107, 124, 147, 0.1) !important;
}

.sc_cars_item_badge_condition.sc_cars_item_badge_certified {
    color: #2a7d4f !important;
    background-color: rgba(42, 125, 79, 0.1) !important;
}

.sc_cars_item_badge_stock,
.sc_cars_item_badge_hours {
    color: #4a5568;
    background-color: rgba(2, 104, 169, 0.08);
}

/* Card footer — store location */
.sc_cars_item .sc_cars_item_agent_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 0 0;
    font-family: 'BankGothic', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #6b7c93;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc_cars_item_agent_icon {
    font-size: 0.8rem;
    color: #6b7c93;
    flex-shrink: 0;
}

.sc_cars_item .sc_cars_item_agent_name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc_cars_item .sc_cars_item_agent_footer a,
.sc_cars_item .sc_cars_item_agent_name a {
    color: #6b7c93;
    text-decoration: none;
}

.sc_cars_item .sc_cars_item_agent_name a:hover {
    color: #0268A9;
}

/* Card CTA — "Saddle Up" button */
.sc_cars_item_cta.yt-lead-btn {
    display: block;
    width: 100%;
    padding: 14px 20px 14px calc(20px + 0.18em);
    font-family: 'BankGothic', sans-serif;
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background-color: #1E3144;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.sc_cars_item_cta.yt-lead-btn:hover {
    background-color: #0268A9;
    color: #fff;
}

.sc_cars_item_cta.yt-lead-btn:active {
    background-color: #015a93;
    color: #fff;
}

/* ============================================================================
   LEAD MODAL — "Saddle Up" inquiry form
   ============================================================================ */
.yt-lead-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.yt-lead-modal.is-open {
    display: flex;
}

.yt-lead-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.yt-lead-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    animation: ytModalIn 0.25s ease-out;
}

@keyframes ytModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.yt-lead-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none !important;
    border: none !important;
    font-size: 28px;
    color: #999 !important;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.yt-lead-modal-close:hover {
    color: #333 !important;
    background: none !important;
}

.yt-lead-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.yt-lead-modal-heading {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 28px;
    color: #0268A9;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.yt-lead-modal-vehicle {
    font-family: 'BankGothic', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1E3144;
    margin: 0 0 2px;
}

.yt-lead-modal-price {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 20px;
    color: #0268A9;
    margin: 0;
}

/* Form fields */
.yt-lead-form-row {
    margin-bottom: 14px;
}

.yt-lead-input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #1E3144;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.yt-lead-input:focus {
    border-color: #0268A9;
    background: #fff;
}

.yt-lead-textarea {
    resize: vertical;
    min-height: 70px;
}

.yt-lead-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-family: 'BankGothic', sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center !important;
    color: #fff;
    background-color: #0268A9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 6px;
    box-sizing: border-box;
}

.yt-lead-submit:hover {
    background-color: #0072BC;
}

.yt-lead-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.yt-lead-disclaimer {
    text-align: center;
    font-size: 12px;
    color: #9aa5b4;
    margin: 12px 0 0;
    font-style: italic;
}

/* Success state */
.yt-lead-success {
    text-align: center;
    padding: 20px 0 10px;
}

.yt-lead-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.yt-lead-success h3 {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 22px;
    color: #0268A9;
    margin: 0 0 8px;
}

.yt-lead-success p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ============================================================================
   VDP (Vehicle Detail Page) — Price
   ============================================================================ */
.cars_page_title_price .cars_price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: left;
}

.cars_page_title_price .cars_price_before,
.cars_page_title_price .cars_price1 {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 36px;
    font-weight: normal;
    color: #0268A9;
    letter-spacing: 0.02em;
    line-height: 1;
}

.cars_page_title_price .cars_price1.is_on_sale {
    color: #e87722;
}

.cars_page_title_price .cars_price_call {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 30px;
    font-weight: normal;
    color: #1E3144;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.cars_page_title_price .cars_price_delimiter {
    display: none;
}

.cars_page_title_price .cars_price2 {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    letter-spacing: 0.02em;
    line-height: 1;
}

.cars_page_title_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cars_page_title_price {
    order: 1;
    text-align: right;
}

.cars_page_title_meta .post_meta {
    order: 2;
}

/* ============================================================================
   VDP — Misc
   ============================================================================ */
.cars_page_content.entry-content {
    white-space: pre-line;
}

.cars_page_gallery_item {
    background-color: transparent !important;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px;
}

.cars_page_gallery_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.cars_page_status {
    display: inline-flex !important;
    align-items: center;
    margin-left: 12px;
    vertical-align: middle;
}

.cars_page_status a {
    font-family: 'BankGothic', sans-serif !important;
    font-size: 15px !important;
    font-weight: normal !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d8c5c !important;
    background-color: rgba(61, 140, 92, 0.1) !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}

.cars_page_status a:hover {
    background-color: rgba(61, 140, 92, 0.15) !important;
}

/* VDP status — Used */
.cars_page_status a[href*="used"],
.cars_page_status a[href*="Used"] {
    color: #6b7c93 !important;
    background-color: rgba(107, 124, 147, 0.1) !important;
}

/* VDP status — Certified */
.cars_page_status a[href*="certified"],
.cars_page_status a[href*="Certified"] {
    color: #2a7d4f !important;
    background-color: rgba(42, 125, 79, 0.1) !important;
}

/* ============================================================================
   SEARCH BAR — Outer Form
   ============================================================================ */
.cars_search .cars_search_form {
    border-radius: 10px;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    border: 1px solid rgba(2, 104, 169, 0.2);
    box-shadow: 0 2px 12px rgba(2, 104, 169, 0.08);
    background: transparent;
}

/* Transparent field backgrounds */
.cars_search_basic .sc_form_field,
.cars_search_basic .sc_form_field_cars_produced,
.cars_search_basic .sc_form_field_cars_price,
.cars_search .sc_form_field_wrap {
    background: transparent !important;
}

/* Hide advanced panel */
.cars_search .cars_search_advanced {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* Suppress theme hover pseudo-elements */
.cars_search_basic .sc_form_field::before,
.cars_search_basic label.sc_form_field::before,
.cars_search_basic label.sc_form_field:hover::before {
    background: transparent !important;
    content: none !important;
}

/* Suppress theme select_container chevrons */
.cars_search_basic .sc_form_field_select .select_container::after {
    display: none !important;
    content: none !important;
}

/* ============================================================================
   SEARCH BAR — Context-Aware Backgrounds
   ============================================================================ */

/* On white/light backgrounds */
.yt-filter-on-white .cars_search_form {
    background: rgba(2, 104, 169, 0.05) !important;
}

.yt-filter-on-white .sc_form_field select,
.yt-filter-on-white .sc_form_field select.fill_inited {
    background: transparent !important;
    border-color: rgba(2, 104, 169, 0.25) !important;
}

/* On blue/dark backgrounds */
.yt-filter-on-blue .cars_search_form {
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(2, 104, 169, 0.12) !important;
}

.yt-filter-on-blue .sc_form_field select,
.yt-filter-on-blue .sc_form_field select.fill_inited {
    background: transparent !important;
    border-color: rgba(2, 104, 169, 0.25) !important;
}

.yt-filter-on-blue .yt-count-pill {
    background: rgba(2, 104, 169, 0.06) !important;
}

/* ============================================================================
   SEARCH BAR — Basic Row Layout
   ============================================================================ */
.cars_search_basic,
.cars_search_horizontal .cars_search_basic {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

/* ============================================================================
   SEARCH BAR — Unified Field Layout
   ============================================================================ */
.cars_search_basic .sc_form_field,
.cars_search_basic .sc_form_field_cars_produced,
.cars_search_basic .sc_form_field_cars_price {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 12px 16px 10px !important;
    min-height: 72px;
    border-right: 1px solid rgba(2, 104, 169, 0.2);
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    background: transparent !important;
}

/* Dropdown field widths */
.cars_search_basic .sc_form_field {
    width: 202px;
    min-width: 160px;
    max-width: 202px;
}

/* Range field widths */
.cars_search_basic .sc_form_field_cars_produced,
.cars_search_basic .sc_form_field_cars_price {
    width: 260px;
    min-width: 180px;
    max-width: 260px;
}

.cars_search .sc_form_field_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Bottom padding for dropdown field wraps */
.cars_search_basic .sc_form_field_cars_condition .sc_form_field_wrap,
.cars_search_basic .sc_form_field_cars_maker .sc_form_field_wrap,
.cars_search_basic .sc_form_field_cars_city .sc_form_field_wrap {
    padding-bottom: 8px;
}

/* ============================================================================
   SEARCH BAR — Field Labels
   ============================================================================ */

/* CSS ::before labels for Condition, Brand, Location */
.cars_search_basic .sc_form_field_cars_condition .sc_form_field_wrap::before,
.cars_search_basic .sc_form_field_cars_maker .sc_form_field_wrap::before,
.cars_search_basic .sc_form_field_cars_city .sc_form_field_wrap::before {
    display: block;
    font-family: 'BankGothic', sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7c93;
    margin-bottom: 6px;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.cars_search_basic .sc_form_field_cars_condition .sc_form_field_wrap::before { content: 'CONDITION'; }
.cars_search_basic .sc_form_field_cars_maker .sc_form_field_wrap::before    { content: 'BRAND'; }
.cars_search_basic .sc_form_field_cars_city .sc_form_field_wrap::before     { content: 'LOCATION'; }

/* Hide theme ::after chevrons — custom dropdown has its own */
.cars_search_basic .sc_form_field_cars_condition .sc_form_field_wrap::after,
.cars_search_basic .sc_form_field_cars_maker .sc_form_field_wrap::after,
.cars_search_basic .sc_form_field_cars_city .sc_form_field_wrap::after {
    display: none !important;
    content: none !important;
}

/* PHP-rendered labels for Year and Price */
.cars_search_basic .sc_form_field_cars_produced .sc_form_field_title,
.cars_search_basic .sc_form_field_cars_price .sc_form_field_title {
    font-family: 'BankGothic', sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7c93;
    margin-bottom: 6px !important;
    display: block !important;
    white-space: nowrap;
    line-height: 1;
    font-weight: normal;
    padding: 0 !important;
    order: -1;
}

/* ============================================================================
   CUSTOM DROPDOWNS
   ============================================================================ */

/* Trigger */
.yt-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 6px;
    user-select: none;
    gap: 8px;
}

/* Value text */
.yt-select-value {
    font-family: 'BankGothic', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1E3144;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chevron arrow */
.yt-select-arrow {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
}

.yt-select-arrow::before,
.yt-select-arrow::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 7px;
    height: 1.5px;
    background-color: #1E3144;
    border-radius: 2px;
}

.yt-select-arrow::before {
    left: 0;
    transform: rotate(35deg);
    transform-origin: left center;
}

.yt-select-arrow::after {
    right: 0;
    transform: rotate(-35deg);
    transform-origin: right center;
}

.yt-select-trigger.is-open .yt-select-arrow {
    transform: rotate(180deg);
}

/* Panel */
.yt-select-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: -1px;
    min-width: calc(100% + 2px);
    background: #fff;
    border: 1px solid rgba(2, 104, 169, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(2, 104, 169, 0.12);
    z-index: 9999;
    overflow: hidden;
    overflow-y: auto;
    max-height: 280px;
    padding: 4px 0;
}

.yt-select-panel.is-open {
    display: block;
}

/* Options */
.yt-select-item {
    font-family: 'BankGothic', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1E3144;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.yt-select-item:hover {
    background-color: rgba(2, 104, 169, 0.06);
    color: #0268A9;
}

.yt-select-item.is-selected {
    color: #0268A9;
    background-color: rgba(2, 104, 169, 0.08);
    font-weight: 500;
}

.yt-select-item:first-child {
    color: #6b7c93;
    border-bottom: 1px solid rgba(2, 104, 169, 0.08);
    margin-bottom: 2px;
}

/* ============================================================================
   RANGE FIELDS — Editable Text Inputs
   ============================================================================ */

/* Hide slider */
.cars_search .sc_form_field_cars_produced .trx_addons_range_slider,
.cars_search .sc_form_field_cars_price .trx_addons_range_slider,
.cars_search .sc_form_field_cars_produced .trx_addons_range_slider_label,
.cars_search .sc_form_field_cars_price .trx_addons_range_slider_label {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Hide other range fields that aren't Year/Price */
.cars_search_basic .sc_form_field_range:not(.sc_form_field_cars_produced):not(.sc_form_field_cars_price) {
    display: none !important;
}

.cars_search .sc_form_field_cars_produced .sc_form_field_wrap,
.cars_search .sc_form_field_cars_price .sc_form_field_wrap {
    position: relative;
    overflow: visible;
}

/* Min/max input row */
.yt-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
}

.yt-range-input {
    font-family: 'BankGothic', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #1E3144 !important;
    letter-spacing: 0.03em;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(2, 104, 169, 0.35) !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 0;
    flex: 1;
    min-width: 0;
    max-width: 110px;
    padding: 2px 4px !important;
    line-height: 1;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.yt-range-input::placeholder {
    color: #6b7c93;
    font-weight: 400;
    font-family: 'BankGothic', sans-serif;
    font-size: 15px;
    letter-spacing: 0.03em;
}

.yt-range-input:hover {
    border-bottom-color: rgba(2, 104, 169, 0.6) !important;
    background: rgba(2, 104, 169, 0.02) !important;
}

.yt-range-input:focus {
    border-bottom-color: #0268A9 !important;
    background: rgba(2, 104, 169, 0.04) !important;
    box-shadow: none !important;
    outline: none !important;
}

.yt-range-sep {
    color: #6b7c93;
    font-size: 14px;
    flex-shrink: 0;
    font-family: 'BankGothic', sans-serif;
    line-height: 1;
    padding-bottom: 6px;
}

/* ============================================================================
   COUNT PILL
   ============================================================================ */
.yt-count-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-right: 1px solid rgba(2, 104, 169, 0.12);
    background: rgba(2, 104, 169, 0.03);
    flex-shrink: 0;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.yt-count-pill.warning-none {
    background: rgba(192, 57, 43, 0.05);
}

.yt-count-number {
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 40px;
    font-weight: normal;
    color: #0268A9;
    line-height: 1;
    transition: color 0.2s ease;
    padding-top: 10px;
}

.yt-count-pill.warning-none .yt-count-number {
    color: #c0392b;
}

.yt-count-label {
    font-family: 'BankGothic', sans-serif;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7c93;
    margin-top: 2px;
}

/* ============================================================================
   COUNT PILL — LOADING STATE
   ============================================================================ */
.yt-count-pill.is-loading {
    background: rgba(2, 104, 169, 0.06);
}

.yt-loading-dots {
    display: inline-flex;
    gap: 2px;
}

.yt-loading-dots span {
    animation: ytDotPulse 1.2s infinite ease-in-out;
    font-size: inherit;
    line-height: 1;
}

.yt-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.yt-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ytDotPulse {
    0%, 60%, 100% { opacity: 0.2; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.3); }
}

/* ============================================================================
   CLEAR FILTERS BUTTON
   ============================================================================ */
.yt-clear-filters {
    display: none;
    margin: 6px 0 0 auto;
    padding: 4px 10px;
    background: rgba(192, 57, 43, 0.12) !important;
    border: none !important;
    border-radius: 3px;
    color: #c0392b !important;
    font-family: 'BankGothic', sans-serif;
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    text-align: center !important;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.yt-clear-filters:hover {
    background: rgba(192, 57, 43, 0.25) !important;
    color: #922b1e !important;
}

/* ============================================================================
   SEARCH BUTTON
   ============================================================================ */
.cars_search .cars_search_button {
    background-color: #0268A9 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 10px 10px 0 !important;
    width: 58px !important;
    min-width: 58px !important;
    flex-shrink: 0;
    align-self: stretch;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cars_search .cars_search_button:hover {
    background-color: #0072BC !important;
}

.cars_search .cars_search_button.yt-no-results-predicted {
    background-color: #c0392b !important;
    animation: yt-pulse-warn 1.5s ease-in-out infinite;
}

@keyframes yt-pulse-warn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}

/* ============================================================================
   ACTIVE FILTER SUMMARY (below search bar)
   ============================================================================ */
.yt-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 2px 0;
    font-family: 'BankGothic', sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1E3144;
    transition: all 0.2s ease;
}

.yt-filter-summary.hidden {
    display: none;
}

.yt-filter-summary-label {
    color: #6b7c93;
    font-size: 10px;
    margin-right: 2px;
    white-space: nowrap;
}

.yt-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(2, 104, 169, 0.07);
    border: 1px solid rgba(2, 104, 169, 0.2);
    color: #0268A9;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.yt-filter-badge-clear {
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #0268A9;
    opacity: 0.5;
    margin-left: 1px;
    transition: opacity 0.15s;
}

.yt-filter-badge-clear:hover {
    opacity: 1;
}

.yt-filter-count-warning {
    display: none !important;
}

/* ============================================================================
   NO-RESULTS EMPTY STATE
   ============================================================================ */
.sc_cars_columns_empty,
.trx_addons_not_found,
.cars_not_found {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 80px;
    width: 100%;
    box-sizing: border-box;
}

.sc_cars_columns_empty::before,
.trx_addons_not_found::before {
    content: '\f002';
    font-family: dashicons, 'Font Awesome 5 Free', sans-serif;
    font-size: 48px;
    color: rgba(2, 104, 169, 0.2);
    display: block;
    margin-bottom: 20px;
    line-height: 1;
}

.sc_cars_columns_empty h3,
.sc_cars_columns_empty .sc_cars_columns_empty_text,
.trx_addons_not_found h3 {
    font-family: 'CaliforniaGothic', sans-serif !important;
    font-size: 28px !important;
    color: #1E3144 !important;
    font-weight: normal !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px !important;
}

.sc_cars_columns_empty p,
.trx_addons_not_found p {
    font-size: 15px;
    color: #777;
    margin-bottom: 28px !important;
    max-width: 420px;
}

.yt-empty-state-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
    font-family: 'BankGothic', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1E3144;
}

.yt-empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'BankGothic', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background-color: #0268A9;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.yt-empty-reset-btn:hover {
    background-color: #0072BC;
    color: #fff;
    text-decoration: none;
}

/* ============================================================================
   RESPONSIVE — Tablet (768px – 1024px)
   ============================================================================ */
@media (max-width: 1024px) and (min-width: 768px) {

    /* Slightly smaller card titles */
    .sc_cars_item .sc_cars_item_title {
        font-size: 19px;
    }

    .sc_cars_item_sale_price {
        font-size: 24px;
    }

    /* VDP price — keep desktop size on tablet */
    .cars_page_title_price .cars_price_before,
    .cars_page_title_price .cars_price1 {
        font-size: 36px;
    }

    /* Agent page card spacing — tighter on tablet */
    .cars_page_offers_list .sc_cars_columns_wrap {
        row-gap: 24px;
    }
}

/* ============================================================================
   RESPONSIVE — Mobile & Tablet (≤ 1024px)
   ============================================================================ */
@media (max-width: 1024px) {

    /* ── Search bar stacks vertically ──────────────────────────────────── */
    .sc_form.cars_search,
    div.cars_search,
    .sc_widget_cars_search,
    .widget_cars_search {
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* Reset inner elements so they don't inherit wrapper padding */
    .cars_search_form,
    .cars_search_basic,
    .cars_search_advanced {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .sc_form.cars_search .cars_search_form,
    .cars_search .cars_search_form {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        border-radius: 10px;
        overflow: visible;
    }

    .cars_search_basic,
    .cars_search_horizontal .cars_search_basic {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        width: 100%;
    }

    .cars_search_basic .sc_form_field,
    .cars_search_basic .sc_form_field_cars_produced,
    .cars_search_basic .sc_form_field_cars_price {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 22px 20px 20px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(2, 104, 169, 0.1) !important;
    }

    /* Dropdown panels full-width on mobile */
    .yt-select-panel {
        left: 0;
        min-width: 100%;
        max-height: 240px;
    }

    /* Larger touch targets for dropdown items */
    .yt-select-item {
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Range inputs — ensure visible on mobile */
    .yt-range-inputs {
        display: flex !important;
        align-items: center;
        gap: 10px;
        margin-top: 6px;
        width: 100%;
    }

    .yt-range-input {
        max-width: none !important;
        flex: 1 !important;
        width: 0 !important;
        min-width: 0 !important;
        font-size: 16px !important; /* prevents iOS zoom on focus */
        padding: 8px 6px 6px !important;
        height: auto !important;
        min-height: 32px !important;
        border-bottom: 2px solid rgba(2, 104, 169, 0.35) !important;
        color: #1E3144 !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .yt-range-sep {
        font-size: 16px;
        padding-bottom: 4px;
    }

    /* Ensure range field wraps display properly */
    .cars_search_basic .sc_form_field_cars_produced .sc_form_field_wrap,
    .cars_search_basic .sc_form_field_cars_price .sc_form_field_wrap {
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    /* Count pill — compact row, bold text */
    .yt-count-pill {
        flex-direction: row !important;
        width: 100% !important;
        padding: 14px 20px !important;
        min-width: 0 !important;
        border-right: none !important;
        border-top: 1px solid rgba(2, 104, 169, 0.1) !important;
        border-bottom: 1px solid rgba(2, 104, 169, 0.1) !important;
        gap: 10px;
        justify-content: center;
    }

    .yt-count-number {
        font-size: 40px;
        padding-top: 0;
    }

    .yt-count-label {
        margin-top: 0;
        font-size: 18px;
        align-self: center;
    }

    /* Clear filters button — full width on mobile, matching search button */
    .yt-clear-filters {
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        padding: 10px 20px !important;
        font-size: 11px !important;
    }

    /* Search button — full-width bottom with gap from count area */
    .cars_search .cars_search_button {
        width: 100% !important;
        min-width: 0 !important;
        margin: 8px 0 0 0 !important;
        border-radius: 0 0 10px 10px !important;
        min-height: 60px !important;
        padding: 16px 20px !important;
        font-size: 18px !important;
        justify-content: center;
        align-items: center;
        box-sizing: border-box !important;
        align-self: stretch !important;
    }

    /* ── Listing cards ─────────────────────────────────────────────────── */
    .sc_cars_item .sc_cars_item_title {
        font-size: 22px;
        min-height: auto;
    }

    .sc_cars_item_sale_price {
        font-size: 30px;
    }

    .sc_cars_item_call_for_price {
        font-size: 22px;
    }

    .sc_cars_item .sc_cars_item_param_icon {
        font-size: 1.3rem;
        width: 1.3rem;
        height: 1.3rem;
    }

    .sc_cars_item .sc_cars_item_param_text {
        font-size: 13px;
    }

    .sc_cars_item .sc_cars_item_agent_footer {
        font-size: 11px;
        padding: 10px 0 0;
    }

    .sc_cars_item .sc_cars_item_info {
        padding: 18px 1.2em 1.4em;
    }

    .sc_cars_item_cta.yt-lead-btn {
        padding: 16px 20px;
        font-size: 17px;
    }

    /* Badges — allow wrapping on mobile so none get clipped */
    .sc_cars_item .sc_cars_item_badges {
        flex-wrap: wrap;
        overflow: visible;
    }

    .sc_cars_item_badge {
        font-size: 14px;
        padding: 7px 14px;
    }

    /* Agent page card spacing — tighter on mobile */
    .cars_page_offers_list .sc_cars_columns_wrap {
        row-gap: 20px;
    }

    /* ── Lead modal on mobile ──────────────────────────────────────────── */
    .yt-lead-modal {
        padding: 0 16px;
        box-sizing: border-box;
    }

    .yt-lead-modal-dialog {
        width: 100%;
        max-width: 100%;
        padding: 28px 20px 20px;
        max-height: 85vh;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .yt-lead-modal-heading {
        font-size: 28px;
    }

    /* ── VDP — Hide search bar on mobile ──────────────────────────────── */
    .single-cpt_cars .cars_search,
    .single-cpt_cars .sc_widget_cars_search,
    .single-cpt_cars .widget_cars_search {
        display: none !important;
    }

    /* ── VDP — Clean stacked title/price layout ────────────────────────── */
    .cars_page_title_wrap {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Price first, then title, then meta, then divider */
    .cars_page_title_meta {
        align-items: flex-start;
        width: 100%;
        order: -1;
    }

    .cars_page_title_price {
        text-align: left;
        width: 100%;
        padding: 0;
        margin: 0 0 8px;
        border-bottom: none;
    }

    .cars_page_title {
        font-size: 22px !important;
        line-height: 1.3;
        margin-bottom: 4px !important;
        padding-top: 0;
    }

    .cars_page_status {
        display: inline-flex !important;
        margin: 0 0 0 8px !important;
    }

    .cars_page_title_address {
        font-size: 13px;
        margin: 4px 0 0;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(2, 104, 169, 0.1);
    }

    /* VDP description — tighter on mobile */
    .cars_page_content.entry-content {
        font-size: 15px;
        line-height: 1.65;
    }

    .cars_page_title_price .cars_price {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cars_page_title_price .cars_price_before,
    .cars_page_title_price .cars_price1 {
        font-size: 36px;
    }

    .cars_page_title_price .cars_price_call {
        font-size: 30px;
    }

    .cars_page_title_price .cars_price2 {
        font-size: 20px;
    }

    /* Hide social meta on mobile VDP — reduce clutter */
    .cars_page_title_meta .post_meta {
        display: none;
    }

    .cars_page_gallery_item {
        width: 60px !important;
        height: 60px !important;
        border-radius: 6px;
    }

    .cars_page_status a {
        font-size: 14px !important;
        padding: 4px 10px !important;
    }

    /* ── Filter summary / empty state ──────────────────────────────────── */
    .yt-filter-summary {
        gap: 5px;
    }

    .yt-empty-reset-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .sc_cars_columns_empty,
    .trx_addons_not_found,
    .cars_not_found {
        padding: 40px 16px 60px;
    }

    .sc_cars_columns_empty h3,
    .trx_addons_not_found h3 {
        font-size: 22px !important;
    }
}

/* ============================================================================
   RESPONSIVE — Mid-range phones (481px – 767px)
   ============================================================================ */
@media (max-width: 767px) and (min-width: 481px) {

    /* Search bar side padding */
    .sc_form.cars_search,
    div.cars_search,
    .sc_widget_cars_search,
    .widget_cars_search {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Card price — comfortable mid-size */
    .sc_cars_item_sale_price {
        font-size: 20px;
    }

    .sc_cars_item_call_for_price {
        font-size: 15px;
    }

    /* VDP price */
    .cars_page_title_price .cars_price_before,
    .cars_page_title_price .cars_price1 {
        font-size: 36px;
    }
}

/* ============================================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================================ */
@media (max-width: 480px) {

    /* Search bar — tighter padding on small screens */
    .sc_form.cars_search,
    div.cars_search,
    .sc_widget_cars_search,
    .widget_cars_search {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cars_search_basic .sc_form_field,
    .cars_search_basic .sc_form_field_cars_produced,
    .cars_search_basic .sc_form_field_cars_price {
        padding: 18px 16px 16px !important;
    }

    .sc_cars_item .sc_cars_item_title {
        font-size: 20px;
    }

    .sc_cars_item_sale_price {
        font-size: 26px;
    }

    .sc_cars_item_call_for_price {
        font-size: 20px;
    }

    .sc_cars_item .sc_cars_item_params {
        padding: 8px 0;
    }

    .sc_cars_item .sc_cars_item_param_text {
        font-size: 12px;
    }

    .sc_cars_item_badge {
        font-size: 13px;
        padding: 6px 12px;
    }

    .sc_cars_item .sc_cars_item_info {
        padding: 16px 1em 1.2em;
    }

    .sc_cars_item_cta.yt-lead-btn {
        padding: 16px 18px;
        font-size: 16px;
    }

    .sc_layouts_menu_nav > li > a,
    .sc_layouts_menu > ul > li > a {
        font-size: 12px !important;
    }

    /* VDP — price on small phones */
    .cars_page_title_price .cars_price_before,
    .cars_page_title_price .cars_price1 {
        font-size: 34px;
    }

    .cars_page_title_price .cars_price_call {
        font-size: 28px;
    }

    .cars_page_title_price .cars_price2 {
        font-size: 18px;
    }

    .cars_page_gallery_item {
        width: 50px !important;
        height: 50px !important;
        border-radius: 5px;
    }

    /* Lead modal — snug on small phones */
    .yt-lead-modal-dialog {
        width: 96%;
        padding: 24px 16px 16px;
    }

    .yt-lead-modal-heading {
        font-size: 26px;
    }

    .yt-lead-modal-vehicle {
        font-size: 12px;
    }

    .yt-lead-modal-price {
        font-size: 18px;
    }

    .yt-lead-input {
        padding: 10px 12px;
        font-size: 16px; /* prevents iOS zoom */
    }

    /* Agent page card spacing — tightest */
    .cars_page_offers_list .sc_cars_columns_wrap {
        row-gap: 16px;
    }

    /* Empty state */
    .sc_cars_columns_empty,
    .trx_addons_not_found,
    .cars_not_found {
        padding: 30px 12px 40px;
    }

    .sc_cars_columns_empty h3,
    .trx_addons_not_found h3 {
        font-size: 20px !important;
    }

    .yt-empty-reset-btn {
        font-size: 12px;
        padding: 12px 20px;
    }
}

/* ============================================================================
   TRACTOR STORES ARCHIVE — card image aspect ratio
   ============================================================================ */

.post-type-archive-cpt_cars_agents .sc_team_item_thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-type-archive-cpt_cars_agents .sc_team_item_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================================
   VDP & AGENT PAGE — Dealer Info Section
   ============================================================================ */

/* Ensure agent info doesn't clip added content */
.cars_page_agent_info {
    overflow: visible !important;
    height: auto !important;
}

/* Name */
.cars_page_agent_info_name {
    font-family: 'BankGothic', sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1E3144;
    margin: 0 0 4px;
}

/* Hide the old inline link that was inside the h5 */
.cars_page_agent_info_name a {
    display: none;
}

/* Position — tight inline badge */
.cars_page_agent_info_position {
    display: inline-block;
    font-family: 'BankGothic', sans-serif;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7c93;
    background: rgba(107, 124, 147, 0.08);
    padding: 4px 10px;
    border-radius: 3px;
    margin: 0 0 8px;
    line-height: 1;
}

/* Phone numbers */
.cars_page_agent_info_phones a {
    color: #1E3144;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.cars_page_agent_info_phones a:hover {
    color: #0268A9;
}

/* Address */
.cars_page_agent_info_address {
    font-size: 14px;
    color: #4a5568;
}

/* Description */
.cars_page_agent_info_description {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin: 12px 0 0;
    font-style: normal;
}

/* "View All Listings" — bold text link grouped with contact info */
.cars_page_agent_info_listings_link {
    display: inline-block;
    font-family: 'BankGothic', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0268A9;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.cars_page_agent_info_listings_link::after {
    content: ' \2192';
    font-weight: bold;
}

.cars_page_agent_info_listings_link:hover {
    color: #1E3144;
}

/* Hide description on VDP (show on agent page only) */
.single-cpt_cars .cars_page_agent_info_description {
    display: none;
}

/* Agent section CTA buttons — stacked vertically in right column */
.cars_page_agent_cta_wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    vertical-align: top;
    padding: 1.5em 0 0;
}

.cars_page_agent_cta_btn {
    display: block;
    width: 100%;
    padding: 18px 40px;
    font-family: 'CaliforniaGothic', sans-serif;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff !important;
    background-color: #e87722 !important;
    border: 2px solid #e87722 !important;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.cars_page_agent_cta_btn:hover {
    background-color: #d06a1e !important;
    border-color: #d06a1e !important;
    color: #fff !important;
}

.cars_page_agent_cta_btn:active {
    background-color: #b85c18 !important;
    border-color: #b85c18 !important;
    color: #fff !important;
}

/* Secondary button — blue solid */
.cars_page_agent_cta_btn.cars_page_agent_cta_btn--secondary {
    background-color: #0268A9 !important;
    border-color: #0268A9 !important;
    color: #fff !important;
}

.cars_page_agent_cta_btn.cars_page_agent_cta_btn--secondary:hover {
    background-color: #0072BC !important;
    border-color: #0072BC !important;
    color: #fff !important;
}

.cars_page_agent_cta_btn.cars_page_agent_cta_btn--secondary:active {
    background-color: #015a93 !important;
    border-color: #015a93 !important;
    color: #fff !important;
}

/* On agent page — same stacked layout and sizing as VDP */
.agents_page .cars_page_agent_cta_wrap {
    padding: 1.5em 0 0;
}

/* Full width on mobile — stacked */
@media (max-width: 767px) {
    .cars_page_agent_cta_wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .cars_page_agent_cta_btn {
        width: 100% !important;
        padding: 18px 16px;
        font-size: 22px;
    }
}

/* Agent page — stack avatar + info on mobile */
@media (max-width: 767px) {
    .agents_page .cars_page_agent_wrap {
        flex-direction: column;
        gap: 16px;
    }

    .agents_page .cars_page_agent_avatar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .agents_page .cars_page_agent_avatar img {
        width: 100% !important;
        border-radius: 8px;
    }

    /* Add spacing above About Us / agent section on mobile */
    .agents_page .cars_page_section.cars_page_agent {
        padding-top: 24px;
    }

    .agents_page .cars_page_agent_info {
        width: 100% !important;
    }
}

/* Also stack VDP agent section on mobile */
@media (max-width: 767px) {
    .single-cpt_cars .cars_page_agent_avatar,
    .single-cpt_cars .cars_page_agent_info,
    .single-cpt_cars .cars_page_agent_form {
        display: block !important;
        width: 100% !important;
    }
}

/* Hide "View all listings" on store single page */
.agents_page .cars_page_agent_info_listings_link {
    display: none;
}

/* ── Agent single page — full-width layout (no side-by-side form) ───── */
.agents_page .cars_page_agent_avatar,
.agents_page .cars_page_agent_info,
.agents_page .cars_page_agent_form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    vertical-align: top;
}

/* Avatar + info sit side by side */
.agents_page .cars_page_agent_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.agents_page .cars_page_agent_avatar {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Desktop: fixed 280px avatar */
@media (min-width: 768px) {
    .agents_page .cars_page_agent_avatar {
        width: 280px !important;
    }
}

.agents_page .cars_page_agent_avatar img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.agents_page .cars_page_agent_info {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

/* Form goes full width below */
.agents_page .cars_page_agent_form {
    flex-basis: 100%;
    max-width: 600px;
}

/* Hide description on agent page too */
.agents_page .cars_page_agent_info_description {
    display: none;
}

/* Hide the section divider line on agent page */
.agents_page .cars_page_agent_wrap {
    border: none !important;
}

.agents_page .cars_page_section.cars_page_agent > .cars_page_section_title {
    border-bottom: none !important;
}

/* ============================================================================
   AGENT PAGE — Card vertical spacing
   ============================================================================ */
.cars_page_offers_list .sc_cars_columns_wrap {
    row-gap: 30px;
}

/* ============================================================================
   HIDE HEADER SEARCH on Tractor Stores pages (archive + single)
   ============================================================================ */
.post-type-archive-cpt_cars_agents .cars_search,
.single-cpt_cars_agents .cars_search {
    display: none !important;
}
