/* TheraConnect — index.css */
/* New directory page: desktop + mobile + themes + bottom sheets */

/* ═══ 1. FONT + PAGE SCOPE ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
.idx-page { font-family: 'DM Sans', -apple-system, sans-serif; }
.idx-page .main-footer { font-family: 'DM Sans', -apple-system, sans-serif; }

/* Container uses default max-width to match dashboard */

/* ═══ 2. THEME VARIABLES ═══ */
/* Base --m-* vars inherited from mobile-theme-vars.css via [data-mobile-theme] */
/* Only index-specific extras defined here per theme */

/* --- iOS / Clean (default) --- */
#indexMobile {
  --m-hero-gradient: linear-gradient(135deg, #1B5E3B, #2E7D52);
  --m-slider-track: #C8E6C9;
  --m-slider-thumb: #1B5E3B;
}

/* --- Dark Pro --- */
#indexMobile[data-theme="dark"] {
  --m-hero-gradient: linear-gradient(135deg, #065F46, #4ADE80);
  --m-slider-track: rgba(74,222,128,0.3);
  --m-slider-thumb: #4ADE80;
}

/* --- Warm Sand --- */
#indexMobile[data-theme="warm"] {
  --m-hero-gradient: linear-gradient(135deg, #5D4E37, #8B7355);
  --m-slider-track: #D5E0CC;
  --m-slider-thumb: #5D4E37;
}

/* ═══ 3. DESKTOP STYLES ═══ */

/* --- Root variables (desktop) --- */
.idx-page {
  --primary: var(--green);
  --primary-light: var(--green-deep, #2E7D52);
  --primary-soft: var(--bg-tag);
  --accent: var(--gold);
  --accent-soft: #FFF8E7;
  --bg: var(--bg-body);
  --card: white;
  --text: var(--text-primary);
  --text-sec: var(--text-muted);
  /* --text-muted removed — inherit the root #636366 (AA-compliant). */
  --border: var(--border-light);
  --success: #22C55E;
  --danger: #EF4444;
  --radius: var(--radius-md);
  --radius-sm: 10px;
  --shadow: var(--shadow-card);
  --shadow-lg: var(--shadow-card-hover);
}

/* --- Main layout --- */
.idx-main { padding:24px 0 20px; display:grid; grid-template-columns:300px 1fr; gap:28px }

/* --- Sidebar --- */
.idx-side { position:sticky; top:66px; align-self:start; background:var(--card); border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow); padding:20px }
.idx-side-card { background:var(--card); border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow); padding:20px }
.idx-side-card h3 { font-size:18px; font-weight:700; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:7px }
.idx-fg { margin-bottom:16px }
.idx-fl { font-size:13px; font-weight:600; color:var(--text-sec); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; display:flex; align-items:center; gap:5px }
.idx-finput { width:100%; padding:11px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--border); background:var(--bg); font-size:15px; color:var(--text); outline:none; transition:.15s; font-family:inherit }
.idx-finput:focus { border-color:var(--primary) }
.idx-fselect { width:100%; padding:11px 14px; border-radius:var(--radius-sm); border:1.5px solid var(--border); background:var(--bg); font-size:15px; color:var(--text); outline:none; appearance:none; cursor:pointer; font-family:inherit }
.idx-chips { display:flex; flex-wrap:wrap; gap:6px }
.idx-chip { padding:7px 14px; border-radius:20px; border:1.5px solid var(--border); background:none; font-size:13px; font-weight:500; color:var(--text-sec); transition:.15s; cursor:pointer; font-family:inherit }
.idx-chip:hover, .idx-chip.on { border-color:var(--primary); background:var(--primary-soft); color:var(--primary) }
.idx-trow { display:flex; justify-content:space-between; align-items:center; padding:6px 0 }
.idx-trow label { font-size:14px; font-weight:500; color:var(--text) }
.idx-tgl { width:40px; height:24px; border-radius:12px; border:none; background:var(--border); position:relative; cursor:pointer; transition:.2s; flex-shrink:0 }
.idx-tgl.on { background:var(--primary) }
.idx-tgl::after { content:''; position:absolute; width:18px; height:18px; border-radius:9px; background:#fff; top:3px; left:3px; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.15) }
.idx-tgl.on::after { left:19px }
.idx-btn-clear { width:100%; padding:10px; border-radius:var(--radius-sm); border:1.5px solid var(--border); background:none; font-size:14px; font-weight:600; color:var(--text-sec); margin-top:4px; transition:.15s; cursor:pointer; font-family:inherit }
.idx-btn-clear:hover { border-color:var(--danger); color:var(--danger) }

/* --- Slider --- */
.idx-slider-wrap { padding:0 2px }
.idx-slider-vals { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px }
.idx-sv-label { font-size:15px; font-weight:700; color:var(--primary) }
.idx-page input[type=range] { -webkit-appearance:none; width:100%; height:5px; border-radius:3px; background:linear-gradient(to right,var(--primary-soft),var(--primary-light)); outline:none; margin:4px 0 }
.idx-page input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:20px; height:20px; border-radius:10px; background:var(--primary); cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.2) }
.idx-slider-ends { display:flex; justify-content:space-between }
.idx-slider-ends span { font-size:12px; color:var(--text-muted) }

