/**
 * Find Trainers listing page — styles.
 * Extracted from resources/views/trainers/index.blade.php (was inline <style>).
 */

    /* ================= APP DESIGN SYSTEM (same tokens as home.blade.php) ================= */
    :root {
      --primary: #2563eb; --primary-hover: #1d4ed8; --primary-light: #eff6ff; --primary-50: #f0f7ff;
      --accent-yellow: #f59e0b; --accent-green: #10b981; --accent-red: #dc2626; --accent-red-strong: #dc2626; --accent-green-text: #047857; --accent-amber-text: #b45309; --accent-purple: #7c3aed; --accent-pink: #ec4899;
      --bg-app: #f8fafc; --bg-surface: #ffffff; --border: #e2e8f0; --border-light: #edf2f7;
      --text-main: #0f172a; --text-muted: #475569; --text-subtle: #64748b;
      --radius-xs: 6px; --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-full: 9999px;
      --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.04);
      --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
      --shadow-float: 0 12px 28px -6px rgba(37, 99, 235, 0.18);
      --shadow-hover: 0 16px 32px -6px rgba(37, 99, 235, 0.14);
      --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    html { overflow-x: hidden; width: 100%; }
    body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: var(--bg-app); color: var(--text-main); line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }
    a { text-decoration: none; color: inherit; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
    img { max-width: 100%; display: block; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

    #topProgressBar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #7c3aed, #fbbf24); width: 0%; z-index: 2000; transition: width 0.1s linear; }

    /* ================= HEADER ================= */
    .app-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); padding: 10px 0; }
    /* Frosted-glass background moved to ::before — see public/css/home.css for why
       backdrop-filter can't live directly on .app-header (it would hijack
       `position: fixed` on the header search panel nested inside it). */
    .app-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .app-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .app-brand-lockup { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; }
    .app-brand-icon { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #38bdf8 0%, #ec4899 50%, #2563eb 100%); position: relative; }
    .app-brand-icon::after { content: "H"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; font-family: inherit; line-height: 1; }
    .brand-hola { color: #2563eb; }
    .brand-rest { color: #0f172a; }
    .app-header-right { display: flex; align-items: center; gap: 12px; }
    .header-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--text-main); font-size: 1.15rem; transition: var(--transition); position: relative; }
    .header-icon-btn:active { transform: scale(0.92); }
    .notif-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; background: var(--accent-red); border-radius: 50%; border: 1.5px solid #fff; }
    .header-user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--primary); cursor: pointer; }
    .desktop-nav-links { display: none; align-items: center; gap: 20px; list-style: none; }
    .desktop-nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
    .desktop-nav-links a:hover, .desktop-nav-links a.active { color: var(--primary); }
    @media (min-width: 768px) { .desktop-nav-links { display: flex; } }

    /* ================= PAGE HERO ================= */
    .breadcrumb-row { font-size: 0.8rem; color: var(--text-subtle); margin: 14px 0 10px; text-align:left; }
    .breadcrumb-row a { color: var(--text-muted); font-weight: 600; }
    .breadcrumb-row a:hover { color: var(--primary); }

    .trainers-hero-block {
      position: relative; border-radius: var(--radius-lg); overflow: hidden;
      margin: 0 0 20px; padding: 34px 20px 26px; text-align: center;
      background: linear-gradient(180deg, rgba(8,12,26,0.55) 0%, rgba(8,12,26,0.72) 55%, rgba(8,12,26,0.9) 100%),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
      box-shadow: var(--shadow-card);
    }
    @media (min-width: 768px) { .trainers-hero-block { padding: 44px 20px 32px; } }
    .trainers-hero-block h1 { position:relative; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.25); }
    .trainers-hero-block h1 span { color: #7dd3fc; }
    .trainers-hero-block p.sub { position:relative; color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 20px; }

    .search-panel-row { position:relative; display:flex; flex-direction:column; gap:12px; max-width: 640px; margin: 0 auto 16px; }
    @media (min-width: 768px) { .search-panel-row { flex-direction:row; align-items:center; justify-content:center; max-width:820px; } }

    .search-pill-combo { display:flex; align-items:stretch; background:#fff; border:1.5px solid var(--border); border-radius:var(--radius-full); box-shadow:0 12px 30px rgba(0,0,0,0.28); overflow:hidden; transition:var(--transition); }
    .search-pill-combo:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,0.16), 0 12px 30px rgba(0,0,0,0.28); }
    .search-pill-field { display:flex; align-items:center; gap:9px; padding:12px 16px; flex:1; min-width:0; }
    .search-pill-field i { color:var(--text-subtle); font-size:1.05rem; flex-shrink:0; }
    .search-pill-field input { border:none; outline:none; font-size:0.86rem; font-family:inherit; color:var(--text-main); background:transparent; width:100%; min-width:0; }
    #locationSearchTop { flex:0 0 38%; }
    .search-pill-divider { width:1px; background:var(--border); margin:9px 0; flex-shrink:0; }
    .search-pill-go-btn { flex-shrink:0; width:40px; height:40px; align-self:center; margin-right:5px; display:flex; align-items:center; justify-content:center; background:var(--primary); color:#fff; font-size:1.05rem; border-radius:50%; transition:var(--transition); }
    .search-pill-go-btn:hover { background:var(--primary-hover); }
    .search-pill-go-btn:active { transform:scale(0.92); }
    @media (min-width: 768px) { .search-pill-combo { flex:1; max-width:520px; } }

    .mode-chip-row { display:flex; gap:8px; justify-content:center; flex-shrink:0; }
    .mode-chip { padding:9px 16px; border-radius:var(--radius-full); font-size:0.8rem; font-weight:700; color:#fff; background:rgba(255,255,255,0.12); border:1.5px solid rgba(255,255,255,0.35); transition:var(--transition); backdrop-filter: blur(4px); white-space:nowrap; cursor:pointer; }
    .mode-chip input { position:absolute; opacity:0; width:0; height:0; }
    .mode-chip.active { background:#fff; color:var(--primary); border-color:#fff; }
    .mode-chip:not(.active):hover { border-color:#fff; background:rgba(255,255,255,0.2); }

    .popular-skills-row { position:relative; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; padding-bottom: 2px; }
    .popular-label-txt { font-size: 0.8rem; color: rgba(255,255,255,0.85); font-weight: 700; }
    .skill-pill-btn { padding: 7px 15px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.35); transition: var(--transition); backdrop-filter: blur(4px); cursor:pointer; }
    .skill-pill-btn input { position:absolute; opacity:0; width:0; height:0; }
    .skill-pill-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,0.22); }
    .skill-pill-btn:not(.active):hover { border-color: #fff; background: rgba(255,255,255,0.2); }

    /* ================= LAYOUT ================= */
    .trainers-layout-grid { display: grid; grid-template-columns: 270px 1fr; gap: 22px; padding: 22px 0 40px; align-items: start; }
    .trainers-layout-grid > * { min-width: 0; }

    .mobile-filter-trigger-btn { display:none; align-items:center; gap:6px; border:1.5px solid var(--border); background:#fff; color:var(--text-main); padding:8px 14px; border-radius:var(--radius-full); font-size:0.8rem; font-weight:700; box-shadow:var(--shadow-subtle); }
    .mobile-filter-trigger-btn i { color:var(--primary); font-size:1rem; }
    .mobile-filter-trigger-btn:active { transform:scale(0.96); }

    .filters-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 84px; box-shadow: var(--shadow-subtle); }
    .filters-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .filters-panel-head h3 { font-size: 1rem; font-weight: 800; }
    .reset-link-btn { font-size: 0.78rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
    .reset-link-btn:hover { text-decoration: underline; }
    .filter-group-block { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
    .filter-group-block:last-of-type { border-bottom: none; margin-bottom: 8px; }
    .filter-group-title-txt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 12px; }
    .radio-row-item, .checkbox-row-item { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; cursor: pointer; font-size: 0.84rem; color: var(--text-main); }
    .radio-row-item input, .checkbox-row-item input { width: 15px; height: 15px; accent-color: var(--primary); flex-shrink:0; }
    .stars-mini-row i { color: var(--accent-amber-text, #b45309); font-size: 0.74rem; }
    .stars-mini-row i.empty { color: #e2e8f0; }
    .skills-mini-search { display:flex; align-items:center; gap:8px; background:var(--bg-app); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 11px; margin-bottom:12px; }
    .skills-mini-search i { color: var(--text-subtle); font-size:0.9rem; }
    .skills-mini-search input { border:none; outline:none; background:transparent; font-size:0.82rem; font-family:inherit; width:100%; }
    .skills-list-scroll-box { max-height: 180px; overflow-y: auto; padding-right:4px; }
    .toggle-row-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.84rem; font-weight: 600; }
    .toggle-switch-el { position: relative; width: 38px; height: 21px; }
    .toggle-switch-el input { opacity: 0; width: 0; height: 0; }
    .toggle-slider-el { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: var(--transition); }
    .toggle-slider-el::before { content: ''; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); }
    .toggle-switch-el input:checked + .toggle-slider-el { background: var(--primary); }
    .toggle-switch-el input:checked + .toggle-slider-el::before { transform: translateX(17px); }
    .apply-filters-btn { display:block; width: 100%; background: var(--primary); color: #fff; padding: 11px; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 700; text-align:center; transition: var(--transition); }
    .apply-filters-btn:hover { background: var(--primary-hover); }
    .filters-mobile-apply-bar { display: none; }

    .results-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
    .results-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .results-count-txt { font-size: 0.92rem; font-weight: 800; }
    .sort-wrap-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
    .sort-select-el { border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-md); padding: 8px 12px; font-size: 0.82rem; font-weight: 700; color: var(--text-main); min-width: 0; max-width: 100%; }
    .active-filters-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
    .filter-chip-el { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--primary); font-size: 0.76rem; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-full); }
    .filter-chip-el button { color: var(--primary); font-size: 0.88rem; line-height: 1; }

    /* ================= TRAINER CARDS ================= */
    .trainers-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
    .trainers-results-grid > * { min-width: 0; }
    .tg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-subtle); transition: var(--transition); display: flex; flex-direction: column; }
    .tg-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: var(--shadow-hover); }
    .tg-card-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
    .tg-avatar-box { position: relative; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; background: #e2e8f0; }
    .tg-avatar-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1.5px solid #e2e8f0; display: block; overflow: hidden; color: transparent; text-indent: 100%; white-space: nowrap; }
    .tg-check-badge { position: absolute; bottom: 0; right: 0; background: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); overflow: hidden; }
    .tg-check-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .tg-meta-info { flex: 1; min-width: 0; }
    .tg-meta-info h4 { font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tg-meta-info p.role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tg-meta-info p.role a { color: var(--primary); font-weight: 600; }

    .credibility-tag { display: inline-flex; align-items: center; gap: 4px; background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .credibility-tag.blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    .credibility-tag.green { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
    .credibility-tag.purple { background: #faf5ff; border-color: #e9d5ff; color: #7e22ce; }
    .credibility-tag.dark { background: #0f172a; border-color: #0f172a; color: #fff; }
    .credibility-tag.dark i { color: var(--accent-amber-text, #b45309); }

    .tg-save-heart { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-app); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); font-size: 1rem; }
    .tg-save-heart:hover, .tg-save-heart.saved { color: var(--accent-red); }

    .tg-topics-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
    .tg-topic-chip { background: #f1f5f9; color: #475569; font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }

    .tg-meta-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-muted); margin-top: auto; padding-top: 4px; }
    .tg-meta-strip .rating-part { display: flex; align-items: center; gap: 3px; font-weight: 700; color: #0f172a; }
    .tg-meta-strip .rating-part i { color: var(--accent-amber-text, #b45309); }
    .tg-meta-strip .count { color: var(--text-subtle); font-weight: 500; }
    .tg-meta-strip .dot { color: var(--text-subtle); opacity: 0.6; }

    .price-range-labels { display:flex; justify-content:space-between; font-size:0.8rem; font-weight:700; margin-bottom:8px; }
    input[type="range"] { width: 100%; accent-color: var(--primary); }
    .tg-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--border-light); gap: 8px; }
    .tg-view-profile-btn { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.78rem; font-weight: 700; transition: var(--transition); white-space: nowrap; }
    .tg-view-profile-btn:hover { background: var(--primary-light); }
    .tg-price-txt { font-size: 0.9rem; font-weight: 800; color: #0f172a; text-align:right; margin-left: auto; }
    .tg-price-txt span { font-size: 0.7rem; font-weight: 600; color: var(--text-subtle); }

    .empty-state-block { text-align: center; padding: 70px 20px; grid-column: 1 / -1; }
    .empty-state-block i { font-size: 2.6rem; color: var(--text-subtle); margin-bottom: 14px; display: block; }
    .empty-state-block h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
    .empty-state-block p { color: var(--text-muted); margin-bottom: 18px; max-width: 360px; margin-left: auto; margin-right: auto; font-size: 0.88rem; }

    .pagination-row { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 30px 0 10px; flex-wrap: wrap; }
    .page-num-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: #fff; font-weight: 700; font-size: 0.86rem; color: var(--text-muted); transition: var(--transition); display:inline-flex; align-items:center; justify-content:center; }
    .page-num-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
    .page-num-btn:not(.active):hover { border-color: var(--primary); color: var(--primary); }
    .page-num-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events:none; }
    .page-arrow-btn { padding: 0 14px; width: auto; }

    @media (max-width: 960px) {
      .trainers-layout-grid { grid-template-columns: 1fr; }
      .filters-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 84vw; max-height: none; overflow-y: auto; z-index: 2600; transform: translateX(-105%); transition: transform 0.3s ease; border-radius: 0; padding-bottom: 84px; }
      .filters-panel.open { transform: translateX(0); }
      .filters-backdrop-el { display:none; }
      .filters-backdrop-el.open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 2599; }
      .filters-mobile-apply-bar { display: block; position: fixed; left: 0; bottom: 0; width: 300px; max-width: 84vw; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(15,23,42,0.08); z-index: 2601; transform: translateX(-105%); transition: transform 0.3s ease; }
      .filters-panel.open ~ .filters-mobile-apply-bar,
      .filters-mobile-apply-bar.open { transform: translateX(0); }
      .mobile-filter-trigger-btn { display: flex; }
    }
    @media (max-width: 640px) {
      .container { padding: 0 16px; }
      .trainers-results-grid { grid-template-columns: 1fr !important; }
      .trainers-hero-block { padding: 26px 16px 22px; }
      .trainers-hero-block h1 { max-width: 280px; margin-left: auto; margin-right: auto; text-wrap: balance; }
      #locationSearchTop { flex: 0 0 34%; }
      .popular-skills-row { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
      .popular-label-txt, .skill-pill-btn { flex-shrink: 0; }
      .results-head-row { justify-content: flex-start; }
      .sort-wrap-row { width: 100%; justify-content: space-between; }
      .sort-select-el { flex: 1; }
    }

    /* ================= FOOTER ================= */
    .app-footer-wrapper { border-top: 1px solid var(--border); padding: 30px 0 24px; font-size: 0.82rem; color: var(--text-muted); }
    .footer-columns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 24px; }
    .footer-links-col h4 { font-size: 0.84rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
    .footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
    .footer-links-col a { color: var(--text-muted); font-size: 0.76rem; transition: var(--transition); }
    .footer-links-col a:hover { color: var(--primary); }
    .footer-social-icons { display: flex; gap: 8px; margin: 12px 0; }
    .social-circle-btn { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; }
    .social-circle-btn.linkedin { background: #0a66c2; } .social-circle-btn.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); } .social-circle-btn.youtube { background: #ff0000; } .social-circle-btn.x-twitter { background: #000000; }

    #toastMessage { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px); background: #0f172a; color: #fff; padding: 9px 18px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px; z-index: 3000; opacity: 0; pointer-events: none; transition: var(--transition); }
    #toastMessage.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

    /* This page doesn't load public-shell.css, so it had no branded focus
       ring at all — keyboard users fell back to whatever the browser
       default happened to be. Same rule as public-shell.css, mirrored here. */
    :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
    button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
