
/*! 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;
	}
}


@media (prefers-color-scheme: dark) {



	/* Dropzone file uploader - Dark Theme */
	#fileUploadForm.dropzone {
		background-color: #222222;
		border: 2px dashed #555;
		color: #ccc;
		padding: 2em;
	}
		#fileUploadForm.dropzone .dz-message {
			color: #ccc;
		}
			#fileUploadForm.dropzone .dz-message i {
				color: #888;
			}
		#fileUploadForm.dropzone .dz-preview .dz-progress {
			background: #333;
		}
		#fileUploadForm.dropzone .dz-preview .dz-upload {
			background: #35789a;
		}
		#fileUploadForm.dropzone .dz-preview .dz-error-message {
			color: #ff6f6f;
			background: #331010;
			border: 1px solid #ff6f6f;
		}
	.dropzone .dz-preview.dz-image-preview {
		background-color: #222222 !important;
	}
	/* 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;
		}





	/* Location Filter - Dark Theme */
	.location-filter {
		border: 1px solid #444444;
	}

		.location-filter legend {
			color: #DDDDDD;
		}





	/* Override Bootstrap DateTime Picker Background */
	.bootstrap-datetimepicker-widget {
		background-color: #222222 !important;
		color: #dddddd !important;
		border: 1px solid #313131 !important;
	}

		/* Style Header (Month and Year Selection) */
		.bootstrap-datetimepicker-widget table thead tr:first-child th {
			background: #333333 !important;
			color: #ffffff !important;
		}

		/* Style Day Numbers */
		.bootstrap-datetimepicker-widget table td.day {
			background: #222222 !important;
			color: #ffffff !important;
		}

		/* Highlight Today’s Date */
		.bootstrap-datetimepicker-widget table td.today {
			background: #555555 !important;
			color: #ffffff !important;
		}

		/* Selected Date Highlight */
		.bootstrap-datetimepicker-widget table td.active,
		.bootstrap-datetimepicker-widget table td.active:hover {
			background-color: #35789a !important;
			color: #ffffff !important;
		}

		/* Disabled Dates */
		.bootstrap-datetimepicker-widget table td.disabled {
			color: #777777 !important;
			background: none !important;
		}

		/* Arrows for Next/Prev Month */
		.bootstrap-datetimepicker-widget table th.prev,
		.bootstrap-datetimepicker-widget table th.next {
			color: #ffffff !important;
		}

		/* Time Picker Panel */
		.bootstrap-datetimepicker-widget .timepicker-picker {
			background: #222222 !important;
			color: #ffffff !important;
		}

		/* Hour, Minute, Second Buttons */
		.bootstrap-datetimepicker-widget .btn[data-action] {
			background: #333333 !important;
			color: #ffffff !important;
			border: 1px solid #555555 !important;
		}

		/* Hover Effect */
		.bootstrap-datetimepicker-widget table td:hover,
		.bootstrap-datetimepicker-widget table th:hover {
			background: #444444 !important;
			color: #ffffff !important;
		}


	.table thead > tr > th, .table tbody > tr > th, .table tfoot > tr > th, .table thead > tr > td, .table tbody > tr > td, .table tfoot > tr > td {
		background-color: #212021;
	}


	/* Improve table hover contrast in dark mode */
	table.table-hover tbody tr:hover td {
		background-color: #666666 !important;
		color: #ffffff !important;
	}


    body {
        /*! Background */
	    background-color: #000000;
	    color: #dddddd;

        /*! 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%; }




	.panel {
		background: #222222;
	}





    /*! Forms */
    .form-control {
	    background: #222222;
        color: #ffffff;
	    border-color: #313131;
    }

    
    /*! Buttons */
    /*  using this hides all BTN colors - so it's disabled for now
    .btn {
        background-color: #222222;
	    border-color: #313131;
	    color: #dddddd;
    }
    */

    /*! Modals */
    .modal-header {
        background-color: #222222;
	    color: #dddddd;
    }
    .modal-content {
        background-color: #222222;
	    color: #dddddd;
    }



    /*! Thumbail panels */
     .thumbnail {
        background-color: #222222;
        color: #dddddd;
    }
     .thumbnail .caption {
        color: #dddddd;
    }


	/*! Table borders */
	table.table-bordered > tbody > tr > td{
	    border:1px solid #313131;
	}
    

	/*! Table striped */
    .table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
        background-color: #313131;
    }




	/*! Horizontals */
	hr {
	    border-color: #313131;
	}


	/*! Wells */
	.well {
	    background: #222222;
	    border-color: #313131;
	    border-radius: 10px;
	    margin-left: -5px;    
	    margin-right: -5px;   
	    margin-bottom: 8px;    
	}

	/*! Well Menu Links */
	.wellmenulink {
	    color: #dddddd;
	    text-decoration: none !important;
	}


	/*! Well Headings */
	.wellheading {
	    margin-top: 0px;
	    color: #728ab8;
	}

	/*! Well Table List */
	.welltablelist {
	    background: #222222;
	    border-color: #313131;
	    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;
    }





	/*! Footer */
	footer {
	  color: #dddddd;
	}



	/*! Navbar */
    .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
        background-color: #eeeeee;
    }
	.navbar-custom {
	  background-color: #222222;
	  border-color: #313131;
	}
	.navbar-custom .navbar-brand {
	  color: #dddddd;
	}
	.navbar-custom .navbar-brand:hover,
	.navbar-custom .navbar-brand:focus {
	  color: #35789a;
	}
	.navbar-custom .navbar-text {
	  color: #dddddd;
	}
	.navbar-custom .navbar-nav > li > a {
	  color: #dddddd;
	}
	.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: #222222;
	}
	.navbar-custom .navbar-nav > li > .dropdown-menu > li > a {
	  color: #dddddd;
	}
	.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: #00ff00;
	}
	.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: #dddddd;
	  background-color: #ff0000;
	}
	.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: #dddddd;
	}
	.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: #dddddd;
	}
	.navbar-custom .navbar-collapse,
	.navbar-custom .navbar-form {
	  border-color: #dddddd;
	}
	.navbar-custom .navbar-link {
	  color: #dddddd;
	}
	.navbar-custom .navbar-link:hover {
	  color: #35789a;
	}
	@media (max-width: 767px) {
	  .navbar-custom .navbar-nav .open .dropdown-menu > li > a {
	    color: #dddddd;
	  }
	  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:hover,
	  .navbar-custom .navbar-nav .open .dropdown-menu > li > a:focus {
	    color: #dddddd;
	  }
	  .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: #dddddd;
	    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 */


/* 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;
	}
}


/* Custom styling for disabled textboxes in dark mode */
input[disabled] {
	background-color: #2c2c2c !important;
	color: #ccc !important;
	border-color: #555 !important;
	opacity: 1 !important;
	cursor: not-allowed;
}

