#map {
  width: 100%;
  height: 100%;
  position: relative;
}

.message-button {
  position: relative;
  margin-right: 12px;
  transition: transform 0.2s ease;
}

.message-button:active {
  transform: scale(0.94);
}

.message-button i {
  font-size: 20px;
}

.message-button.has-unread i {
  color: #f5ea47;
}

.message-button.is-active {
  background: rgba(245, 234, 71, 0.18);
}

.message-button.is-active i {
  color: #f5ea47;
}

.message-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: #f44336;
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 16px;
  min-width: 18px;
  text-align: center;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  filter: invert(100%) hue-rotate(180deg) brightness(100%) contrast(90%);
}

.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 24px !important;
}

.leaflet-control-scale {
  margin-top: 8px;
}

.map-locate-control {
  margin-bottom: 8px;
}

.leaflet-bottom.leaflet-left {
  bottom: 100px;
  left: 12px;
}

.chat-tab.chat-tab--inline {
  margin-left: 4px;
}

.map-locate-button {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(12, 14, 20, 0.92);
  color: #f5f7ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.map-locate-button i {
  pointer-events: none;
  font-size: 18px;
}

.map-locate-button:hover {
  background: rgba(18, 22, 34, 0.95);
}

.map-locate-button:focus-visible {
  outline: 2px solid #f5ea47;
  outline-offset: 2px;
}

.exact-location-prompt {
  position: fixed;
  left: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  margin: 0;
  z-index: 900;
}

.exact-location-prompt__button {
  border: 1px solid rgba(245, 234, 71, 0.9);
  background: rgba(11, 13, 19, 0.96);
  color: #f5ea47;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
}

.exact-location-prompt__button:hover {
  background: rgba(16, 19, 28, 0.98);
}

.exact-location-prompt__button:focus-visible {
  outline: 2px solid #f5ea47;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .leaflet-bottom.leaflet-left {
    bottom: 116px;
  }

  .exact-location-prompt {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }
}

.zone-claim-dock {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateX(-50%);
  z-index: 900;
  pointer-events: none;
}

.zone-claim-dock__button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 234, 71, 0.9);
  background: rgba(11, 13, 19, 0.96);
  color: #f5ea47;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.zone-claim-dock__button:hover {
  background: rgba(18, 21, 32, 0.98);
}

.zone-claim-dock__button--cancel {
  margin-left: 10px;
  border-color: rgba(255, 59, 48, 0.85);
  color: #ffb4af;
  background: rgba(36, 13, 16, 0.96);
}

.zone-claim-dock__button--cancel:hover {
  background: rgba(50, 16, 20, 0.98);
}

.zone-claim-dock__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.worker-location-marker {
  background: none;
  border: none;
  text-align: center;
  color: #f5ea47;
}

.worker-location-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5ea47;
  box-shadow: 0 0 0 6px rgba(245, 234, 71, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35);
  margin: 0 auto 4px;
}

.worker-location-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #0b0d13;
  background: #f5ea47;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.worker-popup {
  color: #0b0d13;
  font-weight: 600;
}

.provider-marker {
  background: transparent;
  border: 0;
  width: 56px !important;
  height: 70px !important;
}

.provider-marker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 56px;
  transform: translateY(0);
}

.provider-marker__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.provider-marker__logo {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(17, 24, 39, 0.3));
}

.provider-marker__fallback-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #276ef1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.28);
}

.provider-marker__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 18, 28, 0.92);
  color: #f5f7ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

.provider-popup {
  min-width: 160px;
}

.provider-popup__title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.provider-popup__meta,
.provider-popup__distance,
.provider-popup__address {
  font-size: 12px;
  line-height: 1.4;
}

.provider-popup__meta {
  color: rgba(245, 247, 255, 0.78);
}

.provider-popup__distance {
  margin-top: 4px;
  font-weight: 600;
}

.provider-popup__address {
  margin-top: 4px;
  color: rgba(245, 247, 255, 0.66);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(16, 18, 28, 0.96);
  color: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.request-marker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center bottom;
  transform: scale(1);
  perspective: 1400px;
}

.request-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  --request-marker-border: rgba(245, 234, 71, 0.9);
}


.request-marker--cod {
  --request-marker-border: rgba(87, 226, 160, 0.8);
}

