.collection-explorer {
    margin: 1rem 0 1.5rem;
}

.collection-explorer__toolbar,
.collection-explorer__navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.collection-explorer__toolbar h2 {
    margin: 0;
}

.collection-explorer__toolbar {
    margin-bottom: 0.75rem;
}

.collection-explorer__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    border: 1px solid rgba(9, 64, 95, 0.24);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(9, 34, 52, 0.16);
}

.collection-explorer__map {
    height: 560px;
    min-width: 0;
    z-index: 0;
}

.collection-explorer__details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 560px;
    color: #062f48;
}

.collection-explorer__navigation {
    padding: 1rem;
    border-bottom: 1px solid rgba(9, 64, 95, 0.15);
}

.collection-explorer__position {
    color: #2e5f7c;
    font-size: 0.85rem;
    text-align: center;
}

.collection-explorer__story {
    padding: 1rem;
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.collection-explorer__article[hidden] {
    display: none;
}

.collection-explorer__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.collection-explorer__story .collection-explorer__image {
    max-height: 360px;
}

.collection-explorer__story h3,
.collection-stories h3 {
    font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 800;
}

.collection-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.collection-stories > .collection-explorer__article {
    padding: 1.25rem;
    border: 1px solid rgba(9, 64, 95, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 244, 252, 0.88));
    box-shadow: 0 20px 40px rgba(9, 34, 52, 0.16);
    color: #062f48;
    overflow-wrap: anywhere;
}

.collection-explorer__metadata {
    color: #2e5f7c;
    font-size: 0.85rem;
}

.collection-explorer__description {
    white-space: pre-wrap;
    line-height: 1.6;
}

.collection-explorer__tags,
.collection-explorer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .collection-stories {
        grid-template-columns: minmax(0, 1fr);
    }

    .collection-explorer__layout {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 18px;
    }

    .collection-explorer__map {
        height: 360px;
    }

    .collection-explorer__details {
        max-height: 480px;
    }

    .collection-explorer__toolbar {
        flex-wrap: wrap;
    }
}
