/* Step 3 Directory Form Polish Styles */

/* ============================================
   Level Color System
   ============================================ */
:root {
    --mcp-free-gray: #9CA3AF;
    --mcp-featured-blue: #1C75BC;
    --mcp-featuredplus-red: #D62828;
    --mcp-enterprise-gold: #D4AF37;
    
    /* Legacy variable names for compatibility */
    --free: var(--mcp-free-gray);
    --featured: var(--mcp-featured-blue);
    --featured-plus: var(--mcp-featuredplus-red);
    --enterprise: var(--mcp-enterprise-gold);
}

/* ============================================
   Upgrade Buttons (Option 1 Styling)
   ============================================ */
.mcp-level-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    transition: all 0.2s ease;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
}

/* --- Base Outline Styles --- */
.mcp-level-btn.level-free {
    border-color: var(--mcp-free-gray);
    color: var(--mcp-free-gray);
}

.mcp-level-btn.level-featured {
    border-color: var(--mcp-featured-blue);
    color: var(--mcp-featured-blue);
}

.mcp-level-btn.level-featuredplus {
    border-color: var(--mcp-featuredplus-red);
    color: var(--mcp-featuredplus-red);
}

.mcp-level-btn.level-enterprise {
    border-color: var(--mcp-enterprise-gold);
    color: var(--mcp-enterprise-gold);
}

/* --- Hover tint --- */
.mcp-level-btn.level-free:hover {
    background: rgba(156, 163, 175, 0.1);
}

.mcp-level-btn.level-featured:hover {
    background: rgba(28, 117, 188, 0.1);
}

.mcp-level-btn.level-featuredplus:hover {
    background: rgba(214, 40, 40, 0.1);
}

.mcp-level-btn.level-enterprise:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* --- CURRENT LEVEL (SOLID STYLE) --- */
.mcp-level-btn.current-level.level-free {
    background: var(--mcp-free-gray);
    color: white;
    border-color: var(--mcp-free-gray);
}

.mcp-level-btn.current-level.level-featured {
    background: var(--mcp-featured-blue);
    color: white;
    border-color: var(--mcp-featured-blue);
}

.mcp-level-btn.current-level.level-featuredplus {
    background: var(--mcp-featuredplus-red);
    color: white;
    border-color: var(--mcp-featuredplus-red);
}

.mcp-level-btn.current-level.level-enterprise {
    background: var(--mcp-enterprise-gold);
    color: white;
    border-color: var(--mcp-enterprise-gold);
}

/* --- Focus/Active --- */
.mcp-level-btn:focus,
.mcp-level-btn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    border-width: 2px;
}

/* ============================================
   Compare Table Header Colors
   ============================================ */
.mcp-compare-table th.mcp-plan-col-free {
    color: var(--mcp-free-gray);
}

.mcp-compare-table th.mcp-plan-col-featured {
    color: var(--mcp-featured-blue);
}

.mcp-compare-table th.mcp-plan-col-featuredplus {
    color: var(--mcp-featuredplus-red);
}

.mcp-compare-table th.mcp-plan-col-enterprise {
    color: var(--mcp-enterprise-gold);
}

.mcp-compare-table th {
    font-weight: 700;
    padding: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* ============================================
   Level Badges
   ============================================ */
.mcp-level-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1.2;
    background: #f1f3f5;
    color: #555;
}

.mcp-level-badge.featured,
.mcp-level-badge.featured_plus,
.mcp-level-badge.featuredplus,
.mcp-level-badge.enterprise,
.mcp-level-badge.mcp-level-enterprise {
    background: #f1f3f5;
    color: #555;
}

.mcp-level-badge.featured {
    background: #e7f1ff;
    color: #2b6cb0;
}

.mcp-level-badge.featured_plus,
.mcp-level-badge.featuredplus {
    background: #fdecec;
    color: #c53030;
}

.mcp-level-badge.enterprise,
.mcp-level-badge.mcp-level-enterprise {
    background: #fff6e5;
    color: #b7791f;
}

/* ============================================
   Step 2: Choose Level / Upgrade Listing Page
   ============================================ */
.mcp-level-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.mcp-level-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.mcp-level-header h2 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.mcp-level-header p {
    color: #777;
    margin-bottom: 1.25rem;
}

/* Color tokens for level pages */
:root {
    --mcp-level-free: #7d7d7d;
    --mcp-level-featured: #276ef1;
    --mcp-level-featured-plus: #d93025;
    --mcp-level-enterprise: #b8860b;
    /* New level colors for upgrade page */
    --free: #777;
    --featured: #1C6DD0;
    --featured-plus: #D00000;
    --enterprise: #B8860B;
}

/* Plan cards container */
.mcp-level-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mcp-plan-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e2e2;
    padding: 1.25rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s ease;
}

.mcp-plan-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.mcp-plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mcp-plan-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.mcp-plan-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e5f1ff;
    color: #0046a5;
    font-weight: 500;
}

.mcp-plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.mcp-plan-price {
    font-size: 1.3rem;
    font-weight: 600;
}

.mcp-plan-price-meta {
    font-size: 0.85rem;
    color: #777;
}

.mcp-plan-highlights {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #555;
    list-style: disc;
}

.mcp-plan-highlights li {
    margin-bottom: 0.25rem;
}

.mcp-plan-cta {
    display: flex;
    justify-content: flex-start;
}

.mcp-plan-btn {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mcp-plan-btn-primary {
    color: #fff;
    background: #333;
}

.mcp-plan-btn-primary:hover {
    background: #222;
}

.mcp-plan-btn-disabled {
    background: #ddd;
    color: #888;
    cursor: not-allowed;
}

/* Level color accents */
.mcp-plan-free .mcp-plan-name {
    color: var(--mcp-level-free);
}

.mcp-plan-featured .mcp-plan-name {
    color: var(--mcp-level-featured);
}

.mcp-plan-featured_plus .mcp-plan-name,
.mcp-plan-featuredplus .mcp-plan-name {
    color: var(--mcp-level-featured-plus);
}

.mcp-plan-enterprise .mcp-plan-name {
    color: var(--mcp-level-enterprise);
}

/* Selected / current state */
.mcp-plan-current {
    border-width: 2px;
    border-color: var(--mcp-level-featured);
}

.mcp-plan-disabled {
    opacity: 0.6;
}

/* Inline compare section */
.mcp-inline-compare {
    border-top: 1px solid #ececec;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.mcp-compare-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.mcp-compare-toggle:hover {
    background: #f0f0f0;
}

.mcp-compare-chevron {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.mcp-compare-panel {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #ececec;
    padding: 0.75rem;
    background: #fff;
    overflow-x: auto;
}

.mcp-compare-grid {
    min-width: 480px;
    font-size: 0.85rem;
}

.mcp-compare-header-row,
.mcp-compare-row {
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr);
    gap: 0.25rem;
    align-items: center;
    padding: 0.25rem 0.1rem;
}

.mcp-compare-header-row {
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.mcp-compare-row:nth-child(odd) {
    background: #fafafa;
}

.mcp-compare-col-feature {
    padding-right: 0.5rem;
}

.mcp-compare-col-plan {
    text-align: center;
}

.mcp-compare-col-plan.mcp-plan-free {
    color: var(--mcp-level-free);
    font-weight: 600;
}

.mcp-compare-col-plan.mcp-plan-featured {
    color: var(--mcp-level-featured);
    font-weight: 600;
}

.mcp-compare-col-plan.mcp-plan-featured_plus {
    color: var(--mcp-level-featured-plus);
    font-weight: 600;
}

.mcp-compare-col-plan.mcp-plan-enterprise {
    color: var(--mcp-level-enterprise);
    font-weight: 600;
}

/* Desktop: cards in a row */
@media (min-width: 768px) {
    .mcp-level-cards {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mcp-plan-card {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .mcp-plan-card {
        flex: 1 1 calc(25% - 0.75rem);
    }
}

/* ============================================
   Upgrade Page: Card Layout + Level Selectors
   ============================================ */
.mcp-upgrade-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.mcp-upgrade-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mcp-upgrade-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 700;
}

.mcp-current-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 0;
}

.mcp-current-label {
    color: #666;
}

.mcp-current-plan {
    font-weight: 600;
    color: #222;
}

.mcp-level-selector-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.mcp-level-btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

/* Outline states */
.mcp-level-free {
    border-color: var(--free);
    color: var(--free);
}

.mcp-level-featured {
    border-color: var(--featured);
    color: var(--featured);
}

.mcp-level-featured-plus {
    border-color: var(--featured-plus);
    color: var(--featured-plus);
}

.mcp-level-enterprise {
    border-color: var(--enterprise);
    color: var(--enterprise);
}

/* Hover states */
.mcp-level-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Solid when selected */
.mcp-level-btn.mcp-selected {
    color: white !important;
}

.mcp-level-free.mcp-selected {
    background: var(--free);
    border-color: var(--free);
}

.mcp-level-featured.mcp-selected {
    background: var(--featured);
    border-color: var(--featured);
}

.mcp-level-featured-plus.mcp-selected {
    background: var(--featured-plus);
    border-color: var(--featured-plus);
}

.mcp-level-enterprise.mcp-selected {
    background: var(--enterprise);
    border-color: var(--enterprise);
}

/* Plan Cards Grid - Mobile First */
.mcp-plan-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mcp-choose-level-comparison-link {
    text-align: center;
    margin: 0 0 1.5rem;
}

.mcp-choose-level-comparison-link a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1C75BC;
    text-decoration: none;
}

.mcp-choose-level-comparison-link a:hover {
    text-decoration: underline;
}

.mcp-plan-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mcp-plan-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Plan-specific border colors */
.mcp-plan-card.mcp-level-free {
    border-color: var(--mcp-free-gray);
}

.mcp-plan-card.mcp-level-featured {
    border-color: var(--mcp-featured-blue);
}

.mcp-plan-card.mcp-level-featured-plus {
    border-color: var(--mcp-featuredplus-red);
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(214, 40, 40, 0.15);
}

.mcp-plan-card.mcp-level-enterprise {
    border-color: var(--mcp-enterprise-gold);
}

.mcp-plan-card.mcp-level-featured-plus:hover {
    box-shadow: 0 6px 24px rgba(214, 40, 40, 0.2);
}

/* Current Plan Badge - Gray (not green) */
.mcp-current-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6b7280;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcp-current-plan-card {
    border-color: var(--mcp-free-gray);
    border-width: 2px;
}

/* Popular Badge (Featured Plus) */
.mcp-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mcp-featuredplus-red);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(214, 40, 40, 0.3);
    white-space: nowrap;
}

