/* ═══════════════════════════════════════════════
   FullArchNetwork – Find Clinics Styles (v1.3)
   Brand: Navy #0A1628, Gold #C9A84C, Blue #2563eb
   ═══════════════════════════════════════════════ */

:root {
    --fc-navy: #0A1628;
    --fc-navy-light: #1a2a44;
    --fc-gold: #C9A84C;
    --fc-gold-light: rgba(201,168,76,0.1);
    --fc-blue: #2563eb;
    --fc-blue-dark: #1d4ed8;
    --fc-blue-light: rgba(37,99,235,0.08);
    --fc-bg: #f8fafc;
    --fc-card: #ffffff;
    --fc-border: #e2e8f0;
    --fc-border-strong: #cbd5e1;
    --fc-text: #1e293b;
    --fc-muted: #64748b;
    --fc-radius: 8px;
}

.fan-fc-page { background: var(--fc-bg); min-height: 100vh; }
.fan-fc-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ── Search Bar ── */
.fan-fc-search-bar {
    position: sticky; top: 0; z-index: 30;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.fan-fc-search-inner {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
}
.fan-fc-search-input-wrap { position: relative; flex: 1; }
.fan-fc-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--fc-muted);
}
#fan-fc-search {
    width: 100%; height: 44px; padding: 0 1rem 0 2.5rem;
    border: 1px solid var(--fc-border); border-radius: var(--fc-radius);
    background: var(--fc-card); font-size: 14px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#fan-fc-search:focus {
    outline: none; border-color: var(--fc-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.fan-fc-nationwide-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius); background: var(--fc-card);
    font-size: 13px; font-weight: 600; color: var(--fc-blue);
    cursor: pointer; white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.fan-fc-nationwide-btn:hover { background: var(--fc-blue-light); border-color: var(--fc-blue); }

.fan-fc-filter-toggle {
    display: none; padding: 10px; border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius); background: var(--fc-card); cursor: pointer;
}
.fan-fc-view-toggle { display: flex; gap: 4px; }
.fan-fc-view-btn {
    padding: 10px; border-radius: 6px; border: none;
    background: transparent; cursor: pointer; color: var(--fc-muted);
    transition: background 0.15s, color 0.15s;
}
.fan-fc-view-btn:hover { background: var(--fc-bg); }
.fan-fc-view-btn.active { background: var(--fc-blue-light); color: var(--fc-blue); }

/* ── Popular Cities ── */
.fan-fc-cities-bar {
    margin-bottom: 1.5rem; padding: 1rem 1.25rem;
    border: 1px dashed var(--fc-border-strong); border-radius: 12px;
    background: var(--fc-card);
}
.fan-fc-cities-bar.hidden { display: none; }
.fan-fc-cities-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--fc-muted); margin: 0 0 10px 0;
}
.fan-fc-cities-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fan-fc-city-btn {
    padding: 5px 14px; border: 1px solid var(--fc-border);
    border-radius: 999px; background: var(--fc-card);
    font-size: 12px; font-weight: 600; color: var(--fc-muted);
    cursor: pointer; transition: all 0.2s;
}
.fan-fc-city-btn:hover {
    background: var(--fc-blue-light); color: var(--fc-blue);
    border-color: rgba(37,99,235,0.35);
}

/* ── Layout ── */
.fan-fc-main { padding: 1.5rem 1rem; }
.fan-fc-layout { display: flex; gap: 1.75rem; align-items: flex-start; }

/* ── Sidebar ── */
.fan-fc-sidebar {
    width: 280px; flex-shrink: 0;
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 0.5rem;
    position: sticky; top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}
.fan-fc-sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fc-border);
}
.fan-fc-sidebar-header h3 {
    font-size: 16px; font-weight: 700; margin: 0; color: var(--fc-text);
}
.fan-fc-clear-all {
    font-size: 12px; font-weight: 600; color: var(--fc-blue);
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    border-radius: 6px;
}
.fan-fc-clear-all:hover { background: var(--fc-blue-light); }

.fan-fc-filter-group { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--fc-border); }
.fan-fc-filter-group:last-child { border-bottom: none; }
.fan-fc-filter-group h4 {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--fc-text); margin: 0 0 12px 0;
}
.fan-fc-filter-options { display: flex; flex-direction: column; gap: 10px; }

