/* ========== Basis-Layout ========== */
html,
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 85%, rgba(255,150,70,0.45), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(120,80,255,0.25), transparent 45%),
    linear-gradient(
      180deg,
      #3e74b4 0%,
      #4a6bb0 35%,
      #7b4e9f 60%,
      #b24c69 80%,
      #f27a3e 100%
    ) !important;
}

* {
  box-sizing: border-box;
}

button,
input {
  font-family: inherit;
}

#map-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#map-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cg fill='black' fill-opacity='0.08'%3E%3Cellipse cx='200' cy='300' rx='120' ry='40' transform='rotate(-35 200 300)'/%3E%3Cellipse cx='260' cy='330' rx='120' ry='40' transform='rotate(-10 260 330)'/%3E%3Cellipse cx='320' cy='360' rx='120' ry='40' transform='rotate(15 320 360)'/%3E%3C/g%3E%3C/svg%3E");

  background-size: 700px;
  background-repeat: no-repeat;
  background-position: left bottom;

  opacity: 0.6;
}

#map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 50% 120%, rgba(255,150,80,0.35), transparent 60%);

  opacity: 0.4;
}

/* ========== Map Container ========== */
#map {
  flex-grow: 1;
  height: 100%;
  background: transparent;
  transition: opacity 0.22s ease;
  cursor: url('/gta-6-map/icons/cursor.cur'), auto;
}

#map.is-fading {
  opacity: 0.55;
}

.mv-content-wrapper {
  display: none;
}

/* ========== Map UI / Overlays ========== */
#mouse-coords {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: unset;
  top: unset;
  font-size: 13px;
  padding: 6px 10px;
  background: rgba(20, 20, 20, 0.75);
  color: #00ffcc;
  font-family: monospace;
  border-radius: 5px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.marker-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  font-size: 16px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2000;
  display: none;
  transform: translate(-50%, -100%);
}

/* ========== Mobile Header ========== */
.mobile-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  background: #1c1c1c;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mobile-header-left {
  flex: 0 0 auto;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-header-left .logo {
  height: 40px;
}

.logo {
  height: 34px;
}

.icon-button {
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.header-title {
  flex-grow: 1;
  text-align: center;
}

/* ========== Responsive ========== */
@media (min-width: 769px) {
  .mobile-header,
  #mobile-nav,
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  #map-wrapper {
    flex-direction: column;
  }

  #map {
    flex: 1 1 auto;
    height: calc(100dvh - 56px);
    min-height: 200px;
  }

  .mobile-header .icon-left,
  .mobile-header .icon-right {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ol-zoom {
    position: absolute;
    z-index: 1100;
    top: 43%;
    right: 16px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  #mouse-coords {
    position: absolute !important;
    top: 76px !important;
    left: 16px !important;
    right: unset !important;
    bottom: unset !important;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(20, 20, 20, 0.75);
  }
}