.mcp-featured-plus-highlight {
    border-color: var(--mcp-featuredplus-red);
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(214, 40, 40, 0.15);
}

.mcp-featured-plus-highlight:hover {
    box-shadow: 0 6px 24px rgba(214, 40, 40, 0.2);
}

.mcp-card-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.mcp-card-header h2 {
    font-size: 1.75rem;
    margin: 0 0 0.75rem 0;
    color: #222;
    font-weight: 700;
}

.mcp-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.mcp-price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.mcp-price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.mcp-card-features {
    margin-bottom: 1.5rem;
    min-height: 120px;
    flex-grow: 1;
}

.mcp-key-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mcp-key-features-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #374151;
    line-height: 1.5;
}

.mcp-feature-check {
    color: var(--mcp-featured-blue);
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.mcp-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    align-self: stretch;
}

.mcp-card-cta-btn {
    width: 100%;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    box-sizing: border-box;
}

/* Two-line CTA layout for upgrade mode */
.mcp-card-cta-btn .mcp-cta-line1,
.mcp-card-cta-btn .mcp-cta-line2 {
    display: block;
    line-height: 1.3;
}

.mcp-card-cta-btn .mcp-cta-line1 {
    font-size: 0.9em;
    opacity: 0.9;
}

.mcp-card-cta-btn .mcp-cta-line2 {
    font-weight: 700;
}

/* Free Plan - Gray outline */
.mcp-card-cta-btn.mcp-level-free {
    border-color: var(--mcp-free-gray);
    color: var(--mcp-free-gray);
    background: white;
}

/* Featured Plan - Blue outline */
.mcp-card-cta-btn.mcp-level-featured {
    border-color: var(--mcp-featured-blue);
    color: var(--mcp-featured-blue);
    background: white;
}

/* Featured Plus - Red filled (primary revenue driver) */
.mcp-card-cta-btn.mcp-level-featured-plus {
    border-color: var(--mcp-featuredplus-red);
    color: white;
    background: var(--mcp-featuredplus-red);
}

/* Enterprise - Gold outline (premium) */
.mcp-card-cta-btn.mcp-level-enterprise {
    border-color: var(--mcp-enterprise-gold);
    color: var(--mcp-enterprise-gold);
    background: white;
}

.mcp-card-cta-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mcp-card-cta-btn:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.6;
}


/* Desktop Grid Layout */
@media (min-width: 768px) {
    .mcp-plan-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: stretch;
    }
    
    .mcp-plan-card {
        display: flex;
        flex-direction: column;
    }
    
    /* Keep single-line CTA on tablet */
    .mcp-card-cta-btn {
        flex-direction: row;
    }
    
    .mcp-card-cta-btn .mcp-cta-line1,
    .mcp-card-cta-btn .mcp-cta-line2 {
        display: inline;
    }
    
    .mcp-card-cta-btn .mcp-cta-line1::after {
        content: ' ';
    }
}

@media (min-width: 1024px) {
    .mcp-plan-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .mcp-upgrade-header h1 {
        font-size: 2.5rem;
    }
    
    /* Ensure all cards have same height and buttons align */
    .mcp-plan-card {
        display: flex;
        flex-direction: column;
    }
    
    /* Two-line CTA layout on desktop for upgrade mode */
    .mcp-plan-card .mcp-card-cta-btn {
        flex-direction: column;
        gap: 2px;
    }
    
    .mcp-plan-card .mcp-card-cta-btn .mcp-cta-line1 {
        font-size: 0.85rem;
        opacity: 0.9;
    }
    
    .mcp-plan-card .mcp-card-cta-btn .mcp-cta-line2 {
        font-size: 1rem;
        font-weight: 700;
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .mcp-level-selector-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mcp-level-btn {
        width: 100%;
    }
    
    .mcp-plan-card {
        padding: 20px;
    }
    
    .mcp-card-header h2 {
        font-size: 1.5rem;
    }
    
    .mcp-price-amount {
        font-size: 1.75rem;
    }
    
    /* Keep single-line CTA on mobile */
    .mcp-card-cta-btn {
        flex-direction: row;
    }
    
    .mcp-card-cta-btn .mcp-cta-line1,
    .mcp-card-cta-btn .mcp-cta-line2 {
        display: inline;
    }
    
    .mcp-card-cta-btn .mcp-cta-line1::after {
        content: ' ';
    }
}

.mcp-step3-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.mcp-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.mcp-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    color: #222;
}

.mcp-section-block {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.mcp-skip {
    float: right;
    font-size: 13px;
    color: #888;
    cursor: pointer;
}

.mcp-field-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.mcp-category-wrap select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 480px;
}

