/* All rules are scoped to the car-search page. */
.tar-search {
    --tar-blue: #31577b;
    --tar-year-blue: #203e65;
    --tar-green: #218739;
    padding: 24px 0 40px;
    background: #f5f6f7;
    color: #25282c;
}
.tar-search *, .tar-search *::before, .tar-search *::after {
    box-sizing: border-box;
}
.tar-search [hidden] {
    display: none !important;
}
.tar-search-shell {
    width: calc(100% - 32px);
    max-width: 1400px;
    margin: 0 auto;
}
.tar-breadcrumb {
    float: none;
    width: auto;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 12px;
    color: #767c83;
    background: none;
}
.tar-breadcrumb a {
    color: inherit;
}
.tar-search h1 {
    float: none;
    margin: 0 0 26px;
    font-size: 32px;
    line-height: 1.25;
    text-transform: none;
}
.tar-search-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.tar-search-aside, .tar-results {
    float: none;
    min-width: 0;
    width: auto;
}
.tar-search-form {
    padding: 20px;
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    background: #fff;
}
.tar-search .rent-a-car {
    position: static;
    inset: auto;
    transform: none;
    display: flow-root;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}
.tar-search .rent-label {
    display: block;
    margin: 12px 0 7px;
    font-size: 12px;
    line-height: 1.4;
    color: #626970;
}
.tar-search #carsFormIndex > div:first-child .rent-label {
    margin-top: 0;
}
.tar-search #carsFormIndex {
    display: flow-root;
}
.tar-search #carsFormIndex .w-hld.left {
    width: 60%;
    min-width: 0;
}
.tar-search #carsFormIndex .w-hld.right {
    width: 36%;
    min-width: 0;
}
.tar-search #carsFormIndex .picker-hld {
    display: block;
    width: 100%;
    min-width: 0;
}
.tar-search #carsFormIndex .picker-hld input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 30px 8px 8px;
    background-size: 18px 18px;
    background-position: right 8px center;
    font-size: 12px;
}
.tar-search input, .tar-search select, .tar-search button {
    font-family: inherit;
}
.tar-search #carsFormIndex input, .tar-search #carsFormIndex select {
    min-height: 40px;
    max-width: 100%;
    border: 1px solid #d9dde1;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
}
.tar-search #carsFormIndex select:not(.select2-hidden-accessible),
.tar-search #carsFormIndex .select2-container {
    width: 100% !important; /* Override Select2's measured inline width after resizing. */
    min-width: 0;
    max-width: 100%;
}
.tar-search #carsFormIndex .select2-container {
    display: block;
}
/* Select2 keeps an accessible native select absolutely positioned and clipped.
   It must stay tiny: a percentage width here would overflow the viewport. */
.tar-search #carsFormIndex select.select2-hidden-accessible {
    width: 1px !important;
    max-width: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}
.tar-search .select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #d9dde1;
    border-radius: 6px;
}
.tar-search .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-right: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.tar-search .select2-selection--single .select2-selection__arrow {
    height: 38px;
}
.tar-search #searchCars {
    width: 100%;
    margin: 18px 0 0;
    padding: 12px 5px;
    border-radius: 6px;
    background: #d72329;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.tar-search .blue-btn {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    background: none;
    color: #747b82;
    font-size: 11px;
    text-align: center;
    text-decoration: underline;
}
/* Matching native disclosure panels for filters and base-price information. */
.tar-panel {
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.tar-filter-panel {
    margin-top: 18px;
}
.tar-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    list-style: none;
    cursor: pointer;
    color: var(--tar-blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.tar-panel > summary::-webkit-details-marker {
    display: none;
}
.tar-panel > summary::marker {
    content: '';
}
.tar-panel-arrow {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}
.tar-panel[open] > summary .tar-panel-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}
.tar-panel-content {
    padding: 0 18px 18px;
}
.tar-panel:not([open]) > .tar-panel-content {
    display: none;
}
.tar-price-info {
    margin-bottom: 20px;
    border-color: #dce6de;
    border-radius: 8px;
    background: #f0f6f1;
}
.tar-price-info > summary {
    padding: 14px 16px;
    color: #315b3f;
    font-size: 13px;
}
.tar-price-info .tar-panel-content {
    font-size: 13px;
    line-height: 1.65;
    color: #515961;
}
.tar-price-info h2 {
    margin: 16px 0 8px;
    font-size: 14px;
    line-height: 1.4;
    text-transform: none;
}
.tar-price-info ul {
    padding-left: 18px;
    margin: 0;
    list-style: disc;
}
.tar-filter-group {
    float: none;
    width: 100%;
    min-width: 0;
    padding: 16px 0 0;
    margin: 0 0 18px;
    border: 0;
    border-top: 1px solid #edf0f2;
}
.tar-filter-group legend {
    float: none;
    width: 100%;
    padding: 0 0 5px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #25282c;
}
.tar-filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #515961;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.tar-filter-group input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--tar-blue);
}
.tar-clear-filters {
    padding: 0;
    margin: 2px 0 0;
    border: 0;
    background: none;
    color: #747b82;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.tar-results-heading {
    margin-bottom: 20px;
}
.tar-results-heading h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.3;
    text-transform: none;
}
.tar-results-heading h2 span {
    font-size: 15px;
    font-weight: 400;
    color: #777e85;
}
.tar-results-heading p {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #777e85;
}
.tar-no-results {
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}
/* Homepage-style review averages, visible below the filters on desktop only. */
.tar-sidebar-reviews { display: none; float: none; width: auto; }
.tar-sidebar-reviews h2 {
    margin: 0 0 12px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}
