/**
 * City Page Styles
 * Time-based theme classes for city pages
 */


/* ===========================================
   CITY PAGE — STRUCTURAL LAYOUT ONLY
   (No visual styling - layout properties only)
   =========================================== */

/* 1. Allow The7 layout wrappers to work normally (standard page width) */
/* Removed full-width forcing - let The7 containers handle standard page width */

/* 2. Ensure content flows normally within The7 containers */
/* Removed nested wrapper overrides - standard The7 behavior */

/* 3. Hero content - respects The7 container constraints */
body.mcp-city-shortcode .mcp-city-hero {
    width: 100%;
    padding: 40px 0; /* Remove horizontal padding - container handles it */
    box-sizing: border-box;
}

/* 5. Button row layout (centered, flex, gap) */
body.mcp-city-shortcode .mcp-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* 6. Magnets layout (centered, flex, wrap) */
body.mcp-city-shortcode .mcp-magnets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

/* 7. Section containers - respect The7 container constraints */
body.mcp-city-shortcode .mcp-city-section {
    width: 100%;
    padding: 20px 0; /* Remove horizontal padding - container handles it */
    box-sizing: border-box;
}

/* 8. Listing cards structure (prevent dark hover overlay) */
body.mcp-city-shortcode .mcp-listing-card {
    position: relative;
}

body.mcp-city-shortcode .mcp-listing-card:hover {
    background-color: inherit; /* prevents inherited dark overlay */
}

/* 9. Mobile responsive layout (structural only) */
@media (max-width: 600px) {
    /* Stack buttons vertically on mobile */
    body.mcp-city-shortcode .mcp-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    body.mcp-city-shortcode .mcp-hero-buttons a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* Magnets maintain centered wrap on mobile */
    body.mcp-city-shortcode .mcp-magnets {
        justify-content: center;
    }
}

/* ========================================
   CITY PAGE LAYOUT - SHORTCODE-BASED SYSTEM
   ======================================== */

/* ONLY HIDE SIDEBAR ELEMENTS - DO NOT HIDE MAIN CONTENT */
body.mcp-city-shortcode #sidebar,
body.mcp-city-shortcode .sidebar,
body.mcp-city-shortcode .right-sidebar,
body.mcp-city-shortcode .sidebar-right,
body.mcp-city-shortcode .sidebar-content,
body.mcp-city-shortcode aside.sidebar,
body.mcp-city-shortcode .widget-area {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
}

/* Allow main content to use constrained width (not full-width) */
/* Updated to respect 1200px container constraints */
body.mcp-city-shortcode #content,
body.mcp-city-shortcode .content,
body.mcp-city-shortcode .main-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* #main will be constrained by the rules below */

/* Legacy support for old body class */
body.mcp-city-fullwidth #sidebar,
body.mcp-city-fullwidth .sidebar,
body.mcp-city-fullwidth .right-sidebar,
body.mcp-city-fullwidth aside.sidebar {
    display: none !important;
}

body.mcp-city-fullwidth #content,
body.mcp-city-fullwidth #main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide The7 title bar and breadcrumbs */
body.mcp-city-shortcode .page-title,
body.mcp-city-shortcode .breadcrumbs,
body.mcp-city-shortcode .fancy-title,
body.mcp-city-shortcode .dt-fancy-title,
body.mcp-city-shortcode .page-title-wrapper,
body.mcp-city-shortcode .page-header,
body.mcp-city-shortcode .entry-header,
body.mcp-city-shortcode .breadcrumb-wrapper,
body.mcp-city-shortcode .dt-breadcrumbs {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any top spacing/padding from The7 */
body.mcp-city-shortcode .main-gradient,
body.mcp-city-shortcode #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.mcp-city-shortcode .content-area,
body.mcp-city-shortcode .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Restore footer to match homepage */
body.mcp-city-shortcode #footer,
body.mcp-city-shortcode .footer,
body.mcp-city-shortcode footer {
    max-width: 100% !important;
    width: 100% !important;
}

body.mcp-city-shortcode #footer .wf-container,
body.mcp-city-shortcode .footer .wf-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
}

/* Ensure footer logo centers properly */
body.mcp-city-shortcode .footer-logo,
body.mcp-city-shortcode .footer-branding {
    text-align: center !important;
    margin: 0 auto !important;
}

/* Legacy class support */
body.mcp-city-fullwidth .page-title,
body.mcp-city-fullwidth .breadcrumbs,
body.mcp-city-fullwidth .page-header {
    display: none !important;
}