.mcp-social-icon {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcp-social-icon:hover {
    background: #f0f8ff;
    border-color: #0b69c7;
}

.mcp-social-icon.active {
    background: #0b69c7;
    color: #fff;
    border-color: #0b69c7;
}

.mcp-social-icon-label {
    font-size: 14px;
}

.mcp-social-input {
    display: none;
    margin: 10px 0 16px 0;
}

.mcp-social-input.active {
    display: block;
}

.mcp-social-input input {
    width: 100%;
    max-width: 480px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.mcp-submit-btn {
    width: 100%;
    background: #0066cc;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mcp-submit-btn:hover {
    background: #004c99;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .mcp-step3-wrapper {
        padding: 0 15px;
    }
    
    .mcp-card {
        padding: 24px;
    }
    
    .mcp-section-title {
        font-size: 18px;
    }
    
    .mcp-skip {
        font-size: 11px;
    }
    
    .mcp-submit-btn {
        font-size: 16px;
        padding: 14px;
    }
}

/* ===============================
   BUSINESS FEATURE CARD PAGE
=============================== */

.mcp-feature-cards-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mcp-feature-cards-title {
    text-align: center;
    margin-bottom: 10px;
}

.mcp-feature-cards-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.mcp-feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.mcp-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mcp-feature-card-header h2 {
    text-align: center;
    margin-bottom: 20px;
}

.mcp-feature-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mcp-feature-card-body li {
    padding: 6px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.mcp-feature-card-body li:last-child {
    border-bottom: none;
}

.mcp-feature-page-link {
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.mcp-feature-page-link a {
    color: #0073aa;
    text-decoration: none;
}

.mcp-feature-page-link a:hover {
    text-decoration: underline;
}

/* ===============================
   BUNNY UPLOADER FOR STEP 3
=============================== */

.mcp-bunny-upload-block {
    margin-bottom: 30px;
}

.mcp-bunny-upload-block h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.mcp-upload-hint {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.mcp-bunny-dropzone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
}

.mcp-bunny-dropzone:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.mcp-bunny-dropzone-hover {
    border-color: #ff9900 !important;
    background: #fff7e6 !important;
}

.mcp-bunny-dropzone.mcp-uploading {
    border-color: #0073aa;
    background: #e6f2ff;
    opacity: 0.7;
    pointer-events: none;
}

.mcp-bunny-file-input {
    display: none;
}

.mcp-bunny-dropzone-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.mcp-bunny-upload-status {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.mcp-bunny-preview {
    margin-top: 15px;
}

.mcp-bunny-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    display: block;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Banner preview can be wider */
#mcp-banner-preview {
    max-width: 100%;
    max-height: 300px;
}

/* Gallery Preview Grid */
.mcp-gallery-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.mcp-gallery-thumb-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.mcp-gallery-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

.mcp-gallery-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d63638;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.mcp-gallery-remove:hover {
    background: #b32d2e;
    transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .mcp-bunny-dropzone {
        padding: 30px 15px;
    }
    
    .mcp-bunny-preview img {
        max-width: 100%;
    }
    
    .mcp-gallery-thumb-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .mcp-gallery-thumb {
        width: 100px;
        height: 100px;
    }
}

.mcp-years-business {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #444;
}

/* ============================
   MCP LinkList? Button Styling
   ============================ */

.mcp-links-section .mcp-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Full-width buttons */
.mcp-link-button {
    display: block;
    width: 100%;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mcp-link-button-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcp-link-button i {
    font-size: 20px;
    flex-shrink: 0;
}

.mcp-link-button-label {
    flex: 1;
    display: block;
}

/* Ensure container never overflows */
.mcp-links-section,
.mcp-links-list,
.mcp-link-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure buttons shrink correctly on mobile */
.mcp-link-button-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* Prevent horizontal scroll from margins/padding */
.mcp-link-button {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* --- Public QR Code Styles --- */
.mcp-public-qr-wrapper {
    margin: 20px auto 40px auto;
}

.mcp-public-qr-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
}

/* ============================================
   QR Code Card Layout
   ============================================ */
.mcp-qr-card {
    background: #e8f4f8;
    border: 1px solid #b3d9e6;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(28, 117, 188, 0.1);
    box-sizing: border-box;
    text-align: center;
}

.mcp-qr-code-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.mcp-public-qr-img {
    width: 260px;
    height: 260px;
    display: block;
}

.mcp-qr-info-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.mcp-qr-info-card .mcp-public-qr-desc {
    margin: 0;
    color: #1a4d66;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

/* --- Public Testimonials Polish --- */
.mcp-dir-testimonials {
    margin-top: 40px;
}

.mcp-dir-testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   Testimonial Card Design (Apple-style)
   ============================================ */
.mcp-dir-testimonial-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

/* Hover effect (desktop only) */
@media (min-width: 1024px) {
    .mcp-dir-testimonial-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
}

/* About & Contact Tab Cards */
.mcp-about-card,
.mcp-contact-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Subtle hover effect (desktop only) */
@media (min-width: 1024px) {
    .mcp-about-card:hover,
    .mcp-contact-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Stars inside card at top - centered, larger */
.mcp-testimonial-stars {
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mcp-testimonial-stars img {
    width: 25%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Quote container */
.mcp-testimonial-quote {
    position: relative;
    margin-bottom: 12px;
}

/* Decorative opening quote mark */
.mcp-quote-mark {
    font-size: 64px;
    line-height: 1;
    color: #d1d5db;
    font-family: Georgia, serif;
    position: absolute;
    top: -8px;
    left: -4px;
    pointer-events: none;
    font-weight: 300;
}

/* Testimonial text */
.mcp-testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    display: block;
    padding-left: 24px;
    margin-top: 8px;
}

/* Name line */
.mcp-testimonial-name {
    font-size: 14px;
    color: #6b7280;
    font-weight: 300;
    font-style: italic;
    margin-top: 8px;
    text-align: right;
}

/* ============================================
   FAQ Accordion Design (Apple-style)
   ============================================ */
/* FAQ Card - outer white card matching About/Contact */
.mcp-faq-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* FAQ Container - using vc_toggle */
.mcp-faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* FAQ Mini Card - wraps each vc_toggle */
.mcp-faq-item-card {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* Subtle hover effect (desktop only) */
@media (min-width: 1024px) {
    .mcp-faq-item-card:hover {
        background: #f0f1f3;
    }
}

/* Style vc_toggle elements inside FAQ cards - catch various WPBakery class names */
.mcp-faq-item-card .wpb_toggle,
.mcp-faq-item-card .vc_toggle,
.mcp-faq-item-card [class*="toggle"] {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* Ensure toggle title/button is clickable across full width */
.mcp-faq-item-card .wpb_toggle_title,
.mcp-faq-item-card .vc_toggle_title,
.mcp-faq-item-card [class*="toggle_title"],
.mcp-faq-item-card .wpb_toggle_title h4,
.mcp-faq-item-card .vc_toggle_title h4 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0 0 12px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Toggle icon alignment - right side, vertically centered */
.mcp-faq-item-card .wpb_toggle_title .toggle_icon,
.mcp-faq-item-card .vc_toggle_title .toggle_icon,
.mcp-faq-item-card [class*="toggle_icon"],
.mcp-faq-item-card .wpb_toggle_title i,
.mcp-faq-item-card .vc_toggle_title i {
    flex-shrink: 0;
    margin-left: 12px;
    vertical-align: middle;
    font-size: 18px;
    color: #6b7280;
}

/* Toggle content (answer) styling */
.mcp-faq-item-card .wpb_toggle_content,
.mcp-faq-item-card .vc_toggle_content,
.mcp-faq-item-card [class*="toggle_content"] {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.mcp-faq-item-card .wpb_toggle_content p,
.mcp-faq-item-card .vc_toggle_content p,
.mcp-faq-item-card [class*="toggle_content"] p {
    margin: 0 0 10px 0;
    color: #555;
}

.mcp-faq-item-card .wpb_toggle_content p:last-child,
.mcp-faq-item-card .vc_toggle_content p:last-child,
.mcp-faq-item-card [class*="toggle_content"] p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Posts Tab - Locked Layout
   ============================================ */

/* Posts Container */
.mcp-tab-panel[data-tab="posts"] .mcp-tab-container--narrow {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    .mcp-tab-panel[data-tab="posts"] .mcp-tab-container--narrow {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Post Card */
.mcp-post-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

/* Post Title (Fixed Height - Compact) */
.mcp-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 8px 14px 6px;
    margin: 0;
    line-height: 1.35;
    height: auto;
    min-height: 0;
    display: block;
    border-bottom: none;
}

/* Media Carousel Container */
.mcp-post-media-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 0;
    margin-bottom: 0;
}

/* All carousels: stack slides  container height follows tallest slide (mixed-carousel safe) */
.mcp-post-media-carousel .mcp-post-media-container {
    display: grid;
    grid-template-areas: "stack";
    height: auto;
    width: 100%;
    position: relative;
}

.mcp-post-media-container {
    position: relative;
    width: 100%;
}

.mcp-post-media-slide {
    grid-area: stack;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    pointer-events: none;
}

.mcp-post-media-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Image slides  natural intrinsic sizing */
.mcp-post-media-slide[data-media-type="image"] {
    background: #000;
}

.mcp-post-media-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    background: #000;
    padding: 0;
}

/* Video slides  per-slide sizing (does not affect image slides in mixed carousels) */
.mcp-post-media-slide[data-media-type="video"] {
    background: #000;
}

.mcp-post-media-slide[data-media-type="video"] .mcp-post-media-video,
.mcp-post-media-slide[data-media-type="video"] .mcp-feed-video {
    position: relative;
    width: 100%;
    aspect-ratio: var(--mcp-media-aspect, 16 / 9);
    height: auto;
    max-height: 80vh;
    min-height: unset;
    margin: 0 auto;
    display: block;
    background: #000;
    overflow: hidden;
}

.mcp-post-media-video {
    width: 100%;
    height: auto;
    min-height: unset;
    display: block;
    background: #000;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Feed video  wrapper sizing owned by slide context rules above */
.mcp-feed-video {
    position: relative;
    width: 100%;
    max-height: 80vh;
    height: auto;
    min-height: unset;
    display: block;
    background: #000;
    margin: 0 auto;
    overflow: hidden;
}

.mcp-post-media-slide[data-media-type="video"] .mcp-feed-video-iframe,
.mcp-post-media-slide[data-media-type="video"] .mcp-post-video-iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    max-height: none;
    min-height: unset;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: auto;
}

.mcp-post-media-slide[data-media-type="image"] .mcp-post-media-image {
    aspect-ratio: var(--mcp-media-aspect, auto);
}

/* Orientation layout tweaks only  do not override stored aspect metadata */
.mcp-feed-video.mcp-video-horizontal,
.mcp-post-media-slide[data-media-type="video"]:has(.mcp-video-horizontal) .mcp-feed-video,
.mcp-post-media-slide[data-media-type="video"]:has(.mcp-video-horizontal) .mcp-post-media-video {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: #000;
}

.mcp-post-media-slide[data-media-type="video"]:has(.mcp-video-portrait) .mcp-feed-video,
.mcp-post-media-slide[data-media-type="video"]:has(.mcp-video-portrait) .mcp-post-media-video {
    width: min(100%, calc(80vh * 9 / 16));
    margin-left: auto;
    margin-right: auto;
}

.mcp-post-video-iframe {
    border: none;
    z-index: 1;
    pointer-events: auto;
}

/* Feed video iframe - ensure Bunny controls are accessible (v1) */
.mcp-feed-video-iframe {
    z-index: 1;
    pointer-events: auto;
}

/* v2 FUTURE: Custom Speaker Icon Overlay (Feed Only) - DISABLED FOR v1 */
.mcp-feed-video-speaker {
    display: none !important;
    pointer-events: none !important;
    /* v2: position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease; */
}

.mcp-feed-video-speaker:hover {
    /* v2: background: rgba(0, 0, 0, 0.8); */
}

.mcp-speaker-icon {
    /* v2: font-size: 20px;
    line-height: 1;
    color: #fff;
    display: block; */
}

.mcp-speaker-muted::before {
    /* v2: content: '???'; */
}

.mcp-speaker-unmuted::before {
    /* v2: content: '???'; */
}

/* v2 FUTURE: Center Tap Zone for Play/Pause - DISABLED FOR v1 */
.mcp-feed-video-tap-zone {
    display: none !important;
    pointer-events: none !important;
    /* v2: position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    cursor: pointer; */
    /* Allow clicks to pass through to iframe, but capture for play/pause */
}

.mcp-video-placeholder {
    font-size: 48px;
    color: #fff;
}

/* Caption Overlay for Images Only (Fixed Height - Always Same Height) */
.mcp-post-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 2;
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through to image */
}

/* Video Caption (Below Video, Not Overlaid) */
.mcp-post-video-caption {
    position: relative;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #f0f0f0;
    z-index: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.mcp-post-caption-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-height: 20px;
    display: inline-block;
}

.mcp-post-caption-text.mcp-caption-empty {
    opacity: 0;
    min-height: 20px;
    display: inline-block;
}

/* Image Count Pill */
.mcp-post-count-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

/* Post Description (Grows Downward) */
.mcp-post-body {
    padding: 10px 14px 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mcp-post-body p {
    margin: 0 0 6px 0;
}

.mcp-post-body p:last-child {
    margin-bottom: 0;
}

/* Post Actions */
.mcp-post-actions {
    padding: 8px 14px 10px;
    border-top: 1px solid #efefef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcp-action-save {
    display: none !important;
}

.mcp-action-save,
.mcp-action-share {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #666;
    font-size: 16px;
}

.mcp-action-save:hover,
.mcp-action-share:hover {
    color: #333;
}

.mcp-post-owner-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.mcp-action-edit,
.mcp-action-hide,
.mcp-action-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #666;
    font-size: 15px;
}

.mcp-action-edit:hover,
.mcp-action-hide:hover,
.mcp-action-delete:hover {
    color: #333;
}

/* Listing posts  mobile-first density and overflow safety */
#mcp-section-posts .mcp-post-card,
.mcp-listing-section--posts .mcp-post-card {
    max-width: 100%;
}

#mcp-section-posts .mcp-post-media-carousel,
.mcp-listing-section--posts .mcp-post-media-carousel {
    max-width: 100%;
}

@media (max-width: 640px) {
    #mcp-section-posts .mcp-post-title,
    .mcp-listing-section--posts .mcp-post-title {
        font-size: 14px;
        padding: 8px 12px 4px;
    }

    #mcp-section-posts .mcp-post-body,
    .mcp-listing-section--posts .mcp-post-body {
        padding: 8px 12px 10px;
        font-size: 13px;
    }

    #mcp-section-posts .mcp-post-actions,
    .mcp-listing-section--posts .mcp-post-actions {
        padding: 6px 12px 8px;
    }
}

/* ============================================
   New Post Page Styles
   ============================================ */

.mcp-new-post-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.mcp-new-post-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mcp-listing-name {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.mcp-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.mcp-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.mcp-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.mcp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.mcp-step.active:not(:last-child)::after {
    background: #1C75BC;
}

.mcp-step .step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.mcp-step.active .step-number {
    background: #1C75BC;
    color: #fff;
}

.mcp-step .step-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.mcp-step.active .step-label {
    color: #333;
    font-weight: 500;
}

.mcp-step-content {
    margin-top: 24px;
}

.mcp-form-field {
    margin-bottom: 20px;
}

.mcp-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.mcp-form-field .required {
    color: #d62828;
}

.mcp-input,
.mcp-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.mcp-input:focus,
.mcp-textarea:focus {
    outline: none;
    border-color: #1C75BC;
    box-shadow: 0 0 0 3px rgba(28, 117, 188, 0.1);
}

.mcp-char-count {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.mcp-char-count-small {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.mcp-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Media Upload Step */
.mcp-step-media {
    margin-top: 20px;
}

.mcp-upload-dropzone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
}

.mcp-upload-dropzone.drag-over {
    border-color: #1C75BC;
    background: #f0f7ff;
}

.mcp-media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.mcp-post-media-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.mcp-remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #d62828;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Captions Step */
.mcp-captions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mcp-caption-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mcp-caption-preview {
    flex-shrink: 0;
}

.mcp-caption-input-wrapper {
    flex: 1;
}

/* Submit Step */
.mcp-post-preview {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.mcp-preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mcp-preview-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mcp-preview-media-item img {
    max-width: 200px;
    border-radius: 6px;
}

.mcp-preview-caption {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.mcp-preview-description {
    color: #555;
    line-height: 1.6;
}

.mcp-dir-faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.mcp-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.mcp-faq-question:hover {
    background-color: #f9fafb;
}

.mcp-faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.mcp-faq-question[aria-expanded="true"] {
    background-color: #f9fafb;
}

.mcp-faq-question-text {
    flex: 1;
    padding-right: 16px;
}

.mcp-faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: #6b7280;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    display: inline-block;
}

.mcp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    color: #4b5563;
    line-height: 1.6;
    display: block;
}

/* Ensure answers are hidden by default and when aria-hidden="true" */
.mcp-faq-answer[aria-hidden="true"] {
    max-height: 0 !important;
    padding: 0 20px !important;
}

/* Override when explicitly set to false - higher specificity */
.mcp-dir-faq-item .mcp-faq-answer[aria-hidden="false"] {
    max-height: 1000px !important;
    padding: 0 20px 20px 20px !important;
}

.mcp-faq-answer p {
    margin: 0 0 12px 0;
}

.mcp-faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Public Social Media Icons --- */
.mcp-dir-social-links {
    margin: 20px 0;
}

.mcp-dir-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.mcp-dir-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mcp-dir-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mcp-dir-social-icon:hover {
    background: #0b7285;
    color: #fff;
    transform: translateY(-2px);
}

.mcp-dir-social-icon i {
    font-size: 18px;
}

/* --- Enterprise Products & Services --- */
.mcp-dir-enterprise-products,
.mcp-dir-enterprise-services {
    margin-top: 24px;
}

/* Products & Services Cards */
.mcp-product-card,
.mcp-service-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

/* Subtle hover effect (desktop only) */
@media (min-width: 1024px) {
    .mcp-product-card:hover,
    .mcp-service-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.mcp-enterprise-group {
    margin-bottom: 0;
}

.mcp-enterprise-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mcp-enterprise-items {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.mcp-enterprise-items li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* ============================================
   Tab Framework (Phase 1: Minimal Scaffolding)
   ============================================ */

/* Level Badge Container */
.mcp-level-badge-container {
    margin: 20px 0;
}

.mcp-level-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    line-height: 1.2;
    background: #f1f3f5;
    color: #555;
}

.mcp-level-badge.featured,
.mcp-level-badge.featured_plus,
.mcp-level-badge.featuredplus,
.mcp-level-badge.enterprise,
.mcp-level-badge.mcp-level-enterprise {
    background: #f1f3f5;
    color: #555;
}

.mcp-level-badge.featured {
    background: #e7f1ff;
    color: #2b6cb0;
}

.mcp-level-badge.featured_plus,
.mcp-level-badge.featuredplus {
    background: #fdecec;
    color: #c53030;
}

.mcp-level-badge.enterprise,
.mcp-level-badge.mcp-level-enterprise {
    background: #fff6e5;
    color: #b7791f;
}

/* ============================================
   Listing Header Layout (Post-Banner)
   ============================================ */
.mcp-listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-top: 16px;
}

.mcp-listing-header-left {
    max-width: 70%;
}

.mcp-listing-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}

.mcp-listing-description {
    margin: 4px 0 8px 0;
    font-size: 15px;
    color: #555;
}

/* Mobile: Reduce listing title size */
@media (max-width: 767px) {
    .mcp-listing-title {
        font-size: 22px;
    }
}

.mcp-listing-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Single listing category pills - match feed card pill appearance */
.mcp-listing-container .mcp-category-pill {
    display: inline-block;
    padding: 3px 8px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.mcp-listing-container .mcp-category-pill:hover {
    background: #e0e0e0;
    color: #333;
}
.mcp-listing-container .mcp-category-pill:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.mcp-listing-container .mcp-category-pill.mcp-category-pill--sub {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
}

.mcp-listing-container .mcp-category-pill.mcp-category-pill--sub:hover {
    background: #e0e0e0;
    color: #333;
}

/* Directory feed / card: category row (match feed pill weight) */
.mcp-listing-categories a,
.mcp-listing-categories span {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f1f3f5;
    color: #555;
    margin: 2px 4px 2px 0;
    line-height: 1.2;
}

.mcp-listing-categories a {
    text-decoration: none;
}

.mcp-listing-categories .sub,
.mcp-listing-categories .is-sub {
    background: #f8f9fa;
    color: #777;
}

/* Mobile: Stack header content */
@media (max-width: 767px) {
    .mcp-listing-header {
        flex-direction: column;
        gap: 12px;
    }

    .mcp-listing-header-left {
        max-width: 100%;
    }

    .mcp-listing-header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Tabs Navigation */
#mcp-listing-tabs {
    margin: 30px 0;
}

.mcp-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
}

.mcp-tabs-nav li {
    margin: 0;
    padding: 0;
}

.mcp-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: border-color 0.2s;
    margin-bottom: -2px;
    line-height: 1.5;
}

.mcp-tab-btn:hover {
    color: #333;
    border-bottom-color: #ccc;
}

.mcp-tab-btn.active {
    color: #333;
    border-bottom-color: #1C75BC;
    font-weight: 600;
}

/* Tab Panels */
.mcp-tabs-content {
    margin-top: 20px;
}

.mcp-tab-panel {
    display: none;
}

.mcp-tab-panel[style*="display: block"] {
    display: block !important;
}

/* Tab Panel Section Headings - One level down from listing title */
body.singular-mcp_directory .mcp-tab-panel h2,
body.singular-mcp_directory .mcp-tab-panel h3,
body.single-mcp_directory .mcp-tab-panel h2,
body.single-mcp_directory .mcp-tab-panel h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Free Listing Contact Heading - Match tab panel heading size */
body.singular-mcp_directory .mcp-listing-contact:not(.mcp-tab-panel) h2,
body.single-mcp_directory .mcp-listing-contact:not(.mcp-tab-panel) h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

/* Mobile: Smaller tab section headings */
@media (max-width: 767px) {
    body.singular-mcp_directory .mcp-tab-panel h2,
    body.singular-mcp_directory .mcp-tab-panel h3,
    body.single-mcp_directory .mcp-tab-panel h2,
    body.single-mcp_directory .mcp-tab-panel h3 {
        font-size: 18px;
    }
    
    /* Free Listing Contact Heading - Match mobile tab panel heading size */
    body.singular-mcp_directory .mcp-listing-contact:not(.mcp-tab-panel) h2,
    body.single-mcp_directory .mcp-listing-contact:not(.mcp-tab-panel) h2 {
        font-size: 18px;
    }
}

/* ============================================
   Contact Tab - Icons and Formatting
   ============================================ */
body.singular-mcp_directory .mcp-contact-item,
body.single-mcp_directory .mcp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

body.singular-mcp_directory .mcp-contact-icon,
body.single-mcp_directory .mcp-contact-icon {
    color: var(--mcp-featured-blue);
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

body.singular-mcp_directory .mcp-contact-item a,
body.single-mcp_directory .mcp-contact-item a {
    color: inherit;
    text-decoration: none;
}

body.singular-mcp_directory .mcp-contact-item a:hover,
body.single-mcp_directory .mcp-contact-item a:hover {
    text-decoration: underline;
    color: var(--mcp-featured-blue);
}

body.singular-mcp_directory .mcp-address-content,
body.single-mcp_directory .mcp-address-content {
    flex: 1;
}

body.singular-mcp_directory .mcp-address-link,
body.single-mcp_directory .mcp-address-link {
    display: block;
    line-height: 1.6;
}

body.singular-mcp_directory .mcp-hours-content,
body.single-mcp_directory .mcp-hours-content {
    flex: 1;
    line-height: 1.6;
}

/* ============================================
   Contact CTA Card
   ============================================ */
body.singular-mcp_directory .mcp-contact-cta-card,
body.single-mcp_directory .mcp-contact-cta-card {
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.singular-mcp_directory .mcp-contact-cta-card:hover,
body.single-mcp_directory .mcp-contact-cta-card:hover {
    background: #f0f2f5;
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.singular-mcp_directory .mcp-contact-cta-card:active,
body.single-mcp_directory .mcp-contact-cta-card:active {
    background: #e8eaed;
}

body.singular-mcp_directory .mcp-cta-primary,
body.single-mcp_directory .mcp-cta-primary {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

body.singular-mcp_directory .mcp-cta-secondary,
body.single-mcp_directory .mcp-cta-secondary {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

body.singular-mcp_directory .mcp-cta-tertiary,
body.single-mcp_directory .mcp-cta-tertiary {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    line-height: 1.5;
}

/* Mobile: Adjust padding and font sizes */
@media (max-width: 767px) {
    body.singular-mcp_directory .mcp-contact-cta-card,
    body.single-mcp_directory .mcp-contact-cta-card {
        padding: 16px;
        margin-top: 20px;
    }
    
    body.singular-mcp_directory .mcp-cta-primary,
    body.single-mcp_directory .mcp-cta-primary {
        font-size: 16px;
    }
    
    body.singular-mcp_directory .mcp-cta-secondary,
    body.singular-mcp_directory .mcp-cta-tertiary,
    body.single-mcp_directory .mcp-cta-secondary,
    body.single-mcp_directory .mcp-cta-tertiary {
        font-size: 13px;
    }
}

/* Contact tab ?? Email this listing card */
body.singular-mcp_directory .mcp-contact-email-card,
body.single-mcp_directory .mcp-contact-email-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* ??? FIX OVERFLOW */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Email card inside Contact card: full width */
.mcp-contact-card .mcp-contact-email-card {
    max-width: 100% !important;
    margin-top: 20px;
}

/* Desktop only: constrain width (only when NOT inside Contact card) */
@media (min-width: 1024px) {
    body.singular-mcp_directory .mcp-contact-email-card,
    body.single-mcp_directory .mcp-contact-email-card {
        max-width: 33%;
    }
    
    /* Override: full width when inside Contact card */
    .mcp-contact-card .mcp-contact-email-card {
        max-width: 100% !important;
    }
}

/* Mobile: Smaller tab section headings */
@media (max-width: 767px) {
    body.singular-mcp_directory .mcp-tab-panel h2,
    body.singular-mcp_directory .mcp-tab-panel h3,
    body.single-mcp_directory .mcp-tab-panel h2,
    body.single-mcp_directory .mcp-tab-panel h3 {
        font-size: 18px;
    }
}

/* ============================================
   Bottom Navigation (City + Directory)
   ============================================ */
body.singular-mcp_directory .mcp-bottom-nav,
body.single-mcp_directory .mcp-bottom-nav {
    margin-top: 40px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.singular-mcp_directory .mcp-nav-btn,
body.single-mcp_directory .mcp-nav-btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: #1e4fd8;
    text-decoration: none;
}

body.singular-mcp_directory .mcp-nav-btn:hover,
body.single-mcp_directory .mcp-nav-btn:hover {
    text-decoration: underline;
}

body.singular-mcp_directory .mcp-nav-helper,
body.single-mcp_directory .mcp-nav-helper {
    font-size: 12px;
    color: #777;
    margin-left: 22px;
}

/* =========================================================
   Directory Listing ?? Theme Wrapper Collapse (Critical)
   Mirrors Live site behavior to remove header-to-banner gap
   ========================================================= */

/* Collapse The7 main layout wrappers */
body.single-mcp_directory #main,
body.single-mcp_directory .main-gradient,
body.single-mcp_directory .wf-wrap,
body.singular-mcp_directory #main,
body.singular-mcp_directory .main-gradient,
body.singular-mcp_directory .wf-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Collapse The7 container wrappers */
body.single-mcp_directory .wf-container-main,
body.singular-mcp_directory .wf-container-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile: Extra aggressive collapse for wf-wrap and wf-container-main */
@media (max-width: 767px) {
    body.single-mcp_directory .wf-wrap,
    body.single-mcp_directory .wf-container-main,
    body.singular-mcp_directory .wf-wrap,
    body.singular-mcp_directory .wf-container-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Remove header spacing elements */
body.single-mcp_directory .mobile-header-space,
body.single-mcp_directory .header-space,
body.singular-mcp_directory .mobile-header-space,
body.singular-mcp_directory .header-space {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   Collapse The7 Page Title Wrapper (Structural Fix)
   Prevents .page-title wrapper from reserving vertical space
   ========================================================= */
/* Main page-title wrapper - all variations and combinations */
body.singular-mcp_directory .page-title,
body.singular-mcp_directory .page-title.title-center,
body.singular-mcp_directory .page-title.solid-bg,
body.singular-mcp_directory .page-title.title-center.solid-bg,
body.singular-mcp_directory .page-title.title-center.solid-bg.page-title-responsive-enabled,
body.singular-mcp_directory .page-title.title-center-solid-bg,
body.singular-mcp_directory .page-title.page-title-responsive-enabled,
body.single-mcp_directory .page-title,
body.single-mcp_directory .page-title.title-center,
body.single-mcp_directory .page-title.solid-bg,
body.single-mcp_directory .page-title.title-center.solid-bg,
body.single-mcp_directory .page-title.title-center.solid-bg.page-title-responsive-enabled {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    line-height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
}

/* All internal page-title elements - comprehensive coverage */
body.singular-mcp_directory .page-title *,
body.singular-mcp_directory .page-title-head,
body.singular-mcp_directory .page-title-head.hgroup,
body.singular-mcp_directory .page-title .hgroup,
body.singular-mcp_directory .page-title .wf-wrap,
body.singular-mcp_directory .page-title .page-title-head,
body.singular-mcp_directory .page-title h1,
body.singular-mcp_directory .page-title h1.entry-title,
body.singular-mcp_directory .page-title .entry-title,
body.singular-mcp_directory .page-title .breadcrumbs,
body.single-mcp_directory .page-title *,
body.single-mcp_directory .page-title-head,
body.single-mcp_directory .page-title-head.hgroup,
body.single-mcp_directory .page-title .hgroup,
body.single-mcp_directory .page-title .wf-wrap,
body.single-mcp_directory .page-title .page-title-head,
body.single-mcp_directory .page-title h1,
body.single-mcp_directory .page-title h1.entry-title,
body.single-mcp_directory .page-title .entry-title,
body.single-mcp_directory .page-title .breadcrumbs {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    line-height: 0 !important;
    font-size: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
}

/* Nuclear option: Catch-all for any page-title wrapper on directory listings */
body[class*="mcp_directory"] .page-title,
body[class*="mcp_directory"] .page-title * {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    line-height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
}

/* ============================================
   Directory Listing Container - Full Layout Ownership
   ============================================ */
/* Main listing container - zero top spacing for flush banner */
.mcp-listing-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================
   Directory Single ?? Tablet & Desktop Containment Polish
   ============================================ */

@media (min-width: 768px) {
    .mcp-listing-container {
        background: #ffffff;
        padding: 32px 40px;
        border: 1px solid #eef1f4;
        box-sizing: border-box;
    }
}

/* Mobile: Ensure container starts at top, banner accounts for header */
@media (max-width: 767px) {
    /* Remove all spacing from ALL possible parent wrappers */
    body.singular-mcp_directory #main,
    body.singular-mcp_directory .main-gradient,
    body.singular-mcp_directory .wf-wrap,
    body.singular-mcp_directory .wf-container-main,
    body.single-mcp_directory #main,
    body.single-mcp_directory .main-gradient,
    body.single-mcp_directory .wf-wrap,
    body.single-mcp_directory .wf-container-main,
    body.singular-mcp_directory .entry-content,
    body.singular-mcp_directory .content,
    body.singular-mcp_directory .page-content,
    body.single-mcp_directory .entry-content,
    body.single-mcp_directory .content,
    body.single-mcp_directory .page-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .mcp-listing-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-left: 16px;
        padding-right: 16px;
        background: #ffffff;
        box-sizing: border-box;
    }
    
    /* Header offset: Use padding on container instead of margin on banner */
    .mcp-listing-container {
        padding-top: 60px !important; /* Mobile header height - pushes content down */
    }
    
    /* Remove margin from banner since container handles spacing */
    .mcp-listing-container > .mcp-hero-banner:first-child {
        margin-top: 0 !important;
    }
    
    /* Nuclear option: Remove spacing from any element that might be between header and banner */
    body.singular-mcp_directory .wf-wrap > *:first-child,
    body.singular-mcp_directory .wf-container-main > *:first-child,
    body.single-mcp_directory .wf-wrap > *:first-child,
    body.single-mcp_directory .wf-container-main > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure listing container itself has no spacing and starts at top */
    body.singular-mcp_directory .mcp-listing-container,
    body.single-mcp_directory .mcp-listing-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative;
    }
}

/* Desktop: Header is 90px */
@media (min-width: 768px) {
    .mcp-listing-container > .mcp-hero-banner:first-child {
        margin-top: 90px !important; /* Desktop header height */
    }
}

/* Directory Single (Desktop): remove oversized blank band above hero
   Option B: keep container padding, remove hero top margin */
@media (min-width: 768px) {
    body.single-mcp_directory .mcp-listing-container > .mcp-hero-banner:first-child,
    body.singular-mcp_directory .mcp-listing-container > .mcp-hero-banner:first-child {
        margin-top: 0 !important;
    }
}

/* Directory Single (Desktop): restore container top spacing
   Keeps hero margin removed but restores clean 32px offset */
@media (min-width: 768px) {
    body.single-mcp_directory .mcp-listing-container,
    body.singular-mcp_directory .mcp-listing-container {
        padding-top: 32px !important;
    }
}

/* Remove top spacing from theme content wrappers (safety net) */
body.singular-mcp_directory .entry-content,
body.singular-mcp_directory .content,
body.singular-mcp_directory .page-content,
body.singular-mcp_directory .main-content,
body.singular-mcp_directory .site-content,
body.singular-mcp_directory .content-wrap,
body.singular-mcp_directory .wf-container,
body.single-mcp_directory .entry-content,
body.single-mcp_directory .content,
body.single-mcp_directory .page-content,
body.single-mcp_directory .main-content,
body.single-mcp_directory .site-content,
body.single-mcp_directory .content-wrap,
body.single-mcp_directory .wf-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Mobile: Extra aggressive removal of all top spacing */
@media (max-width: 767px) {
    body.singular-mcp_directory .entry-content,
    body.singular-mcp_directory .content,
    body.singular-mcp_directory .page-content,
    body.singular-mcp_directory .main-content,
    body.singular-mcp_directory .site-content,
    body.singular-mcp_directory .content-wrap,
    body.singular-mcp_directory .wf-container,
    body.single-mcp_directory .entry-content,
    body.single-mcp_directory .content,
    body.single-mcp_directory .page-content,
    body.single-mcp_directory .main-content,
    body.single-mcp_directory .site-content,
    body.single-mcp_directory .content-wrap,
    body.single-mcp_directory .wf-container,
    body.singular-mcp_directory #main,
    body.singular-mcp_directory .main-gradient,
    body.singular-mcp_directory .wf-wrap,
    body.singular-mcp_directory .wf-container-main,
    body.single-mcp_directory #main,
    body.single-mcp_directory .main-gradient,
    body.single-mcp_directory .wf-wrap,
    body.single-mcp_directory .wf-container-main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ============================================
   Tabs - Mobile Spacing Optimization
   ============================================ */
@media (max-width: 767px) {
    #mcp-listing-tabs {
        margin: 20px 0;
    }
    
    .mcp-tab-btn {
        padding: 10px 16px;
        font-size: 15px;
        line-height: 1.6;
    }
    
    .mcp-tabs-content {
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .mcp-tab-btn {
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.7;
    }
}

/* MOBILE: ensure directory tabs nav remains visible and usable */
@media (max-width: 768px) {
    .mcp-tabs-nav {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 8px;
        flex-wrap: nowrap;
        align-items: center;
        height: auto;
        min-height: 0;
    }

    .mcp-tab-btn {
        flex: 0 0 auto;
    }
}

/* ============================================
   Directory Archive - Card Grid Layout
   ============================================ */

.mcp-dir-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

.mcp-dir-archive-header {
    margin-bottom: 32px;
}

.mcp-dir-archive-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #222;
}

.mcp-dir-archive-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.mcp-dir-archive-empty,
.mcp-directory-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.mcp-directory-no-city {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.mcp-directory-no-city code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.mcp-dir-archive-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* Card Grid */
.mcp-dir-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .mcp-dir-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .mcp-dir-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1400px) {
    .mcp-dir-archive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Styling */
.mcp-dir-archive-card {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.mcp-dir-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Level-based border colors */
.mcp-dir-archive-card.mcp-level-free {
    border-color: #d1d5db;
}

.mcp-dir-archive-card.mcp-level-featured {
    border-color: #1C75BC;
}

.mcp-dir-archive-card.mcp-level-featured_plus {
    border-color: #d62828;
}

.mcp-dir-archive-card.mcp-level-enterprise {
    border-color: #f59e0b;
}

.mcp-dir-archive-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

/* Logo Area */
.mcp-dir-archive-card-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcp-dir-archive-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.mcp-dir-archive-card-initial {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border: 2px solid #e3e3e3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #1C75BC;
    text-transform: uppercase;
}

/* Content Area */
.mcp-dir-archive-card-content {
    text-align: center;
}

.mcp-dir-archive-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.mcp-dir-archive-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

/* Pills Container */
.mcp-dir-archive-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

/* Level Pill */
.mcp-dir-archive-level-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcp-dir-archive-level-pill.mcp-level-free {
    background: #f3f4f6;
    color: #6b7280;
}

.mcp-dir-archive-level-pill.mcp-level-featured {
    background: #1C75BC;
    color: #ffffff;
}

.mcp-dir-archive-level-pill.mcp-level-featured_plus {
    background: #d62828;
    color: #ffffff;
}

.mcp-dir-archive-level-pill.mcp-level-enterprise {
    background: #f59e0b;
    color: #ffffff;
}

/* Category Pills */
.mcp-dir-archive-category-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    background: #f0f0f0;
    color: #555;
}

/* Pagination */
.mcp-dir-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .mcp-dir-archive {
        padding: 20px 16px;
    }
    
    .mcp-dir-archive-header h1 {
        font-size: 26px;
    }
    
    .mcp-dir-archive-card-link {
        padding: 16px;
    }
    
    .mcp-dir-archive-card-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }
    
    .mcp-dir-archive-card-initial {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .mcp-dir-archive-card-title {
        font-size: 16px;
    }
    
    .mcp-dir-archive-card-desc {
        font-size: 13px;
    }
}

/* Collapsible text blocks (About tab: Description + About) */
.mcp-collapsible-block {
  margin-bottom: 18px;
}

.mcp-collapsible-text {
  line-height: 1.6;
  overflow: hidden;
  transition: max-height 220ms ease;
}

/* 5 lines visible when collapsed */
.mcp-collapsible-text.is-collapsed {
  max-height: calc(1.6em * 5);
}

/* Fully expanded */
.mcp-collapsible-text.is-expanded {
  max-height: 9999px;
}

.mcp-collapsible-toggle.mcp-btn.mcp-btn--secondary {
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================
   Width Constraint System (Reusable, Scoped)
   ============================================ */
.mcp-content-narrow {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .mcp-content-narrow {
        max-width: 50%;
    }
}

/* ============================================
   Tab Container Width Constraints (Shared Utility)
   ============================================ */
.mcp-tab-panel[data-tab="links"] .mcp-tab-inner--narrow,
.mcp-tab-panel[data-tab="contact"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="about"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="qr"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="testimonials"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="faq"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="products"] .mcp-tab-container--narrow,
.mcp-tab-panel[data-tab="services"] .mcp-tab-container--narrow,
/* FREE LISTING SUPPORT ?? no tab panel wrapper */
.mcp-listing-contact:not(.mcp-tab-panel) .mcp-tab-container--narrow {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile stays full width */
@media (max-width: 1023px) {
    .mcp-tab-panel[data-tab="links"] .mcp-tab-inner--narrow,
    .mcp-tab-panel[data-tab="contact"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="about"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="qr"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="testimonials"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="faq"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="products"] .mcp-tab-container--narrow,
    .mcp-tab-panel[data-tab="services"] .mcp-tab-container--narrow,
    /* FREE LISTING SUPPORT ?? no tab panel wrapper */
    .mcp-listing-contact:not(.mcp-tab-panel) .mcp-tab-container--narrow {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}


/* ============================================
   Gallery System (Square Images, Hero + Thumbs)
   ============================================ */

/* Gallery Hero Image */
.mcp-gallery-hero {
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.mcp-gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Gallery Count Pill */
.mcp-gallery-count-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Gallery Thumbnails Strip */
.mcp-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.mcp-gallery-thumbs.is-dragging {
    cursor: grabbing;
}

.mcp-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.mcp-gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.mcp-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.mcp-gallery-thumb {
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
}

.mcp-gallery-thumb:hover {
    border-color: #3b82f6;
    opacity: 0.9;
}

.mcp-gallery-thumb.active {
    border-color: #3b82f6;
    opacity: 1;
}

.mcp-gallery-thumb:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.mcp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Mobile: Larger thumbnails for better touch targets */
@media (max-width: 767px) {
    .mcp-gallery-thumb {
        flex: 0 0 100px;
    }
    
    .mcp-gallery-hero {
        touch-action: pan-x pan-y pinch-zoom;
    }
}

/* ============================================
   Email Modal Styles
   ============================================ */
/* Directory ZAP / contact modal: centered shell; hidden until .is-open (see mcp-directory.js) */
#mcp-email-modal {
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#mcp-email-modal:not(.is-open) {
    display: none !important;
}

.mcp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.mcp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.mcp-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px !important;
    max-height: min(88vh, 620px);
    margin: auto;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Directory email modal: scrollable panel, max height for mobile/desktop */
#mcp-email-modal .mcp-modal-content {
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 16px;
    height: auto !important;
    margin: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    #mcp-email-modal .mcp-modal-content {
        padding: 12px;
        max-height: 92vh;
    }
}

#mcp-email-modal form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#mcp-email-modal .mcp-zap-btn {
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

#mcp-email-modal label {
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
    display: block;
}

#mcp-email-modal input,
#mcp-email-modal textarea {
    padding: 10px;
    font-size: 14px;
}

#mcp-email-modal textarea {
    min-height: 90px;
}

body.mcp-modal-open {
    overflow: hidden;
}

.mcp-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 22px;
    background: #fff;
    border: none;
    cursor: pointer;
    z-index: 20;
    padding: 8px;
    line-height: 1;
    border-radius: 4px;
}

.mcp-email-response.success {
    color: #0a7a0a;
    margin-top: 10px;
}

.mcp-email-response.error {
    color: #b00020;
    margin-top: 10px;
}

.mcp-cta-note {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.mcp-modal-disclaimer {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mcp-email-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Directory ZAP modal ?? intro (matches MCPWE-style panel) */
#mcp-email-intro {
    padding: 16px 16px 8px;
    text-align: center;
}

#mcp-email-form-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

#mcp-email-modal #mcp-email-form-wrapper {
    max-height: none !important;
    overflow: visible !important;
}

#mcp-email-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#mcp-email-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

#mcp-email-modal #mcp-email-form label {
    font-weight: 500;
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}

/* Success state also scrollable */
#mcp-email-success {
    overflow-y: auto;
    max-height: calc(90vh - 200px);
    padding: 20px;
    flex: 1;
}

/* Mobile-specific refinement (mobile-first) */
@media (max-width: 640px) {
    #mcp-email-modal .mcp-modal-content {
        width: calc(100% - 16px);
        margin: 0 auto;
        border-radius: 12px;
    }

    #mcp-email-intro {
        padding: 16px 16px 8px;
    }
    
    #mcp-email-form-wrapper {
        padding: 16px;
    }
    
    #mcp-email-success {
        max-height: calc(95vh - 200px);
        padding: 16px;
    }
    
    #mcp-email-form-wrapper #mcp-email-form label {
        margin-bottom: 0;
        display: block !important;
        width: 100% !important;
    }
    
    #mcp-email-form-wrapper #mcp-email-form label input,
    #mcp-email-form-wrapper #mcp-email-form label textarea {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #mcp-email-modal #mcp-email-form-wrapper #mcp-email-form label {
        margin-bottom: 2px !important;
    }
}

/* Desktop vertical centering */
@media (min-width: 641px) {
    .mcp-modal {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.mcp-modal-disclaimer strong {
    color: #333;
}

/* Directory ZAP modal ?? labels + fields (MCPWE-aligned) */
#mcp-email-form-wrapper #mcp-email-form label {
    color: #333;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    float: none !important;
    clear: both;
}

#mcp-email-modal #mcp-email-form-wrapper #mcp-email-form label {
    color: #888;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 2px !important;
}

#mcp-email-form input,
#mcp-email-form textarea {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

#mcp-email-modal #mcp-email-form input,
#mcp-email-modal #mcp-email-form textarea {
    padding: 10px;
    font-size: 14px;
}

#mcp-email-modal #mcp-email-form textarea {
    height: auto;
    min-height: 90px;
}

