/* ── Old Maps Explorer ── */

.oldmaps {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
}

.oldmaps__header {
    padding: 20px 24px 10px;
    text-align: center;
}

.oldmaps__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary, #1a5632);
    margin: 0 0 6px;
}

.oldmaps__subtitle {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 14px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.oldmaps__intro {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 24px;
}

.oldmaps__intro-inner {
    max-width: 760px;
    margin: 0 auto;
}

.oldmaps__intro-inner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
}

/* ── Search ── */

.oldmaps__search {
    max-width: 420px;
    margin: 0 auto;
}

.oldmaps__search-label {
    display: block;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 5px;
}

.oldmaps__search-row {
    display: flex;
    gap: 8px;
}

.oldmaps__search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 1rem;
    border: 2px solid var(--color-accent, #e8a838);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s;
}

.oldmaps__search-input:focus {
    border-color: var(--color-primary, #1a5632);
}

.oldmaps__search-btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary, #1a5632);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.oldmaps__search-btn:hover {
    background: #145228;
}

/* ── Era selector bar ── */

.oldmaps__era-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f0f7f3;
    border-top: 1px solid #c8e6d4;
    border-bottom: 1px solid #c8e6d4;
    flex-wrap: wrap;
}

.oldmaps__era-label {
    font-size: 0.82rem;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
}

.oldmaps__era-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.oldmaps__era-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 16px;
    border: 2px solid #c8e6d4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-width: 80px;
    line-height: 1.2;
}

.oldmaps__era-btn:hover {
    border-color: var(--color-primary, #1a5632);
    background: #f0f7f3;
}

.oldmaps__era-btn--active {
    border-color: var(--color-primary, #1a5632);
    background: var(--color-primary, #1a5632);
    color: #fff;
}

.oldmaps__era-year {
    font-size: 1rem;
    font-weight: 700;
}

.oldmaps__era-name {
    font-size: 0.72rem;
    opacity: 0.85;
}

/* ── Era description strip ── */

.oldmaps__era-desc-bar {
    padding: 6px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    min-height: 28px;
}

.oldmaps__era-desc {
    font-size: 0.82rem;
    color: #666;
}

/* ── Map ── */

.oldmaps__map {
    flex: 1;
    min-height: 500px;
}

/* ── Footer ── */

.oldmaps__footer {
    padding: 14px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}

.oldmaps__footer p {
    margin: 3px 0;
}

.oldmaps__footer a {
    color: var(--color-primary, #1a5632);
    text-decoration: underline;
}

/* ── Mobile ── */

@media (max-width: 600px) {
    .oldmaps__header {
        padding: 14px 14px 8px;
    }
    .oldmaps__title {
        font-size: 1.3rem;
    }
    .oldmaps__era-bar {
        padding: 8px 12px;
    }
    .oldmaps__era-btn {
        padding: 5px 10px;
        min-width: 68px;
    }
    .oldmaps__era-year {
        font-size: 0.9rem;
    }
    .oldmaps__map {
        min-height: 400px;
    }
}

/* ── Old maps educational section ───────────────────────── */
.oldmaps__edu {
    background: #f8f9fa;
    padding: 3rem 1.5rem;
    margin-top: 2.5rem;
}
.oldmaps__edu-container {
    max-width: 860px;
    margin: 0 auto;
}
.oldmaps__edu-h2 {
    font-size: 1.35rem;
    color: #1a2b4a;
    margin: 0 0 0.9rem;
}
.oldmaps__edu-h2:not(:first-child) {
    margin-top: 2.2rem;
}
.oldmaps__edu-container p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.oldmaps__edu-container a {
    color: #2563eb;
    text-decoration: underline;
}
.oldmaps__edu-list {
    color: #374151;
    line-height: 1.75;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.oldmaps__edu-list li {
    margin-bottom: 0.55rem;
}
