﻿/* Font Definitions */
body, caption, .subtitle {
  font-family: Figtree, Arial, sans-serif;
}

h1 {
  font-size: 2.188rem;
  font-weight: 800;
  line-height: 2.5rem;
}

h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
}

h3 {
  font-size: 25px;
  font-weight: 700;
  line-height: 32px;
}

h4 {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

h5 {
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
}

h6 {
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

h1, h2, h3 {
  letter-spacing: -0.02rem;
}

.subtitle-italic {
  font-family: "Figtree Italic", Arial, sans-serif;
}

/* End of Font Definitions */

.cursor-pointer {
  cursor: pointer;
}

.text-select {
  user-select: text;
}

.cursor-move {
  cursor: grab;
}

a {
  &:focus, &:hover {
    text-decoration: underline;
  }
  text-decoration: none;
}

/* Hide unwanted focus ring around first <h1> after Blazor renders its first page. */
[tabindex='-1'] {
  outline: none;
}

main {
  margin-top: 57px;
}

main.no-footer {
  height: calc(100% - 57px);
}

footer {
  z-index: -1 !important;
}

.fade-in {
  animation: fade-in 0.3s;
  animation-fill-mode: forwards;
}

.fade-in--delayed {
  opacity: 0;
  animation-delay: 1.2s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Bootstrap Overrides */

:root {
  --bs-link-color: #9E3C2A;
  --bs-link-hover-color: #9E3C2A;
  --bs-font-sans-serif: Figtree, Arial, sans-serif;
  --bs-font-monospace: Monaco, Menlo, Consolas, 'Courier New', monospace;
}

/* Custom Validation Rules */

.validation-summary-errors ul {
  margin-bottom: 0;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050 !important;
}

.invalid {
  outline: 1px solid red !important;
}

.validation-message {
  color: red;
}

/* Custom Leaflet Rules */
.leaflet-touch .geocoder-control-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='30px' fill='%23424242'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") !important;
}

.geocoder-control-suggestions .geocoder-control-suggestion.geocoder-control-selected, .geocoder-control-suggestions .geocoder-control-suggestion:hover {
  background-color: var(--rz-dropdown-item-hover-background-color) !important;
  border-color: var(--rz-dropdown-item-hover-background-color) !important;
}

.geocoder-control-input {
  padding-right: 28px !important;
}

.leaflet-touch .leaflet-bar a:hover {
  text-decoration: none;
}

.leaflet-filter-button {
  border-radius: 4px;
  width: 34px;
  height: 34px;
  color: #000000;
  border: 2px solid rgba(0,0,0,0.2);
  background-color: white;
  background-clip: padding-box;
}

.sidebar-filter-section-expanded {
  color: var(--rz-text-color) !important;
  background: #D6E6FF !important;
  outline-style: solid !important;
  outline-color: #0062FF !important;
  outline-width: 2px !important;
}

.sidebar-filter-section {
  border-style: solid;
  border-width: 1px;
  border-radius: 6px;
  border-color: #dee2e6;
}

.sidebar-filter-button {
  max-height: 2.5rem !important;
  min-width: 6.5rem !important;
}

.container.mt-5 .rz-data-grid {
  border-bottom-left-radius: var(--bs-border-radius);
  border-bottom-right-radius: var(--bs-border-radius);
}

.leaflet-filter-button:hover {
  background-color: var(--rz-dropdown-item-hover-background-color);
}

.legend-info {
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.legend-info h4 {
  margin: 0 0 5px;
  color: #777;
}

.leaflet-legend {
  text-align: left;
  line-height: 18px;
  color: #555;
}

.leaflet-legend > * {
  display: flex;
  margin-bottom: 5px;
}

.leaflet-legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

@media print {
  ._pendo-badge {
    display: none !important;
  }
}

.button-spacing-end {
  margin-right: 6px !important;
  margin-left: 0 !important;
}

.button-spacing-start {
  margin-left: 0 !important;
}

/* resizeable element */
.resizable::after {
  content: '';
  background-color: #CCC;
  position: absolute;
}

.resizable-up::after, .resizable-down::after {
  height: 6px;
  width: 100%;
  cursor: ns-resize;
}

.resizable-left::after, .resizable-right::after {
  width: 6px;
  height: 100%;
  cursor: ew-resize;
}

/* Pin Detail Animations */
@keyframes desktopPinDetail {
  from {
    left: -500px;
  }
  to {
    left: 10px
  }
}
.desktopPinDetailAnimate {
  animation-name: desktopPinDetail;
  animation-duration: 300ms;
  animation-iteration-count: 1;
}

@keyframes mobilePinDetail {
    from{
      bottom: -1000px;
    }
    to{
      bottom: 0px;
    }
}
.mobilePinDetailAnimate {
    --mobilePinDetailHeight: 620px;
    height: var(--mobilePinDetailHeight) !important;
    animation-name: mobilePinDetail;
    animation-duration: 300ms;
    animation-iteration-count: 1;
}