/* ═══════════════════════════════════════════════════════════════
   PitchPulse - Compare Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Layout ────────────────────────────────────────────────── */
.compare-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    padding-top: calc(var(--header-height, 64px) + var(--space-6));
}

/* ─── Alert ─────────────────────────────────────────────────── */
.cmp-alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.cmp-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Selector Section ──────────────────────────────────────── */
.cmp-selector {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-8) var(--space-6);
    margin-bottom: var(--space-8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cmp-selector__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cmp-selector__title {
    font-size: var(--text-3xl, 1.875rem);
    font-weight: 800;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.cmp-selector__subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin: 0 0 var(--space-6);
    line-height: 1.6;
}

/* Search input */
.cmp-selector__search-area { margin-bottom: var(--space-5); }
.cmp-selector__input-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.cmp-selector__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}
.cmp-selector__input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: var(--text-base);
    border: 2px solid var(--border-light, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    background: var(--surface-bg, #fafaf8);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.cmp-selector__input:focus {
    border-color: var(--accent, #2D6A4F);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Dropdown */
.cmp-selector__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-height: 360px;
    overflow-y: auto;
    z-index: 100;
}
.cmp-dd-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
    transition: background 0.12s;
}
.cmp-dd-item:last-child { border-bottom: none; }
.cmp-dd-item:hover, .cmp-dd-item--active { background: var(--surface-hover, #f0fdf4); }
.cmp-dd-item__img { width: 48px; height: 36px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cmp-dd-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-dd-item__info { flex: 1; text-align: left; }
.cmp-dd-item__name { font-weight: 600; font-size: var(--text-sm); display: block; color: var(--text-primary); }
.cmp-dd-item__sub { font-size: var(--text-xs); color: var(--text-tertiary); display: block; }
.cmp-dd-item__add {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent, #2D6A4F); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 18px; font-weight: 700;
}
.cmp-dd-item--selected { opacity: 0.5; pointer-events: none; }
.cmp-dd-item--selected .cmp-dd-item__add { background: var(--text-tertiary); }
.cmp-dd-empty { padding: var(--space-4); text-align: center; color: var(--text-tertiary); font-size: var(--text-sm); }
.cmp-dd-loading { padding: var(--space-4); text-align: center; color: var(--text-tertiary); font-size: var(--text-sm); }

/* Selected chips */
.cmp-selector__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-4);
    min-height: 48px;
}
.cmp-chip {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--surface-bg, #f8f9fa);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full, 100px);
    padding: 4px 12px 4px 4px;
    animation: cmpChipIn 0.25s ease;
}
@keyframes cmpChipIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.cmp-chip__img { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.cmp-chip__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-chip__info { text-align: left; }
.cmp-chip__name { font-weight: 600; font-size: var(--text-sm); display: block; color: var(--text-primary); white-space: nowrap; }
.cmp-chip__loc { font-size: var(--text-xs); color: var(--text-tertiary); display: block; white-space: nowrap; }
.cmp-chip__remove {
    width: 24px; height: 24px; border-radius: 50%;
    border: none; background: transparent; cursor: pointer;
    font-size: 16px; color: var(--text-tertiary);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.cmp-chip__remove:hover { background: #fee2e2; color: #dc2626; }

/* Actions */
.cmp-selector__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.cmp-selector__hint {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.cmp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg, 12px);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.2;
}
.cmp-btn--primary {
    background: var(--accent, #2D6A4F);
    color: #fff;
}
.cmp-btn--primary:hover:not(:disabled) { background: var(--accent-hover, #245a42); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25); }
.cmp-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.cmp-btn--ghost { background: transparent; color: var(--text-secondary); }
.cmp-btn--ghost:hover { background: var(--surface-hover, #f3f4f6); }
.cmp-btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light, #e5e7eb);
}
.cmp-btn--outline:hover { background: var(--surface-hover, #f3f4f6); border-color: var(--border-medium, #d1d5db); }

/* ─── Section Headings ──────────────────────────────────────── */
.cmp-section { margin-bottom: var(--space-10, 2.5rem); }
.cmp-section__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}
.cmp-section__title svg { color: var(--accent, #2D6A4F); flex-shrink: 0; }
.cmp-section__desc { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: var(--space-4); }

/* ─── Popular Comparisons Grid ──────────────────────────────── */
.cmp-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}
.cmp-popular-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cmp-popular-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.cmp-popular-card__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 140px;
    position: relative;
}
.cmp-popular-card__img { overflow: hidden; }
.cmp-popular-card__img img { width: 100%; height: 140px; object-fit: cover; }
.cmp-popular-card__vs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: var(--accent, #2D6A4F);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}
.cmp-popular-card__body { padding: var(--space-4); }
.cmp-popular-card__title { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--space-1); }
.cmp-popular-card__subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin: 0 0 var(--space-3); }
.cmp-popular-card__parks { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cmp-popular-card__park-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-bg, #f3f4f6);
    border-radius: var(--radius-full, 100px);
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
}
.cmp-popular-card__score {
    background: var(--accent, #2D6A4F);
    color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
}

/* ─── Quick Pick Grid ───────────────────────────────────────── */
.cmp-quickpick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-3);
}
.cmp-quickpick {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}
.cmp-quickpick:hover { border-color: var(--accent, #2D6A4F); background: var(--surface-hover, #f0fdf4); }
.cmp-quickpick--selected { opacity: 0.5; pointer-events: none; border-color: var(--accent); }
.cmp-quickpick__img { width: 56px; height: 42px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cmp-quickpick__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-quickpick__body { flex: 1; min-width: 0; }
.cmp-quickpick__name { font-weight: 600; font-size: var(--text-sm); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-quickpick__loc { font-size: var(--text-xs); color: var(--text-tertiary); display: block; }
.cmp-quickpick__meta { display: flex; align-items: center; gap: var(--space-2); margin-top: 2px; }
.cmp-quickpick__score {
    background: var(--accent, #2D6A4F); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: var(--radius-sm, 4px);
}
.cmp-quickpick__rating { font-size: var(--text-xs); color: var(--text-secondary); display: flex; align-items: center; gap: 2px; }
.cmp-quickpick__add {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface-bg, #f3f4f6);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent, #2D6A4F);
    transition: background 0.15s;
}
.cmp-quickpick:hover .cmp-quickpick__add { background: var(--accent, #2D6A4F); color: #fff; }

/* ─── How It Works ──────────────────────────────────────────── */
.cmp-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.cmp-how__step {
    text-align: center;
    padding: var(--space-5);
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl, 16px);
}
.cmp-how__num {
    width: 40px; height: 40px;
    background: var(--accent, #2D6A4F);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}
.cmp-how__step h3 { font-size: var(--text-base); font-weight: 700; margin: 0 0 var(--space-2); }
.cmp-how__step p { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ─── Park Header Cards ────────────────────────────────────── */
.cmp-headers { margin-bottom: var(--space-6); }
.cmp-headers__grid {
    display: grid;
    gap: var(--space-4);
}
.cmp-cols-2 { grid-template-columns: 1fr 1fr; }
.cmp-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cmp-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.cmp-park-header {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.cmp-park-header:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.cmp-park-header__img {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.cmp-park-header__img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-park-header__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-full, 100px);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.cmp-park-header__remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.cmp-park-header:hover .cmp-park-header__remove { opacity: 1; }
.cmp-park-header__remove:hover { background: #dc2626; }
.cmp-park-header__body { padding: var(--space-4); }
.cmp-park-header__name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-1);
    line-height: 1.3;
}
.cmp-park-header__name:hover { color: var(--accent, #2D6A4F); }
.cmp-park-header__loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 0 0 var(--space-1);
}
.cmp-park-header__loc svg { flex-shrink: 0; opacity: 0.6; }
.cmp-park-header__operator {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin: 0 0 var(--space-3);
}
.cmp-park-header__operator a { color: var(--accent); text-decoration: none; }
.cmp-park-header__operator a:hover { text-decoration: underline; }
.cmp-park-header__stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.cmp-park-header__rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: var(--text-sm);
    font-weight: 600;
}
.cmp-park-header__review-ct { font-weight: 400; color: var(--text-tertiary); font-size: var(--text-xs); }
.cmp-park-header__price {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent, #2D6A4F);
    background: rgba(45, 106, 79, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-sm, 4px);
}
.cmp-park-header__flags { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-1); }

/* Score ring */
.cmp-park-header__score-ring {
    position: relative;
    width: 44px;
    height: 44px;
}
.cmp-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.cmp-ring__bg {
    fill: none;
    stroke: var(--border-light, #e5e7eb);
    stroke-width: 3;
}
.cmp-ring__fill {
    fill: none;
    stroke: var(--accent, #2D6A4F);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}
.cmp-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Add park slot */
.cmp-park-header--add {
    border-style: dashed;
    border-color: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.cmp-park-header--add:hover { border-color: var(--accent); background: var(--surface-hover, #f0fdf4); }
.cmp-park-header__add-inner {
    text-align: center;
    color: var(--text-tertiary);
}
.cmp-park-header__add-inner svg { margin-bottom: var(--space-2); }
.cmp-park-header__add-inner span { display: block; font-weight: 600; font-size: var(--text-sm); }

/* ─── Verdict ───────────────────────────────────────────────── */
.cmp-verdict {
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, rgba(45,106,79,0.04) 0%, rgba(45,106,79,0.01) 100%);
    border: 1px solid rgba(45,106,79,0.12);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-6);
}
.cmp-verdict__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0 0 var(--space-5);
    color: var(--text-primary);
}
.cmp-verdict__title svg { color: var(--accent); }
.cmp-verdict__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.cmp-verdict__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4) var(--space-3);
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 12px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    gap: var(--space-1);
}
.cmp-verdict__card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.cmp-verdict__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(45,106,79,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-1);
}
.cmp-verdict__label { font-size: var(--text-xs); color: var(--text-tertiary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-verdict__park { font-size: var(--text-sm); color: var(--text-primary); line-height: 1.3; }
.cmp-verdict__value { font-size: var(--text-xs); color: var(--accent, #2D6A4F); font-weight: 600; }

/* Verdict icon variants */
.cmp-verdict__icon::before { content: ''; display: block; }
.cmp-verdict__icon--trophy { background: rgba(245,158,11,0.15); }
.cmp-verdict__icon--trophy::after { content: '\1F3C6'; font-size: 18px; }
.cmp-verdict__icon--piggy-bank { background: rgba(45,106,79,0.1); }
.cmp-verdict__icon--piggy-bank::after { content: '\1F4B0'; font-size: 18px; }
.cmp-verdict__icon--users { background: rgba(59,130,246,0.1); }
.cmp-verdict__icon--users::after { content: '\1F46A'; font-size: 18px; }
.cmp-verdict__icon--star { background: rgba(245,158,11,0.15); }
.cmp-verdict__icon--star::after { content: '\2B50'; font-size: 18px; }
.cmp-verdict__icon--tag { background: rgba(16,185,129,0.1); }
.cmp-verdict__icon--tag::after { content: '\1F3F7'; font-size: 18px; }
.cmp-verdict__icon--check-circle { background: rgba(16,185,129,0.1); }
.cmp-verdict__icon--check-circle::after { content: '\2705'; font-size: 18px; }

/* ─── Section Nav (sticky) ──────────────────────────────────── */
.cmp-nav {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-2) 0;
    margin-bottom: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: var(--header-height, 64px);
    background: var(--surface-bg, #fafaf8);
    z-index: 20;
    border-bottom: 1px solid var(--border-light);
}
.cmp-nav__item {
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full, 100px);
    white-space: nowrap;
    transition: all 0.2s;
}
.cmp-nav__item:hover, .cmp-nav__item--active {
    background: var(--accent, #2D6A4F);
    color: #fff;
}

/* ─── Comparison Blocks ─────────────────────────────────────── */
.cmp-block {
    margin-bottom: var(--space-6);
    scroll-margin-top: calc(var(--header-height, 64px) + 60px);
}
.cmp-block__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--accent, #2D6A4F);
    color: var(--text-primary);
}
.cmp-block__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── Comparison Table ──────────────────────────────────────── */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.cmp-table tr { border-bottom: 1px solid var(--border-light, #f3f4f6); }
.cmp-table tr:last-child { border-bottom: none; }
.cmp-table tr:hover { background: var(--surface-hover, rgba(0,0,0,0.015)); }
.cmp-table__label {
    padding: 12px 16px 12px 0;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    width: 180px;
    min-width: 140px;
}
.cmp-table__val {
    padding: 12px 16px;
    position: relative;
    text-align: center;
    min-width: 120px;
}
.cmp-table__val--best {
    background: rgba(45, 106, 79, 0.04);
}

/* Winner dot */
.cmp-winner-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent, #2D6A4F);
}

/* Score bars */
.cmp-bar-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.cmp-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 4px;
}
.cmp-bar--green { background: linear-gradient(90deg, #16a34a, #22c55e); }
.cmp-bar--amber { background: linear-gradient(90deg, #d97706, #f59e0b); }
.cmp-bar--orange { background: linear-gradient(90deg, #ea580c, #f97316); }
.cmp-bar--red { background: linear-gradient(90deg, #dc2626, #ef4444); }
.cmp-bar-val {
    font-weight: 700;
    font-size: var(--text-sm);
    min-width: 28px;
    text-align: right;
}

/* Rating display */
.cmp-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: var(--text-sm);
}
.cmp-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.cmp-muted { color: var(--text-tertiary, #94a3b8); }

/* Risk band pills */
.cmp-risk { font-weight: 600; font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-sm, 4px); }
.cmp-risk--green { background: #dcfce7; color: #166534; }
.cmp-risk--yellow { background: #fef9c3; color: #854d0e; }
.cmp-risk--orange { background: #ffedd5; color: #9a3412; }
.cmp-risk--red { background: #fee2e2; color: #991b1b; }
.cmp-risk--grey { background: #f3f4f6; color: #6b7280; }

/* Links */
.cmp-link { color: var(--accent, #2D6A4F); text-decoration: none; font-weight: 600; }
.cmp-link:hover { text-decoration: underline; }

/* Tick/cross for facilities */
.cmp-tick, .cmp-cross { display: flex; align-items: center; justify-content: center; }

/* Facility summary */
.cmp-facility-summary {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-3);
    flex-wrap: wrap;
}
.cmp-facility-summary__item {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ─── Actions Bar ───────────────────────────────────────────── */
.cmp-actions-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cmp-cols-3, .cmp-cols-4 { grid-template-columns: 1fr 1fr; }
    .cmp-how__steps { grid-template-columns: 1fr; }
    .cmp-verdict__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .compare-page { padding: var(--space-4) var(--space-3); padding-top: calc(var(--header-height, 64px) + var(--space-4)); }
    .cmp-selector { padding: var(--space-5) var(--space-4); }
    .cmp-cols-2, .cmp-cols-3, .cmp-cols-4 { grid-template-columns: 1fr; }
    .cmp-popular-grid { grid-template-columns: 1fr; }
    .cmp-quickpick-grid { grid-template-columns: 1fr; }
    .cmp-table__label { width: 120px; min-width: 100px; font-size: var(--text-xs); }
    .cmp-table__val { min-width: 100px; padding: 10px 8px; }
    .cmp-verdict__grid { grid-template-columns: repeat(2, 1fr); }
    .cmp-nav { gap: 0; }
    .cmp-nav__item { padding: 6px 12px; font-size: var(--text-xs); }
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
    .cmp-selector, .cmp-nav, .cmp-actions-bar, .cmp-park-header__remove { display: none !important; }
    .compare-page { padding: 0; max-width: 100%; }
    .cmp-park-header__img { height: 100px; }
    .cmp-table tr { break-inside: avoid; }
}

/* ─── SR Only ───────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
