/* Tùy chỉnh CSS để hỗ trợ giao diện */
:root {
    --bs-primary: #009688;
    /* Màu đỏ-hồng cho nút chính */
    --bs-blue: #1570EF;
    /* Màu tím cho tiêu đề */
    --bs-gray-700: #495057;
}

/* Tùy chỉnh màu Bootstrap */
.choose-map-location-container .text-blue {
    color: var(--bs-blue) !important;
}

.choose-map-location-container .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: 600;
    color: white;
}

.choose-map-location-container .btn-primary:hover {
    background-color: #C2185B;
    border-color: #C2185B;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

/* Card chính */
.choose-map-location-container .search-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 1rem;
    max-width: 512px;
    width: 100%;
}

/* Input Group tùy chỉnh */
.choose-map-location-container .custom-input-group {
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

/* Bỏ border dưới khi autocomplete hiển thị để liền mạch với danh sách gợi ý */
.choose-map-location-container .custom-input-group.autocomplete-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.choose-map-location-container .custom-input-group:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
}

.choose-map-location-container .custom-input-group .form-control {
    border: none;
    box-shadow: none;
    padding-left: 0;
}

.choose-map-location-container .input-icon-left {
    padding: 0.75rem 0.5rem 0.75rem 1rem;
    color: #adb5bd;
}

.choose-map-location-container .input-icon-right {
    cursor: pointer;
    padding: 0.75rem 1rem 0.75rem 0.5rem;
    color: #adb5bd;
    transition: color 0.3s;
}

.choose-map-location-container .input-icon-right:hover {
    color: var(--bs-primary);
}

/* Button Chọn Ngày & Giờ */
.choose-map-location-container .date-time-btn {
    overflow: hidden;
    background-color: white;
    color: var(--bs-gray-700);
    text-align: left;
    padding: 0;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.choose-map-location-container .date-time-btn:hover,
.choose-map-location-container .date-time-btn:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25);
    outline: none;
}

/* Autocomplete Result */
#autocomplete-results {
    /* Vị trí tuyệt đối để đè lên nội dung khác */
    position: absolute;
    z-index: 1050;
    width: 100%;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    /* Bỏ border trên để nó nối với input */
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-height: 300px;
    overflow-y: auto;
}

.choose-map-location-container .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
}

.choose-map-location-container .suggestion-item:last-child {
    border-bottom: none;
}

.choose-map-location-container .suggestion-item:hover {
    background-color: #f8f9fa;
}

.choose-map-location-container .suggestion-item small {
    color: #6c757d;
}

.choose-map-location-container .suggestion-item p {
    color: var(--bs-blue);
    font-weight: 500;
    margin-bottom: 0;
}

/* Calendar Styles (trong Modal) */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 4px;
}

.choose-map-location-container .day-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.choose-map-location-container .day-cell {
    padding: 0.5rem;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.875rem;
    color: #343a40;
}

.choose-map-location-container .day-cell:hover:not(.day-inactive):not(.day-selected) {
    background-color: #f8f9fa;
}

.choose-map-location-container .day-inactive {
    color: #adb5bd;
    cursor: default;
}

.choose-map-location-container .day-selected {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.4);
}

/* Custom model */
#dateTimeModal .modal-content,
#dateTimeModal .modal-dialog {
    max-width: 350px;
}

/* Custom picker */
#pickup-calendar+.flatpickr-calendar {
    margin: 10px auto;
}

.form-select {
    cursor: pointer;
}

.form-select.disable {
    pointer-events: none;
    user-select: none;
    position: relative;
}

/* Not working */
.form-select.disable::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: not-allowed;
    background-color: transparent;
    z-index: 1;
}

#selected-date-display {
    font-size: 12px;
}