#mcp-email-form textarea {
    height: 90px;
    min-height: 90px;
    resize: none;
}

#mcp-email-form input:focus,
#mcp-email-form textarea:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

#mcp-email-form .mcp-btn--primary {
    width: 100%;
    margin-top: auto;
}

#mcp-email-success {
    text-align: center;
}

#mcp-email-success h4 {
    margin-bottom: 10px;
}

#mcp-email-success p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Email Card Styles */
.mcp-email-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    transition: 
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.mcp-email-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    cursor: pointer;
}

.mcp-email-card * {
    pointer-events: none;
}

.mcp-email-footnote a {
    pointer-events: auto;
}

.mcp-email-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.mcp-email-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.mcp-email-send-icon {
    color: #1e73be;
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.mcp-email-card:hover .mcp-email-send-icon {
    transform: translateX(3px);
}

.mcp-email-card-body {
    text-align: center;
}

.mcp-email-privacy {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #374151;
}

.mcp-email-privacy i {
    color: #1e73be;
    margin-top: 2px;
}

.mcp-email-status {
    color: #15803d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.mcp-email-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0;
}

.mcp-email-footnote {
    font-size: 0.8rem;
    color: #6b7280;
}

.mcp-email-footnote a {
    color: #1e73be;
    text-decoration: none;
}

.mcp-email-usage-notice {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 12px 0 10px;
    text-align: center;
}

/* ==========================================
   DIRECTORY SINGLE ?? MOBILE WIDTH FIX
   Override The7 fixed container on mobile
========================================== */

@media (max-width: 768px) {

    body.wp-singular-mcp_directory .wf-wrap,
    body.wp-singular-mcp_directory .wf-container-main,
    body.wp-singular-mcp_directory .content,
    body.wp-singular-mcp_directory #main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }

}

.mcp-zap-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
font-weight: 600;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
}

