/**
 * Rydeo Vehicle Search — matches Rydeo.net theme (red / black / white)
 */

/* Theme isolation — inherit fonts from Listeo/Elementor parent */
.rydeo-vs-page,
.rydeo-vs-page *,
.rydeo-vs-search,
.rydeo-vs-search * {
    box-sizing: border-box;
}

.rydeo-vs-page,
.rydeo-vs-search {
    font-family: inherit;
    line-height: 1.5;
    color: var(--rydeo-dark, #1a1a1a);
    -webkit-font-smoothing: antialiased;
}

.rydeo-vs-page input,
.rydeo-vs-page select,
.rydeo-vs-page button,
.rydeo-vs-search input,
.rydeo-vs-search select,
.rydeo-vs-search button {
    font-family: inherit;
}

.rydeo-vs-page img,
.rydeo-vs-search img {
    max-width: 100%;
    height: auto;
}

:root {
    --rydeo-red: #e21d25;
    --rydeo-red-hover: #c41820;
    --rydeo-red-border: #b81515;
    --rydeo-red-light: #fff5f5;
    --rydeo-red-muted: rgba(226, 29, 37, 0.12);
    --rydeo-red-soft: rgba(226, 29, 37, 0.08);
    --rydeo-blue: #2563eb;
    --rydeo-blue-hover: #1d4ed8;
    --rydeo-blue-light: #eff6ff;
    --rydeo-blue-muted: rgba(37, 99, 235, 0.1);
    --rydeo-black: #111111;
    --rydeo-dark: #1a1a1a;
    --rydeo-white: #ffffff;
    --rydeo-gray-50: #fafafa;
    --rydeo-gray-100: #f3f3f3;
    --rydeo-gray-200: #e8e8e8;
    --rydeo-gray-300: #d4d4d4;
    --rydeo-gray-500: #777777;
    --rydeo-gray-600: #666666;
    --rydeo-gray-700: #444444;
    --rydeo-gray-800: #333333;
    --rydeo-sidebar-width: 320px;
    --rydeo-radius-sm: 8px;
    --rydeo-radius-md: 12px;
    --rydeo-radius-lg: 16px;
    --rydeo-radius-pill: 50px;
    --rydeo-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
    --rydeo-shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --rydeo-transition: 0.25s ease;
}

/* ============================================
   CARS PAGE — Sidebar + results layout
   ============================================ */
.rydeo-vs-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 56px;
    overflow-x: clip;
}

.rydeo-vs-page-layout {
    display: grid !important;
    grid-template-columns: var(--rydeo-sidebar-width) minmax(0, 1fr) !important;
    gap: 28px;
    align-items: start;
    width: 100%;
}

.rydeo-vs-sidebar {
    grid-column: 1;
    width: var(--rydeo-sidebar-width);
    min-width: var(--rydeo-sidebar-width);
    max-width: var(--rydeo-sidebar-width);
    position: sticky;
    top: 100px;
    display: block;
    visibility: visible;
    align-self: start;
}

.rydeo-vs-main {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

/* ============================================
   RESULTS MAP (category page) — full width, below sidebar + results
   ============================================ */
.rydeo-vs-map-section {
    width: 100%;
    margin-top: 40px;
}

.rydeo-vs-map-section-header {
    margin-bottom: 16px;
}

.rydeo-vs-map-section-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rydeo-black);
    letter-spacing: -0.02em;
}

.rydeo-vs-map {
    width: 100%;
    height: 420px;
    border-radius: var(--rydeo-radius-md);
    overflow: hidden;
    box-shadow: var(--rydeo-shadow-sm);
    border: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-map-placeholder {
    width: 100%;
    padding: 40px 24px;
    border-radius: var(--rydeo-radius-md);
    border: 1px dashed var(--rydeo-gray-300);
    background: var(--rydeo-gray-50);
    color: var(--rydeo-gray-500);
    text-align: center;
    font-size: 0.92rem;
}

.rydeo-vs-map-infowindow {
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rydeo-dark, #1a1a1a);
    max-width: 220px;
}

.rydeo-vs-map-infowindow strong {
    display: block;
    margin-bottom: 4px;
    color: var(--rydeo-black);
}

.rydeo-vs-map-infowindow a {
    display: inline-block;
    margin-top: 6px;
    color: var(--rydeo-red);
    font-weight: 600;
    text-decoration: none;
}

.rydeo-vs-map-infowindow a:hover {
    text-decoration: underline;
}

.elementor-widget-shortcode .rydeo-vs-page,
.elementor-element .rydeo-vs-page,
.elementor-widget-shortcode .rydeo-vs-search,
.elementor-element .rydeo-vs-search {
    width: 100%;
    max-width: 100%;
}

.rydeo-vs-page--browse {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rydeo-vs-page-search,
.rydeo-vs-page-results {
    width: 100%;
    min-width: 0;
}

.rydeo-vs-results--browse .rydeo-vs-results-toolbar {
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 0;
    border-bottom: none;
}

.rydeo-vs-results--browse .rydeo-vs-results-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rydeo-vs-results--browse .rydeo-vs-results-section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rydeo-black);
    letter-spacing: -0.02em;
}

