/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navigation {
    margin-bottom: 20px;
}

.back-btn {
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

/* Home/Welcome Page */
.logo h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

.welcome-content {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-content p {
    margin-bottom: 10px;
}

/* Location Page */
.location-inputs .input-group {
    margin-bottom: 20px;
}

.location-inputs input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.location-actions button {
    flex-grow: 1;
    padding: 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
}

/* Filter Page */
.filter-section > div {
    margin-bottom: 20px;
}

.filter-section label {
    display: block;
    margin-bottom: 10px;
}

.time-inputs select,
.distance-filter select {
    width: 100%;
    padding: 10px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
}

.checkbox-group input {
    margin-right: 5px;
}

/* Routes Page */
.route-summary {
    text-align: center;
    margin-bottom: 20px;
}

.routes-container-wrapper {
    width: 100%;
    overflow: hidden;
}

.routes-container {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.route-card {
    flex: 0 0 calc(100% - 40px);
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    scroll-snap-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.btn-full {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
}

.route-details {
    padding: 15px;
}

.route-details .route-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.route-details .route-actions .btn {
    flex-grow: 1;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
}

/* Enhanced Filter Page Styles */
.filter-section .input-group {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.filter-section label {
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.filter-section input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-top: 5px;
}

.walk-time .time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.walk-time .time-inputs input {
    flex: 1;
    text-align: center;
}

.poi-filter .checkbox-group {
    display: flex;
    gap: 20px;
}

.poi-filter .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poi-filter .checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.poi-filter .checkbox-group input[type="checkbox"]:checked {
    background-color: #4CAF50;
    position: relative;
}

.poi-filter .checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

