/*----------------------------------- maps section -----------------------------------*/

div.locations {
    width: 100%;
    height: 600px;
}

div.locations_list {
    position: relative;
    float: left;
    width: 30%;
    height: 100%;
    overflow: auto;
}

    div.locations_list h1 {
        display: block;
        padding-left: 40px;
        margin: 25px 30px;
        background: url('/site-images/maps_icon.png') top left no-repeat;
        font-size: 14pt;
        color: #333;
        min-height: 34px;
    }

    div.locations_list h2 {
        display: block;
        color: #333;
        font-size: 11pt;
        margin: 0 30px;
        border-top: 1px dotted #ccc;
        padding-top: 25px;
    }


div.agent_search_results .location_item {
    display: block;
    overflow: auto;
	position: relative;
}

/*.locations_list .locations_container .location_item:nth-child(2n+4) {
    background: #eee8e0;
}*/


.locations_list .location_item .info {
    display: table-cell;
    float: left;
    width: 60%;
    height: 100%;
}

    .locations_list .location_item .info p {
        margin: 0;
        color: #2e6093;
    }



    .locations_list .location_item .mapit a, .labelContent {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        left: 0;
        text-decoration: none;
        color: red;
        font-size: 20px;
    }


        .locations_list .location_item .mapit a p {
            margin: 0;
            color: #2e6093;
            font-size: 12pt;
            font-family: 'PT Sans', sans-serif;
            line-height: 0.8;
        }

        .locations_list .location_item .mapit a:hover p {
            color: #f28900;
        }

div.agent_search_results {
    padding-top: 30px;
}

 
        div.agent_search_results .location_item .mapit {
            /*position: absolute;
        bottom: 15px;
        right: 30px;*/
            text-align: center;
        }


div.map {
    position: relative;
    float: left;
    height: 100%;
    width: 70%;
    background: #dfdbbd;
}

.location_item {
    position: relative
}

.locations_list .location_item .info {
    width: 100%
}

.locations_list .location_item .info h3 {
    font-size: 1.25rem
}

.locations_list .location_item .info p {
    color: #404040
}

.location_item .agent-card-body {
    width: 100%;
}

.agent-card {
    text-align: center;
    display: flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 1rem;
    align-items: stretch
}

.location_item .agent-card {
    width: 95%;
    margin: 0;
    margin-right: 5%;
    margin-bottom: .75rem;
}

.agent-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 3px 3px 5px rgba(119,53,53,.15);
    margin-bottom: -1.75rem
}

.agent-card-body {
    padding: 1.5rem 1.5rem 2.5rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    border-bottom: 12px solid #54ccc9
}

.agent-card-name,.agent-card-title,.agent-card-phone,.agent-card-email,.agent-card-addy1,.agent-card-addy2,.agent-card-locationurl {
    display: block;
    line-height: 1.3
}

.agent-card-name {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: .75rem;
}

.agent-card-title {
    font-family: Lusitana,serif;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem
}

.agent-card-addy2 {
    margin-bottom: .5rem
}

.agent-card-email a {
    color: #319b42
}

.agent-card-phone a {
    color: #212529
}

@media all and (max-width: 575.98px) {
    .agent-card {
        display:flex;
        flex-direction: row;
        margin: 0 0 1rem 0;
        text-align: left;
        width: 100%
    }

    .agent-card-photo {
        margin-bottom: 0;
        margin-right: -3rem;
        z-index: 1;
        width: 80px;
        height: 80px
    }

    .agent-card-body {
        width: 100%;
        padding: 1rem 4rem 1rem .5rem;
        border-radius: 8px;
        border-bottom: 0;
        border-right: 10px solid #54ccc9
    }

    .agent-card-name {
        font-weight: 700;
        font-size: 1.25rem
    }

    .agent-card-title {
        font-size: 1.25rem;
        margin-bottom: .5rem
    }

    .agent-card-email {
        font-size: .875rem
    }

    .agent-card-body .agent-card-phone a {
        margin: 0
    }
  

}

div.agent_search_results .location_item .mapit {
    position: absolute;
    height: 100%;
    vertical-align: middle;
    padding: 40px 0 0 40px;
    top: 0;
    right: 2rem;
}

.locations_list .location_item .mapit a {
    top: initial;
    bottom: 1.25rem;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 40px;
}

