.map-wrapper {
    max-width: 1200px;     /* controls how wide the map can get */
    margin: 40px auto;     /* centers horizontally + adds top/bottom space */
    padding: 0 20px;       /* breathing room on small screens */
}

#map {
    width: 100%;
    height: 760px;         /* important: Leaflet needs a fixed height */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #404040;
}

/* Header */
header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}

h1 {
    margin: 0;
}

/* Map */
.map-container {
    position: relative;
    height: 90vh;
}

.map-placeholder {
    height: 100%;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Progress Circle */
.progress-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: conic-gradient(#6b1f2b 40%, #eee 0%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-inner {
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Timeline */
.timeline {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
}

.timeline-item {
    min-width: 250px;
    text-align: center;
}

.timeline-item img {
    width: 100%;
    border-radius: 10px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.store-card {
    background: white;
    padding: 10px;
    text-align: center;
    border: 4px solid;
    border-radius: 10px;
}

.store-card img,
.store-card .empty {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #ccc;
    border-radius: 6px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 25px;
}

.nav-left h1 {
    font-size: 18px;
    margin: 0;
    font-weight: bold;
}

.nav-right {
    display: flex;
    gap: 25px;
}

.nav-right a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    position: relative;
}

/* Hover underline effect */
.nav-right a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #6b1f2b; /* burgundy */
    transition: width 0.3s;
}

.nav-right a:hover::after {
    width: 100%;
}

/* Colours */
.orange {
    border-color: #F06C00;
}

.burgundy {
    border-color: #7F0442;
}

.grey {
    border-color: #D8D8D8;
}

.orange-text {
    color: #F06C00;
}

.awesome-marker i {
    font-size: 18px !important;
}

.leaflet-popup-content {
    text-align: center;
}

.progress-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 40px auto;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* starts at top */
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    pointer-events: none;
}

.center-text .sub {
    font-size: 11px;
    color: #666;
}

.tooltip {
    position: absolute;
    background: black;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: none;
    display: none;
    white-space: nowrap;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    height:30px;
    color: #F06C00;
    margin: 26px 60px 10px 60px;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px 15px;
    font-size: 12px;
    text-align: center;

    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(6px);

    color: #666;
    border-top: 1px solid rgba(0, 0, 0, 0.08);

    z-index: 1000;

    /* subtle feel */
    opacity: 0.7;
    transition: opacity 0.2s ease;
    height: 40px;
}

.timeline-sticky {
    position: sticky;
    top: 55px;
    height: calc(100vh - 55px);
    overflow: hidden;
}

.timeline-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 80px;
    padding: 0 100px;
    will-change: transform;
    transition: transform 0.1s linear;
}

.timeline-item {
    min-width: 300px;
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transform: translateY(40px);
    transition: all 0.4s ease;
}

.timeline-year:last-child .timeline-item:last-child {
    padding-right: 400px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item img {
    width: 280px;
    height: 440px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-origin: center;
}

.timeline-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.timeline-item-header {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 0;
    color: #111;
}

.timeline-item-date {
    font-size: 15px;
    margin: 0;
    color: #777;
}

/* Beginning block */
.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.timeline-year {
    position: relative;
    display: flex;
    align-items: center;
    gap: 200px;
    padding-left: 150px; /* space for line + label */
}

.timeline-year::before {
    content: "";
    position: absolute;
    left: 30px;   /* line position */
    top: -130px;
    bottom: -90px;
    width: 2px;
    background: #d8d8d8;
}

.timeline-year-label {
    position: absolute;
    top: -120px;
    left: 50px; /* just right of the line */
    font-size: 44px;
    font-weight: 600;
    color: #F06C00;
}

#uploadForm {
    font-family: Arial, sans-serif;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    margin: 50px auto;
}

/* Title (if inside same container area) */
#uploadForm h2 {
    margin-bottom: 15px;
}

/* Labels */
#uploadForm label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

/* Inputs, textarea, button */
#uploadForm input,
#uploadForm textarea,
#uploadForm select,
#uploadForm button {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Focus state for better UX */
#uploadForm input:focus,
#uploadForm textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Hint text */
#uploadForm .hint {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Button styling */
#uploadForm button {
    margin-top: 20px;
    background: #4a90e2;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

#uploadForm button:hover {
    background: #357ab8;
}

/* File inputs slightly nicer spacing */
#uploadForm input[type="file"] {
    padding: 8px;
    background: white;
}

.marker-cluster {
    background-color: rgba(135, 135, 135, 0.6) !important;
}

.marker-cluster div {
    background-color: rgba(215, 215, 215, 0.6) !important;
}

.popup-thumbnail {
    height: 96px;
    width: 144px;
    border: 3px solid #999;
}
