/* GLOBAL STUFF */

.theme{
    user-select: none;
}
.view{
    display: inline-block;
    border: 1px solid rgb(50,50,50);
    margin: 0 4px;
    border-radius: 5px;
    vertical-align: top;
    padding: 10px;
}
.panel{
    background: rgb(15, 15, 15);
    box-shadow: inset 0px 0px 10px black;
    border: 1px solid rgb(50,50,50);
    border-radius: 5px;
    margin: 10px 0;
    display: inline-block;
    width: 100%;
    padding: 10px;
}

.model-summary{
    margin: 2px 2px;
    vertical-align: top;
    font-size: .9rem;
}

.pop-item .model-summary{
    display: inline-block;
    width: auto;
    margin: 5px;
    max-width: 250px;
}
.pop-item .expl{
    text-align: center;
    margin-top:20px;
}
.model-summary .button.claim,
.model-summary .button.rm{
    font-size: .9rem;
}
.model-summary .button.claim{
    pointer-events: none;
    opacity: 0;
}
.model-summary:hover .button.claim{
    pointer-events: initial;
    opacity: 1;
}


.model-listing{
    font-size: .9rem;
}

a.action-button,
.action-button{
    color: var(--text);
    background: white;
    border: 1px solid;
    font-size: 1.5rem;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

#create-cove{
    /* padding: 2px 8px; */
    position: absolute;
    right: 0;
    top: 0;
}

#create-cove:hover{
    background: lightgrey;
}


/* MODEL SPECIFIC */
.summary-name{
    font-weight: bold;
    color: lightgrey;
}

.summary-desc{
    font-size: .9rem;;
}

.summary-created{
    font-size: .8rem;;
    text-align: right;
    margin-bottom: 5px;
}
.model-summary .button.rm{
    margin-top: 10px;
    background: linear-gradient( maroon, #100606 )
}
.model-summary .button.set{
    font-size: .9rem;
    margin: 0 2px;
}
.item-expl{
    color: lightblue;
}



#find-place input{
    width: 100%;
}
#my-places,
#find-place{
    display: inline-block;
    vertical-align: top;
    padding: 0 10px;
}
#my-places{
    width: 250px;
}
#find-place{
    /* width: calc( 100% - 260px ); */
    max-width: 500px;
    width: 100%;
}
#find-place input{
    /* background: rgba(0,0,0,.7) */
}
.is-mobile #my-places,
.is-mobile #find-place{
    width: 100%;
}

#splash-logo{
    opacity: .2
}


.cove-king{
    position: absolute;
    right: 5px;
    font-size: 1.7rem;
    top: -7px;
}

.cove-search-row.has-desc .model-listing{
    max-width: calc( 100% - 50px );
    margin-left: 10px;
}

.model-listing .cove-name{
    font-weight: bold;
}
.model-listing .cove-desc{
    padding-left: 5px;
    font-style: italic;
}

#room-coves h4 .help{
    margin-left: 20px;
}
#room-coves h4{
    position: relative;
}

.dash-help{
    margin-left: 20px;
}



/* MAP - NYC fast loading - merged header into layer-panel, plain */
#map-wrap{
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: row;
}
body.dashboard #content{
	padding-left: 0 !important;
	padding-top: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	height: 100vh;
	overflow: hidden;
}
body.dashboard #header{
	display: none !important;
}
body.dashboard.menu-hidden #content{
	padding-left: 0 !important;
}
body.dashboard.menu-hidden #layer-panel{
	display: none;
}
#map{
	flex: 1;
	height: 100vh;
	width: 100%;
	background: #e8e8e8;
}
#layer-panel{
	width: 300px;
	background: white;
	border-left: 1px solid #ccc;
	overflow-y: auto;
	padding: 12px;
	height: 100vh;
	z-index: 999;
}
#panel-nav{
	padding: 8px 0;
	margin-bottom: 8px;
}
#panel-nav .menu-item{
	padding: 6px 0;
}
#panel-nav hr,
#layer-panel hr{
	border: 0;
	border-top: 1px solid #ddd;
	margin: 8px 0;
}
/* Global vs User layers — visually distinct sections */
.nav-section{
	border-radius: 8px;
	padding: 10px 10px 8px;
	margin-bottom: 10px;
	margin-top: 30px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.09);
	border: 1px solid #dee2e6;
}
.layer-list{
	max-height: calc( 50vh - 200px );
	overflow-y: auto;
}
#global-mappas-section{
	background: #f8f9fa;
	border: 1px solid #e9ecef;
}
#user-layers-section{
	background: #ffffff;
}
.section-title{
	font-size: .95rem;
	margin: 0 0 2px;
	letter-spacing: .02em;
}
.section-hint{
	font-size: .75rem;
	color: #6c757d;
	margin-bottom: 8px;
}



