/* ===== TRANG THUÊ XE TỰ LÁI ===== */

/* Hero */
.tx-hero {
    position: relative;
    overflow: hidden;
}

.tx-bg {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Search card */
.tx-search-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #DDEEFF;
    border-radius: 16px;
    padding: 18px 20px;
    width: min(960px, calc(100% - 48px));
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Location input */
.tx-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
}

.tx-input i {
    color: #7ABEFA;
    font-size: 14px;
    flex-shrink: 0;
}

.tx-input input {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #222;
    width: 100%;
    background: transparent;
}

.tx-input input::placeholder {
    color: #aaa;
}

/* Bottom row */
.tx-bottom-row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-height: 60px;
}

/* Date group (ngày nhận / ngày trả) */
.tx-date-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 16px;
    cursor: pointer;
    flex: 1;
    transition: background 0.15s;
    min-width: 110px;
}

.tx-date-group:hover {
    background: #f0f7ff;
}

/* Time trigger (giờ nhận / giờ trả) */
.tx-time-trigger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 84px;
}

.tx-time-trigger:hover {
    background: #f0f7ff;
}

.tx-time-val-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-time-val-row .fas {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.tx-time-val-row .fas.open {
    transform: rotate(180deg);
}

/* Shared label/value */
.tx-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}

.tx-val {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: block;
}

/* Separator */
.tx-row-sep {
    width: 1px;
    background: #e8e8e8;
    align-self: stretch;
    margin: 10px 0;
    flex-shrink: 0;
}

/* Vehicle select */
.tx-vehicle-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    min-width: 110px;
}

.tx-select {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    background: transparent;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Search button */
.tx-search-btn {
    background-color: #7ABEFA;
    color: #fff;
    border: none;
    padding: 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.tx-search-btn:hover {
    opacity: 0.88;
}

/* ===== CALENDAR OVERLAY ===== */
.tx-cal-overlay {
    position: fixed;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.16);
    z-index: 300;
    padding: 20px 24px;
    display: none;
}

.tx-cal-overlay.open {
    display: block;
}

.tx-cal-mode-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #7ABEFA;
    background: #DDEEFF;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.tx-cal-months {
    display: flex;
    gap: 28px;
}

.tx-cal-month {
    width: 240px;
}

.tx-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tx-cal-head > span {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.tx-cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    color: #666;
    font-size: 12px;
    transition: background 0.15s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-cal-nav:hover:not(:disabled) {
    background: #DDEEFF;
    color: #7ABEFA;
}

.tx-cal-nav:disabled {
    color: #ddd;
    cursor: default;
}

.tx-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.tx-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    padding: 4px 0;
}

.tx-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tx-day {
    text-align: center;
    padding: 7px 2px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    color: #222;
    user-select: none;
}

.tx-day:hover:not(.past):not(.empty):not(.pickup):not(.ret) {
    background: #DDEEFF;
    color: #7ABEFA;
}

.tx-day.today:not(.pickup):not(.ret) {
    font-weight: 700;
    color: #7ABEFA;
}

.tx-day.inrange {
    background: #DDEEFF;
    color: #2c7fdb;
    border-radius: 0;
}

.tx-day.pickup,
.tx-day.ret {
    background: #7ABEFA;
    color: #fff;
    font-weight: 700;
}

.tx-day.pickup {
    border-radius: 8px 0 0 8px;
}

.tx-day.ret {
    border-radius: 0 8px 8px 0;
}

.tx-day.pickup.ret {
    border-radius: 8px;
}

.tx-day.past,
.tx-day.empty {
    color: #ddd;
    cursor: default;
    pointer-events: none;
}

/* ===== TIME PANEL ===== */
.tx-time-panel {
    position: fixed;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.16);
    z-index: 300;
    padding: 8px 0;
    display: none;
    width: 130px;
    max-height: 232px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #DDEEFF transparent;
}

.tx-time-panel::-webkit-scrollbar {
    width: 4px;
}

.tx-time-panel::-webkit-scrollbar-thumb {
    background: #DDEEFF;
    border-radius: 4px;
}

.tx-time-panel.open {
    display: block;
}

.tx-time-option {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.12s;
}

.tx-time-option:hover {
    background: #f0f7ff;
    color: #7ABEFA;
}

.tx-time-option.selected {
    background: #DDEEFF;
    color: #7ABEFA;
    font-weight: 700;
}