.rydeo-vs-results--browse .rydeo-vs-results-count {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--rydeo-gray-500);
}

.elementor-widget-shortcode .rydeo-vs-page-layout,
.elementor-element .rydeo-vs-page-layout {
    display: grid !important;
    grid-template-columns: var(--rydeo-sidebar-width) minmax(0, 1fr) !important;
}

/* ============================================
   SEARCH FORM — Browse card (homepage + results page)
   ============================================ */
.rydeo-vs-search {
    margin: 0;
    width: 100%;
    min-width: 0;
}

.rydeo-vs-search--page {
    position: relative;
    background: var(--rydeo-white);
    border: 1px solid var(--rydeo-gray-200);
    border-radius: var(--rydeo-radius-lg);
    box-shadow: var(--rydeo-shadow-md);
    padding: 32px 32px 28px;
    overflow: hidden;
}

.rydeo-vs-search--page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rydeo-red) 0%, #ff4757 100%);
}

.rydeo-vs-search--home.rydeo-vs-search--page {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 36px 36px 30px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

.rydeo-vs-page-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-page-header-text {
    max-width: 640px;
}

.rydeo-vs-search--page .rydeo-vs-search-title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: var(--rydeo-black);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.rydeo-vs-search-subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--rydeo-gray-500);
    font-weight: 400;
}

/* Shared 5-column grid — matches reference layout */
.rydeo-vs-fields--primary,
.rydeo-vs-fields--secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(168px, auto);
    gap: 14px;
    align-items: end;
}

/* New: explicit 4-column row layout (Row 1: Make/Model/Year/Body,
   Row 2: Location/Fuel/Min/Max, Row 3: Date From/Date To/Seats/Search) */
.rydeo-vs-fields-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.rydeo-vs-fields-row:last-of-type {
    margin-bottom: 0;
}

.rydeo-vs-fields-row .rydeo-vs-field--dropdown,
.rydeo-vs-fields-row .rydeo-vs-field--location,
.rydeo-vs-fields-row .rydeo-vs-field--price,
.rydeo-vs-fields-row .rydeo-vs-field--date,
.rydeo-vs-fields-row .rydeo-vs-field-submit {
    min-width: 0;
}

.rydeo-vs-search--page .rydeo-vs-fields-row label {
    display: block;
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--rydeo-gray-700);
    line-height: 1.3;
}

.rydeo-vs-date-input {
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--rydeo-gray-300);
    border-radius: var(--rydeo-radius-sm);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--rydeo-dark);
    background: var(--rydeo-white);
    cursor: pointer;
    line-height: 1.2;
    transition: border-color var(--rydeo-transition), box-shadow var(--rydeo-transition);
}

.rydeo-vs-date-input:hover {
    border-color: var(--rydeo-gray-500);
}

.rydeo-vs-date-input:focus {
    outline: none;
    border-color: var(--rydeo-red);
    box-shadow: 0 0 0 2px var(--rydeo-red-muted);
}

.rydeo-vs-fields-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.rydeo-vs-field--dropdown,
.rydeo-vs-field--secondary,
.rydeo-vs-field-submit,
.rydeo-vs-field--clear,
.rydeo-vs-field--secondary-spacer {
    min-width: 0;
}

.rydeo-vs-search--page .rydeo-vs-field--dropdown label,
.rydeo-vs-search--page .rydeo-vs-field--secondary label {
    display: block;
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--rydeo-gray-700);
    line-height: 1.3;
}
 
.rydeo-vs-select-wrap {
    position: relative;
    width: 100%;
}
 
.rydeo-vs-select-wrap select,
.rydeo-vs-secondary-input {
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 42px 0 16px;
    border: 1px solid var(--rydeo-gray-300);
    border-radius: var(--rydeo-radius-sm);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--rydeo-dark);
    background: var(--rydeo-white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    line-height: 1.2;
    transition: border-color var(--rydeo-transition), box-shadow var(--rydeo-transition);
}

