body { margin: 0; padding: 0; font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; overflow: hidden; display: flex; flex-direction: column; height: 100vh; }

#progress-ribbon {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    flex: 0 0 100px;
    background: rgba(0, 40, 80, 0.9);
    border-bottom: 4px solid #ffcc00;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.ribbon-track {
    position: relative;
    width: 90%;
    height: 8px;
    background: #555;
    border-radius: 4px;
    margin: 0 auto;
    overflow: visible;
}

.milestone {
    position: absolute;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    color: #ffcc00;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 3px 3px 5px rgba(0,0,0,1);
    z-index: 5;
    transition: left 0.3s ease-out;
    pointer-events: none;
}

.milestone-stem {
    width: 2px;
    background: #ffcc00;
}

.milestone-high .milestone-stem {
    height: 15px;
}

.milestone-low .milestone-stem {
    height: 50px;
}

.milestone-label {
    color: #ffcc00;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 3px 3px 5px rgba(0,0,0,1);
    white-space: nowrap;
}

.milestone-low {
}

.milestone-high {
}
.milestone-start {
    align-items: flex-start;
    transform: none;
}
.milestone-end {
    align-items: flex-end;
    transform: translateX(-100%);
}

.van-icon {
    position: absolute;
    top: -22px;
    transform: translateX(-100%);
    font-size: 40px;
    transition: left 0.5s ease;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
#map {
    flex: 1;
    height: auto;
    width: 100%;
    background-color: #91b971;
    background-image:
        linear-gradient(rgba(255,255,255,.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,.1) 2px, transparent 2px);
    background-size: 100px 100px;
}
.dashboard-overlay { 
    position: relative; bottom: auto; width: 100%; background: rgba(0, 40, 80, 0.9); 
    color: white; padding: 5px; z-index: 1000; text-align: center; border-top: 5px solid #ffcc00;
    flex: 0 0 auto;
    max-height: none;
    overflow-y: visible;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 5px;
}
.location-card {
    position: fixed; top: 10%; left: 10%; right: 10%; bottom: 10%;
    background: white; border: 8px solid #ffcc00; border-radius: 30px;
    padding: 30px; z-index: 2000; box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow-y: auto; display: none;
}
.discovery-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #ffcc00; color: #002850; padding: 20px 40px;
    border-radius: 50px; font-weight: bold; font-size: 1.5rem;
    z-index: 3000; border: 4px solid white; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { top: -100px; } to { top: 20px; } }
.close-btn { 
    display: block; width: 100%; padding: 20px; background: #ff4444; 
    color: white; border: none; border-radius: 15px; font-size: 1.5rem; margin-top: 20px;
    cursor: pointer;
}

/* Rich Card Styles */
.card-inner {
    max-width: 90%;
    margin: 0 auto;
}
.card-photos {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 15px;
}
.card-photo {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
}
.fun-facts {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
    font-size: 1.2rem;
}
.trivia {
    background: #e0f7fa;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    margin: 10px 0;
    color: #002850;
}
.choice-group {
    margin: 15px 0;
}
.choice-group-title {
    font-size: 1.6rem;
    color: #ffcc00;
    margin-bottom: 10px;
}
.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.choice-button {
    background: #ffcc00;
    color: #002850;
    border: 4px solid #ffcc00;
    border-radius: 30px;
    padding: 20px 40px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    min-width: 120px;
    text-align: center;
    font-family: inherit;
}
.choice-button:hover {
    transform: scale(1.05);
    background: #ffe066;
}
.choice-button.selected {
    background: #28a745;
    color: white;
    border-color: gold;
    box-shadow: 0 0 20px gold;
}
.great-choice {
    margin-top: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
}
.can-you-see {
    background: #f0f0f0; padding: 15px; border-radius: 10px; margin: 15px 0;
}
.dashboard-section {
    margin: 0;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}
.dashboard-section h2 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #ffcc00;
}
.town-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}
.location-context {
    font-size: 1.2rem;
    color: #ffcc00;
    margin: 2px 0;
}
.miles-remaining {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}
.clock-time {
    font-size: 1.5rem;
    margin: 5px 0;
}
.kid-time {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 5px 0;
    color: #ffcc00;
}
.history-section {
    background: #e0f7fa;
    padding: 15px;
    border-radius: 15px;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #002850;
}
.history-section h2 {
    font-size: 1.6rem;
    color: #ffcc00;
    margin-bottom: 10px;
}
.activities-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
    font-size: 1.2rem;
}
.family-note {
    background: #fff3cd;
    border: 4px solid #ffcc00;
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #002850;
}
.family-note strong {
    font-size: 1.4rem;
    color: #856404;
}

.dashboard-section.where-we-are {
    grid-column: 1 / span 2;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    margin: 0;
}

.dashboard-section {
    margin: 0;
    padding: 2px;
}

.dashboard-section h2 {
    font-size: 1.2rem;
    margin: 0;
}

.dashboard-section.next-stop h2,
.dashboard-section.how-long h2 {
    font-size: 1.8rem;
}
.arrival-mode {
    background: #28a745 !important;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* large chunky sections */
.miles-remaining {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}
.next-stop-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffcc00;
}
.milestone-start .milestone-label {
    text-align: left;
}
.milestone-end .milestone-label {
    text-align: right;
}
.controls-container {
    position: fixed;
    top: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.control-button {
    background: #ffcc00;
    color: #002850;
    border: 4px solid white;
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    font-family: inherit;
}
.control-button:hover {
    background: #ffe066;
}
.control-button:active {
    transform: scale(0.95);
}
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    font-size: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

/* Larger map icons */
.mystery-icon,
.discovered-poi-icon {
    font-size: 45px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
