/* browse.css — Figma-aligned Browse + Search Sheet */

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#15104D;
  background:#fff;
}

/* page width like iPhone */
.browse{
  max-width:420px;
  margin:0 auto;
  padding: 12px 0 90px;
}

/* SEARCH BAR (top) */
.searchWrap{ padding: 12px 20px 10px; background:#EAE8E8; }
.searchBarBtn{
  width:100%;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  background:#fff;
  border:1px solid #808080;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
  cursor:pointer;
  padding:0;
}
.searchLeft{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 13px;
}
.searchPlaceholder{ color:#808080; font-size:14px; }
.searchRight{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-left:1px solid #808080;
  background:#F3F3F3;
  color:#000;
  font-size:14px;
}

/* CATEGORY TILES */
.categoryRow{
  display:flex;
  justify-content:space-between;
  padding: 10px 20px 0;
  background:#fff;
  border-bottom:1px solid #D0D0D0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.catTile{
  flex:1;
  border:0;
  background:transparent;
  padding:10px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#808080;
  border-bottom:2px solid transparent;
}
.catTile.active{
  color:#000;
  border-bottom-color:#000;
}
.catIcon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#DDDDDD;
  position:relative;
}
.catIcon::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:999px;
  background:#A0A0A0;
}
.catLabel{ font-size:12px; }

/* Results placeholder */
.resultsPad{ padding:16px 20px; }
.muted{ color:#808080; font-size:14px; }
.emptyMsg{ margin-top:22px; color:#808080; font-size:14px; line-height:20px; }

/* Map pill sticky like Figma */
.mapPill{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:20px;
  border:0;
  background:#000;
  color:#fff;
  border-radius:999px;
  padding:12px 26px;
  font-weight:600;
  cursor:pointer;
}

/* SHEET */
.sheetBackdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.25);
  z-index:999;
}
.sheet{
  position:fixed;
  left:0; right:0; bottom:0;
  max-width:420px;
  margin:0 auto;
  background:#fff;
  border-radius:16px 16px 0 0;
  transform:translateY(110%);
  transition:transform 220ms ease;
  z-index:1000;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}
.sheet.open{ transform:translateY(0); }

.sheetTop{
  position:relative;
  padding:12px 16px 0;
}
.sheetHandle{
  width:44px; height:5px;
  border-radius:999px;
  background:#E0E0E0;
  margin:0 auto 10px;
}
.sheetClose{
  position:absolute;
  right:14px;
  top:10px;
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  color:#000;
}

/* Mini search inside sheet */
.sheetBody{ padding: 8px 20px 20px; }
.sheetSearchMini{
  width:100%;
  display:flex;
  justify-content:space-between;
  border:1px solid #808080;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
  margin-bottom:14px;
}
.miniLeft{ display:flex; align-items:center; gap:8px; padding:12px 13px; color:#808080; }
.miniRight{ display:flex; align-items:center; gap:6px; padding:10px 14px; background:#F3F3F3; border-left:1px solid #808080; color:#000; }
.miniPlaceholder{ color:#808080; font-size:14px; }

.sheetH{
  margin:14px 0 10px;
  font-size:14px;
  color:#15104D;
  font-weight:600;
}

.tile2, .tile3{
  display:grid;
  gap:12px;
}
.tile2{ grid-template-columns:1fr 1fr; }
.tile3{ grid-template-columns:1fr 1fr 1fr; }

.pickTile{
  border:1px solid #808080;
  border-radius:10px;
  background:#fff;
  padding:16px 10px;
  cursor:pointer;
  color:#808080;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:64px;
}
.pickTile.active{
  color:#000;
  outline:2px solid #808080;
  outline-offset:-2px;
}

.fieldLabel{
  display:block;
  margin-top:14px;
  font-size:14px;
  color:#15104D;
  font-weight:600;
}
.fieldInput{
  width:100%;
  margin-top:10px;
  border:1px solid #808080;
  border-radius:8px;
  padding:12px 12px;
  font-size:14px;
}
.fieldRow{
  position:relative;
  margin-top:10px;
}
.fieldRow .fieldInput{ margin-top:0; padding-right:44px; }
.fieldIcon{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:0.7;
}

.sheetFooter{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}
.searchCta{
  border:0;
  background:#000;
  color:#fff;
  border-radius:10px;
  padding:12px 18px;
  font-weight:600;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
}
/* Dropdown selector (At Location / At Home) */
.placeSelect{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  border:0;
  background:transparent;
  font-size:14px;
  color:#000;
  padding:0;
  margin:0;
  line-height:1;
  cursor:pointer;
}
.chev{ pointer-events:none; }

/* Make the trailing area behave like a dropdown */
.searchRight, .miniRight{
  display:flex;
  align-items:center;
  gap:6px;
}
.searchRight{
  padding:10px 14px;
  border-left:1px solid #808080;
  background:#F3F3F3;
}
.miniRight{
  padding:10px 14px;
  border-left:1px solid #808080;
  background:#F3F3F3;
}

/* Sheet input */
.miniInput{
  border:0;
  outline:0;
  width:100%;
  font-size:14px;
  color:#15104D;
  background:transparent;
}
.miniLeft{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 13px;
  flex:1;
  color:#808080;
}

/* Typeahead list */
.typeahead{
  margin-top:10px;
  border-top:1px solid #E6E6E6;
  padding-top:10px;
}
.taGroup{ margin-top:10px; }
.taTitle{
  font-size:12px;
  color:#808080;
  margin-bottom:8px;
  font-weight:600;
}
.taItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid #EFEFEF;
}
.taDot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#CFCFCF;
  margin-top:4px;
  flex:0 0 10px;
}
.taMain{
  font-size:14px;
  color:#15104D;
  font-weight:600;
  line-height:18px;
}
.taSub{
  font-size:12px;
  color:#808080;
  line-height:16px;
  margin-top:2px;
}
/* Make the icon purely decorative; NEVER block input clicks */
.fieldIcon{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:0.85;
  pointer-events:none; /* <-- important */
}

/* Extra padding so text doesn't run under the icon */
.fieldRow .fieldInput{
  padding-right:44px;
}

/* Remove browser native date/time UI icon where possible (prevents double icon) */
.fieldInput[type="date"]::-webkit-calendar-picker-indicator,
.fieldInput[type="time"]::-webkit-calendar-picker-indicator{
  opacity:0;           /* hide the native icon */
  position:absolute;
  right:12px;
  width:24px;
  height:24px;
  cursor:pointer;
}

/* Some browsers also show clear/spin controls; hide for cleaner Figma look */
.fieldInput::-webkit-clear-button,
.fieldInput::-webkit-inner-spin-button{
  display:none;
}


/* Figma-like category row */
.categoryRow{
  display:flex;
  gap:0;
  padding:0 20px;
  background:#fff;
  border-bottom:1px solid #D0D0D0;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}

.catTile{
  flex:1;
  border:0;
  background:transparent;
  padding:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:#808080;
  border-bottom:2px solid transparent;
}

.catTile .catIcon{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#DDDDDD;
  display:inline-block;
  position:relative;
}
.catTile .catIcon::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:999px;
  background:#A0A0A0;
}

.catTile.active{
  color:#000;
  border-bottom-color:#000;
}

.catLabel{
  font-size:12px;
  line-height:19px;
}
/* Figma-like placeholder text for date/time (works in modern browsers) */
.fieldInput[type="date"]:not(:focus):invalid{
  color:#808080;
}
.fieldInput[type="time"]:not(:focus):invalid{
  color:#808080;
}
/* ---------- Results view ---------- */
#viewResults .resultsScreen{
  background:#fff;
  min-height:calc(100vh - 88px); /* guest nav height-ish */
}