#global-mappa-list .global-mappa-row{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border: 1px solid #e9ecef;
	background: white;
	border-radius: 6px;
	margin-bottom: 8px;
	cursor: pointer;
}
#global-mappa-list .global-mappa-row:last-child{ margin-bottom: 0; }
#global-mappa-list .global-mappa-row.disabled-layer{ opacity: .55; }
#global-mappa-list .global-mappa-row input[type=checkbox]{ width: 18px; height: 18px; flex-shrink: 0; }
.global-mappa-text{ flex:1; min-width:0; }
.global-mappa-name{ font-size: .9rem; font-weight: 600; }
.global-mappa-desc{ font-size: .75rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#layer-panel-header,
#global-mappas-header{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
}
#layer-panel-header h4,
#global-mappas-header h4{
	margin: 0;
}
#find-mappa-row,
#add-mappa-row{
	margin-bottom: 12px;
}
#layer-panel #find-layer,
#layer-panel #add-layer{
	/* font-size: .85rem; */
	font-weight: bold;
}
.mappa-row{
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 6px;
	border: 1px solid #e5e5e5;
	margin-bottom: 8px;
	position: relative;
	background: #fbfbfb;
	cursor: pointer;
}
.mappa-row.selected{
	border: 1px solid black;
	font-weight: bold;
}

.mappa-row input[type=checkbox]{
	width: 18px;
	height: 18px;
}
.layer-name{
	flex: 1;
	font-size: .9rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* border: 1px solid; */
}
.mappa-row .button.small{
	font-size: .7rem;
	padding: 2px 6px;
	top: -8px;
}
.layer-settings-btn{
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	flex-shrink: 0;
}
.layer-settings-btn img{
	width: 18px;
	height: 18px;
	opacity: .7;
	display: block;
}
.layer-settings-btn:hover{
	background: rgba(0,0,0,.08);
}
.layer-settings-btn:hover img{
	opacity: 1;
}
.layer-settings-wrap{
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.layer-settings-row{
	display: flex;
	align-items: center;
	gap: 10px;
}
.layer-settings-label{
	flex: 1;
	font-size: .85rem;
	font-weight: 600;
	min-width: 110px;
}
.layer-color-input{
	width: 36px;
	height: 28px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 4px;
	flex-shrink: 0;
	cursor: pointer;
}
.layer-color-text{
	max-width: 90px;
	font-size: .85rem;
}
.layer-settings-meta{
	border-top: 1px solid #eee;
	padding-top: 10px;
}
.layer-settings-actions{
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}
.layer-border-input{
	flex: 1;
	min-width: 0;
}
.layer-settings-save{
	font-weight: 600;
}




#panel-nav{
	display: block;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}
#panel-auth{
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: right;
}
#panel-auth .menu-item{
	padding: 6px 0;
}
#auth-toggle{
	/* font-weight: 600; */
	/* background: #7b7b7b; */
	/* color: #fff; */
	/* border-radius: 6px; */
	/* padding: 6px 14px !important; */
	/* line-height: 1.2; */
}
#auth-toggle a{
	/* color: #fff; */
	/* text-decoration: none; */
	/* font-we */
}
#panel-auth .menu-item.register{
	font-size: .85rem;
	text-decoration: underline;
}
#auth-standalone{
	display: none;
}
#dark-toggle{
	max-width: 25px;
	display: none;
}

#gear{
	text-align: left;
	padding-bottom: 20px;
	padding-left: 10px;
	position: fixed;
	right: 0;
	top: 10px;
	right: 250px;
	/* width: 300px; */
	z-index: 999;
	/* border: 1px solid; */

	display: none;
}
#gear img{
	width: 30px;
	cursor: pointer;
}
#gear img:hover{
	background: rgba(0, 0, 0, .1);
}



.base-layer-list label{
	width: 100%;
	margin: 10px 0;
}
.base-layer-list input[type=checkbox]{
	width: 30px;
	height: 30px;
}

.edit-layer .model-form-Mapview{
	background: rgba(0,0,0,.1);
	border-radius: 5px;
}
.edit-layer .model-form-Mapview .boolean{
	display: inline-block;
	width: auto;
	margin-right: 10px;
}
.edit-layer .model-form-Mapview .boolean label{
	padding: 2px 0;
}
.edit-layer .model-form{
	padding-left: 0;
	/* padding-top: 0; */
}
.edit-layer .left-panel{
	padding-left: 0;
}
.edit-layer input[type=submit]{
	position: absolute;
	bottom: 10px;
	left: 10px;
}
.edit-layer form{
	/* height: 400px; */
}
.edit-layer input[name=style]{
	
}


