/**
 * Shared layout for home + /custom-forecast/ map pin picker (split column, CTA).
 * Loaded from index.html and custom-forecast/index.html.
 */
.home-map-pin-section {
    margin: 0 0 28px;
}

.cap-pin-picker-section {
    box-sizing: border-box;
    padding: 16px 16px 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(120, 170, 230, 0.35);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.92);
}

/* Split layout: copy + pin status/CTA (left), map (right) */
.home-map-pin-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.28fr);
    grid-template-rows: auto auto;
    column-gap: clamp(1.25rem, 4vw, 2.25rem);
    row-gap: 0.75rem;
    align-items: start;
}

.home-map-pin-copy {
    grid-column: 1;
    grid-row: 1;
}

/* Match hero strapline “Know before you go.” */
.home-map-pin-section .cap-pin-picker-heading {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 2.5vw + 1.15rem, 3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: #ffffff;
}

.home-map-pin-section .cap-pin-picker-intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 10px;
}

.home-map-pin-section .cap-pin-picker-intro-lead {
    font-size: clamp(1.2rem, 1.5vw + 0.85rem, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.97);
}

.home-map-pin-section .cap-pin-picker-intro-rest {
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.76);
}

.home-map-pin-meta {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    padding: 12px 14px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(140, 190, 255, 0.22);
}

.home-map-pin-meta .cap-pin-map-status {
    margin: 0 0 12px;
    min-height: auto;
    font-size: 0.87rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.home-map-pin-meta .cap-pin-picker-actions {
    margin-top: 0;
}

.home-map-pin-map-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    height: min(52vh, 440px);
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.home-map-pin-map-wrap .cap-pin-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    border: none;
}

@media (max-width: 900px) {
    .home-map-pin-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .home-map-pin-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .home-map-pin-map-wrap {
        grid-column: 1;
        grid-row: 2;
        height: min(44vh, 380px);
        min-height: 260px;
    }

    .home-map-pin-meta {
        grid-column: 1;
        grid-row: 3;
        align-self: stretch;
    }
}

.cap-pin-picker-heading {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.cap-pin-picker-intro {
    margin: 0 0 10px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
}

.cap-pin-picker-intro a {
    color: rgba(180, 215, 255, 0.98);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cap-pin-picker-intro a:hover {
    color: #fff;
}

.cap-pin-picker-foot {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.cap-pin-picker-foot a {
    color: rgba(158, 197, 255, 0.95);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cap-pin-picker-foot a:hover {
    color: #fff;
}

.cap-pin-map {
    width: 100%;
    height: min(48vh, 380px);
    min-height: 240px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a2332;
}

.cap-pin-map .leaflet-container {
    font-family: inherit;
}

.cap-pin-map-status {
    margin: 10px 0 4px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    min-height: 2.9em;
}

.cap-pin-place-name {
    color: rgba(190, 220, 255, 0.98);
}

.cap-pin-place-muted {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.cap-pin-picker-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cap-pin-open-forecast-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(145deg, #2592c2, #1a6a94);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.home-map-pin-section .cap-pin-open-forecast-btn--home {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18 0%, #ff3d7f 55%, #d43b95 100%);
    box-shadow:
        0 4px 16px rgba(255, 90, 120, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-map-pin-section .cap-pin-open-forecast-btn--home:not(:disabled):hover {
    filter: brightness(1.08);
    box-shadow:
        0 6px 22px rgba(255, 100, 130, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.35);
}

.cap-pin-open-forecast-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cap-pin-open-forecast-btn:not(:disabled):hover {
    filter: brightness(1.06);
}

@media (max-width: 768px) {
    .home-map-pin-section .cap-pin-picker-heading {
        font-size: 2rem;
    }
}