.rydeo-vs-secondary-input {
    padding: 0 12px;
    cursor: text;
}

.rydeo-vs-price-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
 
.rydeo-vs-price-prefix {
    position: absolute;
    left: 16px;
    z-index: 1;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--rydeo-gray-500);
    pointer-events: none;
}
 
.rydeo-vs-field--price .rydeo-vs-secondary-input {
    padding-left: 32px;
}

.rydeo-vs-field--price .rydeo-vs-price-field {
    min-width: 0;
}

.rydeo-vs-field--price .rydeo-vs-secondary-input {
    min-width: 0;
}

.rydeo-vs-select-wrap .rydeo-vs-chevron::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--rydeo-gray-500);
    border-bottom: 2px solid var(--rydeo-gray-500);
    transform: rotate(45deg);
    pointer-events: none;
}

.rydeo-vs-select-wrap select:hover {
    border-color: var(--rydeo-gray-500);
}

.rydeo-vs-select-wrap select:focus,
.rydeo-vs-secondary-input:focus {
    outline: none;
    border-color: var(--rydeo-red);
    box-shadow: 0 0 0 2px var(--rydeo-red-muted);
}

.rydeo-vs-select-wrap select:disabled {
    background: var(--rydeo-gray-100);
    color: var(--rydeo-gray-500);
    cursor: not-allowed;
}

.rydeo-vs-search--page .rydeo-vs-field-submit {
    min-width: 180px;
}

.rydeo-vs-search--page .rydeo-vs-btn-primary {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: var(--rydeo-radius-sm);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--rydeo-red);
    color: var(--rydeo-white);
    box-shadow: 0 4px 14px rgba(226, 29, 37, 0.3);
}

.rydeo-vs-search--home {
    margin: 0 auto;
    width: 100%;
    max-width: 1140px;
}

/* Secondary filter row */
.rydeo-vs-fields--secondary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--rydeo-gray-200);
}

.rydeo-vs-field--secondary-spacer {
    display: block;
}

.rydeo-vs-field--clear {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 12px;
}

.rydeo-vs-clear-all--inline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rydeo-gray-600);
    text-decoration: none;
    padding: 0 10px;
    border: 1px solid transparent;
    transition: border-color var(--rydeo-transition), color var(--rydeo-transition);
}
 
.rydeo-vs-clear-all--inline:hover {
    text-decoration: none;
    color: var(--rydeo-red);
    border-color: var(--rydeo-red-soft);
}

/* Category shortcuts */
.rydeo-vs-categories {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rydeo-gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rydeo-vs-categories::-webkit-scrollbar {
    display: none;
}

.rydeo-vs-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 76px;
    padding: 10px 6px;
    border: 1px solid transparent;
    border-radius: var(--rydeo-radius-md);
    background: transparent;
    cursor: pointer;
    transition: background var(--rydeo-transition), border-color var(--rydeo-transition), transform var(--rydeo-transition);
    flex: 1 1 0;
    max-width: 100px;
}

.rydeo-vs-category-item:hover {
    transform: translateY(-2px);
    background: var(--rydeo-gray-50);
    border-color: var(--rydeo-gray-200);
}

.rydeo-vs-category-item.is-active {
    background: var(--rydeo-red-light);
    border-color: rgba(226, 29, 37, 0.25);
}

.rydeo-vs-category-item.is-active .rydeo-vs-category-icon {
    background: var(--rydeo-white);
    border-color: var(--rydeo-red);
    box-shadow: 0 2px 8px rgba(226, 29, 37, 0.15);
}

.rydeo-vs-category-item.is-active .rydeo-vs-category-label {
    color: var(--rydeo-red);
    font-weight: 700;
}

.rydeo-vs-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--rydeo-white);
    border: 1px solid var(--rydeo-gray-300);
    border-radius: 50%;
    transition: background var(--rydeo-transition), border-color var(--rydeo-transition);
}

.rydeo-vs-category-icon svg {
    width: 32px;
    height: 20px;
}

.rydeo-vs-car-body {
    fill: var(--rydeo-white);
    stroke: var(--rydeo-black);
    stroke-width: 1.1;
}

.rydeo-vs-car-wheel {
    fill: var(--rydeo-black);
}

.rydeo-vs-car-accent {
    fill: var(--rydeo-red);
    stroke: none;
}

.rydeo-vs-category-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--rydeo-black);
    text-align: center;
    line-height: 1.25;
    transition: color var(--rydeo-transition);
}

