/**
 *  @author Jan-Patrick Bollow
 */

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #ffffff;
  font-family: Futura, "Trebuchet MS", Arial, sans-serif;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 14px;
  color: #202020;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

h1,
h2,
h3,
p,
a {
  font-family: Futura, "Trebuchet MS", Arial, sans-serif;
  font-style: normal;
  font-variant: normal;
  color: #202020;
}

h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 18px;
}

h2 {
  font-size: 16px;
  font-weight: 500;
  line-height: 15.4px;
}

h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 15.4px;
}

p {
  font-size: 14px;
  font-weight: 300;
  line-height: 15.4px;
}

a {
  font-weight: 600;
}

a:hover,
a:active {
  color: #00d0ff;
  text-decoration: none;
}

.box {
  position: relative;
  top: 0;
  background-color: #ffffff;
  height: 54px;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.info {
  padding: 6px 8px;
  font: 12px/14px Arial, Helvetica, sans-serif;
  color: white;
  background: rgba(52, 58, 64, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  text-align: left;
}

.col-sm-12 {
  z-index: 1 !important;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#exportBtn,
#importBtn {
  width: 75px;
}

#importBtn {
  background-color: #00d0ff;
  border-color: #00d0ff;
}

#importBtn:hover,
#importBtn:focus {
  background-color: #00c0eb;
  border-color: #00c0eb;
}

#upload {
  display: none;
}

.leaflet-draw.leaflet-control {
  margin-top: 0;
}

.container-fluid {
  margin: 0;
  padding: 0;
}

.leaflet-top {
  margin-top: 66px;
}

.leaflet-left {
  margin-left: 0;
}

.leaflet-control-layers {
  border-radius: 0;
  font-size: 12px;
  color: #404040;
  font-weight: 100;
}

.leaflet-control-attribution {
  position: absolute;
  bottom: -99px;
}

.leaflet-container.crosshair-cursor-enabled {
  cursor: crosshair;
}

.leaflet-container .leaflet-control-mouseposition {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 5px #bbb;
  padding: 0 5px;
  margin: 10;
  color: #333;
  font: 11px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* Color Picker */
.color {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.color input {
  min-width: 236px;
  margin: 0;
  opacity: 0;
}

.color-choice {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  height: 26px;
  padding: 3px;
  line-height: 1.5;
  color: #555;
  background-color: #fff;
  border: 0.075rem solid #ddd;
  border-radius: 0.25rem;
  box-shadow: inset 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05);
  user-select: none;
}

.color-choice:before {
  position: absolute;
  top: -0.075rem;
  right: -0.075rem;
  bottom: -0.075rem;
  z-index: 6;
  display: block;
  content: " Auswählen";
  height: 18px;
  padding: 4px 10px;
  line-height: 1.5;
}

.color-choice:after {
  content: "Farbe suchen...";
  float: left;
  margin-left: 10px;
  margin-top: 0;
}

.leaflet-color-picker-form {
  display: none;
  margin-top: -28px;
  margin-left: 33px;
}

#colorPicker {
  background-image: none;
}

#colorPicker > i {
  line-height: 2.5em;
  color: #464646;
  pointer-events: none;
}

.closeColorInput {
  float: left;
  font-size: x-large;
  line-height: 27px;
  width: 25px;
  margin-top: -5px;
  margin-left: -3px;
}

.activeColor {
  background-color: #3388ff;
  width: 20px;
  height: 18px;
  margin-left: -50px;
  display: inline-block;
  border-radius: 4px;
}

#accubox {
  width: 188px;
  height: 30px;
  background-color: #ffffff;
  z-index: 50;
  position: absolute;
  bottom: -42px;
  left: 40px;
  border-radius: 2px;
  outline: 2px solid #00000033;
  visibility: hidden;
  line-height: 30px;
  padding-top: 7px;
  padding-left: 5px;
}

.settingsimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
}

#settings {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 50px;
  height: 50px;
  z-index: 55;
  border-radius: 8px;
}

#settings:hover {
  background-color: rgba(0, 208, 255, 0.068);
}

.markerimg {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
}

.locationdraw {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  z-index: 50;
  border-radius: 2px;
  outline: 2px solid #00000033;
  line-height: 30px;
  padding-top: 7px;
  padding-left: 5px;
  visibility: hidden;
  position: absolute;
  left: 2px;
}

.locationdraw:hover {
  background-color: #f4f4f4;
}

#locationmarker {
  bottom: -14px;
}

#locationline,
#locationlineclicked,
#locationpolygon,
#locationpolygonclicked {
  bottom: 14px;
}

#locationlineclicked,
#locationpolygonclicked {
  z-index: 55;
  visibility: hidden;
  background-color: #00d0ff;
}

#locationlineclicked:hover,
#locationpolygonclicked:hover {
  background-color: #00c0eb;
}

#locationpolygon {
  bottom: 42px;
}

#locationpolygonclicked {
  bottom: 42px;
}

.swal2-close {
  border-color: #fff !important;
  border: none !important;
  outline: none !important;
}

.number-icon {
  font-family: Arial, sans-serif;
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 50%;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 28px;
  width: 30px;
  height: 30px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.label-icon {
  font-family: Arial, sans-serif;
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  white-space: nowrap;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.parking-icon {
  font-family: Arial, sans-serif;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 30px;
  width: 30px;
  height: 30px;
}

.emergency-icon {
  font-family: Arial, sans-serif;
  background-color: #007bff;
  color: white;
  border: 2px solid #007bff;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  width: 22px;
  height: 22px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.shelter-hut {
  width: 34px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dach – größer und direkt am Haus */
.shelter-hut::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid red;
  z-index: 2;
}

/* Haus – größer und direkt unter dem Dach */
.shelter-hut::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 9px;
  width: 16px;
  height: 18px;
  background: darkred;
  z-index: 1;
}

/* Blitz – höher und zentral */
.shelter-blitz {
  position: absolute;
  top: 8px;
  font-size: 13px;
  color: yellow;
  font-weight: bold;
  z-index: 3;
  pointer-events: none;
}

.tee {
  border-radius: 50%;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  border: 1px solid;
  border-color: black;
}

.tee-yellow {
  background-color: yellow;
}
.tee-red {
  background-color: red;
}
.tee-orange {
  background-color: orange;
}
.tee-blue {
  background-color: blue;
}
.tee-black {
  background-color: black;
  border-color: white;
}
.tee-white {
  background-color: white;
}
.tee-green {
  background-color: green;
}

.leaflet-draw-tooltip-segment {
  stroke: black !important;
  stroke-dasharray: 2, 3 !important;
  stroke-width: 2 !important;
}
