@font-face {
  font-family: publicSans;
  src: url(../resources/fonts/PublicSans_Light.woff);
}

.title,
.container-fluid,
p {
  font-family: publicSans, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}

.hyperlink-button {
  background-color: #e7fcff;
  padding: 12px;
  margin: 5px;
  border: 1px solid rgba(0, 122, 163, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hyperlink-button:hover {
  border-color: rgba(0, 122, 163, 0.28);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.hyperlink-button a {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.hyperlink-button img {
  margin-top: auto;
}

@media (min-width: 992px) {
  #service-hyperlinks {
    flex-wrap: nowrap;
  }

  #service-hyperlinks .hyperlink-button {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
}


html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f6f8fb;
  color: #172033;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.grey-background {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef4f7 100%);
}

.r-search-box {
  margin: 0;
  padding: 60px 20px;
  background: linear-gradient(180deg, #edf7fa 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(0, 122, 163, 0.08);
  text-align: center;
  z-index: 99;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.r-search-box p {
  color: #334155;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

#search {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0, 122, 163, 0.15), 0 4px 12px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 122, 163, 0.18);
  padding: 6px 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

#search:hover {
  border-color: rgba(0, 122, 163, 0.35);
  box-shadow: 0 20px 35px -10px rgba(0, 122, 163, 0.2), 0 10px 20px -8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#search:focus-within {
  border-color: #007aa3;
  box-shadow: 0 0 0 4px rgba(0, 122, 163, 0.18), 0 20px 35px -10px rgba(0, 122, 163, 0.2);
  transform: translateY(-2px);
}

/* Style the internal Calcite search component inside our beautiful container */
arcgis-search {
  --calcite-color-brand: #007aa3;
  --calcite-color-brand-hover: #005d7c;
  --calcite-color-border-input: transparent;
  --calcite-color-border-1: transparent;
  --calcite-color-foreground-1: transparent;
  
  /* Remove internal sharp blue focus outline */
  --calcite-color-focus: transparent;
  --calcite-ui-focus-color: transparent;
  
  /* Scale font size up by exactly 1 level */
  --calcite-font-size-sm: 15px;
  --calcite-font-size-md: 18px;
  --calcite-font-size-lg: 20px;
  --calcite-font-size-xl: 22px;
  --calcite-font-size-0: 17px;
  --calcite-font-size-1: 19px;
  --calcite-font-size-2: 21px;

  width: 100%;
  display: block;
}

/* Suggested Addresses Modern Styling */
#suggestedAddresses .card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08), 0 5px 15px -5px rgba(0, 0, 0, 0.04);
  background: #ffffff;
  overflow: hidden;
}

#suggestedAddresses .card-title {
  font-size: 18px;
  font-weight: 600;
  color: #e11d48;
}

#address-links p {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  font-size: 15px;
}

#address-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#address-links li {
  margin-bottom: 8px;
}

#address-links .btn-link {
  color: #007aa3;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #f0f9fc;
  border: 1px solid rgba(0, 122, 163, 0.08);
  display: block;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

#address-links .btn-link:hover {
  background-color: #007aa3;
  color: #ffffff;
  border-color: #007aa3;
  box-shadow: 0 4px 12px rgba(0, 122, 163, 0.15);
  transform: translateX(4px);
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.title {
  color: #007aa3;
  margin: 50px auto;
  font-weight: 900;
  text-shadow: 2px 2px DarkGray;
}


header .absolute {
  top: 80px;
  right: 25px;
  width: 150px;
  height: 50px;
}

header .overflow-hidden {
  border-radius: 0 0 28px 28px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

#viewDiv,
#subMapView,
#crimeView {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

header #viewDiv {
  border: 0;
  border-radius: 0 0 28px 28px;
}

.title-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100px;
  height: auto;
}



@media (max-width: 767.98px) {
  header .absolute {
    top: 20px;
    right: 12px;
    width: min(260px, calc(100vw - 24px));
    height: auto;
  }

}

/* checkbox -- toggle  */

.ios-toggle input[type="checkbox"] {
  /*position: absolute;*/
  opacity: 0;
}