.tar-sidebar-reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.tar-sidebar-review {
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}
.tar-sidebar-review p { margin: 0; }
.tar-sidebar-review-source {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}
.tar-sidebar-review-source img {
    display: block;
    width: 88px;
    max-width: 100%;
    height: auto;
}
.tar-sidebar-review-facebook {
    color: #1877f2;
    font-size: 18px;
    font-weight: 700;
}
.tar-sidebar-review-score { padding-top: 8px; line-height: 1.2; }
.tar-sidebar-review-score strong { color: #17643a; font-size: 32px; font-weight: 700; }
.tar-sidebar-review-score span { color: #333; font-size: 13px; }
.tar-sidebar-review-stars { margin: 6px 0; color: #ffc107; font-size: 15px; letter-spacing: .5px; }
.tar-sidebar-review-count { color: #626970; font-size: 12px; line-height: 1.5; }
@media (min-width: 761px) {
    .tar-sidebar-reviews { display: block; margin-top: 20px; }
}
/* One result per row; wide desktop cards use photo, specifications and price areas. */
.tar-car-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}
.tar-car {
    float: none;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid #e9ebed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(30, 40, 50, .05);
    overflow: hidden;
}
.tar-car-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}
.tar-car-name {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    text-transform: none;
    overflow-wrap: anywhere;
}
.tar-car-name a, .tar-car-name a:visited, .tar-car-name a:hover, .tar-car-name a:focus {
    color: #000;
    text-decoration: none;
}
.tar-year-badge {
    flex: none;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--tar-year-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.tar-car-features {
    flex: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px 12px;
    min-height: 125px;
    padding: 0;
    margin: 0 0 14px;
    list-style: none;
}
.tar-car-feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    color: #626970;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
}
.tar-car-feature img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.tar-car-feature span {
    min-width: 0;
}
.tar-car-photo {
    flex: none;
    display: block;
    margin: 0 0 18px;
}
.tar-car-photo > img {
    display: block;
    width: 100%;
    height: 255px;
    object-fit: contain;
}
.tar-card-inclusions {
    flex: none;
    margin: 0 0 20px;
}
.tar-card-inclusions h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}
.tar-card-inclusions ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tar-card-inclusions li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4b535b;
    font-size: 12px;
    line-height: 1.5;
}
.tar-include-check {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    color: var(--tar-green);
}
.tar-car-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf0f2;
}
.tar-price-line {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 8px;
    margin-bottom: 20px;
}
.tar-price-main {
    color: #25282c;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
}
.tar-price-duration, .tar-price-from {
    flex-basis: 100%;
    color: #7a8087;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}
.tar-car-bottom form {
    margin: 0;
}
.tar-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 12px 10px;
    border-radius: 6px;
    background: #d72329;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.tar-reserve:hover, .tar-reserve:focus {
    color: #fff;
    background: #b81d23;
}
.tar-search button:focus-visible, .tar-search a:focus-visible, .tar-search input:focus-visible, .tar-search select:focus-visible, .tar-search summary:focus-visible {
    outline: 2px solid var(--tar-blue);
    outline-offset: 3px;
}
@media (min-width: 761px) {
    .tar-car {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 220px;
        grid-template-areas: "heading heading price" "photo features price" "photo includes price";
        gap: 12px 22px;
        padding: 0;
        border-radius: 10px;
        box-shadow: none;
    }
    .tar-car-heading {
        grid-area: heading;
        margin: 0;
        padding: 22px 0 0 22px;
    }
    .tar-car-name { font-size: 24px; }
    .tar-car-photo {
        grid-area: photo;
        align-self: center;
        min-width: 0;
        margin: 0;
        padding: 0 0 22px 22px;
    }
    .tar-car-photo > img { height: 190px; }
    .tar-car-features {
        grid-area: features;
        align-self: start;
        min-height: 0;
        gap: 8px 10px;
        margin: 0;
    }
    .tar-car-feature { font-size: 12px; }
    .tar-car-feature img { flex-basis: 18px; width: 18px; height: 18px; }
    .tar-card-inclusions {
        grid-area: includes;
        align-self: start;
        margin: 0;
        padding-bottom: 22px;
    }
    .tar-card-inclusions h3 { margin-bottom: 8px; font-size: 14px; }
    .tar-card-inclusions ul { grid-template-columns: 1fr; gap: 5px; }
    .tar-card-inclusions li { font-size: 12px; }
    .tar-car-bottom {
        grid-area: price;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        min-width: 0;
        margin: 0;
        padding: 24px 18px;
        border: 0;
        border-left: 1px solid #e9ebed;
        background: #f1f2f3;
    }
    .tar-price-line { justify-content: center; gap: 6px; }
    .tar-price-main { font-size: 40px; }
    .tar-price-duration { flex-basis: 100%; font-size: 14px; }
    .tar-reserve { min-height: 46px; font-size: 14px; }
}
/* Narrow desktop/tablet: retain one result per row with the price below it. */
@media (min-width: 761px) and (max-width: 1100px) {
    .tar-search-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
    .tar-search-form { padding: 16px; }
    .tar-search #carsFormIndex .w-hld.left,
    .tar-search #carsFormIndex .w-hld.right {
        float: none;
        width: 100%;
        clear: both;
    }
    .tar-car {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "heading heading" "photo features" "photo includes" "price price";
        gap: 12px 16px;
    }
    .tar-car-heading { padding: 18px 18px 0; }
    .tar-car-name { font-size: 22px; }
    .tar-car-photo { padding-left: 18px; padding-bottom: 0; }
    .tar-car-photo > img { height: 165px; }
    .tar-car-features { grid-template-columns: 1fr; padding-right: 18px; }
    .tar-card-inclusions { padding: 0 18px 4px 0; }
    .tar-car-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 18px;
        border-left: 0;
        border-top: 1px solid #e9ebed;
    }
    .tar-price-line { flex: none; margin-bottom: 16px; }
    .tar-price-main { font-size: 34px; }
    .tar-car-bottom > form { display: none; }
    .tar-reserve { width: 100%; }
}
@media (max-width: 760px) {
    .tar-search {
        padding-top: 20px;
    }
    .tar-search-shell {
        width: calc(100% - 28px);
    }
    .tar-search h1 {
        margin-bottom: 20px;
        font-size: 27px;
    }
    .tar-search-layout {
        display: block;
    }
    .tar-search-aside {
        margin-bottom: 18px;
    }
    .tar-search-form {
        padding: 18px;
    }
    .tar-filter-panel {
        margin-top: 14px;
    }
    .tar-filter-group label {
        margin: 12px 0;
        font-size: 14px;
    }
    .tar-filter-group legend {
        font-size: 15px;
    }
    .tar-car-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tar-car {
        padding: 16px;
        border-radius: 12px;
    }
    .tar-car-heading {
        margin-bottom: 14px;
    }
    .tar-car-name {
        font-size: 22px;
    }
    .tar-year-badge {
        padding: 5px 8px;
        font-size: 12px;
    }
    .tar-car-features {
        min-height: 0;
        gap: 9px 10px;
        margin-bottom: 12px;
    }
    .tar-car-feature {
        font-size: 11px;
    }
    .tar-car-feature img {
        flex-basis: 17px;
        width: 17px;
        height: 17px;
    }
    .tar-car-photo {
        margin-bottom: 10px;
    }
    .tar-car-photo > img {
        height: 190px;
    }
    .tar-card-inclusions {
        display: none;
    }
    .tar-car-bottom {
        padding-top: 14px;
    }
    .tar-price-line {
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 16px;
    }
    .tar-price-main {
        font-size: 38px;
    }
    .tar-price-duration, .tar-price-from {
        flex-basis: auto;
        font-size: 12px;
    }
    .tar-reserve {
        min-height: 46px;
        font-size: 14px;
    }
}