.mcp-zap-btn i {
font-size: 18px;
}

.mcp-zap-btn:active {
transform: scale(0.98);
}

.mcp-zap-disclaimer {
    font-size: 11px !important;
    line-height: 1.4;
    color: #777;
    margin-top: 10px;
    text-align: left;
}

.mcp-zap-disclaimer a {
    color: #555;
    text-decoration: underline;
    font-size: 11px !important;
}

.mcp-zap-disclaimer br {
    display: block;
    margin-bottom: 2px;
}

/* FORCE ZAP DISCLAIMER SIZE IN MCPWE MODAL */
#mcpwe-contact-modal .mcp-zap-disclaimer {
    all: unset;
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: #777;
    margin-top: 10px;
}

#mcpwe-contact-modal .mcp-zap-disclaimer a {
    font-size: 11px;
    color: #555;
    text-decoration: underline;
}

/* Claim success banner (edit directory listing) */
.mcp-claim-banner {
    background: #f0f7ff;
    border: 1px solid #cfe3ff;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mcp-claim-banner h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.mcp-claim-banner p {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
}

.mcp-claim-actions {
    display: flex;
    gap: 10px;
}

.mcp-btn-primary {
    background: #1e73be;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.mcp-btn-secondary {
    background: #e5e7eb;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

/* ============================================
   Directory Single Layout Migration - Phase 1
   ============================================ */
body.singular-mcp_directory html,
body.single-mcp_directory html {
    scroll-behavior: smooth;
}

body.singular-mcp_directory #mcp-listing-tabs,
body.single-mcp_directory #mcp-listing-tabs,
body.singular-mcp_directory .mcp-tabs-nav,
body.single-mcp_directory .mcp-tabs-nav {
    display: none !important;
}

body.singular-mcp_directory .mcp-listing-sections,
body.single-mcp_directory .mcp-listing-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0 48px;
    padding-bottom: 0;
}