/* Elementor / Listeo theme overrides */
.elementor-widget-shortcode .rydeo-vs-search--page .rydeo-vs-select-wrap select,
.elementor-element .rydeo-vs-search--page .rydeo-vs-select-wrap select,
.elementor-widget-shortcode .rydeo-vs-search--page .rydeo-vs-secondary-input,
.elementor-element .rydeo-vs-search--page .rydeo-vs-secondary-input {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px;
    line-height: normal !important;
    box-shadow: none !important;
}

.elementor-widget-shortcode .rydeo-vs-search--page .rydeo-vs-btn-primary,
.elementor-element .rydeo-vs-search--page .rydeo-vs-btn-primary {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
}

/* ============================================
   SEARCH FORM — Sidebar (filtered results page)
   ============================================ */
.rydeo-vs-search--sidebar {
    background: var(--rydeo-white);
    border: 1px solid var(--rydeo-gray-200);
    border-radius: var(--rydeo-radius-md);
    box-shadow: var(--rydeo-shadow-sm);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.rydeo-vs-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--rydeo-gray-200);
    background: var(--rydeo-white);
}

.rydeo-vs-sidebar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rydeo-black);
}

.rydeo-vs-clear-all--header {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rydeo-blue);
    text-decoration: none;
    padding: 0;
}

.rydeo-vs-clear-all--header:hover {
    text-decoration: underline;
    color: var(--rydeo-blue-hover);
}

.rydeo-vs-sidebar-quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--rydeo-blue-light);
    border-bottom: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-sidebar-quick-icon {
    flex-shrink: 0;
    color: var(--rydeo-blue);
    opacity: 0.85;
}

.rydeo-vs-sidebar-quick-text {
    min-width: 0;
    flex: 1;
}

.rydeo-vs-sidebar-quick-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rydeo-blue);
    margin-bottom: 3px;
}

.rydeo-vs-sidebar-quick-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--rydeo-gray-700);
}

.rydeo-vs-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rydeo-gray-200);
    background: var(--rydeo-white);
}

.rydeo-vs-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--rydeo-blue-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--rydeo-radius-pill);
    font-size: 0.85rem;
    color: var(--rydeo-blue);
}

.rydeo-vs-active-tag strong {
    font-weight: 600;
    color: var(--rydeo-blue);
}

.rydeo-vs-active-remove {
    margin-left: 2px;
    background: none;
    border: none;
    color: var(--rydeo-blue);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    opacity: 0.75;
    transition: opacity var(--rydeo-transition);
}

.rydeo-vs-active-remove:hover {
    opacity: 1;
}

.rydeo-vs-fields--sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.rydeo-vs-search--sidebar .rydeo-vs-field {
    padding: 0;
    border-bottom: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-filter-group--hierarchy {
    border-bottom: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-filter-group--hierarchy .rydeo-vs-filter-row {
    border-bottom: none;
}

.rydeo-vs-filter-group--hierarchy .rydeo-vs-filter-row[data-filter="make"] {
    border-bottom: none;
}

.rydeo-vs-filter-row label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 14px 20px 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rydeo-gray-800);
    cursor: default;
}

.rydeo-vs-filter-label {
    flex: 1;
}

.rydeo-vs-filter-row .rydeo-vs-chevron::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--rydeo-gray-500);
    border-bottom: 2px solid var(--rydeo-gray-500);
    transform: rotate(45deg);
    margin-top: -3px;
    line-height: 1;
}

/* Nested Model — matches reference design */
.rydeo-vs-filter-row--nested {
    position: relative;
    background: var(--rydeo-blue-light) !important;
    padding-left: 0;
}

.rydeo-vs-filter-tree-line {
    display: none;
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rydeo-blue);
    border-radius: 1px;
    z-index: 1;
}

.rydeo-vs-filter-row--nested .rydeo-vs-filter-tree-line {
    display: block;
}

.rydeo-vs-filter-row--nested label {
    color: var(--rydeo-blue) !important;
    padding-left: 36px !important;
}

.rydeo-vs-filter-row--nested .rydeo-vs-filter-label {
    font-weight: 700;
    font-size: 0.82rem;
}

.rydeo-vs-filter-row--nested select {
    margin-left: 36px !important;
    width: calc(100% - 56px) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    background-color: var(--rydeo-white) !important;
}

.rydeo-vs-search--sidebar .rydeo-vs-filter-row select {
    display: block;
    margin: 0 20px 14px;
    width: calc(100% - 40px);
    min-height: 42px;
    height: 42px;
    line-height: 1.2;
    box-sizing: border-box;
}

