
/*! dronescene.co.uk */



/*! Force drop down menu to expand downwards */
.navbar-collapse.in {
    overflow: hidden;
    max-height: none !important;
    height: auto !important;
}



@media (max-width: 990px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
        .navbar-collapse.collapse {
            display: none !important;
        }
    .navbar-nav {
        float: none !important;
        margin: 7.5px -15px;
    }
        .navbar-nav > li {
            float: none;
        }
            .navbar-nav > li > a {
                padding-top: 10px;
                padding-bottom: 10px;
            }
    .navbar-text {
        float: none;
        margin: 15px 0;
    }
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    .collapsing {
        overflow: hidden !important;
    }
}


body {
    /*! Background */
    background-color: #F7F7F4;

    /*! Pad content downwards to allow for top navbar */
    padding-top: 60px;
    padding-bottom: 20px;
}


/*! Embedded YouTube Videos */
.embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: 100%;
    height: 100%;
    border: 0;
}
.embed-responsive-16by9 { padding-bottom: 56.25%; }
.embed-responsive-4by3 { padding-bottom: 75%; }


/*! Wells */
.well {
    background: #ffffff;
    border-radius: 10px;
    margin-left: -5px;    
    margin-right: -5px;   
    margin-bottom: 8px;    
}

/*! Well Menu Links */
.wellmenulink {
    color: #000000;
    text-decoration: none !important;
}

/*! Well Headings */
.wellheading {
    margin-top: 0px;
    color: #4A6394;
}

/*! Well Table List */
.welltablelist {
    margin-left: -10px;    
    margin-right: -10px;    
    margin-bottom: 8px;    
}


/* Map search container */
#mapSearchContainer{
  position:fixed;
  top:20px;
  right: 40px;
  height:30px;
  width:180px;
  z-index:110;
  font-size:10pt;
  color:#5d5d5d;
  border:solid 1px #bbb;
  background-color:#f8f8f8;
}

/*! Alerts */
.alert {
    border-radius: 10px;
}


/* Responsive maps - REF: stackoverflow.com/questions/15668762/using-google-map-with-bootstrap-but-responsive-doesnt-work */
.map_container{
    position: relative;
    width: 60%;
    padding-bottom: 33.75%; /* Ratio 16:9 ( 60%/16*9 = 33.75% ) */
}
.map_container .map_canvas{
    border-radius: 10px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
}
@media (max-width: 767px) {
    .map_container{
        position: relative;
        width: 100%;
        padding-bottom: 80%;
    }
    .map_container .map_canvas{
        border-radius: 10px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 0;
    }
}


    /*! Map message box */
    .leaflet-control-messagebox {
        display: none; /* Initially hidden */
        border: 1px solid;
        background-color: white;
        color: black;
        padding: 3px 10px;
    }


    /*! Elevation tool */
    .leaflet-container.crosshair-cursor-enabled {
        cursor:crosshair;
    }



/*! Navbar */
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    background-color: #eeeeee;
}
.navbar-custom {
  background-color: #4A6394;
  border-color: #a5b5bd;
}
.navbar-custom .navbar-brand {
  color: #ffffff;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #35789a;
}
.navbar-custom .navbar-text {
  color: #ffffff;
}
.navbar-custom .navbar-nav > li > a {
  color: #ffffff;
}
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
  color: #35789a;
}
.navbar-custom .navbar-nav > li > .dropdown-menu {
  background-color: #4A6394;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a {
  color: #ffffff;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-custom .navbar-nav > li > .dropdown-menu > li > a:focus {
  color: #35789a;
  background-color: #ffffff;
}
.navbar-custom .navbar-nav > li > .dropdown-menu > li > .divider {
  background-color: #a5b5bd;
}
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a,
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-custom .navbar-nav .open .dropdown-menu > .active > a:focus {
  color: #35789a;
  background-color: #a5b5bd;
}
.navbar-custom .navbar-nav > .active > a,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus {
  color: #35789a;
  background-color: #a5b5bd;
}
.navbar-custom .navbar-nav > .open > a,
.navbar-custom .navbar-nav > .open > a:hover,
.navbar-custom .navbar-nav > .open > a:focus {
  color: #35789a;
  background-color: #ffffff;
}
.navbar-custom .navbar-toggle {
  border-color: #a5b5bd;
}
.navbar-custom .navbar-toggle:hover,
.navbar-custom .navbar-toggle:focus {
  background-color: #a5b5bd;
}
.navbar-custom .navbar-toggle .icon-bar {
  background-color: #ffffff;
}
.navbar-custom .navbar-collapse,
.navbar-custom .navbar-form {
  border-color: #ffffff;
}
.navbar-custom .navbar-link {
  color: #ffffff;
}
.navbar-custom .navbar-link:hover {
  color: #35789a;
}
@media (max-width: 767px) {
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a {
    color: #ffffff;
  }
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #35789a;
  }
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-custom .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #35789a;
    background-color: #a5b5bd;
  }
}