body.mcp-city-fullwidth #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Breakpoint-specific overrides - NO sidebar at ANY width */
@media (min-width: 1025px) {
    body.mcp-city-shortcode .sidebar,
    body.mcp-city-shortcode #sidebar,
    body.mcp-city-shortcode aside.sidebar,
    body.mcp-city-fullwidth .sidebar,
    body.mcp-city-fullwidth #sidebar {
        display: none !important;
        width: 0 !important;
    }
    
    body.mcp-city-shortcode #content,
    body.mcp-city-shortcode .content,
    body.mcp-city-fullwidth #content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 1400px) {
    /* At wide breakpoints, The7 tries to show sidebar - KILL IT */
    body.mcp-city-shortcode .sidebar,
    body.mcp-city-shortcode #sidebar,
    body.mcp-city-shortcode aside.sidebar,
    body.mcp-city-shortcode .right-sidebar,
    body.mcp-city-fullwidth .sidebar,
    body.mcp-city-fullwidth #sidebar {
        display: none !important;
        width: 0 !important;
        max-width: 0 !important;
    }
    
    body.mcp-city-shortcode #content,
    body.mcp-city-shortcode .main-content,
    body.mcp-city-fullwidth #content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* City page wrapper - no The7 interference */
.mcp-city-page {
    width: 100%;
    min-height: 50vh;
}

/* Center the city content in its own controlled container */
.mcp-city-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mcp-city-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/* Time-Based Theme Classes */
.mcp-city-wrapper,
.mcp-city-page {
    min-height: 100vh;
    transition: background 0.5s ease;
}