.request-marker--barter {
  --request-marker-border: rgba(99, 173, 255, 0.85);
}

.request-marker__coin {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(17, 79, 235, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  position: relative;
  transform-style: preserve-3d;
  animation: marker-spin 3s ease-in-out infinite;
  filter: none;
}

.request-marker__coin--cash {
  background: rgba(34, 211, 146, 0.15);
  border-color: rgba(34, 211, 146, 0.4);
  animation: marker-spin 3s ease-in-out infinite;
}

.request-marker__coin--barter {
  background: rgba(99, 173, 255, 0.15);
  border-color: rgba(99, 173, 255, 0.4);
  animation: marker-spin 3s ease-in-out infinite;
}

.request-marker__cash-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d1a12;
}

.request-marker__cash-icon--barter {
  color: #102341;
}

.request-marker__cash-symbol {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.request-marker__coin::before,
.request-marker__coin::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.request-marker__coin::before {
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
}

.request-marker__coin::after {
  display: none;
}

.request-marker__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  backface-visibility: visible;
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: none;
}

.request-marker__icon--front {
  transform: translateZ(1px);
}

.request-marker__icon--back {
  transform: rotateY(180deg) translateZ(1px);
}

.request-marker__coin--cash .request-marker__icon {
  display: none;
}

.request-marker__coin--barter .request-marker__icon {
  display: none;
}

.request-marker__label {
  font-size: 12px;
  text-align: center;
  color: #f5f7ff;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid var(--request-marker-border, rgba(245, 234, 71, 0.6));
}

.request-marker__label--barter {
  white-space: nowrap;
  line-height: 1.2;
}

.request-marker__label--barter div {
  white-space: nowrap;
}

.request-popover {
  background: #111527;
  color: #f4f6ff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 260px;
  max-width: min(360px, calc(100vw - 56px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 30px rgba(8, 12, 26, 0.45);
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}

.request-popover__section {
  margin-bottom: 16px;
}

.request-popover__section:last-child {
  margin-bottom: 0;
}

.request-popover__section--actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.request-popover__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9da4c7;
  margin: 0;
}

.request-popover__value {
  font-size: 15px;
  margin: 4px 0 0;
  color: #ffffff;
  word-break: break-word;
}

.request-popover__value--tight {
  margin: 0;
}

.request-popover__hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #b8bdd8;
}

.request-popover__description {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #e3e7ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.request-popover__value-block {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.request-popover__value-main {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.request-popover__barter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.request-popover__barter-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.request-popover__rating-link {
  border: 1px solid rgba(245, 234, 71, 0.6);
  color: #f5ea47;
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.request-popover__rating-link:hover {
  background: rgba(245, 234, 71, 0.1);
}

.request-popover__requester-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.request-popover__textarea {
  width: 100%;
  min-height: 88px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f6ff;
  box-sizing: border-box;
  resize: vertical;
}


@keyframes marker-spin {
  0% {
    transform: rotateY(0deg) rotateX(10deg) scale3d(1, 1, 1);
  }
  25% {
    transform: rotateY(90deg) rotateX(-4deg) scale3d(0.94, 1.02, 1);
  }
  50% {
    transform: rotateY(180deg) rotateX(-10deg) scale3d(1, 1.05, 1);
  }
  75% {
    transform: rotateY(270deg) rotateX(4deg) scale3d(0.94, 1.02, 1);
  }
  100% {
    transform: rotateY(360deg) rotateX(10deg) scale3d(1, 1, 1);
  }
}


.current-location-icon-wrapper {
  border: none;
  background: transparent;
}

.current-location-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  position: relative;
  padding-bottom: 16px;
}

.current-location-icon__icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5ea47;
  font-size: 54px;
  animation: location-bounce 1.6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px 1px 0 rgba(0, 0, 0, 0.7),
    1px 1px 0 rgba(0, 0, 0, 0.7);
}

.current-location-icon__icon--solo {
  background: none;
}

.current-location-icon__icon i {
  font-size: inherit;
}

.current-location-icon__shadow {
  width: 64px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(5px);
  animation: location-shadow 1.6s ease-in-out infinite;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  transform-origin: center;
  z-index: 1;
}

@keyframes location-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.06);
  }
}

@keyframes location-shadow {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translateX(-50%) scale(0.75);
    opacity: 0.25;
  }
}