.locations_list .location_item .mapit a .labelContentBox {
    color: #ea4335;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: 600;
    position: absolute;
    width: 40px;
    padding-top: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.labelContentBox i {
    font-size: 1.125rem;
    margin-right: 4px;
}

@media (max-width: 767.98px) {
	div.agent_search_results div.locations_list div.locations_container {
		height: auto;
		overflow-x: scroll;
		overflow-y: hidden;
		white-space: nowrap;
		width: 100%;
	}
}
@media (max-width: 767.98px) {
	div.agent_search_results div.locations div.map {
		width: 100%;
		height: 700px;
		margin: 10px 0 0 0;
	}
}
@media (max-width: 1199.98px) {
	
}

@media all and (max-width: 767.98px) {
    .search-bottom__title {
        clear:both;
        top: 1rem
    }

    div.collage>div.square {
        width: 48%
    }

    input.topbar_search {
        width: 120px
    }

    .search-map-results .search-by-location input,
    .search-map-results .search-by-location select {
        margin: 0;
    }

    .search-map-results .search-by-location span {
        display: inline-block;
        padding: 0 4px
    }

    .search-map-results .search-btn {
        width: 100%;
        margin: 15px 0 0
    }

    div.agent_search_results div.locations {
        height: auto
    }

    div.agent_search_results div.locations_list {
        width: 100%;
        overflow: hidden
    }

    div.agent_search_results div.locations_list div.locations_container {
        height: auto;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
        width: 100%
    }

    div.agent_search_results div.locations div.map {
        width: 100%;
        height: 700px;
        margin: 10px 0 0 0
    }

    div.agent_search_results .location_item {
        width: 325px;
        float: none;
        display: inline-block;
        white-space: normal;
        min-height: 160px
    }

    div.agent_search_results .location_item .mapit .labelContentBox {
        position: absolute;
        display: block;
        width: 40px;
        top: 50%;
        left: 50%;
        text-align: center;
        transform: translateX(-50%) translateY(-50%)
    }

    .locations_list .location_item .mapit a {
        top: initial;
        bottom: .65rem;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 40px
    }

    div.container_ln.findanagent form input.forminput,div.container_ln.findanagent form select.state,div.container_ln.findanagent .search-by-agent form input {
        display: block;
        width: 100%;
        margin: 0 0 10px 0
    }

    div.container_ln.findanagent form span {
        display: block;
        margin-bottom: 10px;
        font-size: 14pt;
        font-weight: 700
    }

    div.container_ln.findanagent form button {
        display: block !important;
        margin: 0 0 10px 0 !important;
        float: none !important
    }
}

div.map .labels {
    color: white!important;
    font-weight: 800;
    font-size: 1rem;
    width: 19px;
    background: #ea4335;
    text-align: center;
    transform: translate(-7px,-8px);
    border-radius: 19px
}
.search-by-state, .search-by-name, .search-by-agent {display: none;}
.find-agent-form .search-by-state, 
.find-agent-form .search-by-location,
.find-agent-form  .search-by-name,
.find-agent-form  .search-by-agent
{width: 100%;}
.search-by-state select {border-radius: 0;}

.search-map-results {
    padding-top: 1rem
}

.search-map-results ul.tab-agent-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    border-bottom: 5px solid #319b42
}

.search-map-results ul.tab-agent-menu li {
    color: rgba(255,255,255,.6);
    background-color: #288336;
    display: inline-block;
    padding: .25rem 1rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: solid 1px #319b42;
    cursor: pointer;
    margin: 0 .25rem;
    transition: all .3s ease
}

.search-map-results ul.tab-agent-menu li.active {
    background-color: #319b42;
    color: white
}

.search-map-results ul.tab-agent-menu li:hover {
    background-color: #319b42;
    color: white;
    border-bottom: 1px solid #319b42
}

.search-map-results input.forminput {
    border: 1px solid #aaa;
    height: 34px;
    padding-left: .5rem;
    margin: 0 .25rem
}

.search-map-results select.state {
    border: 1px solid #aaa;
    height: 34px;
    padding-left: .5rem;
    margin: 0 .25rem;
    width: inherit;
    background-color: #fff;
    border-radius: 0;
    padding: 0 .5rem;
    color: #666;
}

.search-map-results .search-btn {
    color: white;
    background-color: #319b42;
    padding: .25rem 1rem;
    border-radius: 5px;
    border: none;
    margin: 0 .25rem
}

.search-map-results .search-btn:hover {
    background-color: #288336
}




@media all and (max-width: 575.98px) {
    .search-map-results ul.tab-agent-menu {
        margin-bottom:.5rem;
        border-bottom: 0
    }

    .search-map-results ul.tab-agent-menu li {
        display: block;
        border-radius: 0;
        margin: 0 0 3px 0;
        cursor: pointer
    }

    .search-map-results input.forminput {
        margin: 0 .25rem .5rem
    }

    .search-map-results .search-btn {
        display: block;
        margin-top: .5rem
    }
  
  .locations_list .location_item .mapit a {
      bottom: initial;
      top: calc(50% - 5px);
      transform: translateY(-50%);
  }
}

@media all and (max-width: 449.98px) {
  div.agent_search_results .location_item {
      width: 275px;
  }
}

/* Default styles for both desktop and mobile */
.findanagentbutton {
    display: none; /* Initially hide both elements */
    width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
  }
  
  .mobileonly { /* Add this rule to initially hide mobileonly */
    display: none;
  }
  
  /* Show desktoponly for desktop screens */
  @media only screen and (min-width: 768px) {
    .desktoponly {
      display: block;
    }
  }
  
  /* Show mobileonly for mobile screens */
  @media only screen and (max-width: 768px) {
      .mobileonly {
          display: block;
      }
  }


  .findanagentbutton.mobileonly {
    padding: 0 15px;
  }

  .findanagentbutton a {
    margin: 0 -15px;
    padding: 14px 45px 14px 20px;
    background-color: #00558C;
    color: #fff;
    border-radius: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
    cursor: pointer;
    display: block;
}

  .findanagentbutton a:hover,
  .findanagentbutton a:focus {
    text-decoration: none;
    background-color: #64CCC9;
  }

