.select-radius{ border-radius: 30px !important; }
.white-text{ color:#fff !important; font-size:1.05rem; }

/* === HEADING STYLE #3 === */
.three h1 {
font-size: 20px !important;
font-weight: 600 !important;
letter-spacing: 0;
line-height: 1.5em;
padding-top:10px;
padding-bottom: 15px;
position: relative;
}
.three h1:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 5px;
width: 55px;
background-color: #007bff;
}
.three h1:after {
content: "";
position: absolute;
left: 0;
bottom: 2px;
height: 1px;
width: 95%;
max-width: 255px;
background-color: #007bff;
}
/* === END OF HEADING STYLE #3 === */

.location-sec{
    padding: 0px 8px 0px 8px;
}

.adjust-loc-height{
    max-height: 476px;
    overflow-y: scroll;
}

.mobile-loc-map{
    display: none;
}

.desktop-loc-map{
    display: block;
}

@media (max-width:580px){
    .adjust-loc-height{
        height: 386px;
    }

    .elms-animation{
        display: none;
    }

    .mobile-loc-map{
        display: block;
    }

    .desktop-loc-map{
        display: none;
    }

    .mobile-loc-info{
      display: block !important;
      padding:0px 10px 0px 10px;
    }

    .mobile-loc-info2{
      padding:0px 10px 0px 10px !important;
    }
    
    .desktop-serv-info, .desktop-loc-info{
      /*display: none !important;*/
    }
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    /*box-shadow: inset 0 0 5px grey;*/ 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background:lightgray !important; 
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
    /*background:#007bff;*/
}

.adjust-card-height{
    min-height:auto !important;
    padding-bottom: 15px;
}

.location-img{
    width:100%;
    max-width: 200px;
    border-radius: 10px;
    padding: 5px;
}

.address-street, .location-phnenmbr{
    color:#007bff;
    font-size:0.9rem !important;
    font-weight: bold;
    text-decoration: none;
}

.adjust-font-size{
  font-size:0.9rem;
  font-weight: 525;
}

.location-phnenmbr{
  position: absolute;
  /*top: 28%;*/
}

.address-street:hover, .location-phnenmbr:hover{
    color:#243877;
    text-decoration: none;
    font-weight:bold;
}

.address-street1{
    color:#fff !important;
    font-size:1rem !important;
    text-decoration: none !important;
} 

.location-phnenmbr1{
    color:#fff !important;
    font-size:1rem !important;
    text-decoration: none !important;
    position: absolute;
    bottom: 24%;
}

.address-street1:hover, .location-phnenmbr1:hover{
    color:#fff !important;
    text-decoration: none !important;
    font-weight:bold !important;
}


/*Card*/
/*.card:hover{ 
    box-shadow: 1px 8px 20px grey;
   -webkit-transition:  box-shadow .6s ease-in;
 }*/

 .cards-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding-left: 15px;
    padding-right: 15px;
  }

  .content {
    top: 23% !important;;
    -ms-transform: translateX(-12%);
    transform: translateX(-12%);
  }  
  
  .card .elms-animation,
  .card .content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
  }
  .card .elms-animation {
    z-index: 5;
  }
  .card .elms-animation span {
    position: absolute;
    background-color: rgba(0, 0, 0, .2);
    height: 0;
    width: 0;
    transition: all .5s ease-out;
  }
  .card .elms-animation span.one {
    top: 0; left: 0;
  }
  .card .elms-animation span.two {
    top: 0; right: 0;
  }
  .card .elms-animation span.three {
    left: 0; bottom: 0;
  }
  .card .elms-animation span.four {
    right: 0; bottom: 0;
  }
  
  .card:hover .elms-animation span {
    width: 50%;
    height: 50%;
  }  
  
  .card .content {
    z-index: 6;
    visibility: hidden;
  }
  .card:hover .content {
    animation: show .3s .4s linear forwards;
  }
  .card .content a {
    /*padding: .6rem 1.3rem;*/
    /*border: 3px solid #FFF;
    background: transparent;*/
    color: #FFF !important;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: background .3s ease;
  }

  .location-info{
    background-color: #243877;
    border-radius: 5px;
    height: auto;
    padding: 10px;
    position: absolute;
    right: 25%;
    width: 100%;
  }

  .location-info p{
    font-size: 1rem;
    color:#fff;
  }

  /*.card .content a:hover {
    background: #FFF;
    color: #333;
  }*/
  
  @keyframes show {
    to {
      visibility: visible;
    }
  }
/*************/

/******* Clinic Button *******/
.btn {
    padding: 0.5rem 2.5rem;
  }
  