.resultsSearchRow{
  padding:14px 20px 10px;
  background:#f6f6f6;
  border-bottom:1px solid #ededed;
}

.searchBox{
  display:flex;
  align-items:stretch;
  width:100%;
  border:1px solid #808080;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}

.searchLead{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 12px;
  flex:1;
  min-width:0;
}

.searchInput{
  border:0;
  outline:none;
  font-size:14px;
  width:100%;
}

.searchRight{
  border-left:1px solid #808080;
  background:#F3F3F3;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 10px;
}

.placeSelect{
  border:0;
  background:transparent;
  font-size:14px;
  outline:none;
  appearance:none;
  padding:10px 0;
}

.resultsBar{
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.resultsCount{ color:#808080; font-size:14px; }
.resultsActions{ display:flex; gap:8px; }

.pillBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid #808080;
  background:#fff;
  color:#808080;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}

.list{ padding:10px 0 120px; }
.emptyHint{ padding:18px 20px; color:#808080; }

/* ---------- Filter Sheet ---------- */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.30);
  z-index:50;
}

.sheet{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:100%;
  max-width:420px;
  background:#fff;
  border-top-left-radius:16px;
  border-top-right-radius:16px;
  box-shadow:0 -4px 16px rgba(0,0,0,.18);
  z-index:60;
  max-height:85vh;
  overflow:auto;
}

.sheetInner{ padding:16px 20px; display:flex; flex-direction:column; gap:16px; }
.sheetHeader{ display:flex; align-items:center; justify-content:space-between; }
.sheetTitle{ font-size:18px; font-weight:600; }
.closeX{ border:0; background:transparent; font-weight:600; cursor:pointer; }

.block{ border-bottom:0.5px solid #808080; padding-bottom:16px; }
.block:last-of-type{ border-bottom:0; padding-bottom:0; }

.label{ font-size:14px; font-weight:600; margin-bottom:8px; }
.chipRow{ display:flex; gap:12px; }

.chip{
  flex:1;
  border-radius:10px;
  border:1px solid #808080;
  padding:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  cursor:pointer;
  user-select:none;
  background:#fff;
}

.chip.active{
  outline:3px solid #808080;
  outline-offset:-3px;
}

.chip .dot{ width:40px; height:40px; border-radius:999px; background:#d9d9d9; }
.chip span{ font-size:12px; color:#808080; }

.sheetFooter{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.clearAll{ border:0; background:transparent; cursor:pointer; }
.applyBtn{ border:0; background:#000; color:#fff; border-radius:8px; padding:10px 16px; font-weight:600; cursor:pointer; }

/* hide training chip cleanly */
.chip.isHidden{ display:none; }
