/*
 * Tarjeta del buscador de llantas por vehículo, medida o precio (inicio).
 * Las reglas vienen del antiguo inicio (antes .hero-search-layout).
 */

.buscador-llantas .search__filter--area {
    position: relative;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(19, 0, 92, 0.09);
    border-radius: 11px;
    box-shadow: 0 18px 42px rgba(10, 0, 68, 0.16);
    overflow: hidden;
}

.buscador-llantas .search__filter--area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #c8272f 0%, #c8272f 43%, #f8ca48 43%, #f8ca48 72%, #171717 72%, #171717 100%);
}

.buscador-llantas .search__filter--header {
    align-items: center;
    margin-bottom: 14px;
}

.buscador-llantas .search__filter--header__icon {
    display: flex;
    width: 42px;
    height: 42px;
    margin-right: 12px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(200, 39, 47, 0.10);
}

.buscador-llantas .search__filter--header__icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.buscador-llantas .search__filter--header__icon svg {
    width: 27px;
    height: 27px;
    display: block;
    color: #171717;
}

.buscador-llantas .search__filter--title {
    margin: 0;
    color: #171717;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 900;
}

.buscador-llantas #myTabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    background: #f1f2f6;
}

.buscador-llantas #myTabs .nav-item {
    min-width: 0;
}

.buscador-llantas #myTabs .nav-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.buscador-llantas #myTabs .nav-link {
    width: 100%;
    min-height: 39px;
    padding: 8px 5px;
    border: 0 !important;
    border-radius: 11px;
    color: #5e6070;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.buscador-llantas #myTabs .nav-link.active {
    color: #171717;
    background: #f8ca48;
    box-shadow: 0 5px 14px rgba(200, 39, 47, 0.26);
}

.buscador-llantas .tab-content {
    margin-top: 13px !important;
}

.buscador-llantas .search__filter--form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buscador-llantas .search__filter--select {
    height: 50px;
    margin: 0;
    border: 1px solid #dedfe7;
    border-radius: 13px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.buscador-llantas .search__filter--select:focus-within {
    border-color: #c8272f;
    box-shadow: 0 0 0 3px rgba(200, 39, 47, 0.14);
    transform: translateY(-1px);
}

.buscador-llantas .search__filter--select__field {
    height: 48px;
    padding: 0 44px 0 16px;
    border: 0 !important;
    border-radius: 12px;
    outline: 0 !important;
    box-shadow: none !important;
    color: #24242b;
    background-color: transparent;
    font-weight: 600;
}

.buscador-llantas .search__filter--select__field:disabled {
    color: #9698a2;
    cursor: not-allowed;
    background-color: #f5f5f7;
}

.buscador-llantas .search__filter--btn {
    display: flex;
    min-height: 50px;
    margin-top: 2px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(200, 39, 47, 0.24);
}

.vehicle-search__fields {
    display: grid;
    gap: 9px;
}

.vehicle-search__field {
    min-width: 0;
}

.vehicle-search__label {
    display: block;
    margin: 0 0 4px 2px;
    color: #3f4048;
    font-size: 14px;
    font-weight: 800;
}

.vehicle-search__status {
    margin: 10px 0 0;
    color: #5e6070;
    font-size: 13px;
    line-height: 1.45;
}

/* Error en una sola línea, sin caja. */
.vehicle-search__status.is-error {
    color: #7e2026;
}

.vehicle-search__fallback {
    display: inline;
    padding: 0;
    border: 0;
    color: #c8272f;
    background: transparent;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.vehicle-search__submit {
    width: 100%;
    margin-top: 12px;
}

.vehicle-search__submit:disabled {
    color: #777983;
    background: #ececf0;
    box-shadow: none;
    cursor: not-allowed;
}

.buscador-llantas .search__filter--subtitle {
    margin: 3px 0 0;
    color: #5e6070;
    font-size: 14px;
    line-height: 1.35;
}

/* Ayuda breve arriba de los campos de cada pestaña. */
.buscador-llantas .search__filter--hint {
    margin: 4px 0 12px;
    color: #5e6070;
    font-size: 13.5px;
    line-height: 1.4;
}

/* "205 / 55 R16": cada número corresponde a un campo (Ancho, Alto, Rin). */
.buscador-llantas .search__filter--size-hint {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.buscador-llantas .search__filter--size-lead {
    margin: 0;
    color: #3d3d42;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Ejemplo de medida como viene en la llanta: números grandes y su nombre debajo. */
.buscador-llantas .search__filter--size-example {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px 10px;
    border-radius: 12px;
    background: #f1f2f6;
    color: #171717;
}

.buscador-llantas .search__filter--size-example span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #5e6070;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.buscador-llantas .search__filter--size-example b,
.buscador-llantas .search__filter--size-example i {
    color: #171717;
    font-size: 28px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.buscador-llantas .search__filter--size-example i {
    color: #9a9caa;
    font-weight: 700;
}

/*
 * "Por vehículo" y "Por medida" ocupan el mismo alto: las pestañas se apilan en
 * la misma celda y solo se ve la activa, así la tarjeta no cambia de tamaño al
 * cambiar de pestaña y el botón queda en el mismo lugar.
 */
.buscador-llantas .tab-content {
    display: grid;
}

.buscador-llantas .tab-content > .tab-pane {
    display: flex;
    flex-direction: column;
    grid-area: 1 / 1;
    visibility: hidden;
}

.buscador-llantas .tab-content > .tab-pane.active {
    visibility: visible;
}

.buscador-llantas .tab-content > .tab-pane > form,
.buscador-llantas #vehicle-search {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.buscador-llantas .tab-content .search__filter--btn {
    margin-top: auto;
}

/* Ayuda en texto simple, del mismo alto en las dos pestañas. */
.buscador-llantas .search__filter--hint {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
    background: none;
}

/* Mismo espacio de 10px entre ayuda, campos, aviso y botón en las dos pestañas. */
.buscador-llantas #vehicle-panel > .search__filter--hint {
    margin: 0 0 10px;
}

.buscador-llantas .search__filter--form > .search__filter--hint {
    margin: 0;
}

.buscador-llantas #vehicle-search .vehicle-search__fields {
    margin-bottom: 10px;
}

.buscador-llantas #vehicle-search .vehicle-search__status {
    margin: 0 0 10px;
}

.buscador-llantas #vehicle-search .vehicle-search__status:empty {
    display: none;
}