.btn-arrow {
    position: relative;
    transition: background-color 300ms ease-out;
}
.btn-arrow span {
    display: inline-block;
    position: relative;
    transition: all 300ms ease-out;
    will-change: transform;
}
.btn-arrow:hover span {
    transform: translate3d(-1rem, 0, 0);
}
.btn-arrow .fas {
    position: absolute;
    width: 1.1em;
    right: 0px;
    right: 0rem;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 300ms ease-out;
    will-change: right, opacity;
    font-size: 1.2rem;
}
.btn-arrow .fas * {
    stroke-width: 5;
    stroke-color: transparent;
}
.btn-arrow:hover .fas {
    opacity: 1;
    right: -2rem;
}
/******************/

.mobile-loc-info{
  display: none;
}

.mobile-loc-info2{
  padding: 0px;
}

.mobile-loc-info3{
  padding: 0px 12px 0px 12px;
}

.desktop-serv-info, .desktop-loc-info{
  display: block;
}

.three .col-5{
  -ms-flex: 0 0 36.666667%;
  flex: 0 0 36.666667%;
  max-width: 36.666667%;
}

.mobile-loc-info3 .col-5{
  -ms-flex: 0 0 36.666667%;
  flex: 0 0 36.666667%;
  max-width: 36.666667%;
}

figcaption {
  position: absolute;
  top: 45%;
  right: 14%;
  color: white;
  font: normal 15px verdana, sans-serif;
}

@media(max-width:820px){
  figcaption {
    position: absolute;
    bottom: 10%; /*adjust here*/
    top:unset;
    right: 10%; /*and here*/
    color: white;
    font: normal 15px verdana, sans-serif;
  }
}

.fig{
  position: relative;
}

.fig figcaption {
  position: absolute;
  top: 80%;
  left: 0%; /*8%*/
  transform: translate(20%, 32%);
  width: 80%; /*100%*/
  background-color: #d99255;
  text-align: center;
  border-radius: 12px;
}

/*MODAL*/
/* The Modal (background) */
.ebcf_modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.ebcf_modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 5px;
}

/* The Close Button */
.ebcf_close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.ebcf_close:hover,
.ebcf_close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-title{
  color:#fff !important;
}

.modal-header{
  background-color: #243877 !important;
}

.close-icon-color{
  color:#fff !important
}
/**************/

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: lightgrey !important; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: lightgrey !important; 
}

.modal-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  /*transition: opacity 200ms;*/
}

.leaflet-popup-content{ width: 242px; }

#map, #map2 { width: 100%; height: 530px !important; margin: 0px auto 30px auto; }

.leaflet-bold:hover{ font-weight: bold; }
.hide-img{ border-radius: 5px; width: 40px; }
@media(max-width:768px){
  /*.hide-img{ display: none; }*/
  .hide-img{ width: 60px; }
  #map { width: 100%; height: 530px !important; }
  #map2 { width: 100%; height: 530px !important; }
}

.map-width{
  max-width: 1003px;
  margin: 0 auto;
}

.intro-bckgrnd {
  background-color: #384479;
  border: 1px solid #e4e4ff;
  color: #fff;
  border-radius: unset;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 25px 50px;
  font-size: 1.2rem;
  text-align: justify;
  margin: 1px auto;
  width: 100%;
}

#map {
  height: 600px; /* or whatever height you need */
  width: 100%;
}

#serviceLocMobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.75); /* White with low opacity */
  z-index: 500; /* Should be above the map */
  display: none; /* Shown only on submit with results */
  padding: 1rem;
}

#serviceLoc {
  display: none;
}

#serviceLocMobile {
  display: none;
}

@media (min-width: 992px) {
  #serviceLoc {
    display: block !important;
  }
  #serviceLocMobile {
    display: none !important;
  }
}

@media (max-width: 580px) {
  #serviceLoc {
    display: none !important;
  }
  #serviceLocMobile {
    display: none !important;
  }
  .adjust-font-bold-mobile{
    font-size: .9rem;
    font-weight: bold;
  }
  .header-mobile{
    font-size: 1rem;
  }
  .adjust-font-mobile{
    font-size: .9rem;
  }
  /* #serviceLocMobile stays hidden by default */
}

@media(min-width:681px) and (max-width:767px){
  .fig figcaption {
    position: absolute;
    top: 83%;
    left: 18%;
    transform: translate(20%, 32%);
    width: 65%;
  }
}

@media(max-width:680px){
  .adjust-scrollbar{
    overflow-x: hidden;
  }
}

@media(min-width:400px) and (max-width:575px){
  .fig figcaption {
    position: absolute;
    top: 83%;
    left: 5%;
    transform: translate(20%, 32%);
    width: 28%;
  }
}