.rydeo-vs-field-price label {
    padding-bottom: 8px;
}

.rydeo-vs-field-price .rydeo-vs-chevron {
    display: none;
}

.rydeo-vs-price-range {
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 20px 14px;
    width: 100%;
    box-sizing: border-box;
}

.rydeo-vs-price-range input {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px !important;
    line-height: 1.2;
    box-sizing: border-box;
}

.rydeo-vs-price-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    color: var(--rydeo-gray-500);
    font-weight: 500;
    flex: 0 0 12px;
    line-height: 1;
    font-size: 0.9rem;
}

.rydeo-vs-search--sidebar .rydeo-vs-field input,
.rydeo-vs-search--sidebar .rydeo-vs-field select {
    padding: 10px 32px 10px 12px;
    border: 1px solid var(--rydeo-gray-300);
    border-radius: var(--rydeo-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--rydeo-white);
    color: var(--rydeo-dark);
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.rydeo-vs-search--sidebar .rydeo-vs-filter-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777777' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.rydeo-vs-price-range input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    padding-right: 12px !important;
}

.rydeo-vs-price-range input[type="number"]::-webkit-outer-spin-button,
.rydeo-vs-price-range input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rydeo-vs-search--sidebar .rydeo-vs-field input:focus,
.rydeo-vs-search--sidebar .rydeo-vs-field select:focus {
    outline: none;
    border-color: var(--rydeo-blue);
    box-shadow: 0 0 0 2px var(--rydeo-blue-muted);
}

.rydeo-vs-search--sidebar .rydeo-vs-field-submit {
    padding: 18px 20px 20px;
    border-bottom: none;
    background: var(--rydeo-white);
}

.rydeo-vs-search--sidebar .rydeo-vs-btn-primary {
    border-radius: var(--rydeo-radius-sm);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 48px;
    height: 48px;
    box-shadow: 0 4px 14px rgba(226, 29, 37, 0.28);
}

/* Theme override isolation for sidebar */
.rydeo-vs-sidebar .rydeo-vs-search--sidebar select,
.rydeo-vs-sidebar .rydeo-vs-search--sidebar input[type="number"],
.elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar select,
.elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar select,
.elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar input[type="number"],
.elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar input[type="number"] {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    min-height: 42px !important;
    height: 42px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    float: none !important;
    display: block;
}

.rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select,
.elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select,
.elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select {
    margin-left: 36px !important;
    width: calc(100% - 56px) !important;
    max-width: calc(100% - 56px) !important;
}

.rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-price-range input,
.elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-price-range input,
.elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-price-range input {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 1 1 0;
}

.rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-btn-primary,
.elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-btn-primary,
.elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-btn-primary {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    border-radius: var(--rydeo-radius-sm) !important;
    text-transform: none !important;
}

/* Buttons */
.rydeo-vs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--rydeo-transition), transform 0.1s, box-shadow var(--rydeo-transition);
    width: 100%;
}

.rydeo-vs-btn-primary {
    background: var(--rydeo-red);
    color: var(--rydeo-white);
    min-height: 48px;
    border-radius: var(--rydeo-radius-pill);
    box-shadow: 0 4px 16px rgba(226, 29, 37, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rydeo-vs-btn-primary:hover {
    background: var(--rydeo-red-hover);
    box-shadow: 0 6px 20px rgba(226, 29, 37, 0.4);
    transform: translateY(-1px);
}

.rydeo-vs-clear-all {
    color: var(--rydeo-gray-500);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.rydeo-vs-clear-all:hover {
    color: var(--rydeo-red);
}

/* ============================================
   RESULTS
   ============================================ */
.rydeo-vs-results {
    color: var(--rydeo-gray-800);
}

.rydeo-vs-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rydeo-gray-200);
}

.rydeo-vs-results--list-view .rydeo-vs-results-toolbar {
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.rydeo-vs-results-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rydeo-gray-700);
}



.rydeo-vs-results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rydeo-vs-results-sort label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rydeo-gray-500);
    margin: 0;
}

.rydeo-vs-results-sort select {
    padding: 9px 14px;
    border-radius: var(--rydeo-radius-sm);
    border: 1px solid var(--rydeo-gray-200);
    color: var(--rydeo-gray-800);
    background: var(--rydeo-white);
    font-size: 0.9rem;
    cursor: pointer;
}

.rydeo-vs-results-sort select:focus {
    outline: none;
    border-color: var(--rydeo-red);
}

