﻿body {
    margin: 0;
}


/* #viewDiv {
    width: 100%;
    min-width: 527.45px;
    min-height: 350px;
} */
#viewDiv {
    width: 100%;
    min-width: 300px;
    min-height: 552px;
    border: 1px solid #00000014;

    /* @media screen and (min-width: 768px) {
        min-height: 550px;
    } */
}

.hidden{
	display: none;
}


input#nearsearchInput {
    display: block;
    margin-top: 30px;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dee2e6;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out
}


@media screen and (min-width: 768px) {
    .form-maxwidth{
        max-width: 300px;
    }
    .btn{
        width: initial !important;
    }
}

.btn-primary {
    background-color: #2d6e8d !important;
    color: white !important;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}
.pagination{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.pagination button:hover,
.btn-primary:hover {
    background-color: #335969 !important;
    color: white !important;
}
.pagination button,
.btn {
    /* width: 100%; */
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.42857143;
    border-radius: 0.25rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none !important;
    border-radius: 7px;
    font-weight: 600;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-select {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='24' height='24' viewBox='0 0 24 24'><path d='M17.087 10.35l-4.337 4.336-4.337-4.336c-0.293-0.293-0.768-0.293-1.060 0s-0.293 0.768 0 1.060l4.864 4.864c0.147 0.147 0.341 0.221 0.533 0.219 0.194 0 0.386-0.072 0.533-0.219l4.865-4.864c0.293-0.293 0.293-0.768 0-1.060s-0.768-0.293-1.061 0z'/></svg>");
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 20px 20px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    appearance: none
}


.container {
    display: flex; /* or inline-flex */
    flex-direction: row;
    flex-wrap: wrap;
    gap:15px;
    width: 100%;
    overflow: hidden;
  }
  @media screen and (min-width: 1299px) {
    #container{
        display: inline-flex; /* or inline-flex */
    }
}

.mapview
{
    flex: 60%;
}
#results{
    display: none;
}
.result-list
{
    flex: 35%;
    width: 0;
    max-height: 552px;
    overflow-y: scroll;
    direction: rtl;
    background: #f2f3f3;
}
.result-list > *{
    background: #f9fcfc;
    padding: 1px 15px 15px 15px;
    direction: ltr;
    line-height: 1.4;
}
.result-list > *:nth-child(odd){
    background: #f2f3f3;
    padding: 1px 15px 15px 15px;
}
.result-list a{
    color: #2d6e8d;
}


#UseCurrentButton {
    color: #2d6e8d;
}
.location-p{
    position: relative;
}
  .locationSearch-form{
    margin: 0 0 30px 0;
  }
  /* .locationSearch-form > * {
    margin: 5px 2px;
} */
#autocompleteList{
    top: 69px;
    left: 2px;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    /* padding: 0.5rem 0; */
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-clip: padding-box;
    box-shadow: 0px 0 5px -2px #888;
    border-radius: 0.25rem;
    padding: 0;
    max-height: 430px;
    overflow-y: scroll;
    overflow-x: hidden;
  }
  #autocompleteList > *{
    list-style: none;
    display: block;
    width: 100%;
    padding: 0.3rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: #fff;
    border-left: 1px solid rgba(0,0,0,.15);
    border-right: 1px solid rgba(0,0,0,.15);
  }
  #autocompleteList > *:last-child{
    border-bottom: 1px solid rgba(0,0,0,.15);
  }

  #autocompleteList > li:hover{
    background-color: rgb(243, 243, 243);
  }

  #autocompleteList .selected{
    background-color: rgb(243, 243, 243);
  }

  .distance-option{
    display: inherit;
  }
  .distance-option span{
    margin: auto 10px;
  }
  #errorMsg{
    height: 19px;
    margin-bottom: -3px;
    color: red;
    flex:100%;
  }
.errorborder{
    border: 2px solid red;
}


    .pagination, .sort-buttons{
        display: inline-flex;
        }


  .pagination button{
    margin-bottom: 5px;
    padding: 0.5rem 0.9rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #2d6e8d;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0;
}
.pagination button:first-child{
    border-radius: 2px 0 0 2px;
}
.pagination button:last-child{
    border-radius: 0 2px 2px 0;
}

  .pagination .sort-buttons button{
    background-color: gray !important;
    display: none;
  }

  .pagination {
    margin: 10px;
}
  h3, .h3 {
    font-size: 1.5em;
    color: #17315a !important;
    font-weight: bold;
}
h1, .h1 {
    font-size: 2em;
    margin: 0.67em 0;
    color: #17315A !important;
    font-weight: 700;
}
body{
    font-family: "Segoe UI", Myriad, sans-serif;
}
.pointer{
    cursor: pointer;
}
.pointer:hover{
    background-color: rgba(245, 245, 245, 0.15);
}

.esri-attribution__powered-by,
.esri-attribution__sources.esri-interactive {
    display: none !important;
}

.mile-tag{
    color: black;
    border-radius: 14px;
    font-size: 0.75rem;
    margin-bottom: 40px;
}

.searchOption > * {
    display: inline-block;
}


/* @media screen and (max-width: 768px) {
    .esri-popup__main-container {
        top: 0;
        bottom: initial !important;
    }
} */

.esri-component.esri-zoom .esri-widget--button {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.esri-component.esri-zoom .esri-icon {
    font-size: 18px;
}

/* current location CSS */
.link-styled{
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

.link-styled:hover{
    color: darkblue; /* Darker blue on hover for effect */
}
.link-styled:focus {
    outline: 2px solid #005fcc; /* Visible focus indicator */
}