
:root {
    --primary-color: #0d6efd;
    --light-gray: #f0f2f5;
    --dark-text: #1c1e21;
    --light-text: #6c757d;
    --white: #ffffff;
    --border-color: #dddfe2;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-light);
}

header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

/* Main Content */
main {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

/* Transport Selection Buttons */
.transport-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.transport-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px var(--shadow-light), 0 6px 6px var(--shadow-dark);
    color: #333;
}

.transport-btn:hover, .transport-btn:focus {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-dark), 0 10px 10px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

.transport-btn:disabled {
    cursor: not-allowed;
    background: #e9ecef;
    opacity: 0.7;
    box-shadow: 0 5px 10px var(--shadow-light);
}

.transport-btn:disabled:hover, .transport-btn:disabled:focus {
    transform: none;
    box-shadow: 0 5px 10px var(--shadow-light);
     color: #333;
}


.transport-btn .icon {
    font-size: 80px;
}

.transport-btn .text {
    font-size: 24px;
    font-weight: 600;
    margin-top: 15px;
}

/* Nearby Stops Screen */
.hidden {
    display: none !important;
}

.screen-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.screen-header h2 {
    font-size: 28px;
    margin: 0 auto; /* Center title */
}

.back-btn {
    position: absolute;
    left: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 0;
}


/* Cards for Stops/Stations */
.card-list {
    display: grid;
    gap: 20px;
}

/* Error Message */
.error-message {
    text-align: center;
    font-size: 18px;
    color: #d93025;
    background-color: #f8d7da;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
}

#retry-location {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--shadow-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--light-text);
}

footer nav a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}
footer nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

footer p {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 600px) {
    main {
        padding: 15px;
    }
    .transport-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .transport-btn {
        width: 90%;
        max-width: 300px;
        height: 150px;
    }
    .transport-btn .icon {
        font-size: 60px;
    }
    .transport-btn .text {
        font-size: 20px;
    }
    header, footer {
        padding: 15px;
    }
    section h2, .screen-header h2 {
        font-size: 26px;
    }
}