.mcp-theme-morning {
    background: linear-gradient(to bottom, #FFF7E0, #FFECD1);
    color: #333;
}

.mcp-theme-day {
    background: linear-gradient(to bottom, #CDE9FF, #87CEFA);
    color: #333;
}

.mcp-theme-evening {
    background: linear-gradient(to bottom, #FFD1B3, #D68EFF);
    color: #333;
}

.mcp-theme-night {
    background: linear-gradient(to bottom, #0D1B2A, #1B263B);
    color: #EEE;
}

.mcp-theme-night h1,
.mcp-theme-night h2,
.mcp-theme-night h3,
.mcp-theme-night p,
.mcp-theme-night a {
    color: #EEE;
}

/* City Landing Page Styles */
.mcp-city-landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0; /* Remove horizontal padding - container handles it */
}

/* City page shortcode wrapper */
.mcp-city-page {
    padding: 0;
    margin: 0;
}

.mcp-city-page .mcp-city-inner {
    text-align: center;
}

.mcp-city-hero {
    text-align: center;
    padding: 60px 0; /* Remove horizontal padding - container handles it */
    margin-bottom: 40px;
}

/* Wrapper centers both title and underline */
.mcp-city-title-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================
   CITY TITLE — SINGLE SOURCE OF TRUTH
========================================== */

.mcp-city-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px 0;
}

@media (max-width: 768px) {
    .mcp-city-title {
        font-size: 30px;
    }
}

.mcp-city-hero p,
.mcp-city-tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mcp-city-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    align-items: center;
}

.mcp-city-magnets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mcp-city-magnets a {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mcp-theme-night .mcp-city-magnets a {
    background: rgba(255, 255, 255, 0.1);
    color: #EEE;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mcp-city-magnets a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* City content blocks */
.mcp-city-block {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mcp-theme-night .mcp-city-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mcp-block-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.mcp-block-action {
    margin-top: 20px;
}

.mcp-block-action a {
    color: #1e73be;
    text-decoration: none;
    font-weight: 500;
}

.mcp-block-action a:hover {
    text-decoration: underline;
}

/* Legacy class support */
.mcp-city-directory-preview,
.mcp-city-whats-next {
    margin: 40px 0;
    padding: 30px 0; /* Remove horizontal padding - container handles it */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove width restrictions from directory preview section - let The7 control width */
body.mcp-city-shortcode .mcp-directory-preview,
body.mcp-city-shortcode .mcp-directory-preview-inner,
body.mcp-city-shortcode .mcp-whats-next,
body.mcp-city-shortcode .mcp-whats-next-inner {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.mcp-theme-night .mcp-city-directory-preview,
.mcp-theme-night .mcp-city-whats-next {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mcp-city-directory-preview h2,
.mcp-city-whats-next h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mcp-city-dir-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mcp-city-dir-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mcp-theme-night .mcp-city-dir-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mcp-city-dir-item h3 {
    margin-bottom: 10px;
}

.mcp-city-dir-item h3 a {
    color: inherit;
    text-decoration: none;
}

.mcp-city-dir-item h3 a:hover {
    text-decoration: underline;
}

/* Time-of-Day Dot */
.mcp-time-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.35); /* Always visible on light backgrounds */
    box-sizing: border-box; /* Prevent layout shifts */
}

/* Time-based colors */
.mcp-dot-morning {
    background: #facc15; /* warm yellow */
}

.mcp-dot-day {
    background: #38bdf8; /* sky blue */
}

.mcp-dot-evening {
    background: #a855f7; /* sunset purple */
}

.mcp-dot-night {
    background: #1e293b; /* deep navy */
    border: 1px solid rgba(255, 255, 255, 0.5); /* White outline for night */
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); /* Glow effect */
}

/* ========================================
   Time-Based Underline Bar (B1 Style)
   ======================================== */

.mcp-time-underline {
    height: 6px;
    border-radius: 4px;
    margin: 0 auto 20px;
    max-width: 320px;
    width: 100%;
}

/* Color themes */
.mcp-time-morning {
    background: #facc15;
}

.mcp-time-day {
    background: #38bdf8;
}

.mcp-time-evening {
    background: #a855f7;
}

.mcp-time-night {
    background: #1e293b;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mcp-time-underline {
        max-width: 280px;
    }

    .mcp-city-hero {
        padding: 40px 20px;
    }

    .mcp-city-hero p {
        font-size: 1rem;
    }

    .mcp-city-hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .mcp-city-hero-actions .mcp-btn--primary,
    .mcp-city-hero-actions .mcp-btn--secondary {
        width: 100%;
    }

    .mcp-city-dir-list {
        grid-template-columns: 1fr;
    }
    
    .mcp-city-magnets {
        gap: 8px;
    }
    
    .mcp-city-magnets a {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ----------------------------------------------------------
   FORCE FULL-WIDTH, CENTERED CITY PAGE
   (Overrides The7 containers and sidebar layout ghosts)
---------------------------------------------------------- */

/* Allow The7 containers to work normally - standard page width constraints */
/* Removed full-width forcing rules - The7 containers now handle page width */

/* City page content wrapper - no width restrictions, let The7 control width */
body.mcp-city-shortcode .mcp-city-layout-shell,
body.mcp-city-shortcode .mcp-city-layout-shell.mcp-city-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override 1000px restriction on City Page (page-id-49) */
body.page-id-49 .mcp-city-layout-shell.mcp-city-page {
    max-width: none !important;
    width: 100% !important;
}

/* ==========================================================
   CITY PAGE DEBUG MODE (Optional - uncomment to debug layout)
   Outlines every container in red so we can find the offender
========================================================== */
/* 
body.mcp-city-shortcode * {
    outline: 1px solid rgba(255, 0, 0, 0.35) !important;
}
*/

/* ==========================================================
   NOTE: Old responsive upgrade styles removed
   Using structural layout system above instead
   ========================================================== */

/* ===========================================
 * CITY PAGE LAYOUT FIXES (NO SIDEBAR / NO BG)
 * ===========================================
 * These rules are meant to run AFTER The7 CSS
 * and earlier CityPulse styles.
 */

/* 1) Kill sidebar spacing on City pages */
body.mcp-city-page #main,
body.mcp-city-page #main .wf-wrap,
body.mcp-city-page #main .wf-container-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.mcp-city-page .content {
    width: 100% !important;
    float: none !important;
}

body.mcp-city-page .sidebar,
body.mcp-city-page .right-sidebar,
body.mcp-city-page .left-sidebar {
    display: none !important;
    visibility: hidden !important;
}

/* 2) Remove special background for now – let theme control it */
body.mcp-city-page .mcp-city-wrapper,
body.mcp-city-page .mcp-city-container,
body.mcp-city-page .mcp-city-landing,
body.mcp-city-page .mcp-city-hero {
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep the hero content centered and readable */
body.mcp-city-page .mcp-city-landing {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0; /* Remove horizontal padding - container handles it */
}

/* 3) Magnet links – simple pill buttons */
body.mcp-city-page .mcp-city-magnets {
    margin-top: 10px;
}

body.mcp-city-page .mcp-city-magnets a {
    display: inline-block;
    margin: 4px 6px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    background: #eef7ff;
    border-radius: 6px;
    border: 1px solid #d0e3ff;
    white-space: nowrap;
}

body.mcp-city-page .mcp-city-magnets a:hover {
    background: #d8e8ff;
    border-color: #b7d2ff;
}

/* ===========================================
 * FORCE FULL-WIDTH CITY LAYOUT (OVERRIDES)
 * =========================================== */

/* Kill the blue gradient backgrounds entirely */
body.mcp-city-page .mcp-city-landing,
body.mcp-city-page .mcp-city-wrapper,
body.mcp-city-page .mcp-city-container,
body.mcp-city-page .mcp-city-hero {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Delete the fixed blue panel that wraps EVERYTHING */
body.mcp-city-page .mcp-city-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill the inner centered container */
body.mcp-city-page .mcp-city-container,
body.mcp-city-page .mcp-city-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: keep hero content centered, but no background */
body.mcp-city-page .mcp-city-landing {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0; /* Remove horizontal padding - container handles it */
}

/* Ensure the white tiles span full width */
body.mcp-city-page section {
    width: 100% !important;
}

/* ===========================================
   MAGNET BUTTONS – CLEAN MINIMAL STYLE
   =========================================== */

body.mcp-city-page .mcp-city-magnets {
    margin-top: 20px;
    text-align: center;
}

body.mcp-city-page .mcp-city-magnets a {
    display: inline-block;
    margin: 6px 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    background: #eef6ff;
    border: 1px solid #cfdfff;
    border-radius: 8px;
    color: #1a3a6d;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.mcp-city-page .mcp-city-magnets a:hover {
    background: #d9eaff;
    border-color: #b3cfff;
    color: #0c2b5a;
}

/* ===========================================
 * MAGNET PAGES (Directory, Events, etc.)
 * ===========================================
 */

body.mcp-city-page .mcp-magnet-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mcp-magnet-header {
    margin-bottom: 24px;
    text-align: left;
}

.mcp-magnet-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin: 0 0 4px;
    opacity: 0.7;
}

.mcp-magnet-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: #0073aa;
}

@media (max-width: 768px) {
    .mcp-magnet-title {
        font-size: 22px;
    }
}

/* Tighten magnet header vertical rhythm */
.mcp-magnet-header {
    margin-bottom: 20px;
}

.mcp-magnet-title {
    margin: 0 0 6px 0;
}

/* Inline header row layout */
.mcp-magnet-city-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}

.mcp-magnet-link {
    text-decoration: none;
    font-weight: 600;
    color: #0073aa;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mcp-magnet-link:hover {
    text-decoration: underline;
}

.mcp-separator {
    color: #bbb;
}

.mcp-change-city-pending {
    color: #666;
}

/* Mobile tightening */
@media (max-width: 768px) {
    .mcp-magnet-header {
        margin-bottom: 16px;
    }

    .mcp-magnet-city-context {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

.mcp-magnet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mcp-btn-tertiary {
    background: transparent;
    border: 1px solid #d0d7e2;
}

.mcp-btn-tertiary:hover {
    background: #f5f7fb;
}

.mcp-magnet-body {
    margin-top: 24px;
}

/* ==========================================================
   Magnet CTA Cards
   ========================================================== */

.mcp-magnet-cta-card {
    padding: 28px 24px;
    border-radius: 14px;
    margin: 28px 0;
}

.mcp-magnet-cta-empty {
    background: #eef6ff; /* subtle light blue */
    border: 1px solid #d8e9ff;
}

.mcp-magnet-cta-engage {
    background: transparent;
    border-top: 1px solid #e3e7ec;
    padding-top: 24px;
}

.mcp-magnet-cta-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mcp-magnet-cta-card p {
    color: #5c6b7a;
    margin-bottom: 16px;
}

/* tighten action spacing */
.mcp-magnet-cta-card .mcp-section-action-bar {
    margin-top: 8px;
}

/* mobile refinement */
@media (max-width: 768px) {
    .mcp-magnet-cta-card {
        padding: 22px 18px;
    }

    .mcp-magnet-cta-card h3 {
        font-size: 20px;
    }
}

/* Ensure Directory page respects The7 container constraints */
/* This ensures the shortcode content stays within The7's normal page width */
.mcp-directory-page-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure The7 containers constrain Directory page content */
/* Force normal container width on Directory page (not full-width) */
/* Target all The7 container classes that control page width */
body.mcp-directory-page .wf-container,
body.mcp-directory-page .wf-container-main,
body.mcp-directory-page .wf-wrap,
body.mcp-directory-page .content-area,
body.mcp-directory-page #main .wf-container-main,
body.mcp-directory-page #main .wf-wrap,
body.mcp-directory-page #main .wf-container,
body.mcp-directory-page .content .wf-container-main,
body.mcp-directory-page .content .wf-wrap {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Ensure #main itself respects container constraints */
body.mcp-directory-page #main {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   MAGNET PAGES - Container Width Constraints
   ============================================
   Apply same container constraints to all magnet pages:
   Events, Deals, Jobs & Gigs, Pro Quotes, Pets, Lost & Found,
   Fundraisers, For Sale, Sports, Pulse Stories, Best Of, City Polls, AutoMatic
   ============================================ */

/* Target all The7 container classes for magnet pages */
body.mcp-magnet-page .wf-container,
body.mcp-magnet-page .wf-container-main,
body.mcp-magnet-page .wf-wrap,
body.mcp-magnet-page .content-area,
body.mcp-magnet-page #main .wf-container-main,
body.mcp-magnet-page #main .wf-wrap,
body.mcp-magnet-page #main .wf-container,
body.mcp-magnet-page .content .wf-container-main,
body.mcp-magnet-page .content .wf-wrap {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Ensure #main itself respects container constraints */
body.mcp-magnet-page #main {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure magnet body content respects container */
body.mcp-magnet-page .mcp-magnet-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   CITY PAGE - Container Width Constraints
   ============================================
   Apply same container constraints to city page (/city/?city=slug)
   Match Directory and Magnet pages: 1200px max-width
   ============================================ */

/* Target all The7 container classes for city page */
body.mcp-city-shortcode .wf-container,
body.mcp-city-shortcode .wf-container-main,
body.mcp-city-shortcode .wf-wrap,
body.mcp-city-shortcode .content-area,
body.mcp-city-shortcode #main .wf-container-main,
body.mcp-city-shortcode #main .wf-wrap,
body.mcp-city-shortcode #main .wf-container,
body.mcp-city-shortcode .content .wf-container-main,
body.mcp-city-shortcode .content .wf-wrap {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* Ensure #main itself respects container constraints */
body.mcp-city-shortcode #main {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure shortcode content respects container */
body.mcp-directory-page .mcp-directory-page-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure magnet header on Directory page respects container */
body.mcp-directory-page .mcp-magnet-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mcp-magnet-empty,
.mcp-magnet-placeholder,
.mcp-magnet-intro {
    margin-bottom: 16px;
    font-size: 14px;
}

.mcp-magnet-cta-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mcp-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mcp-directory-card {
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    padding: 14px 16px;
    background: #ffffff;
}

.mcp-directory-title {
    font-size: 16px;
    margin: 0 0 8px;
}

.mcp-directory-title a {
    text-decoration: none;
}

.mcp-directory-title a:hover {
    text-decoration: underline;
}

.mcp-directory-excerpt {
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

/* ===========================================
   MAGNET HEADER STYLES
   =========================================== */

.mcp-magnet-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5ee;
}

.mcp-magnet-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

.mcp-magnet-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===========================================
   MAGNET HEADER BUTTONS - UNIFIED STYLING
   =========================================== */

/* Ensure header button row aligns perfectly */
.mcp-magnet-header-buttons {
    display: flex;
    align-items: center;           /* Vertical alignment */
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Normalize all magnet header buttons */
.mcp-magnet-header-buttons .mcp-btn,
.mcp-magnet-header-buttons .mcp-btn-light {
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

/* "Back to My City" light button */
.mcp-magnet-header-buttons .mcp-btn-light {
    background: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
}

.mcp-magnet-header-buttons .mcp-btn-light:hover {
    background: #e5e5e5;
}

/* Mobile: full width + perfectly stacked */
@media (max-width: 600px) {
    .mcp-magnet-header-buttons .mcp-btn,
    .mcp-magnet-header-buttons .mcp-btn-light {
        width: 100%;       /* Mobile full width buttons */
    }
}

/* Legacy support for old class names (backward compatibility) */
.mcp-magnet-actions .mcp-btn--primary,
.mcp-magnet-actions .mcp-btn--secondary,
.mcp-magnet-actions .mcp-btn-link {
    align-items: center;
    justify-content: center;
}

.mcp-magnet-actions .mcp-btn-link {
    height: auto;
}

/* ===========================================
   INLINE MAGNET BUTTONS (PILL STYLE)
   =========================================== */

/* Inline magnet buttons under the city hero */
.mcp-city-magnets-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto;
    justify-content: center;
}

/* FIX: Make city page pill text visible - match "Back to My City" button style */
.mcp-magnet-pill {
    padding: 8px 18px;
    border-radius: 9999px;
    text-decoration: none;
    transition: 0.25s ease;
    font-size: 15px;
    line-height: 1;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

/* Hover state */
.mcp-magnet-pill:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* City page header tightening — title, tagline, icon grid */
body.mcp-city-page .mcp-city-hero {
    padding-top: 18px;
    padding-bottom: 20px;
}

/* Breathing room between tagline and icon grid (mobile-first) */
body.mcp-city-page .mcp-city-subtitle {
    font-size: 13px;
    color: #6f7f8f;
    margin-bottom: 10px;
}

body.mcp-city-page .mcp-city-header {
    padding-top: 16px;
    padding-bottom: 10px;
}

/* City page icon grid — uniform Yelp-style, icon over label */
.mcp-city-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.mcp-city-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--mcp-blue-dark, #0b3a63);
    text-decoration: none;
}

.mcp-city-icon i {
    font-size: 22px;
    margin-bottom: 4px;
}

.mcp-city-icon span {
    font-size: 12px;
    line-height: 1.2;
    max-width: 72px;
    text-align: center;
}

@media (min-width: 1024px) {
    body.mcp-city-page .mcp-city-header {
        padding-top: 14px;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    body.mcp-city-page .mcp-city-subtitle {
        font-size: 14px;
        margin-top: 0;
    }

    .mcp-city-icon-grid {
        margin-top: 6px;
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }

    .mcp-city-icon i {
        font-size: 32px;
    }
}

@media (max-width: 1023px) {
    body.mcp-city-page .mcp-city-hero {
        padding-top: 12px;
        padding-bottom: 10px;
    }

    body.mcp-city-page .mcp-city-header {
        padding-top: 10px;
        padding-bottom: 6px;
        margin-bottom: 4px;
    }

    body.mcp-city-page .mcp-city-subtitle {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .mcp-city-icon-grid {
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .mcp-city-icon-grid {
        margin-top: 14px;
    }

    body.mcp-city-page .mcp-city-section:first-of-type {
        margin-top: 6px;
    }
}

/* --- City Icon Grid Safeguards (Mobile Consistency) --- */

/* Prevent mobile browsers from treating icon grid as flowing text */
.mcp-city-icon-grid {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Lock icon tiles as UI blocks, not inline content */
.mcp-city-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Stabilize icon font rendering */
.mcp-city-icon i {
  display: block;
  line-height: 1;
}

/* Prevent label reflow or wrapping during font scaling */
.mcp-city-icon span {
  display: block;
  white-space: nowrap;
}

/* Defensive reinforcement at mobile widths */
@media (max-width: 768px) {
  .mcp-city-icon-grid {
    display: grid !important;
  }
}

/* City More page — single-column nav list */
.mcp-city-more {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.mcp-city-more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    text-decoration: none;
    color: var(--mcp-blue-dark, #0b3a63);
}

.mcp-city-more-item i {
    font-size: 20px;
}

.mcp-city-more-item span {
    font-size: 15px;
    font-weight: 500;
}

/* Section spacing — bring feed below hero, then consistent */
body.mcp-city-page .mcp-city-section {
    margin-top: 24px;
}

body.mcp-city-page .mcp-city-section:first-of-type {
    margin-top: 16px;
}

body.mcp-city-page .mcp-city-directory-header,
body.mcp-city-page .mcp-city-section-title {
    margin-bottom: 10px;
}

/* ==========================================
   MAGNET SECTION TITLES
========================================== */

body.mcp-city-page .mcp-section-title,
body.mcp-city-page .mcp-section-title a {
    color: #0073aa;
}

body.mcp-city-page .mcp-section-title a:hover {
    color: #005a87;
}

.mcp-section {
    margin-top: 24px;
}

.mcp-section-header {
    margin-bottom: 10px;
}

/* ============================================
   MCP Button System (Magnet Header Only)
   ============================================
   Unified button component for magnet header actions.
   Ensures perfect alignment and consistency across all magnet pages.
   ============================================ */

/* Layout for the header actions row */
.mcp-magnet-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Base button component */
.mcp-magnet-header-actions .mcp-btn {
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
    margin: 0;
}

/* Mobile: Full-width buttons */
@media (max-width: 480px) {
    .mcp-magnet-header-actions .mcp-btn {
        width: 100%;
    }
}

/* ===========================================
   PULSE TAB & PANEL (City Page Only)
   =========================================== */

/* Pulse Tab - Vertical Edge Tab */
body.mcp-city-shortcode .mcp-pulse-tab {
    position: fixed;
    right: 0;
    top: 120px;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: #000;
    background-image: url('../images/mcp-icon.png');
    background-size: 35px 35px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
    box-shadow: none;
    user-select: none;
    transition: opacity 0.2s ease;
    transform: none !important;
}

body.mcp-city-shortcode .mcp-pulse-tab:hover {
    background: #000;
    background-image: url('../images/mcp-icon.png');
    background-size: 35px 35px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
}

/* Mobile: Adjust tab size and position */
@media (max-width: 767px) {
    body.mcp-city-shortcode .mcp-pulse-tab {
        width: 40px;
        height: 40px;
        top: 100px;
        border-radius: 0;
        background-size: 26px 26px;
    }
    
}

/* Pulse Overlay */
body.mcp-city-shortcode .mcp-pulse-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

body.mcp-city-shortcode .mcp-pulse-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Pulse Panel - Right Edge Anchored */
body.mcp-city-shortcode .mcp-pulse-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 420px;
    height: 100vh;
    background: #000;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body.mcp-city-shortcode .mcp-pulse-panel.is-open {
    transform: translateX(0);
}

/* Close Button - Red Circular (Gallery Style) - Hidden */
body.mcp-city-shortcode .mcp-pulse-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    background: #d63638;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-weight: 400;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.mcp-city-shortcode .mcp-pulse-close:hover {
    background: #b32d2e;
    transform: scale(1.1);
}

body.mcp-city-shortcode .mcp-pulse-close:active {
    transform: scale(0.95);
}

/* Panel Content */
body.mcp-city-shortcode .mcp-pulse-content {
    flex: 1;
    padding: 24px;
    padding-top: 48px;
}

/* Pulse Header */
body.mcp-city-shortcode .mcp-pulse-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.mcp-city-shortcode .mcp-pulse-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

body.mcp-city-shortcode .mcp-pulse-subheadline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* Pulse Ad Section (Today's Sponsor) */
body.mcp-city-shortcode .mcp-pulse-ad {
    background: linear-gradient(
        180deg,
        #fff9e6 0%,
        #f5f7fa 40%,
        #eef1f5 100%
    );
    border: none;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 24px 24px 0 24px;
    padding-bottom: 20px;
    margin-bottom: 32px;
    text-align: left;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-ad h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-align: left;
    margin: 0 0 12px 0;
    padding: 0 16px 12px;
}

body.mcp-city-shortcode .mcp-pulse-listings {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
}

body.mcp-city-shortcode .mcp-pulse-listings > .mcp-dashboard-listing-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
    border-radius: 10px;
}

body.mcp-city-shortcode .mcp-pulse-ad p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-sponsor-details {
    margin: 12px 0 20px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

body.mcp-city-shortcode .mcp-pulse-sponsor-details small {
    display: block;
    margin-bottom: 4px;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

body.mcp-city-shortcode .mcp-pulse-info-link {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 14px;
    text-align: center;
    transition: color 0.2s ease;
}

body.mcp-city-shortcode .mcp-pulse-info-link:hover {
    color: #fff;
}

/* Pulse Drawings Section */
body.mcp-city-shortcode .mcp-pulse-drawings {
    margin-bottom: 32px;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-drawings h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-drawings p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-drawings ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-drawings li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-drawings .mcp-muted {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 0;
}

/* Earn More Chances Section */
body.mcp-city-shortcode .mcp-pulse-earn {
    margin-bottom: 32px;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-earn h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-earn ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-earn li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-earn p {
    font-size: 14px;
    color: #fff;
    margin: 12px 0 0 0;
}

body.mcp-city-shortcode .mcp-pulse-earn strong {
    color: #f6363b;
}

/* Why the Pulse Exists Section */
body.mcp-city-shortcode .mcp-pulse-why {
    margin-bottom: 32px;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-why h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-why p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.mcp-city-shortcode .mcp-pulse-why li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Fair & Transparent Section */
body.mcp-city-shortcode .mcp-pulse-fair {
    margin-bottom: 32px;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-fair h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-fair ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.mcp-city-shortcode .mcp-pulse-fair li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Community Impact Section */
body.mcp-city-shortcode .mcp-pulse-impact {
    margin-bottom: 32px;
    overflow-x: hidden;
    word-wrap: break-word;
}

body.mcp-city-shortcode .mcp-pulse-impact h4 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

body.mcp-city-shortcode .mcp-pulse-impact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* Closing CTA Section */
body.mcp-city-shortcode .mcp-pulse-cta {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow-x: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
    margin-bottom: 0;
}

body.mcp-city-shortcode .mcp-pulse-cta p {
    font-size: 15px;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

body.mcp-city-shortcode .mcp-pulse-cta strong {
    color: #f6363b;
}

/* ===========================================
   DIRECTORY PAGE - HEADER & FILTERS
   =========================================== */

/* Center Directory header content */
.mcp-directory-header-content {
    text-align: center;
}

/* Directory Title with Icon */
.mcp-directory-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.mcp-directory-title-icon {
    color: #f6363b;
    font-size: 0.9em;
    line-height: 1;
}

/* Search & Filters Button Styling */
.mcp-directory-filters-toggle-wrapper {
    margin: 20px 0;
}

/* ===========================================
   DIRECTORY PREVIEW - MINI CARDS
   =========================================== */

.mcp-directory-preview-card--mini {
    padding: 16px;
    min-height: auto;
}

.mcp-directory-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mcp-directory-preview-logo {
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
}

.mcp-directory-preview-title {
    font-size: 1rem;
    margin: 0;
}

.mcp-directory-preview-title a {
    text-decoration: none;
}

/* Clickable card link wrapper */
.mcp-directory-preview-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mcp-directory-preview-card-link:hover .mcp-directory-preview-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Directory preview actions spacing */
.mcp-directory-preview-actions {
    margin-bottom: 40px;
}

/* City Directory Header */
.mcp-city-directory-header {
    text-align: center;
    margin-bottom: 20px;
}

.mcp-city-directory-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 600;
}

.mcp-directory-title-icon {
    color: #f6363b;
    font-size: 1em;
}

.mcp-city-directory-cta-row {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 40px;
}

/* Mobile: Adjust panel */
@media (max-width: 767px) {
    body.mcp-city-shortcode .mcp-pulse-panel {
        width: 75%;
        right: -75%;
        max-width: none;
        height: 100vh;
        top: 0;
        left: auto;
        transform: none;
    }
    body.mcp-city-shortcode .mcp-pulse-panel.is-open {
        right: 0;
    }
    
    body.mcp-city-shortcode .mcp-pulse-content {
        padding: 20px;
        padding-top: 44px;
    }
    
    body.mcp-city-shortcode .mcp-pulse-close {
        top: 10px;
        right: 10px;
    }
}

/* ===========================================
   PRO QUOTES MAGNET STYLES
   =========================================== */

.mcp-proquotes-hero {
    margin: 30px 0;
    padding: 30px 0;
    text-align: center;
}

.mcp-proquotes-hero h1 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.mcp-proquotes-hero p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.mcp-proquotes-how {
    margin: 40px 0;
    padding: 30px 0;
}

.mcp-proquotes-how h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mcp-proquotes-how ol {
    margin: 0;
    padding-left: 30px;
    max-width: 600px;
}

.mcp-proquotes-how li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.mcp-proquotes-why {
    margin: 40px 0;
    padding: 30px 0;
    background: #f9fafb;
    border-radius: 8px;
    padding: 30px;
}

.mcp-proquotes-why h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mcp-proquotes-why p {
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 700px;
}

.mcp-proquotes-form {
    margin: 40px 0;
    padding: 30px 0;
}

.mcp-proquotes-list {
    margin: 40px 0;
    padding: 30px 0;
}

.mcp-proquotes-list h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mcp-proquotes-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mcp-proquotes-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.mcp-proquotes-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.mcp-proquotes-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .mcp-proquotes-hero h1 {
        font-size: 24px;
    }
    
    .mcp-proquotes-hero p {
        font-size: 16px;
    }
    
    .mcp-proquotes-how,
    .mcp-proquotes-why,
    .mcp-proquotes-form,
    .mcp-proquotes-list {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .mcp-proquotes-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mcp-proquotes-why {
        padding: 20px;
    }
}

/* Pulse Tab — Mini Card Text Fix (Override Dark Theme) */
body.mcp-city-shortcode .mcp-pulse-ad .mcp-dashboard-listing-card.mcp-card--mini {
    color: #1a1a1a;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-card-title,
body.mcp-city-shortcode .mcp-pulse-ad .mcp-card-mini-desc,
body.mcp-city-shortcode .mcp-pulse-ad .mcp-card-mini-city,
body.mcp-city-shortcode .mcp-pulse-ad .mcp-card-mini-link {
    color: #1a1a1a;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-dashboard-listing-card.mcp-card--mini,
body.mcp-city-shortcode .mcp-pulse-ad .mcp-dashboard-listing-card.mcp-card--mini * {
    text-decoration: none;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-dashboard-listing-card.mcp-card--mini {
    cursor: pointer;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-card-mini-link {
    color: #444;
}

body.mcp-city-shortcode .mcp-pulse-ad .mcp-dashboard-listing-card.mcp-card--mini:hover .mcp-card-mini-link {
    color: #000;
}