/* Authoritative dock-safe clearance owner (covers sections + bottom nav + page end) */
body.singular-mcp_directory .mcp-listing-container,
body.single-mcp_directory .mcp-listing-container {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

body.singular-mcp_directory .mcp-listing-section,
body.single-mcp_directory .mcp-listing-section {
    scroll-margin-top: 96px;
}

body.singular-mcp_directory .mcp-anchor-offset,
body.single-mcp_directory .mcp-anchor-offset {
    display: block;
    position: relative;
    top: -96px;
    visibility: hidden;
}

body.singular-mcp_directory #mcp-section-posts,
body.single-mcp_directory #mcp-section-posts { order: 10; }
body.singular-mcp_directory #mcp-section-faq,
body.single-mcp_directory #mcp-section-faq { order: 20; }
body.singular-mcp_directory #mcp-section-testimonials,
body.single-mcp_directory #mcp-section-testimonials { order: 30; }
body.singular-mcp_directory #mcp-section-qr,
body.single-mcp_directory #mcp-section-qr { order: 40; }
body.singular-mcp_directory #mcp-section-links,
body.single-mcp_directory #mcp-section-links { order: 50; }
body.singular-mcp_directory #mcp-section-coupons,
body.single-mcp_directory #mcp-section-coupons { order: 60; }
body.singular-mcp_directory #mcp-section-gallery,
body.single-mcp_directory #mcp-section-gallery { order: 70; }
body.singular-mcp_directory #mcp-section-products,
body.single-mcp_directory #mcp-section-products { order: 80; }
body.singular-mcp_directory #mcp-section-services,
body.single-mcp_directory #mcp-section-services { order: 90; }
body.singular-mcp_directory #mcp-section-about,
body.single-mcp_directory #mcp-section-about { order: 100; }
body.singular-mcp_directory #mcp-section-vehicles,
body.single-mcp_directory #mcp-section-vehicles { order: 110; }
body.singular-mcp_directory #mcp-section-contact,
body.single-mcp_directory #mcp-section-contact { order: 120; }

/* Directory single: compact inset section header capsules (unified titles) */
body.singular-mcp_directory .mcp-listing-section .mcp-section-header,
body.single-mcp_directory .mcp-listing-section .mcp-section-header {
    margin: 0 0 14px 0;
    padding: 0;
    text-align: left;
}

body.singular-mcp_directory .mcp-listing-section .mcp-section-header .mcp-section-title,
body.single-mcp_directory .mcp-listing-section .mcp-section-header .mcp-section-title {
    display: inline-block;
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: #374151;
    border-radius: 10px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
    body.singular-mcp_directory .mcp-listing-section .mcp-section-header .mcp-section-title,
    body.single-mcp_directory .mcp-listing-section .mcp-section-header .mcp-section-title {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* QR listing section: align with stacked sections (override global centered wrapper) */
body.singular-mcp_directory #mcp-section-qr.mcp-public-qr-wrapper,
body.single-mcp_directory #mcp-section-qr.mcp-public-qr-wrapper {
    margin: 0 0 8px 0;
    text-align: left;
}

body.singular-mcp_directory .mcp-listing-sections .mcp-dir-testimonials,
body.single-mcp_directory .mcp-listing-sections .mcp-dir-testimonials {
    margin-top: 0;
}

/* Width constraints for migrated section wrappers */
.mcp-listing-section[data-section="posts"] .mcp-tab-container--narrow {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.mcp-listing-section[data-section="links"] .mcp-tab-inner--narrow,
.mcp-listing-section[data-section="contact"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="about"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="qr"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="testimonials"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="faq"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="marketplace"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="events"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="jobs"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="products"] .mcp-tab-container--narrow,
.mcp-listing-section[data-section="services"] .mcp-tab-container--narrow {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    .mcp-listing-section[data-section="posts"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="links"] .mcp-tab-inner--narrow,
    .mcp-listing-section[data-section="contact"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="about"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="qr"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="testimonials"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="faq"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="marketplace"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="events"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="jobs"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="products"] .mcp-tab-container--narrow,
    .mcp-listing-section[data-section="services"] .mcp-tab-container--narrow {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Floating bottom dock */
body.singular-mcp_directory .mcp-bottom-dock,
body.single-mcp_directory .mcp-bottom-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(72vw, 360px);
    max-width: calc(100vw - 24px);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid #dfe3e8;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.11);
    backdrop-filter: blur(3px);
    box-sizing: border-box;
    overflow: visible;
}

body.singular-mcp_directory .mcp-bottom-dock-btn,
body.single-mcp_directory .mcp-bottom-dock-btn {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    min-height: 42px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.singular-mcp_directory .mcp-bottom-dock-contact,
body.single-mcp_directory .mcp-bottom-dock-contact {
    border-color: #1C75BC;
    background: #1C75BC;
    color: #ffffff;
}

body.singular-mcp_directory .mcp-bottom-dock-sections-toggle,
body.single-mcp_directory .mcp-bottom-dock-sections-toggle {
    gap: 6px;
}

body.singular-mcp_directory .mcp-bottom-dock-menu,
body.single-mcp_directory .mcp-bottom-dock-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
    max-height: 45vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
}

body.singular-mcp_directory .mcp-bottom-dock-menu-item,
body.single-mcp_directory .mcp-bottom-dock-menu-item {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex-shrink: 0;
}

/* Restore native hidden behavior: layout rules above override [hidden] display:none (higher specificity). */
body.singular-mcp_directory .mcp-bottom-dock-menu[hidden],
body.single-mcp_directory .mcp-bottom-dock-menu[hidden] {
    display: none;
}

body.singular-mcp_directory .mcp-bottom-dock-menu-item:hover,
body.single-mcp_directory .mcp-bottom-dock-menu-item:hover {
    background: #f3f4f6;
}

@media (min-width: 1024px) {
    body.singular-mcp_directory .mcp-bottom-dock,
    body.single-mcp_directory .mcp-bottom-dock {
        width: min(360px, 28vw);
        max-width: calc(100vw - 24px);
    }

    body.singular-mcp_directory .mcp-listing-container,
    body.single-mcp_directory .mcp-listing-container {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

/* Directory single footer clearance for fixed MCP dock */
body.single-mcp_directory footer,
body.singular-mcp_directory footer,
body.single-mcp_directory #footer,
body.singular-mcp_directory #footer,
body.single-mcp_directory .footer,
body.singular-mcp_directory .footer,
body.single-mcp_directory .site-footer,
body.singular-mcp_directory .site-footer {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
    body.single-mcp_directory footer,
    body.singular-mcp_directory footer,
    body.single-mcp_directory #footer,
    body.singular-mcp_directory #footer,
    body.single-mcp_directory .footer,
    body.singular-mcp_directory .footer,
    body.single-mcp_directory .site-footer,
    body.singular-mcp_directory .site-footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }
}

/* Directory single: Marketplace & Events grids live in mcp-feed-card.css (.mcp-feed-grid); keep grid inside section width */
body.singular-mcp_directory .mcp-listing-section[data-section="marketplace"] .mcp-feed-grid,
body.single-mcp_directory .mcp-listing-section[data-section="marketplace"] .mcp-feed-grid,
body.singular-mcp_directory .mcp-listing-section[data-section="events"] .mcp-feed-grid,
body.single-mcp_directory .mcp-listing-section[data-section="events"] .mcp-feed-grid,
body.singular-mcp_directory .mcp-listing-section[data-section="jobs"] .mcp-feed-grid,
body.single-mcp_directory .mcp-listing-section[data-section="jobs"] .mcp-feed-grid {
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================
   MCP Business Activity Surface ?? directory shell token (body.mcp-directory-surface)
   Shared by Directory Single, page-backed activity surfaces (Marketplace shell), and opt-in legacy virtual routes.
   City pages do not use mcp-directory-surface. Shell/spacing only ?? card/grid/button styles stay in feed-card CSS.
   Width normalization: desktop max-width for .mcp-listing-container lives only in the block below (no duplicate caps).
   ============================================ */
@media (max-width: 767px) {
    body.mcp-directory-surface #main,
    body.mcp-directory-surface .main-gradient,
    body.mcp-directory-surface .wf-wrap,
    body.mcp-directory-surface .wf-container-main,
    body.mcp-directory-surface .entry-content,
    body.mcp-directory-surface .content,
    body.mcp-directory-surface .page-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.mcp-directory-surface .wf-wrap > *:first-child,
    body.mcp-directory-surface .wf-container-main > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.mcp-directory-surface .mcp-listing-container {
        margin-top: 0 !important;
        position: relative;
    }
}

@media (min-width: 768px) {
    /* Align The7 main shell with directory single: no extra band above listing shell */
    body.mcp-directory-surface #main,
    body.mcp-directory-surface .main-gradient,
    body.mcp-directory-surface .wf-wrap,
    body.mcp-directory-surface .wf-container-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.mcp-directory-surface .mcp-listing-container > .mcp-hero-banner:first-child {
        margin-top: 0 !important;
    }

    /*
     * Single authoritative column for Directory Single + Marketplace shell + future directory surfaces.
     * 1200px aligns with Directory/Magnet convention (see assets/css/city.css ?? Directory/Magnet 1200px).
     */
    body.mcp-directory-surface .mcp-listing-container {
        padding-top: 32px !important;
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    body.mcp-directory-surface .entry-content,
    body.mcp-directory-surface .content,
    body.mcp-directory-surface .page-content,
    body.mcp-directory-surface .main-content,
    body.mcp-directory-surface .site-content,
    body.mcp-directory-surface .content-wrap,
    body.mcp-directory-surface .wf-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ============================================
   Directory Marketplace & Events activity surfaces (shell / spacing only; cards/grid in mcp-feed-card.css)
   ============================================ */
.mcp-directory-events-page .mcp-directory-events-toolbar,
.mcp-directory-marketplace-page .mcp-directory-marketplace-toolbar,
.mcp-directory-jobs-page .mcp-directory-jobs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
}

.mcp-directory-events-page .mcp-directory-events-title,
.mcp-directory-marketplace-page .mcp-directory-marketplace-title,
.mcp-directory-jobs-page .mcp-directory-jobs-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
}

.mcp-directory-events-page .mcp-directory-events-profile-cta,
.mcp-directory-marketplace-page .mcp-directory-marketplace-profile-cta,
.mcp-directory-jobs-page .mcp-directory-jobs-profile-cta {
    margin: 0;
}

.mcp-directory-events-page .mcp-directory-events-grid-wrap,
.mcp-directory-marketplace-page .mcp-directory-marketplace-grid-wrap,
.mcp-directory-jobs-page .mcp-directory-jobs-grid-wrap {
    margin-bottom: 2rem;
}

.mcp-listing-section.mcp-directory-events .mcp-directory-events-all-cta,
.mcp-listing-section.mcp-directory-marketplace .mcp-directory-marketplace-all-cta,
.mcp-listing-section.mcp-directory-jobs .mcp-directory-jobs-all-cta {
    margin: 1.25rem 0 0;
    text-align: center;
}

body.mcp-directory-events-surface .mcp-directory-events-inventory-shell,
body.mcp-directory-marketplace-surface .mcp-directory-marketplace-inventory-shell,
body.mcp-directory-jobs-surface .mcp-directory-jobs-inventory-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

body.mcp-directory-events-surface .mcp-directory-events-grid-wrap,
body.mcp-directory-marketplace-surface .mcp-directory-marketplace-grid-wrap,
body.mcp-directory-jobs-surface .mcp-directory-jobs-grid-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    body.mcp-directory-events-surface .mcp-listing-container.mcp-directory-events-page,
    body.mcp-directory-marketplace-surface .mcp-listing-container.mcp-directory-marketplace-page,
    body.mcp-directory-jobs-surface .mcp-listing-container.mcp-directory-jobs-page {
        padding-top: 60px !important;
    }
}

body.mcp-directory-events-surface .mcp-directory-events-page .mcp-feed-grid,
body.mcp-directory-marketplace-surface .mcp-directory-marketplace-page .mcp-feed-grid,
body.mcp-directory-jobs-surface .mcp-directory-jobs-page .mcp-feed-grid {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.mcp-directory-events-surface #main > .wf-wrap,
body.mcp-directory-events-surface #main .wf-wrap,
body.mcp-directory-marketplace-surface #main > .wf-wrap,
body.mcp-directory-marketplace-surface #main .wf-wrap,
body.mcp-directory-jobs-surface #main > .wf-wrap,
body.mcp-directory-jobs-surface #main .wf-wrap {
    column-gap: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

body.mcp-directory-events-surface #main .wf-container-main,
body.mcp-directory-marketplace-surface #main .wf-container-main,
body.mcp-directory-jobs-surface #main .wf-container-main {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    box-sizing: border-box;
}

body.mcp-directory-events-surface #main .wf-container.wf-container-full,
body.mcp-directory-marketplace-surface #main .wf-container.wf-container-full,
body.mcp-directory-jobs-surface #main .wf-container.wf-container-full {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   Blog Article Cards ? directory-single.php
   "From the Blog" section
   ============================================ */

.mcp-blog-article-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0;
}

.mcp-blog-article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mcp-blog-article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mcp-blog-article-card__image-link {
    display: block;
    text-decoration: none;
}
.mcp-blog-article-card__image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}
.mcp-blog-article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.mcp-blog-article-card:hover .mcp-blog-article-card__image {
    transform: scale(1.03);
}
.mcp-blog-article-card__image-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #cce7fa 100%);
}
.mcp-blog-article-card__initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d6fa5;
    opacity: 0.6;
}

.mcp-blog-article-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.mcp-blog-article-card__topic {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d6fa5;
    background: #e8f4fd;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}
.mcp-blog-article-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
}
.mcp-blog-article-card__title a {
    color: inherit;
    text-decoration: none;
}
.mcp-blog-article-card__title a:hover {
    color: #1d6fa5;
}
.mcp-blog-article-card__publisher {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}
.mcp-blog-article-card__publisher-label {
    display: block;
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 1px;
}
.mcp-blog-article-card__summary {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.mcp-blog-article-card__read-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d6fa5;
    text-decoration: none;
    margin-top: auto;
}
.mcp-blog-article-card__read-link:hover {
    text-decoration: underline;
}

/* Consumer feed card: source attribution line for blog_article */
.mcp-consumer-card__source {
    font-size: 0.78rem;
    color: #777;
    margin: 0;
}
.mcp-consumer-card__source-label {
    margin-right: 2px;
}

/* ============================================
   Blog Article Section ? listing-page teaser
   Single full-width card with feed-card rhythm.
   Scoped ONLY to .mcp-blog-article-section-teaser.
   Does NOT affect blog archives, global feeds,
   listing-scoped archives, or article pages.
   ============================================ */

/* Teaser wrapper: single column, full available width */
.mcp-blog-article-section-teaser {
    width: 100%;
}

/* Vertical card with stronger framing ? aligned with .mcp-feed-card rhythm */
.mcp-blog-article-section-teaser .mcp-blog-article-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: none;
    box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.06 );
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mcp-blog-article-section-teaser .mcp-blog-article-card:hover {
    box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.1 );
    transform: translateY( -3px );
}

