@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    background-color: #FFFFFF;
    color: #333;
    padding-bottom: 56px;
}

button {
    font-family: inherit;
}

/* Filter bar */
#filterBar {
    display: flex;
    background: white;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #ddd;
    gap: 0.5rem;
    overflow-x: auto;
}

#filterBar button {
    background: #e6f0ff;
    border: none;
    color: #007aff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    margin: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    flex-shrink: 0;
    font-size: 16px;
}

#filterBar button.active,
#filterBar button:hover {
    background: #007aff;
    color: white;
}

body > main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    background-color: #f0f4f8;
}

.park-section {
    margin-bottom: 2rem;
}

.park-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #007aff;
    margin-bottom: 1rem;
}

.park-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.5rem 0;
    margin: 0;
    width: 100%;
    gap: 0.1em;
}

.park-toggle {
    margin: 0 0 0 1em;
    border: none;
    background: none;
    color: #007aff;
    padding: 0.5em 0;
}

.park-hours {
    font-size: 0.9rem;
    font-weight: normal;
    color: #555;
    display: flex;
    align-items: center;
}

.park-hours .bi-clock {
    font-size: 1.1rem;
}

.park-content.hidden {
    display: none;
}

.ride-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    margin-bottom: 0.6rem;
}

.ride-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1rem 1rem;
}

.ride-bottom {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.2rem 1rem;
    background-color: #e6f0ff;
}

.ride-bottom.hidden {
    display: none;
}

.ride-bottom-toggle {
    margin: 0 0 0 0.7em;
    border: none;
    background: none;
    color: #007aff;
    padding: 0.5em 0;
}

.ride-bottom-left,
.ride-bottom-right {
    flex: 1;
}

.ride-bottom-left {
    display: none;
}

.ride-bottom-right .row p {
    margin: 0;
    line-height: 1.6em;
}

.ride-name {
    font-weight: 500;
    flex: 1 1 auto;
}

.ride-hours {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    margin: 0.3em 0 0 0;
}

.ride-live {
    display: flex;
    align-items: center;
    gap: 1.2em;
}

.clock-icon {
    margin-right: 0.35rem;
}

.wait-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #007aff;
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.status {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    min-width: auto;
    text-align: center;
    font-family: monospace;
    flex-shrink: 0;
}

.ride-card .status {
    min-width: 110px;
}

/* Status kleuren */
.status.operating {
    background-color: #d4f7d4;
    color: #2d7a2d;
    border: 1px solid #2d7a2d;
}

.status.down {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #856404;
}

.status.closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #721c24;
}

.status.refurbishment {
    background-color: #e2e3e5;
    color: #6c757d;
    border: 1px solid #6c757d;
}

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    color: #777;
}

/* Responsive */
@media (max-width: 480px) {
    .ride-card {
        gap: 0.3rem;
    }

    .ride-live {
        gap: 0.5em;
    }

    .wait-time {
        width: auto;
        text-align: left;
    }

    .status,
    .ride-card .status {
        min-width: auto;
    }

    .ride-bottom {
        flex-direction: column;
    }
}

/* Bottom nav bar */
#bottomNav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1100;
}

#bottomNav button {
    background: none;
    border: none;
    color: #777;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: color 0.3s;
    padding: 0 0 1em 0;
}

#bottomNav button.active {
    color: #007aff;
    border-top: 3px solid #007aff;
}

#bottomNav button svg {
    margin-bottom: 2px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Dagplanning styling */
#dayPlan {
    max-width: 900px;
    margin: 1rem auto;
    padding: 0 1rem 3rem;
}

.day-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.day-date {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #007aff;
}

.park-visit {
    margin-left: 0.8rem;
    margin-bottom: 0.4rem;
}

.park-visit strong {
    font-weight: 700;
}

/* Showtijden styling (gelijk aan ride-card maar met extra details) */
.show-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
}

.show-title {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.show-location {
    font-size: 0.9rem;
    color: #555;
}

.show-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 0 0;
}

.show-time {
    background: #007aff;
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: monospace;
}

.modal__overlay {
    background: rgba(0, 0, 0, 0.6);
}

.modal__container {
    background: white;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border-radius: 10px;
    max-width: 90%;
    margin: auto;
    width: 85%;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    float: right;
    cursor: pointer;
}

.modal__content p {
    margin: 0;
}