/* ============================================================
   pub-stopover-map.css
   The Pub Stopover Map of Britain — the link-building host page.
   Sits on top of hub-pages.css and reuses its hero band and tokens.
   ============================================================ */

.stopover-map-page {
    background: #ffffff;
}

/* Standfirst inside the navy hero band */
.stopover-map__standfirst {
    max-width: 720px;
    margin: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.6;
    color: rgba(255,255,255,0.86);
}

.stopover-map__standfirst strong {
    color: #ffffff;
    font-weight: 700;
}

.stopover-map__wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 24px 64px;
    font-size: 16px;
    line-height: 1.65;
    color: #2D2D2D;
}

/* ── Sections ─────────────────────────────────────────────── */
.stopover-map__section {
    margin: 0 0 44px;
}

.stopover-map__section:last-child {
    margin-bottom: 0;
}

.stopover-map__section h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: #17324A;
    line-height: 1.25;
    margin: 0 0 12px;
}

.stopover-map__section p {
    margin: 0 0 1.1em;
}

.stopover-map__section a {
    color: #4A9B6E;
    text-decoration: none;
}

.stopover-map__section a:hover {
    color: #3a8a5e;
    text-decoration: underline;
}

.stopover-map__section strong {
    font-weight: 600;
    color: #1A1A1A;
}

/* ── The infographic ──────────────────────────────────────── */
.stopover-map__figure {
    margin: 0 0 40px;
    text-align: center;
}

.stopover-map__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 18px rgba(23,50,74,0.12);
}

.stopover-map__caption {
    max-width: 620px;
    margin: 14px auto 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6B7A85;
}

/* ── County table ─────────────────────────────────────────── */
.stopover-map__tablenote {
    font-size: 14px;
    color: #6B7A85;
}

/* Wide content scrolls inside its own box rather than the page */
.stopover-map__tablewrap {
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.stopover-map__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.stopover-map__table th {
    background: #F4EFE6;
    color: #17324A;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.stopover-map__table th.is-sortable {
    cursor: pointer;
    user-select: none;
}

.stopover-map__table th.is-sortable:hover {
    color: #4A9B6E;
}

.stopover-map__table td {
    padding: 10px 16px;
    border-bottom: 1px solid #F0F0F0;
}

.stopover-map__table tbody tr:last-child td {
    border-bottom: none;
}

.stopover-map__table tbody tr:hover {
    background: #FAFAF7;
}

.stopover-map__table .is-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stopover-map__rank {
    width: 48px;
    color: #9AA5AE;
    font-variant-numeric: tabular-nums;
}

/* ── Embed box ────────────────────────────────────────────── */
.stopover-map__embed {
    background: #F4EFE6;
    border-radius: 12px;
    padding: 28px;
}

.stopover-map__embedbox {
    position: relative;
}

.stopover-map__embedcode {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #DCD5C7;
    border-radius: 8px;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    color: #2D2D2D;
    resize: vertical;
}

.stopover-map__copy {
    margin-top: 12px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #4A9B6E;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.stopover-map__copy:hover {
    background: #3a8a5e;
}

.stopover-map__embednote {
    margin: 16px 0 0;
    font-size: 14px;
    color: #6B7A85;
}

/* ── CTA cards ────────────────────────────────────────────── */
.stopover-map__cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.stopover-map__cta-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #ffffff;
    color: #17324A !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none !important;
}

.stopover-map__cta-card:hover {
    border-color: #6FBF97;
    box-shadow: 0 2px 12px rgba(23,50,74,0.08);
}

.stopover-map__cta-card span {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 13.5px;
    color: #6B7A85;
}

@media (max-width: 600px) {
    .stopover-map__embed {
        padding: 20px 16px;
    }
}