@media(min-width:355px) and (max-width:399px){
  .fig figcaption {
    position: absolute;
    top: 83%;
    left: 17%;
    transform: translate(20%, 32%);
    width: 28%;
  }
}

@media(min-width:330px) and (max-width:354px){
  .fig figcaption {
    position: absolute;
    top: 83%;
    left: 17%;
    transform: translate(20%, 32%);
    width: 35%;
  }
}

@media(min-width:260px) and (max-width:329px){
  .fig figcaption {
    position: absolute;
    top: 83%;
    left: 17%;
    transform: translate(20%, 32%);
    width: 40%;
  }
}

/* Universal Map Wrapper */
.map-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Map Container */
#map {
    width: 100%;
    height: 500px;
}

.map-overlay{display: none;}

/* On mobile: show overlay, position absolutely over map */
@media (max-width: 580px) {
  .map-overlay {
    display: block;
    position: absolute;
    top: 20px;
    left: 10px;
    /* Remove right: 10px to avoid full width */
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    pointer-events: auto;
    max-width: 225px; /* limit width so it doesn't stretch full width */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .map-overlay .input-group {
    pointer-events: auto;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start; /* Align inputs left */
  }

  .map-overlay .input-group select,
  .map-overlay .input-group input,
  .map-overlay .input-group button {
    width: 100%;
    margin: 0 !important;
    border-radius: 30px !important;
  }

  .map-overlay input,
  .map-overlay select,
  .map-overlay .clickable-icon {
    pointer-events: auto; /* inputs and icons can receive clicks */
    position: relative; /* ensure they are on top inside overlay */
    z-index: 501; /* above overlay */
  }

  .desktop-map-hide {
    display: none !important;
  }

  .button-30_2{
    height: 36px;
  }

  .map-overlay .mb-3{
    margin-bottom: 4px !important;
  }
}

@media(min-width: 581px){
  #serviceLocMobile {
    display: none;
    padding-left: 230px;
    width: 100%;
  }
}

@media (min-width: 581px) and (max-width: 992px) {
  .adjust-input-group{
    padding: 0 12px;
  }
  /* Make parent a flex container column */
  .desktop-map-hide, .mobile-map {
    /* reset Bootstrap floats */
    float: none !important;
    width: 100% !important;
  }

  /* Stack inputs and map vertically */
  .desktop-map-hide {
    order: 2; /* inputs below */
    /*margin-top: 15px;*/
  }
  .mobile-map {
    order: 1; /* map first */
  }

  /* If both are inside a flex container, ensure flex-direction is column */
  .desktop-wrapper {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 580px) {
  /* Make the input group a normal block above the map */
  .map-overlay {
    position: static !important;  /* Remove absolute positioning */
    background-color: rgb(212 218 220 / 40%) !important;
    padding: 15px !important;
    border-top-left-radius: 5px !important;
    border-top-right-radius: 5px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin-bottom: 0px; /* Space below input before map */
    z-index: auto !important;
  }
  
  /* Stack inputs vertically */
  .map-overlay .input-group {
    flex-direction: row !important;
    gap: 8px;
    align-items: stretch !important;
  }

  /* Make inputs full width */
  .map-overlay .input-group select,
  .map-overlay .input-group input,
  .map-overlay .input-group button {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 30px !important;
  }

  /* Make map full width and normal height */
  #map {
    padding-top: 0 !important; /* No top padding */
    box-sizing: border-box;
    height: 400px !important; /* Adjust as needed */
  }

  /* Hide desktop input group */
  .desktop-map-hide {
    display: none !important;
  }

  /* Show mobile input group normally */
  .map-overlay {
    display: block !important;
  }

  .modal-dialog{
    margin: 0 1.5rem;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.modal.show {
  display: flex;
}

/*mobile popup*/
.mobile-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
  background: white;
  padding: 20px;
  max-width: 500px;
  max-height: 780px;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  height: 100%;
}
.close-popup {
    position: absolute;
    top: -16px;
    right: 5px;
    cursor: pointer;
    font-size: 38px;
}

.mobile-font-size{
  font-size: 1.2rem;
 }

.loc-header{
  font-size: 1.5rem;
  font-weight: 600;
}

@media(max-width: 480px){
  .leaflet-popup-content{
    width: 300px !important;
  }
}

@media(max-width: 320px){
  .leaflet-popup-content{
    width: 230px !important;
  }
}

@media(max-width: 280px){
  .leaflet-popup-content{
    width: 180px !important;
  }
}
/*end of mobile popup*/