:root {
	--background: #f8f8f8;
	--text-color: #222;
	--primary-color: #76D2F7;
	--border-faint: #e4e4e4;
	--border-visible: rgba(0, 0, 0, .25);

	--nav-bg: rgba(0, 0, 0, .5);

    --link-color: #000;
	--link-underline: rgba(0, 0, 0, .5);
    --link-color-fade: rgba(0, 0, 0, .35);

	--map-marker-text-color: #eee;

	--success: rgba(0, 255, 0, .25);
	--error: rgba(255, 100, 100, .25);

	--input-bg: rgba(255, 255, 255, .35);

	--content-pad: 1.75rem;

	font-size: 10px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	background-color: var(--background);
	height: 100%;
}
body {
	background-color: var(--background);
	color: var(--text-color);
	font-family: sans-serif;
	font-size: 1rem;
    height: 100%;
}

header {
	align-items: center;
	background: rgba(0, 0, 0, .5);
	backdrop-filter: blur(16px);
	display: flex;
	flex-direction: row;
	padding: 0 1.5rem 0 0;
    position: fixed;
    width: 100%;
    z-index: 150;
}
.screen_stuff header {
	position: sticky;
	top: 0;
}

h1 {
	background: transparent url(./images/logo.png) 1rem center no-repeat;
	background-size: auto;
	background-size: 3rem auto;
	color: #eee;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.35;
	padding: 1.2rem 0 1rem 5rem;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .75), 0 1px 0 rgba(0, 0, 0, .25);
}
h1 span {
	color: #eee;
}
h1 a {
	display: block;
	text-decoration: none;
}
h2 {
	font-size: 1.5rem;
	font-weight: 200;
	padding: 0 1rem 0 0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .5), 0 1px 0 rgba(0, 0, 0, .5);
}
#content h2 {
	font-weight: 800;
	text-shadow: none;
}
header h2 { color: #eee; }
header h2 a { color: #eee; text-decoration: none; }
header h2 a:hover { text-decoration: underline; }
h3 {
	font-size: 1.6rem;
	font-weight: 400;
	padding: 2.5rem 0 .5rem;
}
h4 {
	font-size: 1.5rem;
	font-weight: 300;
	opacity: .75;
	padding: 0 0 .25rem;
}

a {
	color: var(--link-color);
}

hr {
	background-color: var(--border-faint);
	border: 0 none;
	height: 1px;
	margin: 2rem 0;
}

#msg {
	backdrop-filter: blur(16px);
	font-size: 1.35rem;
	line-height: 1.2;
	margin: 2rem 1rem;
	opacity: 1;
	padding: 1rem 1.5rem;
	position: absolute;
	top: 4rem;
	transition: opacity .25s ease-out;
	z-index: 200;
}
#msg.faded {
	opacity: 0;
}
#msg.status_2XX {
	background-color: var(--success);
}
#msg.status_1XX {
	background-color: var(--error);
}

#area {
	flex: 1;
	text-align: right;
}
#area h2 {
	padding: .25rem 0 0 0;
}

#map {
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
	transition: .25s height ease-out;
    width: 100%;
    z-index: 100;
}
.add #map {
	height: 50%;
}

#stuff {
	position: relative;
    z-index: 100;
}
#stuff img {
	background-image: linear-gradient(rgba(0, 0, 0, .85)), url(/images/stuff/cesar-fence-slats-5-6-pressure-85203697.jpg);
	background-size: cover;
	background-blend-mode: darken;
	display: block;
	height: auto;
	object-fit: contain;
	object-position: center;
	max-height: 100vw;
	width: 100%;
}
#stuff .info {
	font-size: 1.35rem;
	padding: 1rem 2rem 2rem;
}
#stuff .info .date_posted {
	float: right;
	margin: 0 0 1rem 1rem;
}
#stuff .info ul {
	font-size: 1.75rem;
	line-height: 1.25;
	margin: 0 0 2rem 0;
	padding: 0 0 0 1.25rem;
}
#stuff .info ul li {
	padding: .5rem 0;
}
#stuff .info p {
	margin: 0 0 2rem 0;
}
#stuff .info p i {
	opacity: .75;
}
#stuff #mini_map {
	border: 2px solid var(--border-visible);
	height: 250px;
	width: 100%;
}

.close_btn {
	aspect-ratio: 1;
	background: #fff url(./images/icon-close.svg) center no-repeat;
	background-size: 75%;
	border-radius: 1.5rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
	position: fixed;
	right: 1.5rem;
	top: 6rem;
	width: 3rem;
}

.leaflet-control-container {
	display: none;
}

.marker-cluster span {
	color: var(--map-marker-text-color);
}

.leaflet-popup-content {
	font-size: 1.35rem;
	margin: 1rem 1.5rem;
	padding-top: .25rem;
	width: 16rem;
}
.leaflet-popup-content img {
	aspect-ratio: 16/11;
	border: 1px solid rgba(0, 0, 0, .2);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
	display: block;
	margin: .5rem 0 1rem 0;
	object-fit: cover;
	object-position: center;
	width: 100%;
}
.leaflet-popup-content ul {
	max-height: 5.5rem;
	overflow: hidden;
	padding: 0 0 .5rem 1.25rem;
}
.leaflet-popup-content .stuff_details {
	display: block;
	text-align: center;
	margin: .5rem 0 0 0;
}

