.aikox-map-shell {
  position: relative;
  min-height: 500px;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
  background: #dfe5df;
}

body.map-fullscreen-open { overflow: hidden; }
.aikox-map-shell.is-expanded {
  position: fixed;
  z-index: 1000;
  inset: 18px;
  min-height: 0;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 0 0 100vmax rgba(4, 18, 20, .84), 0 30px 100px rgba(0,0,0,.38);
  animation: mapExpandIn .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mapExpandIn { from { opacity: .6; transform: scale(.975); } to { opacity: 1; transform: none; } }

.aikox-map-canvas {
  position: absolute;
  inset: 0;
  font-family: inherit;
}

.aikox-map-canvas::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(184, 220, 0, .08), transparent 35%),
    radial-gradient(circle at 50% 48%, transparent 32%, rgba(8, 28, 30, .05) 76%, rgba(8, 28, 30, .18) 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.aikox-map-loading {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background: #0b2527;
  transition: opacity .6s ease, visibility .6s ease;
}

.aikox-map-canvas.is-ready .aikox-map-loading { opacity: 0; visibility: hidden; }
.aikox-map-loading span { width: 42px; height: 42px; margin-bottom: 19px; border: 1px solid rgba(255,255,255,.18); border-top-color: var(--lime); border-radius: 50%; animation: mapLoader 1s linear infinite; }
.aikox-map-loading strong { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.aikox-map-loading small { margin-top: 7px; color: #829895; font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
@keyframes mapLoader { to { transform: rotate(360deg); } }

.aikox-map-tools {
  position: absolute;
  z-index: 6;
  right: 18px;
  top: 18px;
  display: flex;
  gap: 7px;
}

.aikox-map-tools button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(9, 37, 39, .14);
  border-radius: 0;
  color: #153638;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 9px 25px rgba(11, 31, 33, .13);
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}

.aikox-map-tools button:hover,
.aikox-map-tools button[aria-pressed="true"] { color: #fff; background: var(--petrol); transform: translateY(-2px); }
.aikox-map-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aikox-map-shell.is-filters-open [data-map-action="layers"] { color: #fff; background: var(--petrol); }
.aikox-map-shell.is-expanded [data-map-action="expand"] { color: #fff; background: var(--petrol); }
.aikox-map-shell.is-clean-view [data-map-action="clean"] { color: #fff; background: var(--petrol); }
.aikox-map-shell.is-clean-view .aikox-map-tools button:not([data-map-action="clean"]),
.aikox-map-shell.is-clean-view .aikox-map-filters,
.aikox-map-shell.is-clean-view .aikox-map-actions,
.aikox-map-shell.is-clean-view .aikox-map-radius,
.aikox-map-shell.is-clean-view .aikox-map-fullscreen-note,
.aikox-map-shell.is-clean-view .maplibregl-marker,
.aikox-map-shell.is-clean-view .maplibregl-popup,
.aikox-map-shell.is-clean-view .maplibregl-ctrl-bottom-left,
.aikox-map-shell.is-clean-view .maplibregl-ctrl-bottom-right { opacity: 0; visibility: hidden; pointer-events: none; }
.aikox-map-shell.is-clean-view .aikox-map-tools { gap: 0; }

.aikox-map-filters {
  position: absolute;
  z-index: 7;
  right: 18px;
  top: 65px;
  width: 232px;
  padding: 8px;
  color: #fff;
  background: rgba(8, 32, 34, .95);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 50px rgba(4,20,22,.25);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.aikox-map-shell.is-filters-open .aikox-map-filters { opacity: 1; visibility: visible; transform: none; }
.aikox-map-filters-head { padding: 8px 9px 11px; border-bottom: 1px solid rgba(255,255,255,.1); }
.aikox-map-filters-head span,.aikox-map-filters-head small { display: block; }
.aikox-map-filters-head span { color: var(--lime); font-size: .52rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.aikox-map-filters-head small { margin-top: 4px; color: #819592; font-size: .52rem; }
.aikox-map-filters > button {
  width: 100%;
  padding: 10px 9px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
  color: #a7b6b4;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.aikox-map-filters > button:last-child { border-bottom: 0; }
.aikox-map-filters > button:hover { color: #fff; background: rgba(255,255,255,.045); }
.aikox-map-filters > button > i { width: 8px; height: 8px; border: 1px solid #6f8481; border-radius: 50%; transition: background .2s, box-shadow .2s, border-color .2s; }
.aikox-map-filters > button[aria-pressed="true"] { color: #fff; }
.aikox-map-filters > button[aria-pressed="true"] > i { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 4px rgba(184,220,0,.1); }
.aikox-map-filters > button:nth-of-type(1)[aria-pressed="true"] > i { border-color: #ed7d2d; background: #ed7d2d; box-shadow: 0 0 0 4px rgba(237,125,45,.12); }
.aikox-map-filters > button:nth-of-type(2)[aria-pressed="true"] > i { border-color: #4b9698; background: #4b9698; box-shadow: 0 0 0 4px rgba(75,150,152,.12); }
.aikox-map-filters > button:nth-of-type(3)[aria-pressed="true"] > i { border-color: #8a9e28; background: #8a9e28; box-shadow: 0 0 0 4px rgba(138,158,40,.12); }
.aikox-map-filters strong,.aikox-map-filters small { display: block; }
.aikox-map-filters strong { font-size: .61rem; font-weight: 750; }
.aikox-map-filters small { margin-top: 2px; color: #718885; font-size: .48rem; }

.aikox-route-planner {
  --route-color: var(--lime-deep);
  position: static;
}
.aikox-map-actions { position: absolute; z-index: 6; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; transition: opacity .25s ease, visibility .25s ease; }
.aikox-route-status { --route-color: var(--lime-deep); position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 152px; padding: 9px 12px 9px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(15,52,54,.13); border-radius: 8px; color: var(--petrol); background: rgba(255,255,255,.95); box-shadow: 0 12px 28px rgba(7,27,29,.14); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(5px); pointer-events: none; transition: opacity .22s ease, visibility .22s ease, transform .22s ease; }
.aikox-route-status::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--route-color); }
.aikox-route-status.is-visible { opacity: 1; visibility: visible; transform: none; }
.aikox-route-status span { color: #6a7c79; font-size: .47rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.aikox-route-status strong { font-size: .59rem; font-weight: 850; white-space: nowrap; }
.aikox-route-modes { display: flex; align-items: center; gap: 6px; }
.aikox-route-modes button { position: relative; width: 39px; height: 39px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(15,52,54,.16); border-radius: 50%; color: #536966; background: rgba(255,255,255,.94); box-shadow: 0 9px 25px rgba(11,31,33,.13); backdrop-filter: blur(12px); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.aikox-route-modes button:hover { color: var(--petrol); border-color: rgba(15,52,54,.38); transform: translateY(-2px); }
.aikox-route-modes button[aria-pressed="true"] { color: #fff; border-color: var(--route-color); background: var(--route-color); }
.aikox-route-modes button::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 6px 8px; border-radius: 2px; color: #fff; background: var(--petrol); box-shadow: 0 8px 20px rgba(7,27,29,.15); font-size: .48rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; opacity: 0; transform: translate(-50%,4px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.aikox-route-modes button:hover::after,
.aikox-route-modes button:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.aikox-route-modes svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.aikox-route-origin { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.8); color: #fff; background: var(--route-origin-color,#ed7d2d); box-shadow: 0 9px 22px rgba(6,25,27,.2); font-size: .5rem; font-weight: 850; white-space: nowrap; }
.aikox-route-origin::before { content: ""; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: transparent; }
.aikox-map-shell.is-expanded .aikox-route-origin { width: 14px; height: 14px; padding: 0; border: 3px solid #fff; border-radius: 50%; font-size: 0; box-shadow: 0 0 0 5px rgba(10,40,42,.12), 0 9px 22px rgba(6,25,27,.18); }
.aikox-map-shell.is-expanded .aikox-route-origin::before { display: none; }
.aikox-map-shell.route-playing .aikox-marker-dot { animation: routeArrival 1.2s ease-in-out infinite; }
@keyframes routeArrival { 50% { box-shadow: 0 0 0 1px var(--petrol), 0 0 0 17px rgba(184,220,0,.06); } }

.aikox-map-fullscreen-note {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 18px;
  padding: 9px 12px;
  display: none;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: #6e817e;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(17,52,54,.1);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.aikox-map-fullscreen-note i { width: 3px; height: 3px; border-radius: 50%; background: var(--lime-deep); }
.aikox-map-shell.is-expanded .aikox-map-fullscreen-note { display: flex; }

.aikox-map-radius {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #173638;
  pointer-events: none;
}

.aikox-map-radius b { font-size: 2rem; font-weight: 500; line-height: .8; letter-spacing: -.08em; }
.aikox-map-radius span { padding-left: 9px; border-left: 1px solid rgba(9,37,39,.28); font-size: .47rem; font-weight: 900; line-height: 1.25; letter-spacing: .08em; }
.aikox-map-route { position: static; right: auto; bottom: auto; left: auto; flex: 0 0 auto; }

.aikox-marker {
  position: absolute;
  width: 104px;
  height: 74px;
  padding: 0;
  border: 0;
  color: var(--petrol);
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 10px 14px rgba(8, 29, 31, .18));
}

.aikox-marker-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 46px;
  padding: 9px 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 55, 57, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  transform-origin: 50% 100%;
  animation: aikoxMarkerCardIn .8s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.aikox-marker-card img { width: 78px; max-height: 27px; object-fit: contain; display: block; }
.aikox-marker-stem { position: absolute; left: calc(50% - 1px); top: 45px; width: 2px; height: 23px; background: var(--petrol); }
.aikox-marker-dot { position: absolute; left: calc(50% - 5px); bottom: 0; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 1px var(--petrol), 0 0 0 9px rgba(115, 138, 0, .13); }
.aikox-marker:hover { z-index: 10; }
.aikox-marker:hover .aikox-marker-card,
.aikox-marker.is-building-active .aikox-marker-card { transform: translateY(-4px) scale(1.035); border-color: rgba(128,155,0,.42); box-shadow: 0 0 0 5px rgba(184,220,0,.1); }
@keyframes aikoxMarkerCardIn { from { opacity: 0; transform: translateY(-28px) scale(.9); } to { opacity: 1; transform: none; } }

.aikox-landmark {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #294244;
  background: rgba(249, 251, 247, .9);
  border: 1px solid rgba(25, 60, 62, .14);
  box-shadow: 0 7px 18px rgba(15, 42, 44, .08);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.aikox-landmark::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ed7d2d; box-shadow: 0 0 0 3px rgba(237, 125, 45, .13); }
.aikox-map-shell.map-zoom-overview .aikox-landmark,
.aikox-map-shell.map-zoom-context .aikox-landmark[data-landmark-priority="secondary"] { opacity: 0; visibility: hidden; transform: translateY(4px); }

.aikox-map-shell .maplibregl-ctrl-bottom-left { left: 12px; bottom: 5px; }
.aikox-map-shell .maplibregl-ctrl-bottom-right { right: 12px; bottom: 69px; }
.aikox-map-shell .maplibregl-ctrl-scale { padding: 2px 5px 0; border-color: rgba(11,37,39,.45); color: #294244; background: rgba(255,255,255,.6); font: 500 .48rem/1.2 inherit; }
.aikox-map-shell .maplibregl-ctrl-attrib { color: #536a68; background: rgba(249,251,247,.78); font-size: 9px; }
.aikox-map-shell .maplibregl-ctrl-attrib a { color: #294244; }
.aikox-map-shell .maplibregl-popup-content { padding: 0; border-radius: 0; box-shadow: 0 17px 45px rgba(8,29,31,.25); }
.aikox-map-shell .maplibregl-popup-tip { border-top-color: #fff; }
.aikox-popup { width: 230px; padding: 17px 18px 16px; color: var(--petrol); background: #fff; }
.aikox-popup span { color: #718800; font-size: .5rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.aikox-popup strong { display: block; margin: 8px 0 4px; font-size: .85rem; line-height: 1.3; }
.aikox-popup p { margin: 0; color: #667875; font-size: .62rem; line-height: 1.5; }
.aikox-popup a { display: inline-block; margin-top: 12px; color: #526400; font-size: .55rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 980px) {
  .aikox-map-shell { min-height: 560px; }
}

@media (max-width: 600px) {
  .aikox-map-shell { min-height: 500px; }
  .aikox-map-tools { right: 14px; top: 14px; flex-direction: column; }
  .aikox-map-tools button { width: 37px; height: 37px; }
  .aikox-map-radius { left: 14px; bottom: 39px; }
  .aikox-map-actions { right: 14px; bottom: 14px; gap: 6px; }
  .aikox-route-status { min-width: 142px; padding: 8px 10px 8px 13px; }
  .aikox-route-modes { gap: 4px; }
  .aikox-route-modes button { width: 35px; height: 35px; }
  .aikox-marker { width: 88px; height: 66px; }
  .aikox-marker-card { width: 88px; height: 40px; padding: 8px 10px; border-radius: 12px; }
  .aikox-marker-card img { width: 68px; max-height: 23px; }
  .aikox-marker-stem { top: 39px; height: 21px; }
  .aikox-map-shell .maplibregl-ctrl-bottom-right { bottom: 63px; }
  .aikox-map-shell.is-expanded { inset: 0; border: 0; }
  .aikox-map-fullscreen-note { top: auto; bottom: 76px; }
  .aikox-map-filters { top: 127px; right: 58px; width: 218px; }
}

@media (prefers-reduced-motion: reduce) {
  .aikox-map-loading span,
  .aikox-marker-card { animation: none; }
}
