﻿/* Define CSS for full-screen map */

#map {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/* set the min height to see the full left panel (for desktop) */
.leaf-box-wrapper{
	min-height: 870px;
}

.custom-icon {
	width: 48px;
	height: 48px;
	background-color: red; /* Red with 0.5 opacity */
	border: 4px solid white;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
}

	.custom-icon.selected {
		color: #fff;
		background-color: #0d6efd;
		border-color: #0d6efd;
	} 

.custom-icon-price {
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	text-align: center;
}

.custom-icon-label {
	background-color: rgb(0 0 0 / 43%);
	color: #fafafa;
	border-radius: 2px;
	text-shadow: #000 1px 0 10px;
	padding: 2px 6px;
	margin: 0;
	width: 104px;
	margin-left: -26px;
	text-align: center;
}

.custom-icon.custom-icon-help {
	position: relative;
	width: 48px;
    height: 48px;
	border: none;
	top: 25px;
}

.custom-icon.custom-icon-help .custom-icon-price {
	font-size: 14px;
}

.leaflet-touch .leaflet-bar a {
	width: 40px !important;
	height: 40px !important;
	line-height: 40px !important;
	font-size: 17px;
}

.mapbox-loading-message {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 8px;
	border-radius: 4px;
	background-color: rgb(0 0 0 / 40%);
	box-shadow: 0 0 3px #676a6ce0;
	color: white;
	text-align: center;
	z-index: 999;
}

/* left panel */
.map-cards {
	position: absolute;
	right: 0;
	top: 0;
	left: 0;
	margin: 10px;
	height: 0px;
	z-index: 1000;
}

	.map-cards .map-cards-left {
		position: absolute;
	}

	.map-cards .map-cards-right {
		position: absolute;
		right: 0px;
	}

.map-cards li.map-card {
	margin-top: 10px;
}

.map-cards li.map-card:first-child {
	margin-top: 0;
}

	.map-cards li.map-card > .card {
		width: 19rem;
		background-color: #ffffff7a;
		border-color: #fff;
		box-shadow: 0 0 3px #687076e0;
	}

	.map-cards li.map-card > .card .card-text {
		margin-bottom: 0.5rem;
	}

	.map-cards li.map-card > .card .card-body {
		padding: 8px 10px;
	}

		.map-cards li.map-card > .card .list-group-item {
			background-color: rgba(255, 255, 255, 0.8);
		}

			.map-cards li.map-card > .card .list-group-item.list-group-item-primary {
				background-color: rgba(206, 225, 255, 0.8);
			}

			.map-cards li.map-card > .card .list-group-item.list-group-item-secondary {
				background-color: rgba(226, 227, 229, 0.8);
			}

			.map-cards li.map-card > .card .list-group-item.list-group-item-success {
				background-color: rgba(208, 231, 221, 0.8);
			}

			.map-cards li.map-card > .card .list-group-item.list-group-item-warning {
				background-color: rgba(255, 244, 206, 0.8);
			}

			.map-cards li.map-card > .card .list-group-item.list-group-item-info {
				background-color: rgba(207, 244, 252, 0.8);
			}

			.map-cards li.map-card > .card .list-group-item.list-group-item-purple {
				background-color: rgba(187, 146, 223, 0.8)
			}
			

/* filter card */
.filter-card .battery-slider {
	width: 100%;
}

.filter-card .connector{
	width: 100%;
}

	.filter-card .connector label {
		padding: 6px;
		width: 33.3%;
	}

		.filter-card .connector label.power-group span {
			display: block;
			font-size: 11px;
		}

.filter-card .charge-power{
	width: 100%;
}

	.filter-card .charge-power label {
		padding: 6px;
		width: 33.3%;
	}

		.filter-card .charge-power label {
			font-size: 14px;
		}

		.filter-card .charge-power label.power-group span {
			display: block;
			font-size: 11px;
		}
/* charge cost card */

.charge-cost-card .charger-logo{
	background-color: #ffffff;
    border-radius: 3px;
    padding: 4px;
    border: 1px solid #525558;
    width: 100%;
    text-align: center;
}