.fan-fc-checkbox {
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: var(--fc-text); cursor: pointer;
    line-height: 1.35;
}
.fan-fc-checkbox input[type="checkbox"] {
    width: 16px; height: 16px; border-radius: 4px;
    accent-color: var(--fc-blue); flex-shrink: 0;
}
.fan-fc-checkbox:hover { color: var(--fc-blue); }

/* Radio row (financing) */
.fan-fc-radio-row { flex-direction: row; gap: 6px; flex-wrap: wrap; }
.fan-fc-radio {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--fc-border);
    border-radius: 999px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--fc-muted);
    background: var(--fc-card); transition: all 0.15s;
}
.fan-fc-radio input[type="radio"] {
    width: 14px; height: 14px; accent-color: var(--fc-blue); margin: 0;
}
.fan-fc-radio:has(input:checked) {
    background: var(--fc-blue-light); color: var(--fc-blue);
    border-color: var(--fc-blue);
}

/* Price inputs */
.fan-fc-price-row { display: flex; gap: 10px; }
.fan-fc-price-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fan-fc-price-field label {
    font-size: 11px; font-weight: 600; color: var(--fc-muted);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.fan-fc-price-field input {
    height: 38px; padding: 0 10px;
    border: 1px solid var(--fc-border); border-radius: 6px;
    background: var(--fc-card); font-size: 14px; font-family: inherit;
    width: 100%; box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}
.fan-fc-price-field input::-webkit-outer-spin-button,
.fan-fc-price-field input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.fan-fc-price-field input:focus {
    outline: none; border-color: var(--fc-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Tech list scrollable */
.fan-fc-tech-list {
    max-height: 260px; overflow-y: auto; padding-right: 4px;
}
.fan-fc-tech-list::-webkit-scrollbar { width: 6px; }
.fan-fc-tech-list::-webkit-scrollbar-thumb { background: var(--fc-border-strong); border-radius: 3px; }

/* ── Results ── */
.fan-fc-results { flex: 1; min-width: 0; }
.fan-fc-results-header {
    margin-bottom: 1rem; font-size: 14px; color: var(--fc-muted);
}
.fan-fc-results-count strong { color: var(--fc-text); }

/* Grid */
.fan-fc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.fan-fc-results-grid.list-view { grid-template-columns: 1fr; }

/* ── Clinic Card ── */
.fan-fc-card {
    border: 1px solid var(--fc-border); border-radius: var(--fc-radius);
    background: var(--fc-card); overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.fan-fc-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.fan-fc-card.list { display: flex; gap: 1.25rem; padding: 1rem; }

.fan-fc-card-image-wrap {
    position: relative; overflow: hidden;
    background: var(--fc-navy-light);
    display: flex; align-items: center; justify-content: center;
}
.fan-fc-card-image-wrap.grid { height: 144px; }
.fan-fc-card-image-wrap.list {
    width: 160px; height: 128px; flex-shrink: 0; border-radius: 6px;
}
.fan-fc-card-initial {
    font-size: 48px; font-weight: 700;
    color: rgba(255,255,255,0.3); font-family: serif;
}
.fan-fc-card-image-wrap.list .fan-fc-card-initial { font-size: 32px; }
.fan-fc-card-logo { width: 100%; height: 100%; object-fit: cover; }

/* Badges */
.fan-fc-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.fan-fc-badge.verified {
    background: rgba(37,99,235,0.1); color: var(--fc-blue);
}
.fan-fc-badge.sponsored {
    background: var(--fc-gold); color: var(--fc-navy);
}
.fan-fc-badge.procedure {
    background: var(--fc-bg); color: var(--fc-text);
    border: 1px solid var(--fc-border);
}
.fan-fc-badge.financing, .fan-fc-badge.financing-sm {
    color: var(--fc-blue); font-size: 11px;
}
.fan-fc-badge.abs { position: absolute; left: 8px; top: 8px; }
.fan-fc-badge.abs-left { position: absolute; left: 8px; top: 8px; }
.fan-fc-badge.abs-left-offset { left: 100px; }

/* Card body */
.fan-fc-card-body.grid { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.fan-fc-card-body.list { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }

.fan-fc-card-title {
    font-size: 18px; font-weight: 700; line-height: 1.3;
    color: var(--fc-text); text-decoration: none;
    transition: color 0.2s;
}
.fan-fc-card:hover .fan-fc-card-title { color: var(--fc-blue); }

.fan-fc-card-location {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--fc-muted); margin-top: 4px;
}
.fan-fc-card-rating { margin-top: 8px; }

.fan-fc-stars { display: inline-flex; align-items: center; gap: 2px; }
.fan-fc-star.filled { color: var(--fc-gold); }
.fan-fc-star.half { color: var(--fc-gold); }
.fan-fc-star.empty { color: #d1d5db; }
.fan-fc-stars strong { margin-left: 4px; font-size: 13px; color: var(--fc-text); }
.fan-fc-review-count { font-size: 13px; color: var(--fc-muted); margin-left: 4px; }

.fan-fc-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.fan-fc-card-footer { display: flex; align-items: center; justify-content: space-between; }
.fan-fc-card-footer.grid { margin-top: auto; padding-top: 1rem; }
.fan-fc-card-footer.list { margin-top: 12px; }

.fan-fc-price { font-size: 14px; font-weight: 700; color: var(--fc-navy); }

.fan-fc-card-actions { display: flex; gap: 8px; }
.fan-fc-card-actions.grid { margin-top: 12px; }

.fan-fc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border-radius: 6px; font-size: 13px;
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: all 0.2s; border: none; white-space: nowrap;
}
.fan-fc-btn.outline {
    border: 1px solid var(--fc-border); background: var(--fc-card);
    color: var(--fc-text);
}
.fan-fc-btn.outline:hover { background: var(--fc-bg); border-color: var(--fc-blue); color: var(--fc-blue); }
.fan-fc-btn.primary {
    background: var(--fc-blue); color: #fff;
}
.fan-fc-btn.primary:hover { background: var(--fc-blue-dark); }

.fan-fc-card-actions.grid .fan-fc-btn { flex: 1; }

/* ── Loading ── */
.fan-fc-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 3rem; color: var(--fc-muted); font-size: 14px;
}
.fan-fc-spinner {
    width: 20px; height: 20px; border: 2px solid var(--fc-border);
    border-top-color: var(--fc-blue); border-radius: 50%;
    animation: fc-spin 0.6s linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* ── Pagination ── */
.fan-fc-pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 2rem; padding: 1rem 0;
}
.fan-fc-page-btn {
    width: 36px; height: 36px; border-radius: 6px;
    border: 1px solid var(--fc-border); background: var(--fc-card);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.15s; color: var(--fc-text);
}
.fan-fc-page-btn:hover { background: var(--fc-blue-light); color: var(--fc-blue); border-color: var(--fc-blue); }
.fan-fc-page-btn.active {
    background: var(--fc-blue); color: #fff; border-color: var(--fc-blue);
}

/* ── No results ── */
.fan-fc-no-results { text-align: center; padding: 4rem 1rem; }
.fan-fc-no-results h3 { font-size: 20px; color: var(--fc-text); margin: 0 0 8px; }
.fan-fc-no-results p { color: var(--fc-muted); font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .fan-fc-sidebar { position: static; max-height: none; }
}
@media (max-width: 768px) {
    .fan-fc-search-inner { flex-wrap: wrap; }
    .fan-fc-search-input-wrap { flex: 1 1 100%; }
    .fan-fc-view-toggle { display: none; }
    .fan-fc-filter-toggle { display: block; }
    .fan-fc-sidebar { display: none; width: 100%; }
    .fan-fc-sidebar.show { display: block; }
    .fan-fc-layout { flex-direction: column; }
    .fan-fc-results-grid { grid-template-columns: 1fr; }
    .fan-fc-card.list { flex-direction: column; }
    .fan-fc-card-image-wrap.list { width: 100%; height: 120px; }
}

/* ─── v1.4 — Typeahead suggestions dropdown ─── */
.fan-fc-search-input-wrap { position: relative; }
.fan-fc-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    padding: 6px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}
.fan-fc-suggest.show { display: block; }
.fan-fc-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    transition: background-color .12s ease;
}
.fan-fc-suggest-item:hover,
.fan-fc-suggest-item.active { background: #eff6ff; }
.fan-fc-suggest-icon {
    display: inline-flex;
    width: 22px; height: 22px;
    align-items: center; justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}
.fan-fc-suggest-label { flex: 1; font-weight: 500; }
.fan-fc-suggest-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 999px;
}
@media (max-width: 640px) {
    .fan-fc-suggest { max-height: 280px; }
}

/* ═══════════════════════════════════════════════
   v1.5 — 3-column grid, polished cards, chips, CTAs
   ═══════════════════════════════════════════════ */

/* Force 3-column responsive grid (overrides v1.3 auto-fill) */
.fan-fc-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}
.fan-fc-results-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Equal-height cards */
.fan-fc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    border: 1px solid var(--fc-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 1px 2px rgba(15, 23, 42, .03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.fan-fc-card.grid > .fan-fc-card-body { flex: 1; display: flex; flex-direction: column; }
.fan-fc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -10px rgba(15, 23, 42, .18), 0 4px 10px rgba(15, 23, 42, .06);
    border-color: rgba(37, 99, 235, .35);
}

/* Card body spacing */
.fan-fc-card-body.grid {
    padding: 1.1rem 1.1rem 1.15rem;
    gap: 0;
}
.fan-fc-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fan-fc-card-location {
    margin-top: 2px;
    margin-bottom: 10px;
}

/* Specialities section */
.fan-fc-card-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--fc-border);
}
.fan-fc-section-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fc-muted);
    margin-bottom: 7px;
}
.fan-fc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.fan-fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.fan-fc-chip.speciality {
    background: var(--fc-blue-light);
    color: var(--fc-blue);
    border: 1px solid rgba(37, 99, 235, .18);
}
.fan-fc-chip.more {
    background: #f1f5f9;
    color: var(--fc-muted);
    border: 1px solid var(--fc-border);
    cursor: help;
}
.fan-fc-chip.financing {
    background: rgba(16, 185, 129, .1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, .25);
}

