/* QuettaWheels — city picker tab (right edge) */

.qw-citytab{
  position:fixed; right:0; top:50%; transform:translateY(-50%);
  z-index:150; display:flex; align-items:center; gap:8px;
  padding:16px 9px; border:0; border-right:0;
  border-radius:14px 0 0 14px; cursor:pointer;
  background:var(--blue,#2563EB); color:#fff;
  font-family:var(--display,system-ui,sans-serif); font-size:12px; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase;
  writing-mode:vertical-rl; text-orientation:mixed;
  box-shadow:-2px 0 16px rgba(11,31,58,.22);
  transition:background .2s var(--ease,ease), padding-right .2s var(--ease,ease);
}
.qw-citytab:hover,.qw-citytab:focus-visible{ background:var(--blue-hover,#1D4ED8); padding-right:13px; }
.qw-citytab:focus-visible{ outline:3px solid var(--text,#0B1F3A); outline-offset:2px; }
.qw-citytab svg{ width:15px; height:15px; flex:none; transform:rotate(90deg); }
.qw-citytab-label{ max-height:9.5em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.qw-cityscrim{
  position:fixed; inset:0; z-index:200; background:rgba(11,31,58,.5);
  opacity:0; visibility:hidden; transition:opacity .25s var(--ease,ease), visibility .25s;
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
}
.qw-citypanel{
  position:fixed; top:0; right:0; z-index:201;
  width:min(378px,100vw); height:100%;
  display:flex; flex-direction:column;
  background:var(--surface,#fff); color:var(--text,#0B1F3A);
  border-left:1px solid var(--line,#DDE4EE);
  box-shadow:-10px 0 44px rgba(11,31,58,.25);
  transform:translateX(102%); visibility:hidden;
  transition:transform .32s var(--ease-out,ease), visibility .32s;
}
.qw-city-open .qw-cityscrim{ opacity:1; visibility:visible; }
.qw-city-open .qw-citypanel{ transform:none; visibility:visible; }
.qw-city-open .qw-citytab{ opacity:0; pointer-events:none; }
body.qw-city-locked{ overflow:hidden; }

.qw-citypanel-head{
  padding:18px 18px 12px; border-bottom:1px solid var(--line,#DDE4EE);
  background:var(--surface-2,#F1F5FA);
}
.qw-citypanel-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.qw-citypanel-head h2{
  margin:0; font-family:var(--display,system-ui,sans-serif);
  font-size:17px; line-height:1.3; font-weight:700; color:var(--heading,#0B1F3A);
}
.qw-citypanel-head p{ margin:3px 0 0; font-size:12.5px; color:var(--muted,#52607A); }
.qw-cityclose{
  flex:none; width:34px; height:34px; border-radius:10px; cursor:pointer;
  border:1px solid var(--line-2,#C9D3E0); background:var(--surface,#fff);
  color:var(--muted,#52607A); font-size:19px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}
.qw-cityclose:hover{ color:var(--text,#0B1F3A); border-color:var(--text-2,#33435C); }

.qw-citymode{
  display:flex; gap:4px; margin:13px 0 10px; padding:3px;
  background:var(--bg-2,#EEF2F8); border:1px solid var(--line,#DDE4EE); border-radius:12px;
}
.qw-citymode button{
  flex:1; padding:8px 6px; border:0; border-radius:9px; cursor:pointer;
  background:transparent; color:var(--muted,#52607A);
  font-family:inherit; font-size:13px; font-weight:700;
}
.qw-citymode button[aria-pressed="true"]{
  background:var(--surface,#fff); color:var(--blue,#2563EB);
  box-shadow:0 1px 3px rgba(11,31,58,.12);
}
.qw-citysearch{
  width:100%; box-sizing:border-box; padding:10px 12px;
  border:1px solid var(--line-2,#C9D3E0); border-radius:11px;
  background:var(--surface,#fff); color:var(--text,#0B1F3A);
  font-family:inherit; font-size:14px;
}
.qw-citysearch::placeholder{ color:var(--faint,#647089); }
.qw-citysearch:focus{ outline:2px solid var(--blue,#2563EB); outline-offset:1px; border-color:var(--blue,#2563EB); }

.qw-citypanel-body{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:14px 18px 26px; }
.qw-citychips{ display:flex; flex-wrap:wrap; gap:7px; margin:0 0 18px; }
.qw-citychips a{
  padding:6px 11px; border-radius:999px; text-decoration:none;
  background:var(--chip,#E8F0FF); color:var(--chip-text,#1D4ED8);
  font-size:12.5px; font-weight:700; border:1px solid transparent;
}
.qw-citychips a:hover{ border-color:var(--blue,#2563EB); }
.qw-cityprov{ margin:0 0 16px; }
.qw-cityprov h3{
  margin:0 0 7px; padding-bottom:5px; border-bottom:1px solid var(--line,#DDE4EE);
  font-family:var(--display,system-ui,sans-serif); font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--faint,#647089);
}
.qw-cityprov ul{ list-style:none; margin:0; padding:0; }
.qw-cityprov a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 10px; margin:1px 0; border-radius:9px;
  text-decoration:none; color:var(--text-2,#33435C); font-size:14px;
}
.qw-cityprov a:hover,.qw-cityprov a:focus-visible{
  background:var(--chip,#E8F0FF); color:var(--chip-text,#1D4ED8);
}
.qw-cityprov a[aria-current="true"]{ color:var(--blue,#2563EB); font-weight:700; }
.qw-citycount{
  flex:none; font-size:11.5px; font-weight:700; color:var(--faint,#647089);
  background:var(--surface-2,#F1F5FA); border-radius:999px; padding:2px 8px;
}
.qw-cityprov a:hover .qw-citycount{ background:var(--surface,#fff); }
.qw-cityempty{ display:none; padding:22px 4px; color:var(--muted,#52607A); font-size:14px; }
.qw-citypanel.is-empty .qw-cityempty{ display:block; }
.qw-citypanel.is-empty .qw-citychips{ display:none; }

@media (max-width:520px){
  .qw-citytab{ padding:13px 7px; font-size:11px; }
  .qw-citytab-label{ max-height:7.5em; }
  .qw-citypanel{ width:min(340px,92vw); }
}
@media (prefers-reduced-motion:reduce){
  .qw-citytab,.qw-cityscrim,.qw-citypanel{ transition:none; }
}

/* visually hidden label (scoped, in case the global utility is named differently) */
.qw-citypanel .qw-sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}

.qw-citymine{
  flex:none; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--chip-text,#1D4ED8); background:var(--chip,#E8F0FF);
  border-radius:999px; padding:2px 8px;
}