/* Image: full-width top, 16:9 aspect ratio */
.mcp-blog-article-section-teaser .mcp-blog-article-card__image-link {
    display: block;
    width: 100%;
    flex: none;
}

.mcp-blog-article-section-teaser .mcp-blog-article-card__image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

/* Body: generous editorial padding */
.mcp-blog-article-section-teaser .mcp-blog-article-card__body {
    padding: 16px;
    gap: 8px;
    flex: 1;
}

/* Title: teaser prominence */
.mcp-blog-article-section-teaser .mcp-blog-article-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Summary: comfortable reading rhythm */
.mcp-blog-article-section-teaser .mcp-blog-article-card__summary {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.6;
}

/* CTA: button-like, stronger tap target */
.mcp-blog-article-section-teaser .mcp-blog-article-card__read-link {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    background: #1d6fa5;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.15s ease;
}

.mcp-blog-article-section-teaser .mcp-blog-article-card__read-link:hover {
    background: #155d8a;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile: tighten slightly, card framing preserved */
@media ( max-width: 480px ) {
    .mcp-blog-article-section-teaser .mcp-blog-article-card {
        border-radius: 10px;
    }

    .mcp-blog-article-section-teaser .mcp-blog-article-card__body {
        padding: 14px;
    }
}

/* ============================================
   Blog teaser ? narrow-column rhythm
   Matches the max-width: 50% / auto-margin pattern
   used by Marketplace, Events, Jobs, Products, Services.
   Scoped ONLY to the embedded listing-page section
   via data-section="blog_articles". Archives and global
   feeds have no mcp-listing-section[data-section] ancestor
   so these rules never apply to them.
   ============================================ */
.mcp-listing-section[data-section="blog_articles"] .mcp-blog-article-section-teaser {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1023px) {
    .mcp-listing-section[data-section="blog_articles"] .mcp-blog-article-section-teaser {
        max-width: 100%;
    }
}

/* View More Articles link */
.mcp-blog-article-section-more {
    text-align: right;
    margin-top: 10px;
}
.mcp-blog-article-section-more__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d6fa5;
    text-decoration: none;
}
.mcp-blog-article-section-more__link:hover {
    text-decoration: underline;
}
