/**
 * City Hub / Explore Your City page - matches reference design
 */

/* Top red bar */
.lnm-city-hub {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
}
.lnm-city-hub-topbar {
    background: #c41e3a;
    color: #fff;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.lnm-city-hub-topbar-date { }
.lnm-city-hub-topbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lnm-city-hub-topbar-links a {
    color: #fff;
    text-decoration: none;
}

/* Branding: logo + title */
.lnm-city-hub-branding {
    background: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e5e5;
}
.lnm-city-hub-logo {
    background: #c41e3a;
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}
.lnm-city-hub-title-text {
    font-size: 18px;
    color: #1a1a1a;
}
.lnm-city-hub-title-text strong { font-size: 20px; }

/* Hero: Explore Your City */
.lnm-city-hub-hero {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 50%, #d4b896 100%);
    background-size: cover;
    background-position: center;
    padding: 48px 24px 56px;
    text-align: center;
    position: relative;
    min-height: 200px;
}
.lnm-city-hub-hero.has-bg { min-height: 280px; }
.lnm-city-hub-hero h2 {
    font-size: 32px;
    font-weight: 600;
    color: #6b2d2d;
    margin: 0 0 12px;
    font-family: Georgia, serif;
}
.lnm-city-hub-hero-desc {
    font-size: 16px;
    color: #333;
    margin: 0 0 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.lnm-city-hub-search-wrap {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.lnm-city-hub-search-wrap input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
}
.lnm-city-hub-search-wrap input::placeholder { color: #999; }
.lnm-city-hub-search-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category bar */
.lnm-city-hub-categories {
    background: #f0efeb;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}
.lnm-city-hub-cat {
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lnm-city-hub-cat:hover { background: #e0e0e0; }
.lnm-city-hub-cat.active {
    background: #c41e3a;
    color: #fff;
}

/* Main: sidebar + map */
.lnm-city-hub-main {
    display: flex;
    min-height: 70vh;
}
.lnm-city-hub-sidebar {
    width: 380px;
    min-width: 320px;
    background: #f9f9f9;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}
.lnm-city-hub-sidebar-head {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}
.lnm-city-hub-sidebar-head h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lnm-city-hub-sidebar-search {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.lnm-city-hub-sidebar-search input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
}
.lnm-city-hub-sidebar-search-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
}
.lnm-city-hub-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.lnm-city-hub-place-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.lnm-city-hub-place-card:hover,
.lnm-city-hub-place-card.active {
    background: #fff5f5;
    border-color: #c41e3a;
}
.lnm-city-hub-place-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}
.lnm-city-hub-place-card .thumb-placeholder {
    width: 72px;
    height: 72px;
    background: #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}
.lnm-city-hub-place-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.lnm-city-hub-place-info .desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 4px;
}
.lnm-city-hub-place-info .meta {
    font-size: 12px;
    color: #888;
}
.lnm-city-hub-place-info .stars { color: #f5a623; }
.lnm-city-hub-sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}
.lnm-city-hub-sidebar-footer a { color: #c41e3a; text-decoration: none; }

/* Map column */
.lnm-city-hub-map-wrap {
    flex: 1;
    position: relative;
    min-height: 500px;
}
.lnm-city-hub-map {
    width: 100%;
    height: 100%;
    min-height: 75vh;
}
.lnm-city-hub-map-controls {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.lnm-city-hub-map-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.lnm-city-hub-map-attribution {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    color: #666;
    z-index: 5;
}

/* Explore Your City — mobile / narrow: stack map + list (sidebar width was hiding the map) */
@media (max-width: 768px) {
    .lnm-city-hub-main {
        flex-direction: column;
        min-height: 0;
    }
    .lnm-city-hub-map-wrap {
        order: -1;
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        min-height: 260px;
        height: 42vh;
        max-height: 420px;
    }
    .lnm-city-hub-map {
        height: 100%;
        min-height: 260px;
    }
    .lnm-city-hub-sidebar {
        width: 100%;
        min-width: 0;
        max-height: none;
        border-right: none;
        border-top: 1px solid #e0e0e0;
        flex: 1 1 auto;
    }
    .lnm-city-hub-list {
        max-height: min(50vh, 360px);
        -webkit-overflow-scrolling: touch;
    }
}

/* Info window popup on map (we use Google's InfoWindow; this styles custom content) */
.lnm-city-hub-infowin {
    padding: 0;
    min-width: 260px;
    max-width: 360px;
    box-sizing: border-box;
}
.lnm-city-hub-infowin img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.lnm-city-hub-infowin-body { padding: 12px; }
.lnm-city-hub-infowin-body h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.lnm-city-hub-infowin-body p { margin: 0 0 6px; font-size: 13px; color: #555; line-height: 1.35; }
.lnm-city-hub-infowin-body p:last-child { margin-bottom: 0; }
.lnm-city-hub-infowin-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
}
/* Compact toolbar: one solid primary + light secondaries */
.lnm-city-hub-infowin-btn {
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 10px;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lnm-city-hub-infowin-btn--primary {
    background: #c41e3a;
    color: #fff;
    border: 1px solid #a01830;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.lnm-city-hub-infowin-btn--ghost {
    background: #fafafa;
    color: #8b1530;
    border: 1px solid #e0c4c8;
}
.lnm-city-hub-infowin-btn--ghost:hover,
.lnm-city-hub-infowin-btn--ghost:focus {
    background: #fff5f5;
    border-color: #c41e3a;
    color: #c41e3a;
}
.lnm-city-hub-infowin-btn--primary:hover,
.lnm-city-hub-infowin-btn--primary:focus {
    background: #a01830;
    border-color: #8b1428;
    color: #fff;
}

/*
 * Google Maps InfoWindow wraps content in .gm-style-iw-* with a max-height + overflow
 * that scrolls on small screens and hides Explore / Directions. Remove that trap
 * for City Hub map only (map container + ancestor wrapper).
 */
#lnm-city-hub-map .gm-style-iw-c,
#lnm-city-hub-map .gm-style-iw-chr,
.lnm-city-hub-map-wrap .gm-style-iw-c,
.lnm-city-hub-map-wrap .gm-style-iw-chr,
.lnm-city-hub .gm-style-iw-c,
.lnm-city-hub .gm-style-iw-chr {
    max-height: none !important;
}
#lnm-city-hub-map .gm-style-iw-d,
.lnm-city-hub-map-wrap .gm-style-iw-d,
.lnm-city-hub .gm-style-iw-d {
    overflow: visible !important;
    max-height: none !important;
}
#lnm-city-hub-map .gm-style-iw-tc,
.lnm-city-hub-map-wrap .gm-style-iw-tc,
.lnm-city-hub .gm-style-iw-tc {
    max-height: none !important;
}

@media (max-width: 768px) {
    /*
     * Do not set min-width to 92vw / 340px here — Google's InfoWindow inner width is
     * smaller (driven by map + maxWidth in JS). Forcing a wide min-width made the
     * grid spill past the white bubble (2nd button looked “outside” the popup).
     */
    .lnm-city-hub-infowin {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .lnm-city-hub-infowin img {
        height: 88px;
    }
    .lnm-city-hub-infowin-body {
        padding: 8px 10px 10px;
    }
    .lnm-city-hub-infowin-body h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .lnm-city-hub-infowin-body p {
        font-size: 12px;
        margin-bottom: 4px;
    }
    /*
     * Mobile: 2 buttons on row 1, third on row 2 full width — all visible without scrolling.
     * With only 2 links (no Explore), both sit on one row.
     */
    .lnm-city-hub-infowin-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: 8px;
        align-items: stretch;
    }
    .lnm-city-hub-infowin-actions .lnm-city-hub-infowin-btn:nth-child(3) {
        grid-column: 1 / -1;
    }
    .lnm-city-hub-infowin-btn {
        padding: 9px 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.01em;
        border-radius: 5px;
        line-height: 1.2;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* Loading / empty */
.lnm-city-hub-loading,
.lnm-city-hub-empty {
    padding: 24px;
    text-align: center;
    color: #666;
}
.lnm-city-hub-error { padding: 24px; color: #c41e3a; text-align: center; }

/* ========== City landing tabs and panels ========== */
/* First block when topbar/branding removed: breathe below theme header */
.lnm-city-hub > .lnm-city-hub-hero-tabs:first-child {
    padding-top: 24px;
}
.lnm-city-hub-hero-tabs {
    padding: 32px 24px 24px;
    text-align: center;
}
.lnm-city-hub-hero-tagline {
    font-size: 20px;
    font-weight: 600;
    color: #6b2d2d;
    margin: 0 0 24px;
    font-family: Georgia, serif;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.lnm-city-hub-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.lnm-city-hub-tab {
    padding: 12px 20px;
    border: none;
    background: rgba(255,255,255,0.7);
    color: #333;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}
.lnm-city-hub-tab:hover {
    background: #fff;
    color: #6b2d2d;
}
.lnm-city-hub-tab.active {
    background: #c41e3a;
    color: #fff;
}
.lnm-city-hub-panel {
    display: none;
    padding: 0 0 32px;
}
.lnm-city-hub-panel.active { display: block; }
.lnm-city-hub-panel[hidden] { display: none !important; }

/* Today's Headlines: three columns */
.lnm-city-hub-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 24px 20px;
    max-width: 1280px;
    margin: 0 auto 24px;
    background: #f4f4f4;
    border-radius: 8px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .lnm-city-hub-three-col { grid-template-columns: 1fr; }
}
.lnm-city-hub-col-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #c41e3a;
    padding-bottom: 8px;
}
.lnm-city-hub-stories-inner,
.lnm-city-hub-weather-inner,
.lnm-city-hub-events-inner { margin-bottom: 16px; }
/* Weather widget in narrow column: contain width and scroll if needed */
.lnm-city-hub-col-today .lnm-city-hub-weather-inner {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.lnm-city-hub-col-today .lnm-weather-widget {
    max-width: 100%;
    box-sizing: border-box;
}
.lnm-city-hub-col-today .lnm-weather-widget .lnm-weather-widget {
    min-width: 0;
}
.lnm-city-hub-col-stories,
.lnm-city-hub-col-today,
.lnm-city-hub-col-events {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    min-width: 0;
}

/* ========== Reference layout: single-column list inside narrow columns ========== */
/* Split-screen is 2-col grid globally; inside hub columns it must stack vertically */
.lnm-city-hub-stories-inner .lnm-split-screen,
.lnm-city-hub-events-inner .lnm-split-screen {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}
.lnm-city-hub-stories-inner .lnm-local-news-left,
.lnm-city-hub-stories-inner .lnm-local-news-right,
.lnm-city-hub-events-inner .lnm-events-left,
.lnm-city-hub-events-inner .lnm-events-right {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px !important;
}
.lnm-city-hub-stories-inner .lnm-local-news-right,
.lnm-city-hub-events-inner .lnm-events-right {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0 !important;
}
/* List-style article blocks: heading + excerpt + Read more row */
.lnm-city-hub-stories-inner .lnm-local-news-left h2,
.lnm-city-hub-stories-inner .lnm-local-news-right h2,
.lnm-city-hub-events-inner .lnm-events-left h2,
.lnm-city-hub-events-inner .lnm-events-right h2 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 8px;
    padding-left: 72px;
    position: relative;
    min-height: 56px;
    border-bottom: none;
}
/* Thumbnail placeholder (square) — optional img from filter lnm_city_hub_thumb_url */
.lnm-city-hub-stories-inner .lnm-local-news-left h2::before,
.lnm-city-hub-stories-inner .lnm-local-news-right h2::before,
.lnm-city-hub-events-inner .lnm-events-left h2::before,
.lnm-city-hub-events-inner .lnm-events-right h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    background-size: cover;
    background-position: center;
}
.lnm-city-hub-stories-inner p,
.lnm-city-hub-events-inner p {
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    margin: 0 0 8px;
    padding-left: 72px;
}
.lnm-city-hub-stories-inner a,
.lnm-city-hub-events-inner a {
    font-size: 13px;
    font-weight: 600;
    color: #c41e3a !important;
}

/* GNews.io article cards: hub “list row” rules target generic p/h2 — reset for .lnm-gnewsio-feed */
.lnm-city-hub-stories-inner .lnm-gnewsio-feed article.lnm-gnewsio-article,
.lnm-city-hub-events-inner .lnm-gnewsio-feed article.lnm-gnewsio-article {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-title,
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-desc,
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-meta,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-title,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-desc,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-meta {
    padding-left: 0 !important;
    min-height: 0 !important;
    position: relative !important;
}
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-title::before,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-title::before {
    display: none !important;
    content: none !important;
}
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-title a,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-title a {
    font-size: inherit !important;
    color: #1a1a1a !important;
}
.lnm-city-hub-stories-inner .lnm-gnewsio-feed .lnm-gnewsio-meta a,
.lnm-city-hub-events-inner .lnm-gnewsio-feed .lnm-gnewsio-meta a {
    color: #666 !important;
    font-weight: 400 !important;
}

/* Unify column titles: all red underline (theme may style last column as link) */
.lnm-city-hub-col-events .lnm-city-hub-col-title,
.lnm-city-hub-col-stories .lnm-city-hub-col-title,
.lnm-city-hub-col-today .lnm-city-hub-col-title {
    border-bottom-color: #c41e3a !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

/* ========== Compact weather (middle column) ========== */
.lnm-weather-compact {
    padding: 12px 0 16px;
    margin-bottom: 12px;
}
.lnm-weather-compact-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.lnm-weather-compact-temp {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.lnm-weather-compact-desc {
    margin: 0 0 6px;
    font-size: 14px;
    color: #444;
}
.lnm-weather-compact-feels {
    display: block;
    font-size: 13px;
    color: #666;
}
.lnm-weather-compact-icon img {
    display: block;
}
.lnm-city-hub-col-today .lnm-city-hub-weather-inner {
    overflow-x: visible;
}
.lnm-city-hub-today-links {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.lnm-city-hub-today-links li { margin-bottom: 8px; }
.lnm-city-hub-today-links a {
    color: #c41e3a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lnm-city-hub-today-links a::before { content: "→"; }
.lnm-city-hub-cta {
    display: block;
    width: fit-content;
    margin: 28px auto 0;
    padding: 12px 28px;
    background: #c0392b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background 0.18s, transform 0.15s;
}
.lnm-city-hub-cta:hover {
    background: #a93226;
    color: #fff;
    transform: translateY(-1px);
}

/* Featured, Voices, Faith */
.lnm-city-hub-featured,
.lnm-city-hub-voices,
.lnm-city-hub-faith {
    padding: 24px 20px;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid #e5e5e5;
}
.lnm-city-hub-section-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}
.lnm-city-hub-featured-grid,
.lnm-city-hub-faith-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
@media (max-width: 900px) {
    .lnm-city-hub-featured-grid,
    .lnm-city-hub-faith-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .lnm-city-hub-featured-grid,
    .lnm-city-hub-faith-grid { grid-template-columns: minmax(0, 1fr); }
}
.lnm-city-hub-voices {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .lnm-city-hub-voices { grid-template-columns: 1fr; }
}
.lnm-city-hub-voices-left p,
.lnm-city-hub-voices-right .lnm-city-hub-streets-list {
    margin: 0 0 16px;
    color: #444;
    line-height: 1.6;
}
.lnm-city-hub-btn-cta {
    display: inline-block;
    padding: 12px 20px;
    background: #c41e3a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}
.lnm-city-hub-btn-cta:hover { color: #fff; opacity: 0.9; }

/* ── What's Happening compact list (Today's Headlines sidebar) ── */
.lnm-event-list {
    display: flex;
    flex-direction: column;
}
.lnm-event-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0ede8;
}
.lnm-event-row:last-child { border-bottom: none; }
.lnm-event-row-date {
    width: 36px;
    min-height: 42px;
    border-radius: 5px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 4px 3px;
}
.lnm-event-row-date .lnm-event-month {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-transform: uppercase;
}
.lnm-event-row-date .lnm-event-day {
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}
.lnm-event-row-body {
    flex: 1;
    min-width: 0;
}
.lnm-event-row-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lnm-event-row-sub {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lnm-event-row-thumb {
    width: 56px;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.lnm-event-row-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.lnm-event-row-thumb-grad { width: 100%; height: 100%; }
.lnm-event-row-thumb-grad-0 { background: linear-gradient(135deg, #f0c060, #c07030); }
.lnm-event-row-thumb-grad-1 { background: linear-gradient(135deg, #e08040, #904020); }
.lnm-event-row-thumb-grad-2 { background: linear-gradient(135deg, #a855f7, #6d28d9); }

/* ── What's Happening Tonight panel ─────────────────────────── */
.lnm-city-hub-panel-tonight {
    background: #f5f0ea;
    padding-bottom: 48px;
}
.lnm-city-hub-tonight-intro {
    padding: 36px 24px 24px;
    text-align: center;
    background: linear-gradient(135deg, #2c1810 0%, #5c2d0a 100%);
    margin-bottom: 28px;
}
.lnm-city-hub-tonight-intro h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: Georgia, serif;
}
.lnm-city-hub-tonight-intro p {
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}
.lnm-city-hub-tonight-content {
    padding: 0 20px;
}

/* Tonight tab — vertical event cards (shared with .lnm-event-list-pro) */
.lnm-city-hub-tonight-content .lnm-event-grid--tonight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
    gap: 24px;
}
.lnm-city-hub-tonight-content .lnm-event-list-pro .lnm-event-img--tonight {
    height: 228px;
}
@media (max-width: 900px) {
    .lnm-city-hub-tonight-content .lnm-event-grid--tonight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .lnm-city-hub-tonight-content .lnm-event-grid--tonight {
        grid-template-columns: 1fr;
    }
    .lnm-city-hub-tonight-content .lnm-event-list-pro .lnm-event-img--tonight {
        height: 200px;
    }
}

/* Event card grid */
.lnm-event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tonight tab uses .lnm-event-list-pro (event-cards-pro.css). Legacy .lnm-event-grid kept for any old markup. */
.lnm-event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}
.lnm-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.lnm-event-img {
    position: relative;
    height: 168px;
    overflow: hidden;
    flex-shrink: 0;
}
.lnm-event-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.lnm-event-img-grad { width: 100%; height: 100%; }
.lnm-event-img-grad-0 { background: linear-gradient(135deg, #f0c060 0%, #c07030 100%); }
.lnm-event-img-grad-1 { background: linear-gradient(135deg, #e08040 0%, #904020 100%); }
.lnm-event-img-grad-2 { background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%); }
.lnm-event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 6px;
    padding: 5px 9px;
    text-align: center;
    line-height: 1.1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.lnm-event-month {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}
.lnm-event-day {
    display: block;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}
.lnm-event-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lnm-event-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.lnm-event-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 12px;
}
.lnm-event-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #c0392b;
    text-decoration: none;
    letter-spacing: 0.3px;
    margin-top: auto;
}
.lnm-event-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .lnm-event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .lnm-event-grid { grid-template-columns: 1fr; gap: 16px; }
    .lnm-city-hub-tonight-intro { padding: 24px 16px 18px; }
    .lnm-city-hub-tonight-intro h2 { font-size: 22px; }
}
.lnm-city-hub-hero.lnm-city-hub-hero-explore {
    display: none;
}
.lnm-city-hub-hero-explore {
    padding: 48px 24px 56px;
    text-align: center;
}
.lnm-city-hub-hero-explore h2 {
    font-size: 32px;
    font-weight: 600;
    color: #6b2d2d;
    margin: 0 0 12px;
    font-family: Georgia, serif;
}
.lnm-city-hub-hero-explore .lnm-city-hub-hero-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ========== City page + POI page full-width: hide theme sidebar ==========
 * Body gets .lnm-city-page (city hub) or .lnm-poi-page (POI detail) from
 * Local_News_Minneapolis::city_landing_body_class.
 * Targets common theme patterns; add more selectors if your theme uses different markup.
 */
body.lnm-city-page #secondary,
body.lnm-city-page .sidebar,
body.lnm-city-page #sidebar,
body.lnm-city-page .widget-area,
body.lnm-city-page aside.sidebar,
body.lnm-city-page .site-sidebar,
body.lnm-city-page #sidebar-primary,
body.lnm-city-page #sidebar-secondary,
body.lnm-city-page .td-sidebar,
body.lnm-city-page .td-main-sidebar,
body.lnm-poi-page #secondary,
body.lnm-poi-page .sidebar,
body.lnm-poi-page #sidebar,
body.lnm-poi-page .widget-area,
body.lnm-poi-page aside.sidebar,
body.lnm-poi-page .site-sidebar,
body.lnm-poi-page #sidebar-primary,
body.lnm-poi-page #sidebar-secondary,
body.lnm-poi-page .td-sidebar,
body.lnm-poi-page .td-main-sidebar {
    display: none !important;
}
/* Main column full width */
body.lnm-city-page #primary,
body.lnm-city-page .content-area,
body.lnm-city-page .site-main,
body.lnm-city-page main.site-main,
body.lnm-city-page .td-main-content,
body.lnm-city-page .entry-content .lnm-city-hub,
body.lnm-poi-page #primary,
body.lnm-poi-page .content-area,
body.lnm-poi-page .site-main,
body.lnm-poi-page main.site-main,
body.lnm-poi-page .td-main-content {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.lnm-city-page .site-content,
body.lnm-city-page .content-area .container,
body.lnm-city-page .wrap,
body.lnm-city-page .site-content-inner,
body.lnm-poi-page .site-content,
body.lnm-poi-page .content-area .container,
body.lnm-poi-page .wrap,
body.lnm-poi-page .site-content-inner {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* Prevent flex/grid layouts from reserving sidebar space */
body.lnm-city-page .site-content.has-sidebar,
body.lnm-city-page .has-sidebar .content-area,
body.lnm-poi-page .site-content.has-sidebar,
body.lnm-poi-page .has-sidebar .content-area {
    width: 100% !important;
    flex: 1 1 100% !important;
}
/* Remove entry-content padding/margin so POI detail bleeds edge-to-edge */
body.lnm-poi-page .entry-content,
body.lnm-poi-page .post-content,
body.lnm-poi-page article.post {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
/* City hub block: clear floats and contain so shortcodes inside don't overlap */
body.lnm-city-page .lnm-city-hub {
    clear: both;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}
/* POI detail: clear floats */
body.lnm-poi-page .lnm-poi-detail {
    clear: both;
    overflow-x: hidden;
}

/* ========== Tab buttons: override theme button styles ==========
 * Today's Headlines active tab must stay red with white text; inactive tabs light bg.
 * Themes often style button { background: ... } which breaks the tab row.
 */
.lnm-city-hub-tabs .lnm-city-hub-tab {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.lnm-city-hub-tabs .lnm-city-hub-tab:hover {
    background: #fff !important;
    color: #6b2d2d !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
.lnm-city-hub-tabs .lnm-city-hub-tab.active,
.lnm-city-hub-tabs .lnm-city-hub-tab[aria-selected="true"] {
    background: #c41e3a !important;
    color: #fff !important;
    border-color: #a01830 !important;
    box-shadow: 0 2px 6px rgba(196, 30, 58, 0.35);
}
.lnm-city-hub-tabs .lnm-city-hub-tab:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

/* Headlines panel visible by default; beat theme display rules */
.lnm-city-hub-panel.lnm-city-hub-panel-headlines.active {
    display: block !important;
}
.lnm-city-hub-panel.active:not([hidden]) {
    display: block !important;
}

/* ------------------------------------------------------------------
 * Hero banner carousel (admin Display mode = Carousel, 2+ API images)
 * ------------------------------------------------------------------ */
.lnm-city-hub-hero.lnm-hero-carousel-host {
    position: relative;
    overflow: hidden;
}
.lnm-city-hub-hero.lnm-hero-carousel-host > .lnm-hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.lnm-city-hub-hero.lnm-hero-carousel-host > .hero-overlay,
.lnm-city-hub-hero.lnm-hero-carousel-host > .hero-tagline,
.lnm-city-hub-hero.lnm-hero-carousel-host > .hero-nav,
.lnm-city-hub-hero.lnm-hero-carousel-host > .lnm-city-hub-tabs {
    position: relative;
    z-index: 2;
}
.lnm-hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 900ms ease-in-out;
    will-change: opacity;
}
.lnm-hero-carousel-slide.is-active {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .lnm-hero-carousel-slide {
        transition: none;
    }
}