.charge-cost-card .charger-logo > img{
	max-height: 38px;
}

.charge-cost-card .charger-name{
	background-color: #ffffff;
    border-radius: 3px;
    padding: 4px 8px;
    border: 1px solid #525558;
}

.charge-cost-card .list-group-item {
	padding: 8px 12px 7px 12px;
}

.charge-cost-card .ceme-line-detail {
	font-size: .75em;
	font-weight: 700;
}

.charge-cost-card .ceme-tariffs-details {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .75em;
	width: 100%;
}

.charge-cost-card .ceme-tariffs-details .badge{
	background-color: transparent; 
	color: #6c757d; 
	border: 1px solid #6c757d; 
	font-weight: normal;
}

/* Add media query for smaller screens (e.g., mobile phones) */
@media screen and (max-width: 768px) {
	.leaf-box-wrapper{
		min-height: unset;
	}

	#map .leaflet-bar a{
		backdrop-filter: blur(10px);
    	background-color: #ffffff73;
	}

	.map-cards {
		margin: 0px;
	}

		.map-cards .map-cards-left {
			right: 0px;
			left: 0px;
		}

		.map-cards .map-cards-right {
			right: 0px;
			left: 0px;
			top: 114px;
		}

		.map-cards li.map-card {
			margin: 5px;
		}

			.map-cards li.map-card > .card {
				width: 100%;
				backdrop-filter: blur(10px);
			}

	li.map-card.app-version-card {
		margin-top: 0px;
    	margin-right: 0px;
    	margin-left: 0px;
	}

	li.map-card.app-version-card .card {
		border-top: none;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}

	li.map-card.app-version-card .card-body {
		padding-left: 14px !important;
    	padding-right: 14px !important;
	}	

	li.map-card.filter-card {
		position: absolute;
		left: 0px;
		right: 0px;
		margin-top: -600px;
		opacity: 0;
		transition: margin-top 0.5s ease, opacity 0.5s ease;
	}

	li.map-card.filter-card.show {
		margin-top: 0px;
		opacity: 1;
	}

	li.map-card.filter-card .connector label{
		width: 114px;
	}

	li.map-card.filter-card .charge-power label{
		width: 114px;
	}

	li.map-card.charging-curve-card {
		margin-top: 0px;
		display: none;
	}

	li.map-card.charging-curve-card.show {
		display: block;
	}

	li.map-card.charge-cost-card {
		display: none;
	}

	li.map-card.charge-cost-card.show {
		display: block;
	}
}

/* cluster popup */
.leaflet-popup-content {
	min-width: 120px; /* Adjust the width as needed */
	min-height: 100px;
}

.leaflet-popup-content .custom-icon{
	top: 25px;
	cursor: pointer;
}

.leaflet-popup-content .custom-icon-label{
	width: unset;
	margin-left: unset;
}

.leaflet-popup .leaflet-popup-content-wrapper{
	background-color: #ffffffb3;
}

.leaflet-popup .leaflet-popup-tip{
	background: #ffffffb3;
}

/* search card */
.search-card .card-header {
	border-bottom: none;
}
.search-card .btn-search {
	display: flex;
	align-items: center;
	padding: 5px 17px;
	border: 1px solid rgba(0, 0, 0, .125);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.8);
	color: #2125298f;
	cursor: pointer;
	width: 100%;
}

.search-card .btn-search i {
	margin-right: 10px
}

.searchModal .search-entry {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	border: 1px solid rgba(0, 0, 0, .125);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.8);
	color: #2125298f;
	cursor: pointer;
	width: 100%;
	font-size: 18px;
}

	.searchModal .search-entry i {
		margin-right: 10px
	}

	.searchModal .search-entry input {
		width: 100%;
		border: none;
		outline: none;
	}

/* settings modal */	
#settingsModal .ceme-table th{
	position: sticky;
	top: -1px;
	background-color: white !important;
	z-index: 1;
}
