.location-info {
  position: fixed;
  top: calc(var(--dial-fraction) * 2);
  left: calc(var(--dial-fraction) * 2);
  z-index: 200;
  width: 400px;
  font-size: 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.location-info.first-load {
  opacity: 0;
}

.dragging .location-info {
  visibility: hidden;
}

.location-pin {
  background-image: url('pin.svg');
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  margin-top: 10px;
  cursor: pointer;
  z-index: 10;
}

.night-hour .location-pin {
  filter: invert(1);
}

.location-header {
  font-style: italic;
  font-weight: 100;
  margin-bottom: 8px;
  opacity: 0.5;
  font-size: 18px;
  margin-left: 14px;
  mix-blend-mode: overlay;
}

.location-input-wrapper {
  position: relative;
}

.location-sizer {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  pointer-events: none;
}

.location-sizer, .location-input {
  font-family: "DM Mono", monospace;
  font-size: 24px;
  border: none;
  border-radius: 30px;
  font-weight: 500;
}

.location-input {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.6);
  color: black;
  width: 240px;
  outline: none;
  transition: box-shadow 0.3s ease, width 0.3s ease;
  min-width: 60px;
  text-shadow: none;
  margin-left: 30px;
  line-height: 24px;
}

.night-hour .location-input {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}


.location-input:hover {
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.night-hour .location-input:hover, .night-hour .location-input:focus {
  background: rgba(255, 255, 255, 0.3);
}

.location-input:focus {
  background: rgba(255, 255, 255, 0.8);
  width: 280px;
}

.location-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
}

.location-hint {
  position: absolute;
  top: calc(100% + 8px);
  left: 40px;
  font-family: "dm-mono", monospace;
  font-size: 13px;
  line-height: 19px;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.night-hour .location-hint {
  color: rgba(255, 255, 255, 0.4);
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 30px;
  width: 300px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 0px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.location-suggestion {
  padding: 10px;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.night-hour .location-suggestions {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.location-suggestion:last-child {
  border-bottom: none;
}

.location-suggestion:hover,
.location-suggestion.highlighted {
  background: rgba(255,255,255,0.4);
}

.night-hour .location-suggestion:hover,
.night-hour .location-suggestion.highlighted {
  background: rgba(255,255,255,0.2);
}

.location-suggestion-main {
  color: rgba(0,0,0,0.8);
  font-weight: 500;
}

.night-hour .location-suggestion-main {
  color: rgba(255,255,255,0.8);
}

.location-suggestion-secondary {
  color: rgba(0,0,0,0.5);
  font-size: 13px;
  margin-top: 3px;
  font-style: italic;
  font-weight: 100;
}

.night-hour .location-suggestion-secondary {
  color: rgba(255,255,255,0.5);
}

.location-loading {
  padding: 12px 16px;
  color: rgba(0,0,0,0.5);
  font-style: italic;
  font-size: 15px;
}

.night-hour .location-loading {
  color: rgba(255,255,255,0.5);
}


@media (pointer: coarse) {
  .location-info {
    top: auto;
    bottom: calc(var(--dial-fraction) * 2);
    left: calc(var(--dial-fraction) * 2);
  }

  .capacitor .location-info {
    padding-bottom: 15px;
  }
  
  .location-hint {
    top: auto;
    bottom: calc(100% + 8px);
  }
  
  .location-suggestions {
    top: auto;
    bottom: calc(100% + 8px);
    display: flex;
    flex-direction: column-reverse;
    background: rgba(255, 255, 255, 0.6);
  }

  .location-suggestion:hover,
  .location-suggestion.highlighted {
    background: rgba(255,255,255,0.8);
  }
  
  .location-suggestion {
    border-bottom: none;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  
  .location-suggestion:last-child {
    border-top: none;
  }
}