.drag-icon{
	position: absolute;
	top: 10px;
	left: 10px;
	max-width: 25px;
}

.edit-layer .modal-content{
	padding-top: 50px;
}

.global-mappa-text{
	display: inline-block;
	vertical-align: middle;
	padding-left: 10px;
	max-width: calc( 100% - 50px );
}

.layer-edit{
	width: 25px;
	cursor: pointer;
	display: none;
	background: lightgrey;
	border-radius: 4px;
	padding: 2px;
}
.selected .layer-edit{
	display: inline-block;
}


#toolbox{
	position: fixed;
	top: calc( 100vh - 50px );
	left: 0;
	z-index: 99;
	transition: .3s;
	background: white;
	border: 1px solid grey;
	/* height: 150px; */
	padding-right: 20px;
	display: inline-block;
}
#toolbox.is-picker{
	/* height: 220px; */
}
/* #toolbox.toggled{
	top: calc( 100vh - 150px );
} */
#toolbox.toggled.is-picker{
	top: calc( 100vh - 220px );
}
.toolbox-toggle{
	position: absolute;
	top: -5px;
	left: 0;
	padding: 2px;
	cursor: pointer;
	/* border: 1px solid blue; */
	width: 50px;
	height: 50px;
	opacity: .9;
	user-select: none;
	transform-origin: 50% 50%;
	transform: scaleY( 1 );
	transition: .5s;
}
#toolbox.toggled .toolbox-toggle{
	transform: scaleY( -1 );
}
.toolbox-toggle,
.toolbox-name,
.toolbox-set-name{
	cursor: pointer;
}
.toolbox-name{
	display: inline-block;
	padding: 5px 10px 5px 60px;
	font-weight: bold;
	width: 100%;
	text-align: left;
}
.toolbox-set-name{
	text-align: left;
	padding-left: 60px;
}
.toolbox-content{
	padding: 20px 10px 10px 10px;
	text-align: left;
}

.layer-style-preview{
	width: 150px;
	height: 150px;
	border: 1px solid;
	cursor: pointer;
	border-radius: 5px;
}

.layer-style-selector{
	max-width: 150px;
	border: 1px solid;
	margin: 0 5px;
	cursor: pointer;
}
.layer-style-selector:hover{
	background: lightgrey;
}
.edit-layer .layer-style-preview  img{
	max-width: 150px
}
.edit-layer .layer-style-preview{
	overflow: hidden;
}

.tool-wrap{
	width: 70px;
	height: 90px;
	/* border: 2px solid #cac9c9; */
	margin: 0 5px;
	cursor: pointer;
	overflow:hidden;
	text-align: center;
}
.tool-wrap:hover{
	background: lightgrey;
	border: 2px solid grey;
}
.tool-wrap.selected{
	border: 2px solid black;
}
.tool-wrap .tool-liner{
	max-height: 70px;
	overflow: hidden;
}

#img-cursor{
	position: fixed;
	z-index: 99;
	border: 2px solid grey;
	/* padding: 10px; */
	width: 100px;
	height: 100px;
	overflow: hidden;
	pointer-events: none;
	background: white;
}
.dragging #img-cursor{
	display: inline-block;
}

.button.add-tool{
	padding: 14px 24px;
	font-size: 30px;
}

.add-tool-pop .expl{
	margin: 20px 0;
}

.icon-info .model-form-MapElement{
	/* background: lightgrey; */
	border: 2px solid grey;
	margin-top: 20px;
}

.add-tool-wrap{
	border-radius: 5px;
	/* background: green */
}
.add-tool-wrap .tool-liner{
	/* background: green */
}
.add-tool-wrap .add-tool{
	background: green
}

.model-form-MapView{
	padding-top: 0;
}
.model-form-MapView .model-detail:first-of-type{
	margin-top: 0;
	padding-top: 0;
}

.model-form-MapView .model-detail-listed,
.model-form-MapView .model-detail-hidden{
	display: inline-block;
	width: auto;
	margin: 0 10px;
}

.choose-tools .create-wrap{
	width: 300px;
	margin: 20px;
}