form {
	background-color: var(--border-faint);
	bottom: 0;
	color: var(--link-color);
	display: flex;
	flex-direction: column;
	font-size: 1.35rem;
	gap: 1rem;
	height: 0%;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	position: fixed;
	transition: .25s all ease-out;
	width: 100%;
	z-index: 200;
}
.add form {
	height: 50%;
	opacity: 1;
	overflow: auto;
	padding: 2rem;
}
.add form .close_btn {
	margin: -1rem -.5rem 0 0;
	top: auto;
	z-index: 200;
}
#center_marker {
	aspect-ratio: 1;
	border: 2px solid #2b82cb;
	border-radius: 1.5rem;
	display: none;
	position: absolute;
	left: calc(50% - 1.5rem);
	top: calc(25% - 1.5rem);
	width: 3rem;
	z-index: 150;
}
.add #center_marker {
	display: block;
}
#center_marker::before {
	background-color: #2b82cb;
	content: '';
	height: calc(100% + 10px);
	position: absolute;
	left: calc(50% - 1px);
	top: -5px;
	width: 2px;
}
#center_marker::after {
	background-color: #2b82cb;
	content: '';
	height: 2px;
	left: -5px;
	position: absolute;
	top: calc(50% - 1px);
	width: calc(100% + 10px);
}
form .field {}
form label {}
form input[type=text],
form input[type=email],
form input[type=password],
form textarea {
	appearance: none;
	border: 1px solid var(--border-faint);
	border-radius: 0;
	font-size: 1.35rem;
	padding: .5rem;
  	width: 100%;
}
form textarea:focus,
form input:focus {
    outline: none;
}
form label {
	display: block;
}
#field_loc {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.btn {
	background-color: var(--border-faint);
	border: 0 none;
	border-radius: 0;
	color: var(--text-state-off-current);
	cursor: pointer;
	display: inline-block;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.35;
	padding: 1rem 2rem .9rem;
	text-decoration: none;
}
.btn.primary {
	background-color: var(--primary-color);
	color: #222;
}

#content {
	flex: 1;
	font-size: 1.5rem;
	padding: 6rem 1.5rem 2rem;
	position: relative;
}

.actions a input[type=text],
.actions a textarea { display: none; }
.actions a {
	position: relative;
	transition: color .25s ease-out;
}
.actions a.success {
	color: var(--link-color-fade);
}
.actions a::after {
	aspect-ratio: 1;
	background: var(--link-color);
	content: '';
	height: 1.5rem;
	left: calc( 50% - .75rem );
	mask-image: url(./images/icon-check.svg);
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	opacity: 0;
	position: absolute;
	top: 0;
	text-shadow: 0 0 5px var(--input-bg);
	transform: opacity .25s ease-out;
	z-index: 50;
}
.actions a.success::after {
	opacity: 1;
}

footer {
	bottom: 1rem;
	left: calc(50% - 6.25rem);
	position: fixed;
	z-index: 150;
}
footer nav {
	align-items: center;
	display: flex;
	flex-direction: row;
	gap: .5rem;
}
footer nav a {
	aspect-ratio: 1;
	backdrop-filter: blur(16px);
	background: var(--nav-bg) center 1rem no-repeat;
	background-size: 2rem;
	color: #eee;
	font-size: 1.2rem;
    font-weight: 200;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	letter-spacing: 1px;
	padding: 0 0 .5rem;
	text-align: center;
	text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .75), 0 1px 0 rgba(0, 0, 0, .25);
	width: 6rem;
}
footer nav a.search { background-image: url(./images/nav-search.svg); }
footer nav a.add { background-image: url(./images/nav-add.svg); }
footer nav a span {}

/* dark mode */
@media (prefers-color-scheme: dark) {
	:root {
		--background: #181818;
		--text-color: #eee;
		--primary-color: #76D2F7;
		--border-faint: #383838;
		--border-visible: rgba(255, 255, 255, .25);

		--nav-bg: rgba(255, 255, 255, .1);

		--success: rgba(100, 255, 100, .25);
		--error: rgba(255, 100, 100, .25);

		--link-color: #fff;
		--link-underline: rgba(255, 255, 255, .75);
	    --link-color-fade: rgba(255, 255, 255, .35);
	}

	#content h2 {
		font-weight: 200;
		text-shadow: 0 1px 6px rgba(0, 0, 0, .5), 0 1px 0 rgba(0, 0, 0, .5);
	}

	.leaflet-layer,
	.leaflet-control-zoom-in,
	.leaflet-control-zoom-out,
	.leaflet-control-attribution {
		filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(100%);
	}
}

/* mobile */
@media screen and (max-width: 767px) {

}

/* tablet */

/* desktop */
@media screen and (min-width: 768px) {
	:root {
		--content-pad: 3rem;
	}

	header {
		width: 33%;
	}

	h2 {}

    #contain {
		margin: 0 auto;
		max-width: 83rem;
	}

	.leaflet-control-container {
		display: block;
	}
}