.ios-toggle input[type="checkbox"].ios-switch+span {
  color: #fff;
  display: inline-block;
  vertical-align: middle;
  width: 90px;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 999px;
  margin: 0 12px;
  background: rgb(175, 175, 175);
  background-image: linear-gradient(rgba(0, 0, 0, .05), transparent), linear-gradient(90deg, #88DB81 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-origin: border-box;
  background-clip: border-box;
  overflow: hidden;
  transition-duration: .4s;
  transition-property: padding, width, background-position, text-indent;
  /*box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
                0 .45em 0 .1em rgba(0,0,0,.05) inset;*/
  font-size: 150%;
  /* change this and see how they adjust! */
}

.ios-toggle input[type="checkbox"].ios-switch:checked+span {
  padding-left: 64px;
  /*	width: 74px;*/
  background-position: 0 0;
}

.ios-toggle input[type="checkbox"].ios-switch+span:before {
  content: 'ON';
  float: left;
  width: 22px;
  height: 22px;
  margin: 1px;
  /*
    border: 1px solid rgba(0,0,0,.25);*/
  border-radius: inherit;
  background: white;
  /*background-image: linear-gradient(rgba(0,0,0,.1), transparent);
    box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset/*,
                0 0 .5em rgba(0,0,0,.3);*/
  /*
    text-shadow: 0 -1px 1px rgba(0,0,0,.3);*/
  text-indent: -48px;
}

.ios-toggle input[type="checkbox"].ios-switch:active+span:before {
  background-color: #eee;
}

.ios-toggle input[type="checkbox"].ios-switch+span:before,
.ios-toggle input[type="checkbox"].ios-switch+span:after {
  font: bold 60%/1.7 sans-serif;
}

.ios-toggle input[type="checkbox"].ios-switch+span:after {
  content: 'OFF';
  float: left;
  text-indent: 8px;
  /*
  position: fixed;
  top: 24px;
    color: rgba(255,255,255,1);*/
  text-shadow: none;
  line-height: 1.8;
}

.switch {
  position: relative;
}

/*  checkbox -- toggle */

.r-title {
  background: linear-gradient(135deg, #007aa3 0%, #0f8f9d 100%);
  padding: 14px 18px;
  color: white;
  font-weight: 600;
  font-size: 20px;
  border-radius: 18px;
  margin: 0 0 14px;
  box-shadow: 0 14px 26px rgba(0, 122, 163, 0.18);
}

.r-content {
  padding: 2px 0 18px;
}

.r-card {
  padding-top: 10px;
  padding-bottom: 10px;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.card + .card {
  margin-top: 18px;
}

.card-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px 18px 0 0 !important;
  padding: 0;
}

.card-body {
  background: #ffffff;
  padding: 18px;
}

.btn-link {
  color: #172033;
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  color: #007aa3;
  text-decoration: none;
}

.btn-link h3 {
  margin-bottom: 0;
}

.r-subtitle {
  color: rgb(29, 29, 65);
  margin-left: 10px;
}

.location-data-tag {
  font-weight: 500;
  font-size: 18px;
  color: #334155;
}

.location-data-value {
  font-size: 17px;
  text-transform: uppercase;

}

.btn-secondary-right {
  float: right;
}

.font-grey {
  color: #4e4e4e;
}

.copyright {
  font-style: italic;
  line-height: 1.42857;
  font-weight: 400;
  font-size: 14px;
}

.copyright-content {
  font-size: 70%;
  font-weight: 300;
  line-height: 1.4;
}

/* .card-body {
  text-transform: capitalize;
} */

.browser-compatibility-alert {
  padding: 20px;
  top: 150px;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
  text-align: center;
}

.browser-compatibility-alert i {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%)
}

.browser-compatibility-alert .browser-error {
  font-size: 20px;
  padding-left: 110px;
}

.map-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, #f5f9fc 0%, #ebf2f7 100%);
  color: #334155;
  text-align: center;
  border-radius: 18px;
}

.map-fallback p {
  margin: 0;
}

.map-fallback-detail {
  font-size: 14px;
  color: #64748b;
}

body.maps-disabled #street-legend-toggle,
body.maps-disabled #crime-legend-toggle {
  display: none;
}

.btn-link h3 {
  font-size: 1.33333em;
  text-align: left;
  padding-left: 10px;
  font-weight: 900;
  display: inline-block;
}

.card .absolute {
  top: 15px;
  right: 15px;
}

.black-border {
  border: solid 2px #41403E;

}

#open-crime-map {
  color: #fff;
  background-color: #207ff7;
  border-color: #207ff7;
  float: right;
}

.r-content .blue-icon {
  font-weight: 900;
  color: white;
  padding: 4px;
  background-color: #207ff7;

}

.r-content .blue-icon-small {
  font-size: 75%;

}

/* Make Legend width half and translucent (80% opacity) */
.esri-ui .esri-legend,
.esri-ui arcgis-legend {
  max-width: 180px !important;
  opacity: 0.9 !important;
}