.rydeo-vs-results-section-title {
    margin: 0 0 18px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rydeo-black);
}

/* List view — horizontal cards (Car Search page) */
.rydeo-vs-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Grid view — two-column cover cards */
.rydeo-vs-results-list--grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

@media (max-width: 780px) {
    .rydeo-vs-results-list--grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   VEHICLE CARDS
   ============================================ */
.rydeo-vs-card {
    background: var(--rydeo-white);
    border-radius: var(--rydeo-radius-md);
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--rydeo-gray-200);
    transition: box-shadow var(--rydeo-transition), border-color var(--rydeo-transition);
}

.rydeo-vs-card:hover {
    box-shadow: var(--rydeo-shadow-sm);
    border-color: var(--rydeo-gray-300);
}

/* List card — horizontal layout */
.rydeo-vs-card--list .rydeo-vs-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
}

.rydeo-vs-card--list .rydeo-vs-card-image {
    flex: 0 0 280px;
    width: 280px;
    min-height: 190px;
    overflow: hidden;
    background: var(--rydeo-gray-100);
}

.rydeo-vs-card--list .rydeo-vs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rydeo-vs-card--list:hover .rydeo-vs-card-image img {
    transform: scale(1.03);
}

.rydeo-vs-card--list .rydeo-vs-card-body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.rydeo-vs-card--list .rydeo-vs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.rydeo-vs-card--list .rydeo-vs-card-headings {
    min-width: 0;
    flex: 1;
}

.rydeo-vs-card--list .rydeo-vs-card-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--rydeo-black);
    line-height: 1.3;
}

.rydeo-vs-card--list .rydeo-vs-card-subtitle {
    margin: 3px 0 0;
    font-size: 0.88rem;
    color: var(--rydeo-gray-500);
}

.rydeo-vs-card--list .rydeo-vs-card-price {
    flex-shrink: 0;
    text-align: right;
}

.rydeo-vs-card--list .rydeo-vs-card-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rydeo-red);
    white-space: nowrap;
    line-height: 1.2;
}

.rydeo-vs-card--list .rydeo-vs-card-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--rydeo-gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rydeo-vs-card--list .rydeo-vs-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.rydeo-vs-card--list .rydeo-vs-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: var(--rydeo-gray-700);
    font-weight: 500;
}

.rydeo-vs-card--list .rydeo-vs-card-meta-label {
    color: var(--rydeo-gray-500);
    font-weight: 500;
}

.rydeo-vs-card--list .rydeo-vs-card-meta-value {
    color: var(--rydeo-gray-800);
    font-weight: 600;
}

.rydeo-vs-card--list .rydeo-vs-card-meta svg {
    flex-shrink: 0;
    color: var(--rydeo-gray-500);
    opacity: 0.85;
}

/* Grid card — cover-photo layout with badges + overlay */
.rydeo-vs-card--grid .rydeo-vs-card-link {
    text-decoration: none !important;
    color: inherit;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.rydeo-vs-card--grid .rydeo-vs-card-image {
    position: relative !important;
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 11;
    overflow: hidden !important;
    background: var(--rydeo-gray-100);
    border-radius: var(--rydeo-radius-md);
}

.rydeo-vs-card--grid .rydeo-vs-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.rydeo-vs-card--grid:hover .rydeo-vs-card-image img {
    transform: scale(1.04);
}

.rydeo-vs-card-badges {
    position: absolute !important;
    top: 12px;
    left: 12px;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rydeo-vs-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: var(--rydeo-white);
    color: var(--rydeo-gray-800);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.rydeo-vs-badge--featured {
    color: #b8860b;
}

.rydeo-vs-badge--featured svg {
    color: #f5a623;
}

.rydeo-vs-badge--price {
    color: #1a7f37;
}

.rydeo-vs-badge--price svg {
    color: #2ea043;
}

.rydeo-vs-card-overlay {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 40px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    margin: 0;
}

.rydeo-vs-card-overlay .rydeo-vs-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rydeo-white);
    line-height: 1.3;
}

.rydeo-vs-card-overlay-desc {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rydeo-vs-card--grid .rydeo-vs-card-body {
    padding: 14px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rydeo-vs-card--grid .rydeo-vs-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.rydeo-vs-card--grid .rydeo-vs-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--rydeo-gray-700);
    font-weight: 500;
}

.rydeo-vs-card--grid .rydeo-vs-card-meta-label {
    display: none;
}

