/* ===== Main container ===== */
.motorcycle-search {
    display: flex;
    align-items: flex-start;   /* align items to the top */
    gap: 12px;
    flex-wrap: wrap;           /* allow wrapping if not enough space */
    width: 100%;
    box-sizing: border-box;
}

/* ===== Fields (all viewports) ===== */
.motorcycle-search .ms-field {
    position: relative;
    flex: 1 1 auto;            /* grow and shrink as needed */
    min-width: 200px;          /* prevents text from being too cramped */
}

/* ===== Button ===== */
.motorcycle-search .ms-button {
    flex: 0 0 auto;            /* only take the space needed */
    height: 45px;
    padding: 0 20px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}
.motorcycle-search .ms-button:hover,
.motorcycle-search .ms-button:focus {
    border-color: #e30613;
    background-color: #e30613;
    color: #fff;
}

/* ===== Mobile: stack everything in blocks ===== */
@media (max-width: 767px) {
  .motorcycle-search .ms-field,
  .motorcycle-search .ms-button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ===== Select styling ===== */
.motorcycle-search .ms-select {
    height: 45px;
    line-height: 45px;
    padding: 0 64px 0 12px;     /* extra space for the arrow */
    border: 1px solid #000;
    font-size: 14px;
    font-weight: 500;
    background-color: #fff;
    color: #000;
    border-radius: 0;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='black'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;

    /* handle long text */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    cursor: pointer;
}

/* ===== Select options ===== */
.motorcycle-search .ms-select option {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
}
.motorcycle-search .ms-select option:hover,
.motorcycle-search .ms-select option:checked,
.motorcycle-search .ms-select option:focus {
    background-color: #e30613;
    color: #fff;
}

/* ===== Disabled state ===== */
.motorcycle-search .ms-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23999'><path d='M7 10l5 5 5-5z'/></svg>");
}
.motorcycle-search .ms-select:disabled:hover,
.motorcycle-search .ms-select:disabled:focus {
    border-color: #ccc;
}

/* ===== Hover/focus only for active selects ===== */
.motorcycle-search .ms-select:hover:not(:disabled),
.motorcycle-search .ms-select:focus:not(:disabled) {
    border-color: #e30613;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='red'><path d='M7 10l5 5 5-5z'/></svg>");
}

/* ===== Fallback arrow for old browsers ===== */
.motorcycle-search .ms-field::after {
    content: "▼";
    font-size: 14px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000;
    display: none;
}
@supports not (background-image: url("data:image/svg+xml;utf8,<svg></svg>")) {
    .motorcycle-search .ms-field::after { display: block; }
}
.ms-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    border-left: 1px dashed #ccc;
}

.ms-tree li { 
    margin: 12px 0; /* más espacio entre elementos */
}

.ms-tree strong {
    font-weight: bold;
    font-size: 15px;
}

.ms-tree .toggle {
    cursor: pointer;
    margin-right: 8px;
    color: #0073aa;
    font-weight: bold;
}

.ms-tree .toggle:hover {
    color: #e30613;
}

.ms-tree .nested { display: none; }
.ms-tree .active { display: block; }