/* Meta row (price + financing) */
.fan-fc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fc-border);
    flex-wrap: wrap;
}
.fan-fc-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-navy);
}
.fan-fc-price-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fc-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 3px;
}

/* CTA buttons */
.fan-fc-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.fan-fc-card-actions.grid .fan-fc-btn,
.fan-fc-card-actions.list .fan-fc-btn {
    flex: 1;
}
.fan-fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.fan-fc-btn.secondary {
    background: #fff;
    color: var(--fc-text);
    border-color: var(--fc-border-strong);
}
.fan-fc-btn.secondary:hover {
    background: var(--fc-blue-light);
    color: var(--fc-blue);
    border-color: var(--fc-blue);
}
.fan-fc-btn.primary {
    background: var(--fc-blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.fan-fc-btn.primary:hover {
    background: var(--fc-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}

/* List-view tweaks */
.fan-fc-card.list {
    flex-direction: row;
    padding: 1rem;
    gap: 1.1rem;
    align-items: stretch;
}
.fan-fc-card.list .fan-fc-card-body.list {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fan-fc-card-image-wrap.list {
    border-radius: 10px;
}

/* Responsive grid breakpoints */
@media (max-width: 1024px) {
    .fan-fc-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .fan-fc-results-grid { grid-template-columns: 1fr; gap: 1rem; }
    .fan-fc-card.list { flex-direction: column; }
    .fan-fc-card-image-wrap.list { width: 100%; height: 160px; }
    .fan-fc-card-actions { flex-direction: column; }
}

/* ─── v1.6 — Reviews filter pills ─── */
.fan-fc-rating-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fan-fc-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid var(--fan-border, #e5e7eb);
    background: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1;
}
.fan-fc-rating-pill:hover {
    border-color: #f5b50a;
    color: #b07a00;
}
.fan-fc-rating-pill.active {
    background: #fff7e0;
    border-color: #f5b50a;
    color: #8a5a00;
    box-shadow: 0 0 0 2px rgba(245,181,10,.15);
}
.fan-fc-rating-pill .fan-fc-pill-star {
    color: #f5b50a;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .fan-fc-rating-pill { font-size: 11px; padding: 5px 8px; }
}
