* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.page-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 32px;
    min-height: 280px;
    background-color: #dfeaf7;
    background-image: url('images/backgound-1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 32px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.brand img {
    width: 240px;
    height: 240px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(33, 150, 243, 0.16);
}

.brand h1,
.page-header-title h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    margin-bottom: 8px;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1976d2;
    margin-bottom: 6px;
}

.site-content {
    display: grid;
    gap: 24px;
}

.site-article,
.route-list-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.site-article h2,
.route-list-section h2 {
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.site-article p {
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}

.site-article img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.route-list {
    display: grid;
    gap: 16px;
}

.route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #f9fbff;
    border: 1px solid #e7edf9;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(33, 150, 243, 0.12);
}

.route-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.route-card p {
    color: #555;
}

.route-action {
    font-weight: 700;
    color: #1976d2;
}

.site-footer {
    margin-top: 24px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    color: #666;
}

.page-header .back-link,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 700;
}

#map {
    width: 100%;
    height: calc(100vh - 220px);
    position: relative;
    z-index: 1;
}

#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

#info {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#info h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

#location-status {
    font-size: 14px;
    color: #666;
}

#center-location-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#center-location-btn:active {
    background: #45a049;
}

@media (max-width: 768px) {
    .page-shell {
        padding: 16px;
    }
    
    .site-header,
    .page-header {
        padding: 18px;
    }
    
    .site-article,
    .route-list-section,
    .site-footer {
        padding: 18px;
    }
    
    #map {
        height: calc(100vh - 240px);
    }
}

/* Leaflet overrides for better mobile experience */
.leaflet-control-container {
    z-index: 99;
}

.leaflet-control {
    background: white;
    border-radius: 4px;
}

#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

#info {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

#info h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

#location-status {
    font-size: 14px;
    color: #666;
}

#center-location-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#center-location-btn:active {
    background: #45a049;
}

@media (max-width: 768px) {
    #controls {
        padding: 12px;
    }
    
    #info h2 {
        font-size: 16px;
    }
    

}

/* Leaflet overrides for better mobile experience */
.leaflet-control-container {
    z-index: 99;
}

.leaflet-control {
    background: white;
    border-radius: 4px;
}
