#map-wrapper {
    max-height: 33rem;
    border: 1px solid var(--rule);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#travel-map-container {
    transform-origin: 0 0;
    touch-action: none;
}

#travel-map-container svg {
    transform: scale(0.7 /1.2);
    margin-top: 40rem;
    width: 93rem;
}

.zoom-controls {
    position: absolute;
    top: 13rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.zoom-controls button {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.animation-controls button {
    height: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
}

#play,
#pause,
#reset {
    width: 2rem;
    text-align: center;
}

#reset {
    font-size: 25px;
    transform: translateY(-1px);
}

#play {
    display: block;
}

#pause {
    display: none;
}

.timeline-container {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    height: 0.7rem;
}

.timeline-base {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    height: 0.7rem;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--rule);
    background-color: transparent;
    z-index: 1;
}


.timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.7rem;
    width: calc(0% - 2px);
    background-color: var(--accent);

    border-left: 2px solid black;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;

    border-top: none;
    border-bottom: none;

    z-index: 0;
}

.timeline-date-label {
    visibility: shown;
    width: 100px;
    display: inline-block;
    text-align: center;
}

/* General Section Style */
.section {
    flex: 1;
    padding: 0;
}

.section-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
}

.section-container .section:not(:last-child) {
    border-right: 1px solid var(--rule);
    padding-right: 2rem;
}

/* Bucketlist */
.bucketlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bucketlist-completed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.bucketlist-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.bucketlist-card:hover {
    border-color: var(--muted);
}

.bucketlist-card.completed {
    opacity: 0.6;
}

.bucketlist-card.completed img {
    filter: grayscale(100%);
}

.bucketlist-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    transition: filter 0.3s ease;
}

.bucketlist-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--rule);
}

.bucketlist-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    color: var(--ink);
    font-style: italic;
}

.bucketlist-completed-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bucketlist-completed-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

/* ── Bucketlist formulier ── */
.bucketlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

.bucketlist-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.input-row {
    display: flex;
    gap: 0.75rem;
}

#bl-image {
    display: none;
}

#bl-image-label {
    width: var(--input-width);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

#city-rows {
    gap: 0.1rem;
    margin-bottom: 0rem;
}

.city-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    position: relative;
    padding-right: 1rem;
}

.city-row .remove-row-btn {
    position: absolute;
    right: -1rem;
}

.city-row .city-lat,
.city-row .city-lon,
#reis-year,
#reis-month {
    width: calc((var(--input-width) - 16px) / 2);
    flex: 0 0 calc((var(--input-width) - 16px) / 2);
}

/* Collapse table */
.collapse-wrap {
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.collapse-wrap.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.toggle-icon {
    display: inline-block;
    font-size: 0.7em;
    transition: transform 0.25s ease;
}

.btn-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}