/* Common
----------------------- */
/*.frontpage * {
	border: none;
	padding: 0;
	margin: 0;

	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}*/

.clearfix,
.clearfix:before,
.clearfix:after {
	content: "";
	display: block;
	clear: both;
}

.leftside { float: left; }
.rightside { float: right; }

.helper-hidden {
	display: none !important;
}

.alert-message {
    background: #d00000;
	display: none;
    font-size: 1.1em;
    position: fixed;
    z-index: 1002;
    box-shadow: 0 0 15px #313030;
	width: 100%;
    left: 50%;
    top: 5%;
	max-width: 700px;
	padding: 10px;
    color: #fff;
	border-radius: 6px;
	transform: translate(-50%);
}

.alert-message.notice {
	background: #76b852;
}

.container-height-fix {
	min-height: 80vh;
}

/* Dialogs
----------------------- */
.dialog-box,
.dialog-box * {
	box-sizing: border-box;
}

.dialog-box-overlay {
	background: rgba(0,0,0,0.5);
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	z-index: 1000;
}

.dialog-box {
    background-color: #fff;
	box-shadow: 0 0 15px #313030;
    font-size: 1em;
    position: absolute;
    z-index: 51;
	animation: dialog-box 0.3s;
    animation-fill-mode: forwards;
	width: 100%;
    left: 50%;
    top: 5%;
	max-width: 900px;
	transform: translate(-50%);
}

.dialog-header {
	font-size: 1.1em;
    font-weight: bold;
    padding: 10px 5px;
    border-bottom: 1px solid #ccc;
    margin: 0 5px;
}

.dialog-header a {
	float: right;
	margin-right: 5px;
	font-size: 1.2em;
	margin-top: -2px;
}

.dialog-body {
	max-height: 520px;
	padding: 10px;
	position: relative;
    overflow: auto;
}

.dialog-body.message {
	font-size: 1.2em;
    padding: 20px 10px;
}

.dialog-buttons {
	border-top: 1px solid #ccc;
	margin: 0 5px;
	padding: 8px 4px;
	text-align: right;
}

.dialog-buttons a {
	margin-right: 3px;
}

.dialog-box .message-area textarea {
    height: 70px;
	outline: none;
	resize: none;
}

.dialog-box ul.item-graphics {
	margin: 15px 0;
}

.dialog-box ul.item-graphics li {
	padding: 4px;
	display: inline-block;
    width: 49%;
}

.dialog-box ul.item-graphics li.header {
	display: block;
	width: auto;
}

/* Photo Uploader
------------------------- */
.dialog-box .uploader-inline {
	text-align: center;
	padding: 20px;
}

.dialog-box .browser-button {
	position: relative;
    display: inline-block;
}

.dialog-box .browser-button button {
	display: inline-block;
	position: relative;
	cursor: pointer;
	z-index: 1;
}

.dialog-box .browser-button input[type=file] {
	position: absolute;
	left: 0;
    top: 0;
	opacity: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	z-index: 0;
}

.dialog-box .max-upload-size {
	margin-top: 10px;
}

.dialog-box .upload-inline-status {
	margin: 5% auto 0 auto;
	width: 50%;
}

.dialog-box .upload-inline-status,
.dialog-box .upload-drop-label,
.dialog-box .dialog-body.is-dragover .uploader-inline {
	display: none;
}

.dialog-box .upload-drop-label {
	font-size: 20px;
	position: absolute;
    left: 0;
    right: 0;
	text-align: center;
	top: 30%;
}

.dialog-box .dialog-body.is-dragover {
	outline: 2px dashed #ccc;
    outline-offset: -8px;
}

.dialog-box .dialog-body.is-dragover .upload-drop-label { display: block; }

.scroll-measure {
	position: absolute;
	top: -1000px;
	width: 100px;
	height: 100px;
	overflow: scroll;
	visibility: hidden;
}

.image-manager {
	list-style-type: none;
    margin: 10px 0 0 0;
}

.image-manager li {
	background-color: #fff;
	border-radius: 20px;
	box-shadow: 0px 0px 12px #ccc;
	box-sizing: border-box;
	display: inline-block;
	height: 100px;
	overflow: hidden;
    position: relative;
	margin: 0 1% 1% 0 !important;
    text-align: center;
	vertical-align: top;
	width: 100px !important;
}

