/* ==============================================
   City Page Components — shared across all city pages
   Prefix: cp- (city page)
   ============================================== */

/* Featured Plan Cards */
.cp-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}
.cp-plan-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: box-shadow 0.2s ease;
    position: relative;
}
.cp-plan-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.cp-plan-card--featured {
    border-color: #0E9F6E;
    box-shadow: 0 0 0 1px #0E9F6E;
}
.cp-plan-logo {
    width: 110px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}
.cp-plan-logo-placeholder {
    width: 110px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    background: #6b7280;
}
.cp-plan-info {
    flex: 1;
    min-width: 0;
}
.cp-plan-provider {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.cp-plan-name {
    font-size: 20px;
    font-weight: 800;
    color: #1f1f1f;
    line-height: 1.3;
    margin-bottom: 8px;
}
.cp-plan-details {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cp-plan-term {
    font-size: 14px;
    color: #6b7280;
}
.cp-plan-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
}
.cp-plan-badge--top { background: #0E9F6E; color: #fff; }
.cp-plan-badge--green { background: #dcfce7; color: #166534; }
.cp-plan-badge--blue { background: #dbeafe; color: #1e40af; }
.cp-plan-badge--orange { background: #ffedd5; color: #9a3412; }
.cp-plan-badge--purple { background: #f3e8ff; color: #6b21a8; }
.cp-plan-rate-col {
    text-align: center;
    flex-shrink: 0;
    padding: 0 20px;
}
.cp-plan-rate {
    font-size: 48px;
    font-weight: 900;
    color: #0E9F6E;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.cp-plan-rate-unit {
    font-size: 28px;
    font-weight: 900;
    color: #0E9F6E;
}
.cp-plan-rate-label {
    font-size: 12px;
    color: #b0b5bd;
    margin-top: 6px;
}
.cp-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #0E9F6E;
    color: #fff !important;
    white-space: nowrap;
}
.cp-plan-cta:hover {
    background: #0C8C60;
    box-shadow: 0 4px 12px rgba(14,159,110,0.3);
}
@media (max-width: 767px) {
    .cp-plan-card {
        flex-wrap: wrap;
        padding: 24px;
        gap: 20px;
    }
    .cp-plan-logo, .cp-plan-logo-placeholder {
        width: 80px;
        height: 48px;
    }
    .cp-plan-info { width: calc(100% - 112px); }
    .cp-plan-rate-col {
        text-align: left;
        padding: 0;
    }
    .cp-plan-rate { font-size: 36px; }
    .cp-plan-cta {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Usage Cards */
.cp-usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}
@media (min-width: 640px) {
    .cp-usage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cp-usage-grid { grid-template-columns: repeat(4, 1fr); }
}
.cp-usage-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
.cp-usage-header {
    padding: 20px;
    text-align: center;
}
.cp-usage-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}
.cp-usage-header--apartment .cp-usage-icon { color: #3b82f6; }
.cp-usage-header--average   .cp-usage-icon { color: #16a34a; }
.cp-usage-header--larger    .cp-usage-icon { color: #d97706; }
.cp-usage-header--large     .cp-usage-icon { color: #db2777; }
.cp-usage-header--apartment { background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); }
.cp-usage-header--average   { background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%); }
.cp-usage-header--larger    { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); }
.cp-usage-header--large     { background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%); }
.cp-usage-label {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.cp-usage-kwh {
    font-size: 13px;
    color: #6b7280;
}
.cp-usage-body {
    padding: 20px;
    text-align: center;
}
.cp-usage-plan {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.cp-usage-cost {
    font-size: 28px;
    font-weight: 800;
    color: #1f1f1f;
    margin-bottom: 4px;
}
.cp-usage-cost-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}
.cp-usage-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.cp-usage-features li {
    font-size: 13px;
    color: #4b5563;
    padding: 6px 0;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-usage-features li::before {
    content: '\2713';
    color: #16a34a;
    font-weight: 700;
    flex-shrink: 0;
}

/* Provider Directory */
.cp-providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}
@media (min-width: 640px) {
    .cp-providers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .cp-providers-grid { grid-template-columns: repeat(4, 1fr); }
}
.cp-prov-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.cp-prov-logo {
    width: 88px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}
.cp-prov-avatar {
    width: 56px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.cp-prov-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.35;
}
.cp-prov-tag {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}
.cp-prov-showall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0E9F6E;
    cursor: pointer;
    background: none;
    border: none;
    padding: 12px 0;
    font-family: inherit;
}
.cp-prov-showall:hover { color: #0C8C60; }
.cp-prov-showall i { font-size: 18px; transition: transform 0.2s ease; }
.cp-prov-showall.is-open i { transform: rotate(180deg); }
.cp-prov-extra { display: none; }
.cp-prov-extra.is-visible { display: grid; }

/* Business Section */
.cp-biz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}
@media (min-width: 640px) {
    .cp-biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cp-biz-grid { grid-template-columns: repeat(3, 1fr); }
}
.cp-biz-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.cp-biz-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.cp-biz-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 16px;
}
.cp-biz-icon--blue { background: #dbeafe; color: #1e40af; }
.cp-biz-icon--green { background: #dcfce7; color: #166534; }
.cp-biz-icon--orange { background: #ffedd5; color: #9a3412; }
.cp-biz-icon--purple { background: #f3e8ff; color: #6b21a8; }
.cp-biz-icon--pink { background: #fce7f3; color: #9d174d; }
.cp-biz-icon--teal { background: #ccfbf1; color: #115e59; }
.cp-biz-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 8px;
    padding: 0;
}
.cp-biz-card > p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.6;
}
.cp-biz-card .cp-biz-usage {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cp-biz-diff {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .cp-biz-diff { grid-template-columns: 1fr 1fr; }
}
.cp-biz-diff-col {
    padding: 28px 24px;
}
.cp-biz-diff-col:first-child {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 768px) {
    .cp-biz-diff-col:first-child {
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
    }
}
.cp-biz-diff-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 16px;
    padding: 0;
}
.cp-biz-diff-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cp-biz-diff-list li {
    font-size: 14px;
    color: #4b5563;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.cp-biz-diff-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    font-weight: 700;
}
.cp-biz-diff-col:first-child .cp-biz-diff-list li::before { color: #6b7280; }
.cp-biz-diff-col:last-child .cp-biz-diff-list li::before { color: #0E9F6E; }

/* Step Cards */
.cp-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}
@media (min-width: 640px) {
    .cp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cp-steps { grid-template-columns: repeat(4, 1fr); }
}
.cp-step {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 20px;
}
.cp-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0E9F6E;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}
.cp-step h4 { font-size: 16px; font-weight: 700; color: #1f1f1f; margin: 0 0 8px; padding: 0; }
.cp-step p { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.6; }

/* Plan Type Cards */
.cp-plan-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 32px 0;
}
@media (min-width: 640px) {
    .cp-plan-types { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cp-plan-types { grid-template-columns: repeat(3, 1fr); }
}
.cp-type-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
}
.cp-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    margin-bottom: 12px;
}
.cp-type-badge--popular { background: #0E9F6E; color: #fff; }
.cp-type-badge--flexible { background: #dbeafe; color: #1e40af; }
.cp-type-badge--no-credit { background: #fef3c7; color: #92400e; }
.cp-type-badge--specialty { background: #fce7f3; color: #9d174d; }
.cp-type-badge--eco { background: #dcfce7; color: #166534; }
.cp-type-badge--solar { background: #ffedd5; color: #9a3412; }
.cp-type-card h4 { font-size: 18px; font-weight: 700; color: #1f1f1f; margin: 0 0 8px; padding: 0; }
.cp-type-card > p { font-size: 14px; color: #6b7280; margin: 0 0 16px; line-height: 1.6; }
.cp-type-list { list-style: none; padding: 0; margin: 0; }
.cp-type-list li {
    font-size: 13px; color: #4b5563; padding: 5px 0; border-top: 1px solid #f3f4f6;
    display: flex; align-items: baseline; gap: 8px;
}
.cp-type-list li::before { content: '\2022'; color: #0E9F6E; flex-shrink: 0; }

/* Alert Box */
.cp-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    margin: 32px 0;
}
.cp-alert h4 { font-size: 15px; font-weight: 700; color: #92400e; margin: 0 0 8px; padding: 0; }
.cp-alert p { font-size: 14px; color: #78350f; margin: 0; line-height: 1.7; }
.cp-alert strong { color: #78350f; }

/* Inline CTA Banner */
.cp-inline-cta {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #D1FAE5;
    border-radius: 14px;
    padding: 40px 32px;
    text-align: center;
    margin: 40px 0;
}
.cp-inline-cta h3 { font-size: 24px; font-weight: 800; color: #1f1f1f; margin: 0 0 8px; padding: 0; }
.cp-inline-cta p { font-size: 15px; color: #6b7280; margin: 0 0 20px; }

/* Stats Bar (bordered variant) */
.cp-stats-bordered { border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb; }
.cp-stats-bordered .ec-stat-card:first-child { padding-left: 24px; }
@media (max-width: 640px) {
    .cp-stats-bordered .ec-stat-card:first-child { padding-left: 16px; }
    .cp-stats-bordered .ec-stat-card:nth-child(3) { padding-left: 16px; }
}

/* Rate Comparison Chart (PNG image) */
.cp-chart-figure {
    margin: 32px 0;
}
.cp-chart-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.cp-chart-caption {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

/* Rate Distribution (CSS bars) */
.cp-dist-section { margin: 32px 0; }
.cp-dist-title { font-size: 16px; font-weight: 700; color: #1f1f1f; margin: 0 0 16px; padding: 0; }
.cp-dist-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.cp-dist-label {
    width: 60px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: right;
}
.cp-dist-track {
    flex: 1;
    background: #f3f4f6;
    border-radius: 6px;
    height: 24px;
    position: relative;
    overflow: hidden;
}
.cp-dist-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #0E9F6E, #10b981);
    transition: width 0.3s ease;
}
.cp-dist-count {
    width: 50px;
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Cost Projection Table */
.cp-proj-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.cp-proj-table th {
    background: #f9fafb;
    font-weight: 700;
    color: #374151;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}
.cp-proj-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.cp-proj-table tr:hover td { background: #f9fafb; }
.cp-proj-table .cp-proj-savings {
    color: #0E9F6E;
    font-weight: 700;
}
@media (max-width: 640px) {
    .cp-proj-table { font-size: 12px; }
    .cp-proj-table th, .cp-proj-table td { padding: 8px 10px; }
}