/* Structural Styles - Route Finder Page */

body {
    margin: 0;
    padding: 0;
}

.header-green {
    padding: 2rem 1.5rem 4rem;
    margin-bottom: -2rem;
    position: relative;
    z-index: 1;
}

.header-title {
    margin-top: 1rem;
}

.main-content {
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.selection-card {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.selection-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.selection-content {
    flex-grow: 1;
}

.selection-label {
    margin-bottom: 0.25rem;
}

.swap-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto;
}

.datetime-section {
    margin-top: 1.5rem;
}

.section-label {
    margin-bottom: 0.5rem;
}

.datetime-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.datetime-input {
    flex: 1;
    padding: 0.875rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-label {
    margin-right: 0.5rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle-slider:before {
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

.search-button {
    padding: 1rem;
    width: 100%;
    margin-top: 1.5rem;
}

.datetime-trigger {
    flex: 1;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    padding: 10px;
}

/* Time Picker Styles */
.time-picker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: relative;
}

.time-picker-wheel {
    height: 100%;
    width: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.time-item {
    height: 40px;
    line-height: 40px;
}

.time-picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    margin-top: -20px;
}

.time-picker-separator {
    margin: 0 10px;
}

.modal-handle {
    width: 40px;
    height: 5px;
    margin: 0 auto 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-outline {
    padding: 0.8rem;
    width: 100%;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-content {
        width: 90%;
    }
}
