/* Match2Go premium visual layer — 2026-11-06.
   Presentation only: do not change product flow or map interaction. */
:root{
  --m2g-premium-blue:#1979f2;
  --m2g-premium-blue-2:#315ee8;
  --m2g-premium-ink:#102a49;
  --m2g-premium-text:#405b79;
  --m2g-premium-muted:#7a8da5;
  --m2g-premium-line:rgba(202,219,239,.82);
  --m2g-premium-glass:rgba(255,255,255,.89);
  --m2g-premium-soft:rgba(239,247,255,.94);
  --m2g-premium-shadow:0 16px 44px rgba(22,65,116,.13);
  --m2g-premium-shadow-soft:0 8px 28px rgba(22,65,116,.09);
}
html,body{background:#eef5fd;color:var(--m2g-premium-ink)}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
/* Floating translucent application header. */
body>header{
  position:relative;z-index:20;
  background:rgba(255,255,255,.91);
  border-bottom:1px solid rgba(207,222,239,.78);
  box-shadow:0 5px 24px rgba(24,61,104,.07);
  backdrop-filter:blur(18px) saturate(1.18);
}
body>header .brand{
  color:#102b49;font-weight:880;letter-spacing:-1.15px;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
body>header .brand span{color:var(--m2g-premium-blue)}
body>header :is(#notifications,#profile,#admin-link,.profile){
  border:1px solid var(--m2g-premium-line);
  background:rgba(255,255,255,.92);
  color:#31516f;
  box-shadow:0 5px 18px rgba(30,72,119,.07);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
body>header :is(#notifications,#profile,#admin-link,.profile):hover{
  background:#f8fbff;border-color:#b9d6f5;box-shadow:0 8px 22px rgba(30,72,119,.11);filter:none;transform:translateY(-1px)
}
body>header #notifications{width:40px;height:40px;padding:9px;border-radius:50%}
body>header #profile{border-radius:999px;padding-inline:14px;font-weight:700}
body>header .m2g-icon{width:20px;height:20px}
/* Map is the canvas; controls float like compact iOS glass chips. */
.map-first-main .map-shell{background:#eaf2f8}
.map-action-bar{gap:8px}
.map-action-bar>a,.map-action-bar>button,.map-action-bar>details>summary{
  min-height:42px;
  border:1px solid rgba(200,218,238,.9);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#23496f;
  box-shadow:0 8px 24px rgba(20,60,105,.11);
  backdrop-filter:blur(15px) saturate(1.15);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.map-action-bar>a:hover,.map-action-bar>button:hover,.map-action-bar>details>summary:hover{
  filter:none;transform:translateY(-1px);background:#fff;border-color:#b5d3f2;box-shadow:0 11px 29px rgba(20,60,105,.15)
}
.map-action-bar .m2g-icon{width:18px;height:18px}
.map-filter-popover[open]>summary{
  background:linear-gradient(135deg,#edf6ff,#e7f1ff);color:#175cb1;border-color:#aacdf2
}
.map-filter-body{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(197,217,240,.9);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(15,50,91,.19);
  backdrop-filter:blur(22px) saturate(1.16);
}
#close-map-tools{border-radius:16px!important;background:#f1f7ff!important;color:#2f5e8d!important;border-color:#d1e3f6!important}
.map-filter-body :is(select,input,textarea){
  border-radius:13px;border:1px solid #d4e3f2;background:#fbfdff;color:#1f405f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)
}
.map-filter-body .filters button,.local-news-tools button{
  border:1px solid #dbe7f4;background:#f8fbff;color:#315676;border-radius:999px;
  transition:background .16s ease,border-color .16s ease,transform .16s ease
}
.map-filter-body .filters button[aria-pressed=true]{
  background:linear-gradient(135deg,#e4f1ff,#eef5ff);border-color:#acd0fa;color:#1559ad;box-shadow:0 3px 10px rgba(33,105,193,.08)
}
/* Privacy and transient alerts: compact readable glass. */
.map-first-main .privacy{
  background:rgba(255,255,255,.82);border:1px solid rgba(215,229,244,.92);
  color:#637991;box-shadow:0 6px 20px rgba(21,58,99,.08);backdrop-filter:blur(12px)
}
.map-first-main #notice:not([hidden]){
  border:1px solid #d8e7f6;background:rgba(255,255,255,.95);color:#315675;
  border-radius:16px;box-shadow:0 12px 34px rgba(21,58,99,.12);backdrop-filter:blur(14px)
}
/* Premium map markers: photo-first, subtle lift and presence ring. */
.map-marker{
  filter:drop-shadow(0 8px 10px rgba(22,58,96,.21));
  animation:m2g-marker-in .28s cubic-bezier(.2,.8,.2,1) both
}
.map-marker button{
  border-color:rgba(255,255,255,.98);
  box-shadow:0 0 0 1px rgba(164,195,228,.45),0 7px 18px rgba(24,66,112,.19)
}
.map-marker button:is(:hover,:focus-visible){filter:none;transform:translateY(-2px) scale(1.035)}
.map-marker .marker-caption{
  background:rgba(255,255,255,.94);border:1px solid #dce8f5;color:#294a6b;
  border-radius:999px;box-shadow:0 6px 18px rgba(24,64,108,.1);backdrop-filter:blur(10px)
}
.user-position{
  box-shadow:0 0 0 4px rgba(38,123,240,.22),0 0 0 9px rgba(38,123,240,.09),0 8px 22px rgba(24,82,161,.25);
  animation:m2g-user-breathe 2.8s ease-in-out infinite
}
/* Nearby bottom sheet / desktop card: same visual system as approved mockup. */
.map-first-main .map-layout aside#nearby-sheet{
  border:1px solid rgba(205,222,240,.92);
  background:rgba(255,255,255,.93);
  border-radius:26px;
  box-shadow:0 20px 55px rgba(17,55,96,.16);
  backdrop-filter:blur(20px) saturate(1.12);
}
#nearby-sheet-content{padding:16px 18px 18px}
.nearby-sheet-eyebrow{color:#4e78a5;letter-spacing:1.45px}
#nearby-sheet #status{color:#153a60;font-weight:780}
#nearby-sheet #list button.nearby-list-item{
  transition:background .16s ease,transform .16s ease
}
#nearby-sheet #list button.nearby-list-item:is(:hover,:focus-visible),#nearby-sheet #list button.nearby-list-item.is-selected{
  background:linear-gradient(90deg,#f3f8ff,#fbfdff);filter:none;transform:translateX(2px)
}
#nearby-sheet #card h2{font-weight:820;letter-spacing:-.55px;color:#102f50}
#nearby-sheet #card-actions .m2g-action,#nearby-sheet #card-actions>a{
  border-radius:14px;border-color:#d5e4f3;background:#f8fbff;color:#2b506f;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease
}
#nearby-sheet #card-actions .m2g-action:is(:hover,:focus-visible),#nearby-sheet #card-actions>a:is(:hover,:focus-visible){
  filter:none;transform:translateY(-1px);box-shadow:0 7px 18px rgba(24,72,126,.09)
}
#nearby-sheet #card-actions .m2g-action-primary{
  background:linear-gradient(135deg,var(--m2g-premium-blue),var(--m2g-premium-blue-2));
  border-color:transparent;color:#fff;box-shadow:0 9px 23px rgba(31,99,218,.25)
}
/* Dialogs and forms. */
dialog{
  border:1px solid rgba(213,226,241,.92)!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.98);
  color:var(--m2g-premium-ink);
  box-shadow:0 30px 95px rgba(10,39,74,.26)!important;
}
dialog::backdrop{background:rgba(16,39,67,.42)!important;backdrop-filter:blur(7px)!important}
.panel-head{
  position:sticky;top:-1px;z-index:4;padding:2px 0 10px;
  background:linear-gradient(180deg,rgba(255,255,255,.98) 76%,rgba(255,255,255,0));
}
.panel-head h2{font-size:23px;font-weight:820;letter-spacing:-.45px;color:#133757}
.panel-head #panel-close{width:40px;height:40px;padding:0;border-radius:50%;background:#f2f7fd;color:#496984;border-color:#d9e6f3}
#panel-body :is(input,textarea,select){
  border:1px solid #d3e2f1;border-radius:14px;background:#fbfdff;color:#173c60;
  box-shadow:inset 0 1px 1px rgba(25,59,94,.025);transition:border-color .16s ease,box-shadow .16s ease
}
#panel-body :is(input,textarea,select):focus{
  outline:none;border-color:#8dbdf4;box-shadow:0 0 0 4px rgba(44,124,235,.12)
}
#panel-body button,.create-grid a,.my-hub-actions :is(button,a){
  border-radius:14px
}
#panel-body .primary,#panel-body button.primary{
  background:linear-gradient(135deg,var(--m2g-premium-blue),var(--m2g-premium-blue-2));
  border-color:transparent;color:#fff;box-shadow:0 9px 23px rgba(31,99,218,.22)
}
.create-grid a,.my-hub-item,.conversation,.message,.direct-chat-note,.profession-field,#quick-profession{
  border-color:#dce7f3;background:linear-gradient(145deg,#fbfdff,#f3f8ff);box-shadow:0 5px 18px rgba(26,66,109,.045)
}
.message.mine{background:linear-gradient(145deg,#e5f1ff,#edf6ff)}
/* Bottom navigation: floating translucent dock, create is the primary action. */
body>.bottom{
  left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-width:760px;margin:0 auto;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  padding:6px!important;border:1px solid rgba(202,219,238,.9);
  border-radius:22px;background:rgba(255,255,255,.91);
  box-shadow:0 18px 50px rgba(14,50,92,.18);
  backdrop-filter:blur(22px) saturate(1.18);overflow:visible
}
body>.bottom :is(a,button){
  position:relative;border-radius:16px!important;color:#7489a1;background:transparent!important;
  transition:background .16s ease,color .16s ease,transform .16s ease!important
}
body>.bottom :is(a,button):hover{filter:none;background:#f1f7ff!important;color:#275b91;transform:translateY(-1px)}
body>.bottom a[aria-current=page]{color:#176ee0;background:#edf5ff!important}
body>.bottom #create{
  color:#fff!important;background:linear-gradient(135deg,#1785f8,#3157e2)!important;
  box-shadow:0 8px 20px rgba(35,101,222,.28)
}
body>.bottom #create:hover{background:linear-gradient(135deg,#0d78eb,#284ed4)!important}
body>.bottom .m2g-icon{width:21px;height:21px}
body>.bottom span{font-size:10px;font-weight:680;letter-spacing:.01em}
/* Small motion details, never blocking interaction. */
@keyframes m2g-marker-in{from{opacity:0;transform:translateY(6px) scale(.94)}to{opacity:1;transform:none}}
@keyframes m2g-user-breathe{50%{box-shadow:0 0 0 6px rgba(38,123,240,.17),0 0 0 13px rgba(38,123,240,.055),0 9px 23px rgba(24,82,161,.22)}}
@media(max-width:700px){
  :root{--map-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  body>header{padding:0 11px!important;gap:7px!important}
  body>header .brand{font-size:20px!important}
  body>header #notifications{width:38px;height:38px;padding:8px}
  body>header #profile{font-size:0!important;width:38px;height:38px;padding:8px!important;border-radius:50%!important}
  body>header #profile::after{content:"☺";font-size:17px;line-height:1}
  .map-action-bar{left:8px;right:8px;top:8px;gap:6px}
  .map-action-bar>a,.map-action-bar>button,.map-action-bar>details>summary{padding:7px 10px;font-size:12px;min-height:40px}
  .map-filter-body{border-radius:21px}
  .map-first-main .map-layout.sheet-enabled #nearby-sheet{bottom:9px}
  .map-first-main .sheet-enabled.sheet-expanded #nearby-sheet{border-radius:24px}
  #nearby-sheet-content{padding:14px 15px 16px}
  dialog{width:calc(100% - 18px)!important;max-width:580px!important;padding:18px!important;border-radius:24px!important}
  body>.bottom{
    left:7px;right:7px;bottom:max(5px,env(safe-area-inset-bottom));
    height:66px!important;min-height:66px!important;max-height:66px!important;border-radius:21px
  }
}
@media(max-width:340px){
  .map-action-bar>a,.map-action-bar>button,.map-action-bar>details>summary{padding-inline:8px;font-size:11px}
  body>.bottom{left:4px;right:4px;padding:4px!important}
  body>.bottom span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