.choose-tools .toolset{
	border: 1px solid;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	margin: 2px;
}
.choose-tools .toolset:hover{
	background: lightgrey;
}
.choose-tools .result-section .contents{
	min-height: 40px;
}
.avbl-sets{
	margin: 20px 0;
}
.icon-preview-wrap{
	border: 1px solid var(--faint-line);
	display: inline-block;
	padding: 10px;
	margin-left: 10px;
}
.icon-preview{
	text-align: center;
	max-width: 150px;
}
.icon-preview-img{
	display: inline-block;
	max-width: 70px;
}
.icon-preview-name{
	font-weight: bold;
	margin: 5px 0;
}

.find-mapview .results{
	height: calc( 90vh - 180px );
	overflow-y: auto;
}

.edit-layer .model-detail-listed .help,
.edit-layer .model-detail-hidden .help{
	margin-top: 28px;
}

.mapview-uuid{
	position: absolute;
	top: 20px;
	right: 50px;
}
.mapview-uuid *{
	vertical-align: middle;
}
.mapview-uuid pre{
	/* padding: 0; */
	margin: 0;
	/* vertical-align: middle; */
}
.mapview-uuid .button{
	margin-left: 10px;
}

.find-mapview .model-summary:hover{
	background: lightgrey;
	cursor: pointer;
}

.panel-toggle{
	display: none;
}

.edit-layer .modal-expl{
	padding-top: 20px;
}

.icon-info .button.rm{
	float: right;
}

#social-tab{
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	background: white;
	border: 1px solid #bfbfbf;
	padding: 10px;
	text-align: left;
}
.save-wrap{
	/* text-align: left; */
}
.save-wrap .button{
	margin-top: 10px;
}
.public-link .copy{
	margin-left: 20px;
}

#social-tab .status{
	margin-bottom: 8px;
}

.results a.view-summary{
	border: 1px solid var(--faint-line);
	height: auto;
	width: 98%;
	display: inline-block;
	margin: 3px 0;
}

.results .column{
	max-width: calc( 50% - 100px );
	vertical-align: middle;
}
.results .view-user{
	width: 200px;
	/* border: 1px solid; */
}
.results .view-created{
	vertical-align: middle;
	width: 100px;
}
.icon-img-wrap{
	position: relative;
	display: inline-block;
}
.icon-img-wrap .edit-img{
	position: absolute;
	top: -8px;
	right: -8px;
	background: white;
	width: 25px;
	padding: 0;
}


@media screen and (min-width: 800px){
	.menu-hidden #toolbox,
	.menu-hidden #social-tab{
		display: none;
	}
}

@media screen and (max-width: 800px){
	#view-main,
	#view-p1{
		max-width: 100%;
		width: 100%;
	}
	#view-p1{
		position: relative;
		top: auto;
		margin-bottom: 10px;
	}
	#my-places h3{
		margin-bottom: 20px;
	}
	.find-place{
		position: fixed;
		top: 20px;
		right: 20px;
	}
	#splash-logo{
		display: none;
	}
	#chat-coves .model-summary,
	#room-coves .model-summary{
		margin: 6px 0;
	}
	#map-wrap{
		flex-direction: column;
		height: calc(100vh - 40px);
	}
	#map{
		height: 100vh;
		flex: none;
	}
	#layer-panel{
		width: 100%;
		height: 40vh;
		border-left: none;
		border-top: 1px solid #ccc;
		position: fixed;
		width: 80vw;
		height: 100vh;
		right: 0;
		border-left: 2px solid grey;
		z-index: 999;
		overflow-y: auto;
	}
	body.dashboard #content,
	body.dashboard.menu-hidden #content{
		padding-left: 0;
		padding-top: 40px;
	}

	.nav-section{
		/* border-radius: 8px;
		padding: 10px 10px 8px;
		margin-bottom: 10px;
		margin-top: 30px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.09);
		border: 1px solid #dee2e6; */
	}
	.layer-list{
		max-height: 1000px;
	}
	.search-wrap{
		padding: 5px;
		max-width: 50% !important;
	}

	.find-mapview .view-user{
		font-size: .9rem;
		padding-left: 20px;
		padding-top: 0px;
	}
	.edit-layer .modal-expl{
		padding-top: 50px;
	}
	.edit-layer .mapview-uuid{
		right: 0;
		left: auto;
		width: 90%;
	}
	.edit-layer .model-form-Mapview{
		margin-top:40px;
	}
	#social-tab{
		position: relative;
	}
	#social-tab *{
		font-size: initial;
	}

}

/* ANIMS & MEDIA */
@keyframes selectedSummary {
  0% {
    box-shadow: 0px 0px 5px orange inset;
  }
  50% {
    box-shadow: 0px 0px 10px orange inset;
  }
  100% {
    box-shadow: 0px 0px 5px orange inset;
  }
}