/* Explain: Styles for the interactive life journey map and its details. */
/* ---------- Life journey map ---------- */

.journey-map-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--surface-2);
}

.journey-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95);
}

.journey-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--surface-color);
}

.journey-detail-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface-2);
}

.journey-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.journey-detail-photo.is-loading img {
    opacity: 0;
}

.journey-detail-photo .lb-spinner {
    display: none;
}

.journey-detail-photo.is-loading .lb-spinner {
    display: block;
}

.journey-detail-year {
    display: inline-block;
    margin-top: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.journey-detail-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0.35rem;
}

.journey-detail-desc {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.journey-stops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.85rem;
}

.journey-stop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem 1.1rem;
    text-align: start;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-color));
    color: var(--text-color);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-stop:hover {
    border-color: var(--gold-line);
    transform: translateY(-3px);
}

.journey-stop.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(201, 162, 39, 0.18);
}

.journey-stop-pin {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid var(--gold-line);
    background: rgba(201, 162, 39, 0.12);
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.journey-stop.is-active .journey-stop-pin {
    background: var(--primary-color);
    color: #12100a;
}

.journey-stop-year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

.journey-stop-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .journey-stop {
        transition: none;
        transform: none;
    }
}