/**
 * DealsFinders — Car Wash Coupons Local SEO Stylesheet
 *
 * Provides high-converting ticket-stub hero cards, responsive location tables,
 * nearby city navigation chips, and accessible FAQ accordions.
 */

.dfcw-wrap {
    padding: 24px 16px 48px;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 240px, #f1f5f9 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

.dfcw-shell {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.dfcw-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.dfcw-breadcrumbs a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.dfcw-breadcrumbs a:hover {
    color: #047857;
    text-decoration: underline;
}

.dfcw-breadcrumbs span.dfcw-sep {
    color: #94a3b8;
}

.dfcw-breadcrumbs span.dfcw-current {
    color: #334155;
    font-weight: 600;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.dfcw-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.dfcw-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dfcw-badge-fresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.dfcw-badge-fresh .dfcw-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dfcwPulse 2s infinite;
}

.dfcw-header h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.dfcw-header p.dfcw-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 18px;
    max-width: 860px;
}

.dfcw-header-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dfcw-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.dfcw-cta-primary:hover {
    background: #047857;
    transform: translateY(-1px);
}

.dfcw-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dfcw-cta-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* ── Panel / Section ────────────────────────────────────────────────────── */
.dfcw-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.dfcw-panel h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.dfcw-panel p.dfcw-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: -6px 0 16px;
    line-height: 1.5;
}

/* ── Nationwide Hero Voucher Card ───────────────────────────────────────── */
.dfcw-hero-card {
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 45%, #e6fcf5 100%);
    border: 2px solid #34d399;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -4px rgba(5, 150, 105, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.dfcw-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(5, 150, 105, 0.28), 0 8px 12px -3px rgba(0, 0, 0, 0.07);
    border-color: #059669;
}

.dfcw-nationwide-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
}

.dfcw-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.dfcw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dfcw-hero-trust {
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.dfcw-hero-body {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Coupon Ticket Stub */
.dfcw-ticket-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding-right: 20px;
    border-right: 2px dashed #6ee7b7;
    text-align: center;
    flex-shrink: 0;
}

.dfcw-stub-val {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: #065f46;
    letter-spacing: -0.03em;
}

.dfcw-stub-off {
    font-size: 13px;
    font-weight: 800;
    color: #059669;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

.dfcw-stub-sub {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.dfcw-hero-info {
    flex: 1;
    min-width: 260px;
}

.dfcw-hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dfcw-hero-info h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #065f46;
    line-height: 1.3;
}

.dfcw-val-pill {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.dfcw-hero-info p {
    margin: 0 0 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.dfcw-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.dfcw-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dfcw-hero-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 240px;
}

.dfcw-btn-redeem-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 24px;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    white-space: nowrap;
    width: 100%;
    letter-spacing: -0.01em;
}

.dfcw-hero-card:hover .dfcw-btn-redeem-hero,
.dfcw-btn-redeem-hero:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

.dfcw-btn-subtext {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    text-align: center;
    margin-top: 6px;
    letter-spacing: 0.01em;
}

/* ── Sub-Banner (Secondary) ─────────────────────────────────────────────── */
.dfcw-sub-banner {
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 16px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dfcw-sub-banner:hover {
    transform: translateY(-1px);
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}

.dfcw-sub-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}

.dfcw-sub-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 240px;
}

.dfcw-sub-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dfcw-sub-banner-text {
    font-size: 14px;
    color: #166534;
    line-height: 1.4;
}

.dfcw-sub-banner-text strong {
    display: block;
    font-size: 15px;
    color: #065f46;
    margin-bottom: 2px;
}

.dfcw-btn-sub-redeem {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #059669;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.dfcw-sub-banner:hover .dfcw-btn-sub-redeem,
.dfcw-btn-sub-redeem:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.4);
}

/* ── Note / Disclaimer ──────────────────────────────────────────────────── */
.dfcw-note {
    background: #f8fafc;
    border-left: 4px solid #059669;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 14px 0;
}

.dfcw-note strong {
    color: #0f172a;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.dfcw-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 12px 0;
}

.dfcw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    min-width: 680px;
}

.dfcw-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dfcw-table td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.dfcw-table tr:last-child td {
    border-bottom: none;
}

.dfcw-table tr:hover td {
    background: #fafafa;
}

.dfcw-chain-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    display: block;
}

.dfcw-chain-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.dfcw-dist-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.dfcw-offer-text {
    font-weight: 600;
    color: #059669;
}

.dfcw-offer-claim {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.dfcw-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.dfcw-btn-table-redeem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #059669;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dfcw-btn-table-redeem:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* ── Chip Lists (Nearby Cities, States) ─────────────────────────────────── */
.dfcw-chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dfcw-chip-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dfcw-chip-list li a:hover {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

.dfcw-chip-list li a span.dfcw-chip-count {
    font-size: 11px;
    color: #64748b;
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 700;
}

.dfcw-chip-list li a:hover span.dfcw-chip-count {
    background: #a7f3d0;
    color: #065f46;
}

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.dfcw-faq-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.dfcw-faq-grid details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    padding: 14px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dfcw-faq-grid details[open] {
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.dfcw-faq-grid summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    list-style-position: outside;
}

.dfcw-faq-grid summary:hover {
    color: #059669;
}

.dfcw-faq-grid p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes dfcwPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ── Responsive Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dfcw-wrap {
        padding: 16px 12px 32px;
    }
    .dfcw-header {
        padding: 20px 16px;
    }
    .dfcw-header h1 {
        font-size: 24px;
    }
    .dfcw-panel {
        padding: 18px 14px;
    }
    .dfcw-hero-card {
        padding: 16px;
    }
    .dfcw-hero-body {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .dfcw-ticket-stub {
        flex-direction: row;
        gap: 8px;
        border-right: none;
        border-bottom: 2px dashed #6ee7b7;
        padding-right: 0;
        padding-bottom: 12px;
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
    .dfcw-stub-val {
        font-size: 28px;
    }
    .dfcw-stub-off,
    .dfcw-stub-sub {
        align-self: center;
        margin-top: 0;
    }
    .dfcw-hero-action {
        width: 100%;
        min-width: 0;
    }
    .dfcw-btn-redeem-hero {
        width: 100%;
        font-size: 15px;
        padding: 12px 18px;
    }
    .dfcw-sub-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }
    .dfcw-btn-sub-redeem {
        width: 100%;
        justify-content: center;
    }
}
