html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px;
}

/* #mainContent { */
/* 	padding-left: 20px; */
/* } */
#map_canvas {
	height: 100%;
	width: 100%;
	/* 	float: left; */
}

div.datawait {
	font-size: 10px;
	text-align: left;
}

div.datawait span {
	display: block;
	padding: 10px;
	margin-left: 5px;
}

div.datawait img {
	float: left;
}

/* Station Radio Box */
#legend {
	margin: 16px;
}

.staSelect {
	background: #f8f6f2;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	font-family: Arial, Helvetica, sans-serif;
	min-width: 140px;
}

.legendTitle {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1f2a33;
	margin-bottom: 8px;
}

.legendItem {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #1f2a33;
	margin-bottom: 6px;
}

.legendItem img {
	width: 20px;
	height: 20px;
}

.legendDivider {
	height: 1px;
	background: #e3e8ee;
	margin: 10px 0;
}

.legendRadio {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #1f2a33;
	margin-bottom: 6px;
	cursor: pointer;
}

.legendRadio input {
	cursor: pointer;
}

.gm-style .gm-style-iw-d {
	overflow: visible !important;
	max-height: none !important;
	background: #ffffff !important;
}
.gm-style .gm-style-iw-c {
	background: #ffffff !important;
	border-radius: 14px !important;
	padding: 0 !important;
}
.gm-style .gm-style-iw-t {
	background: #ffffff !important;
}

.gm-style .gm-style-iw-chr {
	height: 0px !important;
	padding: 0 !important;
	margin: 0 !important;
	background-color: #ffffff !important;
	background-image: none !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1 !important;
}
.gm-style .gm-style-iw-ch {
	background-color: #ffffff !important;
}
.gm-style .gm-ui-hover-effect {
	border-radius: 50% !important;
	width: 22px !important;
	height: 22px !important;
	top: 8px !important;
	right: 8px !important;
	background: rgba(84, 84, 93, 0.85) !important;
	background-image: none !important;
	opacity: 1 !important;
}

.gm-style .gm-ui-hover-effect:hover {
	background: #42474c!important;
}

.gm-style .gm-ui-hover-effect span {
	display: none !important;
}

.gm-style .gm-ui-hover-effect::after {
	content: "×";
	color: white;
	font-size: 18px;
	font-weight: bold;
	line-height: 16px;
	display: block;
	text-align: center;
}

.buoyPopup {
	display: flex;
	align-items: flex-start;
	width: 360px;
	padding-top: 14px;
	overflow: hidden;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.buoyPopupx {
	box-shadow: none;
	color: #515151;
	font-family: "Georgia", "Open Sans", Sans-serif;
	text-align: center;
	width: 100% !important;
	border-radius: 0;
	left: 0 !important;
	top: 20px !important;
}

.buoyThumb {
	flex: 0 0 110px;
	padding: 16px 0 16px 16px;
}

.buoyThumb a {
	display: block;
}

.buoyThumb img {
	display: block;
	width: 130px;
	height: 100%;
	object-fit: contain;
	background: #eef3f7;
	border-radius: 10px;
	padding: 0;
}

.buoyContent {
	flex: 1;
	min-width: 0;
	padding: 12px 16px 16px 14px;
}

.buoyName {
	text-align: left;
	padding: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	font-family: Arial, Helvetica, sans-serif;
}

.buoyName a {
	color: #1f3a4d;
	text-decoration: none;
}

.buoyName a:hover {
	color: #005ea2;
	text-decoration: underline;
}
.buoyCoords {
	padding: 0 0;
	margin-top: 4px;
	margin-bottom: 0;
	font-size: 13px;
	color: #4f5b66;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 600;
}
#latLongLabel, #updated-label {
	font-weight: 400;
}

.buoyHistory {
	text-align: left;
	padding: 12px 0 2px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	font-style: normal;
	font-family: Arial, Helvetica, sans-serif;
	color: #4f5b66;
}

.buoyData {
	padding: 0;
	padding-top: 4px;
	font-family: Arial, Helvetica, sans-serif;
}

.dataRow {
	background: #f4f7fa;
	border: 1px solid #dbe4ea;
	border-radius: 8px;
	padding: 8px 10px;
	margin-bottom: 6px;
	margin-top: 8px;
}
.dataRow:first-child {
	margin-top: 4px;
}

.dataRow:last-child {
	margin-bottom: 0;
}

.dataLabel {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #596673;
	margin-bottom: 4px;
}

.dataValue {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #111111;
}

.hypUpdated {
	padding: 0 0;
	margin-bottom: 0px;
	font-size: 13px;
	color: #4f5b66;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 600;
}
.hypNoData {
	font-size: 13px;
	color: #4f5b66;
	padding: 0;
	margin: 0;
	margin-top: 4px;
}
/*  
.propertymap .gm-style-iw .img_wrapper {
	height: 150px;
	overflow: hidden;
	width: 100%;
	text-align: center;
	margin: 0px auto;
}*/
/* Ultra-compact legend for small screens */
@media (max-width: 600px) {

	#legend {
		margin: 4px !important;
		right: 0 !important;
	}

	.staSelect {
		background: #f8f6f2;
		border-radius: 0 !important;
		padding: 6px 6px !important;
		min-width: 0;
		max-width: 130px;
		box-shadow: 0 4px 10px rgba(0,0,0,0.12);
	}

	.legendTitle {
		font-size: 10px;
		margin-bottom: 4px;
		letter-spacing: 0.04em;
	}

	.legendItem {
		font-size: 10px;
		gap: 4px;
		margin-bottom: 3px;
		padding-left: 4px;
	}

	.legendItem img {
		width: 14px;
		height: 14px;
	}

	.legendDivider {
		margin: 5px 0;
	}

	.legendRadio {
		font-size: 10px;
		gap: 4px;
		margin-bottom: 2px;
	}

	.legendRadio input {
		transform: scale(0.8);
	}
}

@media (max-width: 600px) {
.gm-style .gm-style-iw-d {
		max-height: 320px !important;
		overflow-y: auto !important;
	}
	.buoyPopup {
		display: block;
		width: 160px;
		max-height: 320px;
		overflow-y: auto;
		padding-top: 0;
max-height: none;
		overflow: visible;
	}

	.buoyThumb {
		flex: none;
		padding: 12px 12px 6px;
		text-align: center;
	}

	.buoyThumb img {
		width: 100%;
		max-height: 120px;
		height: auto;
		object-fit: contain;
	}

	.buoyContent {
		padding: 8px 12px 12px;
	}

	.buoyName {
		font-size: 17px;
		padding-bottom: 5px;
	}

	.dataRow {
		padding: 6px 8px;
		margin-bottom: 5px;
	}

	.dataValue {
		font-size: 14px;
	}

	.buoyHistory {
		padding-top: 8px;
	}
}