.rydeo-vs-card--grid .rydeo-vs-card-meta-value {
    color: var(--rydeo-gray-800);
    font-weight: 600;
}

.rydeo-vs-card--grid .rydeo-vs-card-meta svg {
    flex-shrink: 0;
    color: var(--rydeo-gray-500);
    opacity: 0.85;
}

.rydeo-vs-card--grid .rydeo-vs-card-price {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.rydeo-vs-card--grid .rydeo-vs-card-price-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rydeo-red);
}

.rydeo-vs-card--grid .rydeo-vs-card-price-suffix {
    font-size: 0.75rem;
    color: var(--rydeo-gray-500);
    font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */
.rydeo-vs-no-results {
    text-align: center;
    padding: 56px 24px;
    color: var(--rydeo-gray-500);
    background: var(--rydeo-gray-50);
    border-radius: var(--rydeo-radius-md);
    border: 1px dashed var(--rydeo-gray-200);
}

.rydeo-vs-results-list .rydeo-vs-no-results {
    width: 100%;
}

.rydeo-vs-no-results p {
    margin: 0;
    font-size: 1rem;
}

.rydeo-vs-loading {
    opacity: 0.5;
    pointer-events: none;
}

.rydeo-vs-pagination {
    margin-top: 28px;
    text-align: center;
}

.rydeo-vs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: var(--rydeo-radius-pill);
    text-decoration: none;
    color: var(--rydeo-gray-800);
    border: 1px solid var(--rydeo-gray-200);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background var(--rydeo-transition), border-color var(--rydeo-transition), color var(--rydeo-transition);
}

.rydeo-vs-pagination .page-numbers:hover {
    border-color: var(--rydeo-red);
    color: var(--rydeo-red);
}

.rydeo-vs-pagination .page-numbers.current {
    background: var(--rydeo-red);
    color: var(--rydeo-white);
    border-color: var(--rydeo-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .rydeo-vs-fields--primary,
    .rydeo-vs-fields--secondary,
    .rydeo-vs-fields-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rydeo-vs-search--page .rydeo-vs-field-submit,
    .rydeo-vs-field--clear {
        grid-column: 1 / -1;
    }

    .rydeo-vs-field--clear {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .rydeo-vs-field--secondary-spacer {
        display: none;
    }

    .rydeo-vs-page-layout {
        grid-template-columns: var(--rydeo-sidebar-width) minmax(0, 1fr) !important;
    }

    .rydeo-vs-sidebar {
        width: var(--rydeo-sidebar-width);
        min-width: var(--rydeo-sidebar-width);
        max-width: var(--rydeo-sidebar-width);
    }

    .rydeo-vs-card--list .rydeo-vs-card-image {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .rydeo-vs-category-item {
        min-width: 60px;
        flex: 0 0 auto;
    }

    .rydeo-vs-categories {
        justify-content: flex-start;
        gap: 4px;
    }
}

@media (max-width: 767px) {
    .rydeo-vs-page {
        padding: 0 16px 36px;
    }

    .rydeo-vs-filter-row--nested .rydeo-vs-filter-tree-line {
        left: 16px;
    }

    .rydeo-vs-filter-row--nested label {
        padding-left: 30px !important;
    }

    .rydeo-vs-filter-row--nested select {
        margin-left: 30px !important;
        width: calc(100% - 46px) !important;
    }

    .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select,
    .elementor-widget-shortcode .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select,
    .elementor-element .rydeo-vs-sidebar .rydeo-vs-search--sidebar .rydeo-vs-filter-row--nested select {
        margin-left: 30px !important;
        width: calc(100% - 46px) !important;
        max-width: calc(100% - 46px) !important;
    }

    .rydeo-vs-search--page {
        padding: 20px 18px 18px;
        border-radius: var(--rydeo-radius-md);
    }

    .rydeo-vs-search--home {
        padding: 0 12px;
    }

    .rydeo-vs-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rydeo-vs-fields--primary,
    .rydeo-vs-fields--secondary,
    .rydeo-vs-fields-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rydeo-vs-search--page {
        padding: 20px 16px 18px;
    }

    .rydeo-vs-search--home.rydeo-vs-search--page {
        padding: 16px 0;
    }

    .rydeo-vs-field--clear {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .rydeo-vs-field--secondary-spacer {
        display: none;
    }

    .rydeo-vs-page-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .rydeo-vs-sidebar,
    .rydeo-vs-main {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
    }

    .rydeo-vs-sidebar {
        min-width: 0;
    }

    .rydeo-vs-map {
        height: 280px;
    }

    .rydeo-vs-map-section {
        margin-top: 28px;
    }

    .rydeo-vs-card--list .rydeo-vs-card-link {
        flex-direction: column;
    }

    .rydeo-vs-card--list .rydeo-vs-card-image {
        width: 100%;
        flex: none;
        min-height: 200px;
    }

    .rydeo-vs-card--list .rydeo-vs-card-top {
        flex-direction: column;
        gap: 8px;
    }

    .rydeo-vs-card--list .rydeo-vs-card-price {
        text-align: left;
    }

    .rydeo-vs-results-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rydeo-vs-results-sort {
        width: 100%;
    }

    .rydeo-vs-results-sort select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .rydeo-vs-search--page {
        padding: 16px 14px 14px;
    }

    .rydeo-vs-category-icon {
        width: 48px;
        height: 48px;
    }

    .rydeo-vs-category-icon svg {
        width: 30px;
        height: 18px;
    }

    .rydeo-vs-category-label {
        font-size: 0.68rem;
        max-width: 64px;
    }

    .rydeo-vs-btn-primary {
        font-size: 0.85rem;
        min-height: 46px;
    }

    .rydeo-vs-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 0.82rem;
    }
}

/* ============================================
   LOCATION — Google Places autocomplete field
   ============================================ */
.rydeo-vs-field--location,
.rydeo-vs-field--location-sidebar {
    min-width: 0;
}

.rydeo-vs-location-wrap {
    position: relative;
    width: 100%;
}

.rydeo-vs-location-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rydeo-red);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.rydeo-vs-location-input {
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 16px 0 38px;
    border: 1px solid var(--rydeo-gray-300);
    border-radius: var(--rydeo-radius-sm);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--rydeo-dark);
    background: var(--rydeo-white);
    box-sizing: border-box;
    transition: border-color var(--rydeo-transition), box-shadow var(--rydeo-transition);
    line-height: 1.2;
}

.rydeo-vs-location-input:focus {
    outline: none;
    border-color: var(--rydeo-red);
    box-shadow: 0 0 0 2px var(--rydeo-red-muted);
}

.rydeo-vs-location-input::placeholder {
    color: var(--rydeo-gray-500);
    font-weight: 400;
}

/* Google Places autocomplete dropdown styling */
.pac-container {
    border-radius: var(--rydeo-radius-sm);
    border: 1px solid var(--rydeo-gray-200);
    box-shadow: var(--rydeo-shadow-md);
    font-family: inherit;
    margin-top: 4px;
    z-index: 99999 !important;
}

.pac-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--rydeo-dark);
    cursor: pointer;
    border-top: 1px solid var(--rydeo-gray-100);
    line-height: 1.5;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background: var(--rydeo-gray-50);
}

