/* Beelandia cartoon overworld layer. Loaded after the base UI styles. */

#map-view{
  background:#d8e8b7;
  overflow:hidden;
}

#map{
  background:#d8e8b7;
  border-radius:0;
}

/* Give the vector map a printed storybook finish without interfering with markers. */
.maplibregl-canvas{
  filter:saturate(1.12) contrast(.94) brightness(1.035) !important;
}

#map::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 9% 14%,rgba(255,255,244,.38) 0 5%,transparent 5.5%),
    radial-gradient(circle at 15% 12%,rgba(255,255,244,.30) 0 4%,transparent 4.5%),
    radial-gradient(circle at 82% 17%,rgba(255,255,244,.34) 0 5.5%,transparent 6%),
    radial-gradient(circle at 89% 20%,rgba(255,255,244,.26) 0 3.8%,transparent 4.3%),
    repeating-radial-gradient(circle at 30% 40%,rgba(81,98,55,.025) 0 1px,transparent 1px 5px);
  opacity:.85;
  mix-blend-mode:soft-light;
}

#map::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center,transparent 55%,rgba(95,84,48,.08) 100%),
    linear-gradient(115deg,rgba(255,250,222,.10),rgba(255,255,255,0) 42%,rgba(113,150,89,.06));
  box-shadow:inset 0 0 55px rgba(82,91,54,.09);
}

/* Map chrome as playful paper stickers. */
.maplibregl-ctrl-group{
  border:3px solid rgba(255,251,226,.94)!important;
  border-radius:18px!important;
  background:#fff7dc!important;
  box-shadow:0 5px 0 rgba(91,108,67,.13),0 9px 18px rgba(71,82,54,.12)!important;
}
.maplibregl-ctrl-group button{
  background:#fff7dc!important;
}
.maplibregl-ctrl-attrib{
  opacity:.60;
  border-radius:10px 0 0 0!important;
}

.floating{
  border:3px solid #fff3cb;
  border-radius:18px;
  background:#fff8df;
  box-shadow:0 5px 0 rgba(91,108,67,.13),0 10px 20px rgba(60,78,47,.12);
  font-weight:800;
  transform:rotate(1deg);
}

.map-hint{
  border:3px solid #fff1c8;
  border-radius:18px;
  background:#fff9e6;
  box-shadow:0 5px 0 rgba(90,105,67,.12),0 10px 22px rgba(67,80,51,.11);
  font-size:12px;
  padding:10px 15px;
}

/* Flower locations: chunky illustrated stickers with petals and leaves. */
.marker{
  width:56px;
  height:54px;
  border:4px solid #fff9e9;
  border-radius:47% 53% 45% 55%/53% 44% 56% 47%;
  box-shadow:0 5px 0 rgba(71,90,52,.18),0 9px 18px rgba(65,76,50,.18),inset 0 3px 0 rgba(255,255,255,.55);
  filter:none;
}
.marker::before{
  inset:-7px;
  opacity:.34;
  border-radius:58% 42% 61% 39%/43% 57% 43% 57%;
  transform:rotate(17deg);
}
.marker::after{
  content:"";
  position:absolute;
  width:17px;
  height:10px;
  left:3px;
  bottom:-4px;
  border-radius:100% 0 100% 0;
  background:#7eae68;
  border:2px solid #fff8e3;
  transform:rotate(-24deg);
  box-shadow:30px 1px 0 -2px #93bd77;
}
.marker-icon{
  font-size:29px;
  filter:drop-shadow(0 2px 0 rgba(255,255,255,.72));
}
.marker.assigned{
  box-shadow:0 5px 0 rgba(71,90,52,.18),0 9px 18px rgba(65,76,50,.18),0 0 0 7px rgba(255,223,101,.48),inset 0 3px 0 rgba(255,255,255,.55);
}
.marker-badge{
  width:29px;
  height:29px;
  right:-12px;
  top:-12px;
  border:3px solid #fff8df;
  background:#ffd75d;
  font-size:15px;
  box-shadow:0 3px 0 rgba(118,86,29,.18),0 6px 10px rgba(79,69,41,.15);
}
.marker.out{
  opacity:.52;
  filter:grayscale(.45) saturate(.55);
}

/* Hive as a much more obvious home-base sticker. */
.hive-marker{
  width:72px;
  height:66px;
  background:linear-gradient(145deg,#ffe06a,#f2b93e);
  filter:drop-shadow(0 6px 0 rgba(111,82,31,.18)) drop-shadow(0 10px 9px rgba(83,66,31,.16));
}
.hive-marker::after{
  inset:7px;
  border:3px dashed rgba(118,76,20,.28);
}
.hive-marker::before{
  width:96px;
  height:30px;
  bottom:-16px;
  background:radial-gradient(ellipse,rgba(77,119,57,.25),rgba(77,119,57,0) 70%);
}
.hive-marker .marker-icon{
  font-size:35px;
}

/* Popups read like little caption cards. */
.cute-popup .maplibregl-popup-content{
  border:3px solid #fff0bf;
  border-radius:20px 18px 22px 17px;
  background:#fff9e7;
  box-shadow:0 5px 0 rgba(105,92,54,.13),0 12px 24px rgba(68,55,31,.13);
  font-weight:650;
}

/* Slightly toy-like main chrome so the world and UI belong together. */
.hud{
  background:#fff8df;
  border-bottom:2px solid rgba(113,92,49,.10);
  box-shadow:0 4px 0 rgba(115,100,61,.06);
}
.resources span{
  border:2px solid rgba(216,169,59,.14);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.55);
}
nav{
  background:#fff8df;
}
nav button.active{
  background:#e5f0cf;
}

@media(max-width:520px){
  .map-hint{
    max-width:calc(100vw - 26px);
    white-space:normal;
    text-align:center;
    line-height:1.2;
  }
  .marker{width:53px;height:51px}
  .hive-marker{width:68px;height:62px}
}