/* Custom Tooltip Styles */






/* Custom switch slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px; /* Reduced width */
    height: 17px; /* Reduced height */
}
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3;
    -webkit-transition: .4s;
    transition: .4s;
}
    .slider:before {
        position: absolute;
        content: "";
        height: 13px; /* Reduced height */
        width: 13px; /* Reduced width */
        left: 2px; /* Adjusted to fit smaller size */
        bottom: 2px; /* Adjusted to fit smaller size */
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }
input:checked + .slider {
    background-color: #2196F3;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    -webkit-transform: translateX(13px); /* Reduced translateX */
    -ms-transform: translateX(13px); /* Reduced translateX */
    transform: translateX(13px); /* Reduced translateX */
}
/* Rounded sliders */
.slider.round {
    border-radius: 17px; /* Half of the new height */
}
    .slider.round:before {
        border-radius: 50%;
    }
/* Custom switch slider */



/* Contact page - Alignment for Social Media links */
.contact-social-link {
    display: flex;
    align-items: center;
    gap: 4px; /* Spacing between icon and text */
}
    .contact-social-link i {
        width: 25px; /* Fixed width for all icons */
        text-align: center; /* Ensures icon stays centered */
    }




/* SEARCH START */
/* Force Input Box Width */
.search-input-box {
    width: 100%;
    max-width: 435px;
}
/* Responsive Adjustment */
@media (max-width: 767px) {
    .search-input-box {
        width: 100%;
        max-width: 100%; /* Full width on mobile */
    }
}
/* Narrow the gap between radio buttons and their labels */
.radio-inline input[type="radio"] {
    margin-right: 3px; /* Adjust this value as needed */
    vertical-align: middle;
}
/* Hide the hr by default */
.ajax-hr {
    display: none;
    border: 0;
    border-top: 1px solid #ccc; /* Optional: Customise the line's colour */
    margin: 10px 0;
}
/* Show the hr only on mobile devices */
@media (max-width: 767px) {
    .ajax-hr {
        display: none; /* Hidden by default on mobile too */
    }

        .ajax-hr.active {
            display: block; /* Only show when active */
        }
}
/* Increase the font size for search results */
#searchResultsPanel ul.list-unstyled li {
    font-size: 1.1em;
    line-height: 1.5;
}
/* SEARCH END */



/* Location Filter - Light Theme */
.location-filter {
    border: 1px solid #E3E3E3;
}
.location-filter legend {
    color: #555555;
}


/* ADJUST WIDTH OF ESRI SEARCH BOX AND RESULTS */
@media (max-width: 767px) {
    .geocoder-control.geocoder-control-expanded {
        width: 220px !important;
        max-width: 220px !important;
        min-width: 180px !important;
        box-sizing: border-box !important;
    }

    .geocoder-control-input {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    .geocoder-control-suggestions {
        width: calc(100% - 20px) !important;
        margin-left: 10px !important;
        box-sizing: border-box !important;
    }
}




/* Dropzone file uploader - Light Theme */
#fileUploadForm.dropzone {
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    color: #ccc;
}
    #fileUploadForm.dropzone .dz-message {
        color: #ccc;
    }
        #fileUploadForm.dropzone .dz-message i {
            color: #ccc;
        }
/* Dropzone - Scale thumbnail previews to fit */
.dropzone .dz-preview .dz-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .dropzone .dz-preview .dz-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
/* Dropzone - Move the error message upwards */
.dropzone .dz-preview .dz-error-message {
    top: 150px !important;
}