.dialog-box .image-manager {
	margin-top: 0;
}

.image-manager label {
	margin-top: 10px;
}

.image-manager img {
	width: auto;
	height: 100%;
}

.image-manager .image {
	bottom: 3px;
	border-radius: 17px;
	left: 3px;
	overflow: hidden;
	position: absolute;
	right: 3px;
	top: 3px;
}

.image-manager .actions {
	background: #fff;
    border-top-left-radius: 20px;
    bottom: 0;
    font-size: 16px;
    padding: 6px 10px;
    position: absolute;
    right: 0;
}

.image-manager .actions > * {
	color: #90b7ff;
}

.image-manager .actions > *:hover {
	color: #235e9b;
}

.upload-progress-bar {
	background: #e8e8e8;
    width: 100%;
    height: 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.upload-progress-bar .inner {
	position: absolute;
    left: 0;
    width: 0;
    background: #2BA4DB;
    box-sizing: border-box;
    z-index: 1;
    height: 100%;
}

/* Pagination
------------------------- */
.frontpage .pagination {
	list-style-type: none;
	text-align: center;
}

.frontpage .pagination li {
	display: inline-block;
	margin: 0 2px;
}

.frontpage .pagination li:not(.ellipsis) span,
.frontpage .pagination li a {
	border: 1px solid #ccc;
	display: block;
	padding: 4px 8px;
}

.frontpage .pagination li.active span {
	background-color: #999;
    color: #fff;
}

/* Map
--------------------------------- */
.gm-style {
	color: #000;
}

.map-location-selector {
	height: 350px;
	margin-bottom: 10px;
}

.custom-clustericon {
	background: var(--cluster-color);
	color: #FFF;
	border-radius: 100%;
	font-weight: bold;
	font-size: 12px;
	display: flex;
	align-items: center;
}

.custom-clustericon::before, .custom-clustericon::after {
	content: '';
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;

	transform: translate(-50%, -50%);
	top: 50%;
	left: 50%;
	background: var(--cluster-color);
	opacity: 0.2;

	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
}

.custom-clustericon::before {
	padding: 7px;
}

.custom-clustericon::after {
	padding: 14px;
}

.custom-clustericon-1 {
	--cluster-color: #00A2D3;
}

.custom-clustericon-2 {
	--cluster-color: #FF9B00;
}

.custom-clustericon-3 {
	--cluster-color: #FF6969;
}

/* Rating
--------------------------------- */
.star-rating {
	display: inline-block;
	font-family: FontAwesome;
	line-height: 1;
    height: 1em;
	position: relative;
	width: 4.7em;
}

.star-rating:before,
.star-rating span:before {
    content: "\f005\f005\f005\f005\f005";
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating:before {
	opacity: .25;
}

.star-rating span {
	color: #ffca00;
    overflow: hidden;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1em;
}

.star-selector a {
    position: relative;
    height: 1em;
    width: 1em;
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
	font-size: 1.5em;
	float: left;
}

.star-selector a:before {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-family: FontAwesome;
    content: "\f005";
}

.star-selector a.active:before, 
.star-selector.selected a:not(.active):before,
.star-selector.selected a.active:before {
    color: #469c2b;
	opacity: 1;
}

.star-selector a:before,
.star-selector.selected a.active~a:before {
    color: #6d6d6d;
	opacity: .25;
}

/* Animations
------------------------- */
@keyframes dialog-box {
    0% {
        visibility: hidden;
        top: 0;
    }
    100% {
        visibility: visible;
        top: 5%;
    }
}

/* Responsive
-------------------------- */
@media only screen and (max-width: 1024px) {
	.dialog-body {
		max-height: 420px;
	}
}

@media only screen and (max-width: 768px) {
	.dialog-box {
		visibility: visible;
		animation: unset;
	}
	
	.dialog-body {
		max-height: 85dvh;
	}
}

@media only screen and (max-width: 425px) {
	.dialog-box ul.item-graphics li {
		display: block;
		width: auto;
	}
}