.pac-item-query {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rydeo-black);
}

.pac-icon {
    display: none; /* hide default Google pin icon */
}

.pac-matched {
    color: var(--rydeo-red);
    font-weight: 700;
}

/* Sidebar location field */
.rydeo-vs-location-wrap--sidebar .rydeo-vs-location-input {
    height: 42px;
    min-height: 42px;
    font-size: 0.88rem;
    margin: 0 20px 14px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    padding-left: 34px;
}

.rydeo-vs-location-wrap--sidebar {
    position: relative;
    padding: 0;
}

.rydeo-vs-location-wrap--sidebar .rydeo-vs-location-icon {
    left: 30px;
}

/* Elementor overrides for location input */
.elementor-widget-shortcode .rydeo-vs-location-input,
.elementor-element .rydeo-vs-location-input {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px;
    box-shadow: none !important;
}

.elementor-widget-shortcode .rydeo-vs-location-wrap--sidebar .rydeo-vs-location-input,
.elementor-element .rydeo-vs-location-wrap--sidebar .rydeo-vs-location-input {
    height: 42px !important;
    min-height: 42px !important;
}

/* Primary grid: 5 cols (make, model, year, body, location) + submit */
.rydeo-vs-fields--primary {
    grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(160px, auto) !important;
}

@media (max-width: 1400px) {
    .rydeo-vs-fields--primary {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .rydeo-vs-search--page .rydeo-vs-field-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .rydeo-vs-fields--primary {
        grid-template-columns: 1fr !important;
    }
    .rydeo-vs-location-wrap--sidebar .rydeo-vs-location-input {
        margin: 0 16px 14px;
        width: calc(100% - 32px);
    }
    .rydeo-vs-location-wrap--sidebar .rydeo-vs-location-icon {
        left: 26px;
    }
}