/* --- Results header --- */
.idx-res-hdr { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px }
.idx-res-title { font-size:24px; font-weight:800; color:var(--text); display:flex; align-items:center; gap:8px }
.idx-res-cnt { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:15px; background:var(--primary); color:#fff; font-size:14px; font-weight:700 }
.idx-res-ctrl { display:flex; align-items:center; gap:10px }
.idx-res-ctrl span { font-size:13px; color:var(--text-muted) }
.idx-sort-select { padding:9px 32px 9px 14px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card); font-size:14px; color:var(--text-sec); outline:none; appearance:none; cursor:pointer; font-family:inherit }
.idx-pag { display:flex; gap:4px }
.idx-pg { width:34px; height:34px; border-radius:10px; border:1px solid var(--border); background:var(--card); font-size:14px; font-weight:600; color:var(--text-sec); display:flex; align-items:center; justify-content:center; transition:.15s; cursor:pointer; font-family:inherit }
.idx-pg:hover { border-color:var(--primary); color:var(--primary) }
.idx-pg.on { background:var(--primary); color:#fff; border-color:var(--primary) }

/* --- Cards grid --- */
.idx-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px }
.idx-card { background:var(--card); border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow); overflow:hidden; transition:.2s; display:flex; flex-direction:column }
.idx-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); border-color:var(--primary-light) }
.idx-card-top { padding:20px 20px 12px; flex:1 }
.idx-av-row { display:flex; gap:14px; align-items:flex-start; margin-bottom:10px }
.idx-av { width:60px; height:60px; border-radius:30px; flex-shrink:0; background:linear-gradient(135deg,var(--primary),var(--primary-light)); display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#fff; box-shadow:0 2px 8px rgba(27,94,59,.15) }
.idx-av img { width:60px; height:60px; border-radius:30px; object-fit:cover }
.idx-p-info { flex:1; min-width:0 }
.idx-p-name { font-size:18px; font-weight:700; color:var(--text); line-height:1.2; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.idx-p-meta { display:flex; align-items:center; gap:3px; flex-wrap:wrap }
.idx-p-city { font-size:13px; color:var(--text-sec); display:flex; align-items:center; gap:2px }
.idx-p-rating { font-size:15px; font-weight:700; color:var(--text); margin-left:2px }
.idx-p-rev { font-size:13px; color:var(--text-muted) }
.idx-p-dot { color:var(--border); margin:0 2px }

/* --- Tags (shared desktop + mobile) --- */
.idx-tags { display:flex; gap:4px; margin-top:8px; flex-wrap:wrap }
.idx-tag { font-size:11px; font-weight:500; color:var(--m-text-secondary,#5A6B5E); padding:2px 8px; border-radius:10px; background:var(--m-bg,#F4F6F5); border:1px solid var(--m-border,#E2E8E5) }
.idx-tag.nzok { background:#EAF5EC; border-color:#B7D8C4; color:var(--m-primary,#1B5E3B) }
.idx-tag.online { background:#ECFDF5; border-color:#A7F3D0; color:#065F46 }
.idx-tag.good { background:#FFF8E7; border-color:#F0DFB0; color:#92640A }

/* Desktop-only tag variants */
.idx-p-tags { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px }
.idx-p-tag { padding:4px 11px; border-radius:14px; font-size:12px; font-weight:500; background:var(--bg); border:1px solid var(--border); color:var(--text-sec) }
.idx-p-tag.online { background:#ECFDF5; border-color:#A7F3D0; color:#065F46 }
.idx-p-tag.nzok { background:var(--primary-soft); border-color:#B7D8C4; color:var(--primary) }
.idx-p-tag.good { background:var(--accent-soft); border-color:#F0DFB0; color:#92640A }
.idx-p-price { font-size:24px; font-weight:800; color:var(--primary) }
.idx-p-price span { font-size:13px; font-weight:400; color:var(--text-muted) }

/* --- Card actions (shared desktop + mobile) --- */
.idx-card-acts { display:flex; border-top:1px solid var(--m-border,#E2E8E5) }
.idx-btn-prof { flex:1; padding:9px 0; background:none; border:none; border-right:1px solid var(--m-border,#E2E8E5); cursor:pointer; font-family:inherit; font-size:13px; font-weight:600; color:var(--m-text-secondary,#5A6B5E); display:flex; align-items:center; justify-content:center; gap:4px; text-decoration:none; transition:.15s }
.idx-btn-prof:hover { background:var(--bg,#F4F6F5); color:var(--primary,#1B5E3B) }
.idx-btn-book { flex:1.3; padding:9px 0; border:none; background:var(--m-primary,#1B5E3B); cursor:pointer; font-family:inherit; font-size:13px; font-weight:600; color:#fff; display:flex; align-items:center; justify-content:center; gap:4px; text-decoration:none; transition:.15s }
.idx-btn-book:hover { background:var(--primary-light,#2E7D52) }
.idx-btn-book.off { background:var(--m-bg,var(--bg)); color:var(--m-text-secondary,var(--text-muted)); cursor:default }

/* Desktop card action overrides */
.idx-desktop .idx-card-acts { border-top-color:var(--border) }
.idx-desktop .idx-btn-prof { padding:12px 0; border-right-color:var(--border); color:var(--text-sec); gap:6px; font-size:14px }
.idx-desktop .idx-btn-book { padding:12px 0; gap:6px; font-size:14px }

/* --- Mobile filter bar (desktop: hidden) --- */
.idx-mobile-fb { display:none; gap:5px; overflow-x:auto; padding-bottom:3px; margin-bottom:10px }
.idx-mfb { padding:7px 14px; border-radius:20px; border:1.5px solid var(--border); background:var(--card); font-size:13px; font-weight:600; color:var(--text-sec); white-space:nowrap; flex-shrink:0; display:flex; align-items:center; gap:4px; transition:.15s; font-family:inherit; cursor:pointer }
.idx-mfb:hover, .idx-mfb.on { border-color:var(--primary); background:var(--primary-soft); color:var(--primary) }
.idx-mfb .badge { width:16px; height:16px; border-radius:8px; background:var(--primary); color:#fff; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center }

/* ═══ 4. MOBILE STYLES ═══ */

/* Mobile container */
#indexMobile { max-width:430px; margin:0 auto; min-height:100vh; background:var(--m-bg); display:none; font-family:'DM Sans',-apple-system,sans-serif }

/* --- Mobile hero --- */
.idx-m-hero { background:var(--m-hero-gradient); padding:10px 16px 14px; position:relative; overflow:hidden }
.idx-m-hero-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px }
.idx-m-logo { display:flex; align-items:center; gap:7px }
.idx-m-logo-icon { width:24px; height:24px; border-radius:6px; background:rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center }
.idx-m-logo span { font-size:14px; font-weight:800; color:#fff }
.idx-m-theme-switcher { display:flex; gap:2px; background:rgba(255,255,255,0.12); border-radius:16px; padding:2px }
.idx-m-theme-switcher button { padding:3px 7px; border-radius:14px; border:none; cursor:pointer; font-size:9px; font-weight:600; background:transparent; color:rgba(255,255,255,0.6); transition:all 0.2s; font-family:inherit }
.idx-m-theme-switcher button.is-active { background:rgba(255,255,255,0.9); color:var(--m-primary) }
.idx-m-search { position:relative }
.idx-m-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%) }
.idx-m-search input { width:100%; padding:11px 12px 11px 36px; border-radius:10px; border:none; background:var(--m-card); font-size:13px; color:var(--m-text); outline:none; box-shadow:0 2px 12px rgba(0,0,0,0.1); font-family:inherit; box-sizing:border-box }
.idx-m-search input::placeholder { color:var(--m-text-muted) }

/* --- Mobile body wrapper --- */
.idx-m-body { padding:10px 16px 120px }

/* --- Mobile filter bar --- */
.idx-m-filter-bar { display:flex; gap:5px; margin-bottom:10px; align-items:center }
.idx-m-filter-btn { display:flex; align-items:center; gap:4px; padding:7px 11px; border-radius:18px; border:1.5px solid var(--m-border); background:var(--m-card); cursor:pointer; font-size:11px; font-weight:600; color:var(--m-text-secondary); font-family:inherit; flex-shrink:0 }
.idx-m-filter-btn.has-filters { border-color:var(--m-primary); background:var(--m-primary-soft); color:var(--m-primary) }
.idx-m-filter-badge { width:16px; height:16px; border-radius:8px; background:var(--m-primary); color:#fff; font-size:9px; font-weight:700; display:flex; align-items:center; justify-content:center }
.idx-m-city-chips { display:flex; gap:4px; overflow-x:auto; flex:1; padding-bottom:2px; scrollbar-width:none }
.idx-m-city-chips::-webkit-scrollbar { display:none }
.idx-m-city-chip { padding:6px 11px; border-radius:16px; border:1px solid var(--m-border); background:var(--m-card); cursor:pointer; font-size:11px; font-weight:500; color:var(--m-text-secondary); font-family:inherit; white-space:nowrap; flex-shrink:0; transition:0.2s }
.idx-m-city-chip.on { border-color:var(--m-primary); background:var(--m-primary-soft); color:var(--m-primary) }

/* --- Mobile sort row --- */
.idx-m-sort-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; padding:0 0 8px }
.idx-m-sort-row span { font-size:11px; color:var(--m-text-secondary) }
.idx-m-sort { appearance:none; padding:4px 22px 4px 8px; border-radius:8px; border:1px solid var(--m-border); background:var(--m-card); font-size:11px; font-weight:500; color:var(--m-text-secondary); cursor:pointer; font-family:inherit; outline:none }

/* --- Mobile cards --- */
.idx-m-cards { display:flex; flex-direction:column; gap:8px }
.idx-m-card { background:var(--m-card); border-radius:var(--m-r,14px); border:1px solid var(--m-border); box-shadow:0 1px 4px rgba(0,0,0,0.06); overflow:hidden }
.idx-m-card-top { padding:12px 14px 10px }
.idx-m-av-row { display:flex; gap:10px }
.idx-m-card .idx-av { width:48px; height:48px; border-radius:24px; background:var(--m-hero-gradient); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:none }
.idx-m-card .idx-av img { width:48px; height:48px; border-radius:24px; object-fit:cover }
.idx-m-card .idx-av span { font-size:16px; font-weight:700; color:#fff }
.idx-m-info { flex:1; min-width:0 }
.idx-m-name-price { display:flex; justify-content:space-between; align-items:flex-start }
.idx-m-name { font-size:14px; font-weight:700; color:var(--m-text); margin:0; line-height:1.2 }
.idx-m-price { font-size:16px; font-weight:800; color:var(--m-primary); flex-shrink:0; margin-left:8px }
.idx-m-meta { display:flex; align-items:center; gap:3px; margin-top:3px }
.idx-m-meta span { font-size:11px; color:var(--m-text-secondary) }
.idx-m-dot { color:var(--m-border); margin:0 2px }
.idx-m-rating { font-size:12px; font-weight:700; color:var(--m-text); margin-left:2px }
.idx-m-rev { font-size:10px; color:var(--m-text-secondary) }

/* --- Mobile empty state --- */
.idx-m-empty { background:var(--m-card); border-radius:14px; border:1px solid var(--m-border); padding:28px 16px; text-align:center; margin-top:8px }
.idx-m-clear-btn { padding:8px 16px; border-radius:20px; border:none; background:var(--m-primary); color:#fff; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; margin-top:8px }
.idx-m-load-more { display:block; width:100%; padding:14px 16px; border-radius:14px; border:1px solid var(--m-border); background:var(--m-card); color:var(--m-text); font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; margin:12px 0 16px }

/* ═══ 5. BOTTOM SHEET STYLES ═══ */

/* --- Filter sheet --- */
.idx-m-sheet-overlay { position:fixed; inset:0; z-index:1000; display:flex; align-items:flex-end; justify-content:center }
.idx-m-sheet-backdrop { position:absolute; inset:0; background:var(--m-overlay); animation:idxMFadeIn .15s ease }
.idx-m-sheet { position:relative; width:100%; max-width:430px; background:var(--m-card); border-radius:18px 18px 0 0; max-height:80vh; display:flex; flex-direction:column; animation:idxMSlideUp .25s cubic-bezier(0.16,1,0.3,1); box-shadow:0 -8px 40px rgba(0,0,0,0.15) }
.idx-m-sheet-handle { width:36px; height:4px; border-radius:2px; background:var(--m-border); margin:10px auto 4px }
.idx-m-sheet-header { padding:6px 20px 12px; display:flex; justify-content:space-between; align-items:center }
.idx-m-sheet-header h3 { font-size:17px; font-weight:700; color:var(--m-text); margin:0 }
.idx-m-sheet-clear { font-size:12px; color:#FF3B30; font-weight:600; background:none; border:none; cursor:pointer; font-family:inherit }
.idx-m-sheet-close { width:30px; height:30px; border-radius:15px; background:var(--m-bg); border:none; cursor:pointer; display:flex; align-items:center; justify-content:center }
.idx-m-sheet-body { overflow-y:auto; flex:1; padding:0 20px }
.idx-m-sheet-section { margin-bottom:18px }
.idx-m-sheet-section h4 { font-size:12px; font-weight:600; color:var(--m-text-secondary); display:block; margin-bottom:8px; text-transform:uppercase; letter-spacing:0.5px }
.idx-m-sheet-chips { display:flex; flex-wrap:wrap; gap:6px }
.idx-m-sheet-chip { padding:7px 14px; border-radius:20px; border:1.5px solid var(--m-border); background:transparent; cursor:pointer; font-size:13px; font-weight:500; color:var(--m-text-secondary); font-family:inherit; transition:0.2s }
.idx-m-sheet-chip.on { border-color:var(--m-primary); background:var(--m-primary-soft); color:var(--m-primary) }

/* Toggle rows in sheet */
.idx-m-tgl-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--m-border) }
.idx-m-tgl-row:last-child { border-bottom:none }
.idx-m-tgl-label { font-size:14px; font-weight:500; color:var(--m-text); display:block }
.idx-m-tgl-sub { font-size:11px; color:var(--m-text-secondary) }
.idx-m-tgl { width:44px; height:26px; border-radius:13px; border:none; cursor:pointer; flex-shrink:0; background:var(--m-border); position:relative; transition:all 0.2s }
.idx-m-tgl.on { background:var(--m-primary) }
.idx-m-tgl::after { content:''; width:20px; height:20px; border-radius:10px; background:#fff; position:absolute; top:3px; left:3px; transition:all 0.2s; box-shadow:0 1px 3px rgba(0,0,0,0.15) }
.idx-m-tgl.on::after { left:21px }

/* Sheet footer + apply */
.idx-m-sheet-footer { padding:10px 20px 16px; flex-shrink:0 }
.idx-m-sheet-apply { width:100%; padding:14px 0; border-radius:14px; font-size:15px; font-weight:600; border:none; background:var(--m-primary); color:#fff; cursor:pointer; font-family:inherit }

/* Slider in sheet */
.idx-m-slider-row { margin-top:4px }
.idx-m-slider-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px }
.idx-m-slider-val { font-size:14px; font-weight:700; color:var(--m-primary) }
.idx-m-slider-ends { display:flex; justify-content:space-between; margin-top:4px; font-size:11px; color:var(--m-text-secondary) }
#indexMobile input[type=range] { -webkit-appearance:none; width:100%; height:6px; border-radius:3px; background:var(--m-slider-track); outline:none }
#indexMobile input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:11px; background:var(--m-slider-thumb); cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,0.2) }

/* --- Profile sheet --- */
.idx-m-profile-sheet { position:relative; width:100%; max-width:430px; background:var(--m-card); border-radius:18px 18px 0 0; height:100vh; display:flex; flex-direction:column; animation:idxMSlideUp .25s cubic-bezier(0.16,1,0.3,1); box-shadow:0 -8px 40px rgba(0,0,0,0.15) }
.idx-m-profile-header { background:var(--m-hero-gradient); padding:0 0 24px; position:relative; overflow:hidden; z-index:1 }
.idx-m-profile-header::after { content:''; position:absolute; top:-50px; right:-50px; width:150px; height:150px; border-radius:75px; background:rgba(255,255,255,0.06) }
.idx-m-profile-top-bar { padding:12px 16px; display:flex; justify-content:space-between; align-items:center }
.idx-m-profile-back { display:flex; align-items:center; gap:6px; background:rgba(255,255,255,0.15); border:none; border-radius:20px; padding:7px 14px; cursor:pointer; font-size:13px; font-weight:600; color:#fff; font-family:inherit }
.idx-m-profile-info { padding:8px 20px 0; display:flex; gap:16px; align-items:flex-start }
.idx-m-profile-avatar { width:72px; height:72px; border-radius:36px; background:rgba(255,255,255,0.2); border:3px solid rgba(255,255,255,0.3); display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.idx-m-profile-avatar img { width:66px; height:66px; border-radius:33px; object-fit:cover }
.idx-m-profile-avatar span { font-size:24px; font-weight:700; color:#fff }
.idx-m-profile-details { flex:1; min-width:0 }
.idx-m-profile-name { font-size:20px; font-weight:800; color:#fff; margin:0 0 4px; line-height:1.2 }
.idx-m-profile-city { display:flex; align-items:center; gap:6px; margin-bottom:6px; font-size:13px; color:rgba(255,255,255,0.7) }
.idx-m-profile-stars { display:flex; gap:2px; align-items:center }
.idx-m-profile-rating { font-size:13px; font-weight:700; color:#fff; margin-left:4px }
.idx-m-profile-rev-count { font-size:11px; color:rgba(255,255,255,0.5) }
.idx-m-profile-header-tags { display:flex; gap:5px; flex-wrap:wrap; margin-top:6px }
.idx-m-profile-header-tag { padding:3px 10px; border-radius:14px; background:rgba(255,255,255,0.15); font-size:11px; font-weight:600; color:#fff }

/* Profile body */
.idx-m-profile-body { padding:12px 16px 120px; background:var(--m-bg); flex:1; overflow-y:auto }
.idx-m-profile-price-row { display:flex; gap:8px; margin-bottom:12px }
.idx-m-profile-price-card { flex:1; background:var(--m-card); border-radius:14px; padding:14px 16px; border:1px solid var(--m-border); box-shadow:0 1px 4px rgba(0,0,0,0.06); display:flex; align-items:center; justify-content:center; gap:6px }
.idx-m-profile-price { font-size:24px; font-weight:800; color:var(--m-primary) }
.idx-m-profile-price small { font-size:12px; color:var(--m-text-secondary); font-weight:400 }
.idx-m-profile-icon-btn { width:48px; border-radius:14px; border:1px solid var(--m-border); background:var(--m-card); cursor:pointer; display:flex; align-items:center; justify-content:center }
.idx-m-profile-book-btn { width:100%; padding:15px; border-radius:14px; border:none; background:var(--m-primary); color:#fff; font-size:16px; font-weight:700; cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:14px; box-shadow:0 4px 16px rgba(27,94,59,0.2); text-decoration:none }

/* Profile sections list */
.idx-m-profile-sections { background:var(--m-card); border-radius:14px; border:1px solid var(--m-border); box-shadow:0 1px 4px rgba(0,0,0,0.06); overflow:hidden }
.idx-m-profile-section-row { display:flex; align-items:center; gap:12px; padding:13px 14px; background:none; border:none; width:100%; text-align:left; cursor:pointer; font-family:inherit; border-bottom:1px solid var(--m-border) }
.idx-m-profile-section-row:last-child { border-bottom:none }
.idx-m-profile-section-icon { width:32px; height:32px; border-radius:10px; background:var(--m-primary-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0 }
.idx-m-profile-section-label { font-size:14px; font-weight:600; color:var(--m-text) }
.idx-m-profile-section-preview { font-size:12px; color:var(--m-text-secondary); margin:2px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }

/* Profile reviews */
.idx-m-profile-reviews { background:var(--m-card); border-radius:14px; border:1px solid var(--m-border); box-shadow:0 1px 4px rgba(0,0,0,0.06); margin-top:12px; padding:16px }
.idx-m-profile-reviews h3 { font-size:15px; font-weight:700; color:var(--m-text); margin:0 }
.idx-m-profile-see-all { font-size:12px; color:var(--m-primary); font-weight:600; cursor:pointer; background:none; border:none; font-family:inherit }
.idx-m-review-card { padding:10px 0; border-top:1px solid var(--m-border) }
.idx-m-review-card:first-child { border-top:none }
.idx-m-review-avatar { width:28px; height:28px; border-radius:14px; background:var(--m-primary-soft); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:var(--m-primary) }
.idx-m-review-name { font-size:13px; font-weight:600; color:var(--m-text) }
.idx-m-review-date { font-size:11px; color:var(--m-text-secondary) }
.idx-m-review-text { font-size:13px; color:var(--m-text-secondary); margin:0; line-height:1.4 }

/* --- Detail sub-sheet --- */
.idx-m-detail-sheet { position:relative; width:100%; max-width:430px; background:var(--m-card); border-radius:18px 18px 0 0; max-height:70vh; display:flex; flex-direction:column; animation:idxMSlideUp .25s cubic-bezier(0.16,1,0.3,1); box-shadow:0 -8px 40px rgba(0,0,0,0.15) }
.idx-m-detail-header { padding:8px 20px 14px; display:flex; justify-content:space-between; align-items:center }
.idx-m-detail-icon { width:36px; height:36px; border-radius:18px; background:var(--m-primary-soft); display:flex; align-items:center; justify-content:center }
.idx-m-detail-body { padding:0 20px 24px; overflow-y:auto; flex:1 }
.idx-m-detail-chips { display:flex; flex-wrap:wrap; gap:8px }
.idx-m-detail-chip { padding:8px 16px; border-radius:20px; background:var(--m-primary-soft); border:1px solid var(--m-border); font-size:14px; font-weight:500; color:var(--m-primary) }
.idx-m-schedule-row { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-radius:10px; background:var(--m-bg); margin-bottom:6px }
.idx-m-schedule-day { font-size:14px; font-weight:600; color:var(--m-text) }
.idx-m-schedule-time { font-size:14px; color:var(--m-primary); font-weight:500 }
.idx-m-detail-text { font-size:15px; color:var(--m-text); line-height:1.6; margin:0 }

/* ═══ 6. ANIMATIONS ═══ */
@keyframes idxFadeUp { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
@keyframes idxMSlideUp { from { transform:translateY(100%) } to { transform:translateY(0) } }
@keyframes idxMFadeIn { from { opacity:0 } to { opacity:1 } }

/* Card stagger animation */
.idx-card { animation:idxFadeUp .4s ease both }
.idx-card:nth-child(1) { animation-delay:0s }
.idx-card:nth-child(2) { animation-delay:.04s }
.idx-card:nth-child(3) { animation-delay:.08s }
.idx-card:nth-child(4) { animation-delay:.12s }
.idx-card:nth-child(5) { animation-delay:.16s }
.idx-card:nth-child(6) { animation-delay:.2s }

/* Mobile card animation */
.idx-m-card { animation:idxFadeUp .4s ease both }
.idx-m-card:nth-child(1) { animation-delay:0s }
.idx-m-card:nth-child(2) { animation-delay:.04s }
.idx-m-card:nth-child(3) { animation-delay:.08s }
.idx-m-card:nth-child(4) { animation-delay:.12s }
.idx-m-card:nth-child(5) { animation-delay:.16s }
.idx-m-card:nth-child(6) { animation-delay:.2s }

/* ═══ INDEX MOBILE BOTTOM NAV ═══ */
#idxBottomNav {
    --m-nav-bg: rgba(255,255,255,0.92);
    --m-nav-blur: blur(20px);
    --m-border: #E5E5EA;
    --m-text-muted: #AEAEB2;
    --m-primary: #1B5E3B;
    --m-btn-color: #fff;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
    position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto;
    max-width: 430px; background: var(--m-nav-bg);
    -webkit-backdrop-filter: var(--m-nav-blur); backdrop-filter: var(--m-nav-blur);
    border-top: 1px solid var(--m-border); display: none;
    padding: 6px 0 env(safe-area-inset-bottom, 10px); z-index: 200;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
#idxBottomNav *, #idxBottomNav *::before, #idxBottomNav *::after { box-sizing: border-box; }
.idx-m-nav-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none;
    color: inherit; border: none; cursor: pointer; padding: 5px 0;
    position: relative; font-family: inherit;
}
.idx-m-nav-icon {
    display: flex; align-items: center; justify-content: center;
    color: var(--m-text-muted);
}
.idx-m-nav-label {
    font-size: 10px; font-weight: 400; color: var(--m-text-muted);
}
.idx-m-nav-btn.is-active .idx-m-nav-icon { color: var(--m-primary); }
.idx-m-nav-btn.is-active .idx-m-nav-label { font-weight: 600; color: var(--m-primary); }
.idx-m-nav-btn.is-active::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 2px; background: var(--m-primary);
}
@media (max-width: 900px) { #idxBottomNav { display: flex; } }
@media (min-width: 901px) { #idxBottomNav { display: none !important; } }

/* Dark theme */
#idxBottomNav[data-theme="dark"] {
    --m-nav-bg: rgba(12,20,16,0.95); --m-nav-blur: blur(24px);
    --m-border: #243028; --m-text-muted: #4A6A4A; --m-primary: #4ADE80; --m-btn-color: #000;
}
/* Warm theme */
#idxBottomNav[data-theme="warm"] {
    --m-nav-bg: rgba(255,255,255,0.94); --m-nav-blur: blur(20px);
    --m-border: #E8E0D6; --m-text-muted: #7E7363; --m-primary: #5D4E37; --m-btn-color: #fff;
}

/* ═══ INDEX MOBILE ABOUT SECTION ═══ */
.idx-m-about {
    background: var(--m-card);
    border-radius: var(--m-r, 14px);
    border: 1px solid var(--m-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px 16px;
    margin-top: 16px;
}
.idx-m-about h3 {
    font-size: 16px; font-weight: 700; color: var(--m-text); margin: 0 0 8px;
}
.idx-m-about p {
    font-size: 13px; color: var(--m-text-sec); line-height: 1.5; margin: 0 0 12px;
}
.idx-m-about-links {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.idx-m-about-links a {
    font-size: 12px; font-weight: 600; color: var(--m-primary); text-decoration: none;
}

/* ═══ 7. BREAKPOINTS ═══ */
@media(max-width:1100px) {
  .idx-grid { grid-template-columns:repeat(2,1fr) }
}

@media(max-width:900px) {
  .idx-desktop { display:none !important }
  #indexMobile { display:block !important }
  .idx-page .main-header { display:none !important }
  .idx-page .main-footer { display:none !important }
  .idx-page > .container { padding: 0 }
}

/* ═══ 8. MISSING UTILITIES ═══ */
.idx-dot { color:var(--text-muted); margin:0 4px }
.idx-empty { text-align:center; padding:40px 20px; color:#6B7280 }
.idx-empty p { margin-bottom:16px; font-size:16px }
.idx-clear-all { background:#1B5E3B; color:#fff; border:none; padding:10px 24px; border-radius:40px; font-size:14px; font-weight:600; cursor:pointer }
.idx-clear-all:hover { background:#154c3a }
.idx-m-empty { text-align:center; padding:40px 20px; color:var(--m-text-sec,#6B7280) }
.idx-m-empty p { margin-bottom:16px; font-size:16px }

/* ═══ 9. CROSS-CHECK FIXES ═══ */

/* Avatar image (direct, not inside .idx-av wrapper) */
.idx-av-img { width:52px; height:52px; border-radius:26px; object-fit:cover; flex-shrink:0; box-shadow:0 2px 8px rgba(27,94,59,.15) }

/* Avatar initials fallback (direct, not inside .idx-av wrapper) */
.idx-av-text { width:52px; height:52px; border-radius:26px; flex-shrink:0; background:linear-gradient(135deg,var(--primary),var(--primary-light)); display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#fff; box-shadow:0 2px 8px rgba(27,94,59,.15) }

/* Toggle row (HTML uses idx-tgl-row, alias for idx-trow) */
.idx-tgl-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0 }
.idx-tgl-row label { font-size:13px; font-weight:500; color:var(--text) }

/* Price slider input */
.idx-slider { -webkit-appearance:none; width:100%; height:5px; border-radius:3px; background:linear-gradient(to right,var(--primary-soft),var(--primary-light)); outline:none; margin:4px 0 }

/* Results container */
.idx-results { flex:1; min-width:0 }

/* Bottom pagination bar */
.idx-bottom-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding:10px 0; font-size:13px; color:var(--text-sec) }

/* Per-page selector wrapper */
.idx-per-page { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-sec) }
.idx-per-page select { padding:4px 8px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card); font-size:13px; color:var(--text-sec); outline:none; cursor:pointer; font-family:inherit }

/* Pagination range text */
.idx-range-text { font-size:12px; color:var(--text-muted) }

/* ═══════════════════════════════════════════════════════════════
   SPECIALTY GROUP ACCORDION — Directory filter sidebar
   Styled like .idx-fselect boxes — full-width, stacked, cohesive
   ═══════════════════════════════════════════════════════════════ */

/* Container — full-width column with gap between groups */
.sg-filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Group — each styled like a select/input box */
.sg-filter-group {
    width: 100%;
    border-radius: var(--radius-sm, 10px);
    border: 1.5px solid var(--border, #E2E8E5);
    background: var(--bg, #F4F6F5);
    transition: border-color 0.15s ease, background 0.15s ease;
    overflow: hidden;
}
.sg-filter-group.is-open {
    border-color: var(--primary, #1B5E3B);
    background: var(--card, #FFFFFF);
}

/* Header — full button reset, matches input/select padding */
.sg-filter-header {
    background: none;
    color: inherit;
    border: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.sg-filter-header:hover {
    background: rgba(0, 0, 0, 0.02);
}
.sg-filter-header:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary, #1B5E3B);
    border-radius: var(--radius-sm, 10px);
}
.sg-filter-dot { display: none; }
/* Icon — matches .sec-ico from therapist view (30x30, green theme).
   Supports both inline SVGs (stroke) and Font Awesome <i> glyphs (color)
   so either icon technology picks up the correct color on idle/hover/open. */
.sg-filter-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-soft, #EAF5EC);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary, #1B5E3B);
    transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.sg-filter-icon svg {
    stroke: currentColor;
}
.sg-filter-icon > i {
    color: currentColor;
}
.sg-filter-group.is-open .sg-filter-icon,
.sg-filter-group:hover .sg-filter-icon {
    background: var(--primary, #1B5E3B);
    color: #fff;
}
.sg-filter-group:hover .sg-filter-icon {
    transform: scale(1.05);
}

/* Title — matches .idx-fl label sizing */
.sg-filter-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sec, #5A6B5E);
    line-height: 1.3;
}
.sg-filter-group.is-open .sg-filter-title {
    color: var(--text, #1A2B22);
    font-weight: 600;
}

/* Count badge — green pill, hidden until active, pop on change */
.sg-filter-count {
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary, #1B5E3B);
    color: #fff;
    padding: 2px 7px;
    flex-shrink: 0;
}
.sg-filter-count.has-active {
    display: inline-flex;
    animation: sg-count-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sg-count-pop {
    0%   { transform: scale(0.7); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Chevron — muted, rotates on open */
.sg-filter-chevron {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted, #636366);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s ease;
}
.sg-filter-group.is-open .sg-filter-chevron {
    transform: rotate(180deg);
    color: var(--text-sec, #5A6B5E);
}

/* Body — CSS grid for smooth height animation */
.sg-filter-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}
.sg-filter-group.is-open .sg-filter-body {
    grid-template-rows: 1fr;
}

/* Inner wrapper — overflow hidden for grid trick */
.sg-filter-body > .sg-filter-body-inner {
    overflow: hidden;
}

/* Chips — flex wrap, padding matches header */
.sg-filter-body-inner > .sg-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 14px;
    transition: padding 0.28s ease;
}
.sg-filter-group.is-open .sg-filter-body-inner > .sg-filter-chips {
    padding: 4px 14px 12px;
}

/* Chip overrides — rounded pills, solid green when selected */
.sg-filter-body .idx-chip {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12.5px;
    border: 1.5px solid var(--border, #E2E8E5);
    background: var(--bg, #F4F6F5);
    color: var(--text-sec, #5A6B5E);
}
.sg-filter-body .idx-chip:hover {
    border-color: var(--text-muted, #636366);
    background: var(--card, #FFFFFF);
}
.sg-filter-body .idx-chip.on {
    background: var(--primary, #1B5E3B);
    color: #fff;
    border-color: var(--primary, #1B5E3B);
}
