﻿.map-loader {
text-align: center;
padding: 2em;
font-style: italic;
color: #555;
}

.numbered-marker .marker-circle {
background: #007bff;
color: white;
font-weight: bold;
text-align: center;
border-radius: 50%;
width: 30px;
height: 30px;
line-height: 30px;
font-size: 14px;
box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.passport-style {
background: linear-gradient(to right, #f5f5f5, #eaeaea);
border: 1px solid #ccc;
border-radius: 12px;
padding: 1rem;
margin-top: 1rem;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
font-family: 'Courier New', Courier, monospace;
background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='0' y='70' transform='rotate(-30 50 50)' fill='%23999' font-size='18' font-family='Courier New'%3E<%=Resources.Widgets.PassportUpper %>%20<%=Resources.Widgets.StampUpper %>%3C/text%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
background-size: 140px;
opacity: 0.96;
}

.passport-style .badge {
border: 1px dashed #888;
background-color: rgba(255, 255, 255, 0.8);
font-weight: bold;
font-family: 'Courier New', Courier, monospace;
box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
transition: transform 0.2s;
}

.passport-style .badge:hover {
    transform: scale(1.05);
}

.passport-style .badge:nth-child(3n) {
    transform: rotate(-2deg);
}

.passport-style .badge:nth-child(4n) {
    transform: rotate(2deg);
}

.distance-km {
    font-size: 1rem;
    font-weight: bold;
}

.distance-mi {
    font-style: italic;
    color: #666;
}

.wanderlust-score {
    font-weight: bold;
    color: #006699;
}

#countryBadges {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px 15px;
    position: relative;
}

.passport-stamp {
    position: absolute;
    font-family: 'Courier New', Courier, monospace;
    font-size: 48px;
    color: rgba(0,0,0,0.1);
    transform: rotate(-15deg);
    bottom: 10px;
    right: 10px;
    pointer-events: none;
    user-select: none;
}

#journalTimelineContainer {
    overflow-x: scroll;
    width: 100%;
    max-width: 100%;
    padding-bottom: 18px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#journalTimelineInner {
    display: flex;
    flex-direction: column;
    width:100%;
}

#journalTimeline {
    position: relative;
    height: 50px;
    width: fit-content;
    margin-bottom: 0;
    padding-bottom: 2px;
}

#journalTimelineLabels {
    display: flex;
    justify-content: flex-start;
    font-size: 0.75rem;
    color: #9f1239;
    padding-top: 4px;
}

#journalTimelineContainer::-webkit-scrollbar {
    height: 10px;
}

#journalTimelineContainer::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.4);
    border-radius: 5px;
}

.journal-bar {
    position: absolute;
    width: 4px;
    height: 32px;
    background: #4b5563;
    border-radius: 2px;
    bottom: 0;
}

.journal-pipe {
    position: absolute;
    width: 2px;
    height: 36px;
    background: #000;
    top: 6px;
}

#journalTimelineLabels {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9f1239;
    padding-top: 4px;
    margin-top: -2px;
    margin-left: 15px;
    min-width: 430px;
}

#journalTimelineLabels {
    position: relative;
    height: 1rem;
    font-size: 0.75rem;
    color: #9f1239;
}

.info.legend {
    background: white;
    padding: 6px 10px;
    font-size: 0.85em;
    line-height: 1.4;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

    .info.legend i {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 6px;
        vertical-align: middle;
    }

.badge-section {
    padding: 1rem;
}

.badge-tile {
    width: 120px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s ease;
    cursor: default;
}

    .badge-tile:hover {
        transform: scale(1.05);
    }

.badge-icon {
    font-size: 2rem;
    line-height: 1.2;
}

.badge-label {
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.badge-tier {
    font-size: 0.75rem;
    font-weight: bold;
    color: #999;
}

.badge-awarded {
    border: 2px solid #28a745;
}

.badge-inprogress {
    opacity: 0.6;
    border: 2px dashed #aaa;
}

.tier-bronze .badge-tier {
    color: #cd7f32;
}

.tier-silver .badge-tier {
    color: #c0c0c0;
}

.tier-gold .badge-tier {
    color: #ffd700;
}

.tier-platinum .badge-tier {
    color: #e5e4e2;
}

.tier-legend .badge-tier {
    color: #8e44ad;
}

.progress-badge {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.badge .progress {
    height: 6px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.badge .progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.tier-platinum {
    background: linear-gradient(135deg, #e5e4e2, #c0c0c0);
    color: #333;
    border: 2px solid #a9a9a9;
}

.tier-legend {
    background: linear-gradient(135deg, #ffd700, #ff4500);
    color: white;
    border: 2px solid #ff6347;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

#badges {
    max-height: 590px;
    overflow-y: auto;
    padding-right: 10px; /* space for scrollbar */
    scroll-behavior: smooth;
}

    #badges::-webkit-scrollbar {
        width: 6px;
    }

    #badges::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

.badge-tier-icon {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 1.2rem;
    pointer-events: none;
}

.badge-tile {
    position: relative;
}

.badge-medal {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.25rem;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}

.medal-bronze {
    color: #cd7f32;
}

.medal-silver {
    color: #c0c0c0;
}

.medal-gold {
    color: #ffd700;
}

.medal-platinum {
    color: #e5e4e2;
}

.medal-legend {
    color: #8e44ad;
}

.medal-legend {
    color: #8e44ad;
    animation: pulse-glow 2s infinite ease-in-out;
    text-shadow: 0 0 4px #8e44ad, 0 0 10px #d4a5f5, 0 0 20px #8e44ad;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 4px #8e44ad, 0 0 10px #d4a5f5, 0 0 20px #8e44ad;
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 6px #a469e1, 0 0 14px #ffb3ff, 0 0 28px #bb6bd9;
        transform: scale(1.08);
    }
}
#btnShowMap {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

#btnShowMap.ready {
    opacity: 1;
    cursor: pointer;
}