.ytm-site .ytm-filter-panel { display:block; width:100%; background:#f8f5ef; border:1px solid #d9cfbc; border-radius:12px; padding:28px; margin:0 0 28px; }
.ytm-site .ytm-filter-heading { font:normal clamp(24px,3vw,34px)/1.25 var(--ytm-serif,Georgia,serif); margin:0 0 24px; color:#242520; }
.ytm-site form.ytm-vehicle-filters { width:100%; max-width:none; background:#f8f5ef; padding:24px; border-radius:10px; }
.ytm-site .ytm-filter-panel form.ytm-vehicle-filters { padding:0; }
.ytm-site .ytm-vehicle-filters .hp-form__fields { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; }
.ytm-site .ytm-vehicle-filters .hp-form__field { min-width:0; margin:0; grid-column:span 3; }
.ytm-site .ytm-vehicle-filters .hp-form__field:has([name="s"]) { grid-column:span 6; }
.ytm-site .ytm-vehicle-filters .hp-form__field:has([name="_ytm_make_other"]),.ytm-site .ytm-vehicle-filters .hp-form__field:has([name="_ytm_model_other"]) { grid-column:1/-1; }
.ytm-site .ytm-vehicle-filters .hp-form__field[hidden] { display:none; }
.ytm-site .ytm-vehicle-filters .hp-field__label { color:#34352f; font-size:14px; font-weight:600; line-height:1.45; margin-bottom:8px; }
.ytm-site .ytm-vehicle-filters :is(input:not([type="hidden"]),select) { width:100%; min-width:0; height:48px; padding:10px 12px; border:1px solid #b8ad98; border-radius:5px; background:#fff; color:#20221e; }
.ytm-site .ytm-vehicle-filters .select2-container { width:100%!important; min-width:0; }
.ytm-site .ytm-vehicle-filters .select2-selection--single { min-height:48px; background:#fff; border:1px solid #b8ad98; }
.ytm-site .ytm-vehicle-filters .select2-selection__rendered { line-height:46px; color:#20221e; }
.ytm-site .ytm-vehicle-filters .select2-selection__arrow { height:46px; }
.ytm-site .ytm-vehicle-filters :is(input,select,a,button):focus-visible { outline:3px solid #9b7736; outline-offset:2px; }
.ytm-site .ytm-vehicle-filters .hp-form__footer { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:20px; }
.ytm-site .ytm-vehicle-filters .hp-form__button { min-height:48px; padding:12px 28px; background:#242824; color:#fff; border:1px solid #756446; border-radius:5px; }
.ytm-site .ytm-vehicle-filters .hp-form__footer a:is(:link,:visited) { color:#59421b; font-weight:600; text-decoration:underline; }
.ytm-site .ytm-filter-error { color:#922c22; font-weight:600; }
@media(min-width:1024px) { .ytm-site form.ytm-vehicle-filters { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; }
.ytm-site .ytm-vehicle-filters .hp-form__header,.ytm-site .ytm-vehicle-filters > .ytm-filter-error { grid-column:1/-1; }
.ytm-site .ytm-vehicle-filters .hp-form__fields { display:contents; }
.ytm-site .ytm-vehicle-filters .hp-form__footer { grid-column:7/-1; margin:0; align-self:end; }
.ytm-site .ytm-search-full .hp-form__field:has([name="_ytm_year_min"]),.ytm-site .ytm-search-full .hp-form__field:has([name="_ytm_year_max"]),.ytm-site .ytm-search-full .hp-form__field:has([name="_ytm_price_min"]),.ytm-site .ytm-search-full .hp-form__field:has([name="_ytm_price_max"]) { grid-column:span 2; }
.ytm-site .ytm-search-full .hp-form__field:has([name="_ytm_country"]) { grid-column:span 4; }
.ytm-site .ytm-search-full .hp-form__footer { grid-column:10/-1; }
/* v1.13.5: primary keyword search and submit action share the first row.
   All vehicle filters begin below them, without changing form fields or GET routing. */
.ytm-site form.ytm-search-full .hp-form__header { grid-row:1; }
.ytm-site form.ytm-search-full .hp-form__field:has([name="s"]) { grid-column:1/10; grid-row:2; }
.ytm-site form.ytm-search-full .hp-form__footer { grid-column:10/-1; grid-row:2; display:flex; align-self:end; justify-content:flex-start; align-items:center; gap:10px; flex-wrap:wrap; }
.ytm-site form.ytm-search-full .hp-form__footer .hp-form__button { flex:1 0 auto; white-space:nowrap; }
.ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_make"]) { grid-column:1/7; grid-row:3; }
.ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_model"]) { grid-column:7/-1; grid-row:3; }
}
@media(max-width:1023px) { .ytm-site .ytm-vehicle-filters .hp-form__fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .ytm-site .ytm-vehicle-filters .hp-form__field { grid-column:span 1; } .ytm-site .ytm-vehicle-filters .hp-form__field:has([name="s"]) { grid-column:1/-1; } }
@media(max-width:600px) { .ytm-site .ytm-filter-panel,.ytm-site form.ytm-vehicle-filters { padding:18px; } .ytm-site .ytm-vehicle-filters .hp-form__fields { grid-template-columns:minmax(0,1fr); gap:16px; } .ytm-site .ytm-vehicle-filters .hp-form__field { grid-column:1/-1; } .ytm-site .ytm-vehicle-filters .hp-form__button { width:100%; } }

/* v1.13.5 tablet: keep the submit action alongside keyword search. */
@media (min-width:768px) and (max-width:1023px) {
 .ytm-site form.ytm-search-full { display:grid; grid-template-columns:minmax(0,2fr) minmax(220px,1fr); gap:16px; }
 .ytm-site form.ytm-search-full .hp-form__header { grid-column:1/-1; grid-row:1; }
 .ytm-site form.ytm-search-full .hp-form__fields { display:contents; }
 .ytm-site form.ytm-search-full .hp-form__field { grid-column:auto; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="s"]) { grid-column:1; grid-row:2; }
 .ytm-site form.ytm-search-full .hp-form__footer { grid-column:2; grid-row:2; display:flex; align-self:end; flex-wrap:wrap; gap:8px; margin:0; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_make"]) { grid-column:1; grid-row:3; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_model"]) { grid-column:2; grid-row:3; }
}
/* Phones: submit immediately below keyword search, then filters. */
@media (max-width:767px) {
 .ytm-site form.ytm-search-full { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
 .ytm-site form.ytm-search-full .hp-form__header { grid-column:1; grid-row:1; }
 .ytm-site form.ytm-search-full .hp-form__fields { display:contents; }
 .ytm-site form.ytm-search-full .hp-form__field { grid-column:1; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="s"]) { grid-row:2; }
 .ytm-site form.ytm-search-full .hp-form__footer { grid-column:1; grid-row:3; display:flex; flex-wrap:wrap; margin:0; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_make"]) { grid-row:4; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="_ytm_model"]) { grid-row:5; }
}

/* 1.13.6: Mobile-first progressive disclosure; all native inputs remain in one form. */
.ytm-site .ytm-advanced-fields { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:18px; grid-column:1/-1; min-width:0; }
.ytm-site .ytm-advanced-fields[hidden] { display:none!important; }
.ytm-site .ytm-advanced-fields > .hp-form__field { grid-column:span 3; }
.ytm-site .ytm-advanced-toggle { background:transparent; border:0; color:#735523; text-decoration:underline; font-weight:650; cursor:pointer; padding:10px; min-height:44px; }
@media(max-width:1023px) {
 .ytm-site .ytm-advanced-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ytm-site .ytm-advanced-fields > .hp-form__field { grid-column:span 1; }
}
@media(max-width:767px) {
 .ytm-site form.ytm-search-full { display:flex!important; flex-direction:column; gap:12px; }
 .ytm-site form.ytm-search-full .hp-form__fields { display:contents!important; }
 .ytm-site form.ytm-search-full .hp-form__field:has([name="s"]) { order:1; width:100%; }
 .ytm-site form.ytm-search-full .hp-form__footer { order:2; width:100%; display:flex; flex-direction:column; gap:8px; }
 .ytm-site form.ytm-search-full .hp-form__footer .hp-form__button { width:100%; }
 .ytm-site form.ytm-search-full .hp-form__footer .ytm-filter-reset { order:3; }
 .ytm-site form.ytm-search-full .ytm-advanced-fields { order:3; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
 .ytm-site form.ytm-search-full .ytm-advanced-fields > .hp-form__field { grid-column:1/-1!important; grid-row:auto!important; }
 .ytm-site form.ytm-search-full .ytm-advanced-fields[hidden] { display:none!important; }
 .ytm-site form.ytm-search-full .ytm-advanced-toggle { order:2; }
 /* Native child-theme hero only. Elementor custom heroes are not altered blindly. */
 .ytm-site .ytm-hero { min-height:0!important; padding-block:35px 40px!important; }
 .ytm-site .ytm-hero h1 { font-size:clamp(1.8rem,7vw,2.6rem); line-height:1.13; overflow-wrap:break-word; }
 .ytm-site .ytm-hero .ytm-actions a { min-height:46px; padding:12px 16px; }
}
/* Optional Elementor hero class for the homepage section: ytm-mobile-home-hero */
@media(max-width:767px) {
 .ytm-site .ytm-mobile-home-hero { min-height:420px!important; height:auto!important; padding:40px 18px!important; }
 .ytm-site .ytm-mobile-home-hero .elementor-heading-title { font-size:clamp(27px,7vw,38px)!important; line-height:1.14!important; overflow-wrap:break-word; }
 .ytm-site .ytm-mobile-home-hero .elementor-button { padding:13px 18px!important; min-height:46px; }
}
