/* PBI-132 (đợt 3) — Nearest station rows (line + station + minutes + delete).
   Modal styling reuses list-search-box.css (#modalLine / #modalStation). */

.nearest-stations__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.station-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap; /* line + station + minutes + delete đều cùng 1 dòng */
}

.station-row__line,
.station-row__station {
    flex: 1 1 0;
    min-width: 0; /* cho phép co lại để không đẩy nút xóa xuống dòng */
    background: #fff;
    cursor: pointer;
}

.station-row__min-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    margin-bottom: 0;
}

input[type=number].station-row__min::placeholder {
    font-style: normal;
}
input[type=number].station-row__min {
    width: 45px !important; /* thu nhỏ ô phút (override form input width) */
    flex: 0 0 45px;
    height: 43px;
    border: solid 2px #539bf5;
    border-radius: 5px ;
    padding: 0 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 300;
}

/* Ô phút chỉ còn 45px nên mũi tên tăng/giảm của input[type=number] sẽ che gần hết
   chỗ nhập khi hover — bỏ đi, người dùng vẫn gõ số bình thường. */
input[type=number].station-row__min::-webkit-outer-spin-button,
input[type=number].station-row__min::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].station-row__min {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Tren SP form keo input[type=text] len 55px (css-form1.css), nhung o phut la
   input[type=number] nen khong dinh rule do -> thap hon 2 o ben canh 12px.
   Ep lai cho bang hang xom. */
@media (max-width: 765px) {
    input[type=number].station-row__min {
        height: 55px;
    }
}

.btn-remove-station {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Chỉ còn 1 dòng thì xóa nó cũng không đi đâu (JS tự thêm lại dòng trống),
   nên ẩn nút cho đỡ rối và nhường chỗ cho 2 ô 路線 / 駅. */
.nearest-stations--single .btn-remove-station {
    display: none;
}

.station-row__unit {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
}

.btn-remove-station {
    padding: 7px 12px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.nearest-stations__note {
    font-size: 12px;
    color: #777;
    margin: 8px 0 4px;
}

.btn-add-station {
    margin-top: 8px;
    padding: 9px 18px;
    border: 1px dashed #1f9c8b;
    color: #1f9c8b;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-add-station:hover {
    background: #eff6f4;
}

.nearest-station-hint {
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 16px 0;
    margin: 0;
}
