/**
 * CUL Best Of Listings - Card & Section Styles
 * Plugin: ClickUpLocal Blog Automation
 *
 * Featured cards mirror the CUL business card design from theme
 * with rank numbers on the left.
 */

/* ── Shared container centering ────────────────────────────── */

.cul-bestof-listings--featured,
.cul-bestof-listings--secondary,
.cul-hero-text,
.cul-intro-text,
.cul-how-it-works,
.cul-faq,
.cul-cta-block,
.cul-secondary-heading {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Centered text sections (How We Rank, FAQ) */
.cul-center-section {
    text-align: center;
}

.cul-center-section p {
    text-align: center;
}

.cul-section-subtitle {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 17px;
    color: #888;
    line-height: 1.5;
    margin: -8px 0 24px;
}

/* ── Featured: row = rank + card ──────────────────────────── */

.cul-bestof-listings--featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cul-bestof-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.cul-bestof-rank {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #E87722;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 16px;
}

/* ── Featured card (mirrors .cul-card from theme) ─────────── */

.cul-bestof-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #dce3f0;
    border-left: 4px solid #c5cfe8;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cul-bestof-card *,
.cul-bestof-card *::before,
.cul-bestof-card *::after {
    box-sizing: border-box;
}

a.cul-bestof-card,
a.cul-bestof-card:hover,
a.cul-bestof-card:focus,
a.cul-bestof-card:active,
a.cul-bestof-card * {
    text-decoration: none !important;
}

.cul-bestof-card:hover {
    border-color: #1B3A5C;
    box-shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
}

.cul-bestof-card--offer {
    border-left: 4px solid #E87722;
}

.cul-bestof-card--offer:hover {
    box-shadow: 0 2px 14px rgba(232, 119, 34, 0.15);
}

/* ── Card body ────────────────────────────────────────────── */

.cul-bestof-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.cul-bestof-card__name {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.cul-bestof-card__meta {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 16px;
    color: #8da4bf;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: normal;
    flex-wrap: wrap;
    overflow: visible;
}

.cul-bestof-card__desc {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card footer ──────────────────────────────────────────── */

.cul-bestof-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-top: 1px solid #eef2f9;
    background: #f8fafd;
}

.cul-bestof-card__footer-score {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #1B3A5C;
}

.cul-bestof-card__footer-link {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 15px;
    font-weight: 600;
    color: #1B3A5C;
}

/* ── Offer strip ──────────────────────────────────────────── */

.cul-bestof-card__offer-strip {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0c898;
    cursor: pointer;
}

.cul-bestof-card__offer-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: #fdecd8;
    transition: background 0.15s;
}

.cul-bestof-card:hover .cul-bestof-card__offer-left {
    background: #faddbe;
}

.cul-bestof-card__offer-right {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #E87722;
    transition: background 0.15s;
}

.cul-bestof-card:hover .cul-bestof-card__offer-right {
    background: #c85f10;
}

.cul-bestof-card__offer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c85f10;
    flex-shrink: 0;
    animation: cul-bestof-blink 1.8s ease-in-out infinite;
}

@keyframes cul-bestof-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.cul-bestof-card__offer-name {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 14px;
    color: #a04a0a;
    font-weight: 500;
}

.cul-bestof-card__offer-cta {
    font-family: 'DM Sans', system-ui, sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* ── Secondary listing rows ──────────────────────────────── */

.cul-bestof-listings--secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .cul-bestof-listings--secondary {
        grid-template-columns: 1fr;
    }
}

.cul-secondary-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    padding: 16px 20px;
}

.cul-secondary-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #EEF4FB;
    color: #1B3A5C;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cul-secondary-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.cul-secondary-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}

.cul-secondary-title:hover {
    color: #E87722;
}

.cul-secondary-score {
    font-size: 13px;
    color: #3d5a99;
}

.cul-secondary-cta {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #E87722;
    text-decoration: none;
}

.cul-secondary-cta:hover {
    text-decoration: underline;
}

/* ── Section headings ────────────────────────────────────── */

.cul-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 20px;
}

.cul-secondary-heading {
    margin-top: 8px;
}

/* ── Hero ─────────────────────────────────────────────────── */

.cul-hero-text {
    text-align: center;
}

.cul-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
}

.cul-hero-subtitle {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    margin: -5px 0 5px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* ── Intro ────────────────────────────────────────────────── */

.cul-intro-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
}

/* ── How it works ─────────────────────────────────────────── */

.cul-how-it-works {
}

.cul-how-it-works p {
    font-size: 17px;
    color: #444;
    line-height: 1.6;
}

.cul-text-link {
    color: #E87722;
    font-weight: 600;
    text-decoration: none;
}

.cul-text-link:hover {
    text-decoration: underline;
}

/* ── FAQ accordion ────────────────────────────────────────── */

.cul-faq {
}

.cul-faq__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .cul-faq__grid {
        grid-template-columns: 1fr;
    }
}

.cul-faq__item {
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cul-faq__question {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    text-align: left;
}

.cul-faq__question::-webkit-details-marker {
    display: none;
}

.cul-faq__question::before {
    content: '+';
    display: inline-block;
    width: 24px;
    font-weight: 700;
    color: #E87722;
}

details[open] .cul-faq__question::before {
    content: '-';
}

.cul-faq__answer {
    padding: 0 20px 16px 44px;
}

.cul-faq__answer p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* ── CTA block ────────────────────────────────────────────── */

.cul-cta-block {
    text-align: center;
}

.cul-cta-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 12px;
}

.cul-cta-subtext {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0 0 24px;
}

.cul-cta-btn {
    display: inline-block;
    background: #E87722;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.cul-cta-btn:hover {
    background: #d06a1e;
    color: #ffffff;
}

/* ── Map (fallback) ───────────────────────────────────────── */

.cul-bestof-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 1px solid #e0e8f0;
}

.cul-map-marker {
    width: 36px;
    height: 36px;
    background: #1B3A5C;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cul-map-marker__num {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.cul-map-popup {
    text-align: center;
    padding: 4px;
}

.cul-map-popup__name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    margin-bottom: 4px;
}

.cul-map-popup__score {
    display: block;
    font-size: 12px;
    color: #3d5a99;
    margin-bottom: 6px;
}

.cul-map-popup__cta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #E87722;
    text-decoration: none;
}

/* ── Error / no-results ───────────────────────────────────── */

.cul-error,
.cul-no-results {
    font-size: 16px;
    color: #888;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ── Mobile responsive ────────────────────────────────────── */

@media (max-width: 768px) {
    .cul-bestof-row {
        gap: 12px;
    }

    .cul-bestof-rank {
        width: 40px;
        height: 40px;
        font-size: 17px;
        margin-top: 12px;
    }

    .cul-bestof-card__body {
        padding: 14px 16px;
    }

    .cul-bestof-card__name {
        font-size: 18px;
    }

    .cul-hero-title {
        font-size: 27px;
    }

    .cul-section-title {
        font-size: 23px;
    }

    .cul-cta-title {
        font-size: 23px;
    }

    .cul-secondary-row {
        flex-wrap: wrap;
    }

    .cul-bestof-map {
        height: 300px;
    }
}
