.leaflet-control-display-collapsed{
 	width: 44px;
	height: 44px;
	display:grid;
	place-items: center;
}

.leaflet-control-display-form {
	padding: 0.7em;
    display: grid;
    grid-template-columns: 1fr;
	grid-gap: 5px;
	width:min-content;
}

.leaflet-control-display-pad{
	padding: 0.7em;
}

.leaflet-control-display-label {
	text-align: right;
    grid-column: 1 / 2;
}
 
.leaflet-control-display-input, .leaflet-control-display-input-number,  .leaflet-control-display-submit {
    grid-column: 2 / 3;
}

.leaflet-control-display-input-number{
	width: 90px
}

.leaflet-control-display-container-expanded{
	display:block;
	float:left;
}

.leaflet-control-display-icon-close{

	display:block;
	float:right;
	width: 22px;
	height: 22px;
	margin: 5px;
	background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d=%22M3.636 2.224l14.142 14.142-1.414 1.414L2.222 3.638z%22/%3E%3Cpath d=%22M17.776 3.636L3.634 17.778 2.22 16.364 16.362 2.222z%22/%3E%3C/svg%3E");

}
textarea {
	word-break: break-all;
}

/* Ground item spawn map markers */
.item-spawn-icon {
    background: none !important;
    border: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

.item-spawn-icon-img {
	width: 28px;
	height: 29px;
    image-rendering: pixelated;
    display: block;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.item-spawn-icon-fallback {
    width: 16px;
    height: 16px;
	display: block;
    border-radius: 50%;
    background: #cc0000;
    border: 1.5px solid #660000;
}

.leaflet-control-region-filter {
	background: white;
	padding: 0.5em;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-control-region-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.leaflet-control-region-button {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	padding: 2px;
	cursor: pointer;
	line-height: 0;
}

.leaflet-control-region-button.is-disabled {
	opacity: 0.35;
	filter: grayscale(100%);
}

.leaflet-control-region-button-text {
	line-height: normal;
	padding: 3px 6px;
	font-size: 11px;
	font-weight: bold;
	color: #333;
	min-width: 26px;
	min-height: 26px;
}

.leaflet-control-region-icon {
	width: 26px;
	height: 26px;
	display: block;
}

.leaflet-control-display-region-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0.5em 0.7em 0 0.7em;
}

.leaflet-control-display-region-button {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	padding: 2px;
	cursor: pointer;
	line-height: 0;
}

.leaflet-control-display-region-button.is-disabled {
	opacity: 0.35;
	filter: grayscale(100%);
}

.leaflet-control-display-region-icon {
	width: 26px;
	height: 26px;
	display: block;
}

.leaflet-control-display-item-list {
	padding: 0.7em;
	border-top: 1px solid #ccc;
	max-height: 200px;
	overflow-y: auto;
}

.leaflet-control-display-item-list-title {
	padding: 0.5em 0 0.5em 0;
	font-weight: bold;
	font-size: 0.9em;
}

.leaflet-control-display-item-list-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.leaflet-control-display-item-list-item {
	padding: 0.4em 0.5em;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
	font-size: 0.9em;
	transition: all 0.2s;
}

.leaflet-control-display-item-list-item:hover {
	background-color: #e8f4f8;
	border-color: #0078d4;
}

.leaflet-control-display-item-list-item.is-selected {
	background-color: #0078d4;
	color: white;
	border-color: #005a9e;
	font-weight: bold;
}

.leaflet-control-allshops {
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.5);
	margin-top: 6px;
}

.leaflet-control-pickpocket {
	margin-top: 6px;
	width: 40px;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: visible;
}

.leaflet-control-pickpocket.is-expanded {
	width: 240px;
	background: #1a1200;
	border: 1px solid #6b5900;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.5);
	overflow: hidden;
}

.leaflet-control-allshops {
	width: 48px;
	margin-top: 6px;
	background: transparent;
	border: none;
	box-shadow: none;
	overflow: hidden;
}

.leaflet-control-pickpocket-btn,
.leaflet-control-allshops-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #1a1200;
	border: 1px solid #6b5900;
	color: #e8d5a0;
	text-decoration: none;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.15s, border-color 0.15s;
}

.leaflet-control-pickpocket-btn {
	width: 40px;
	height: 40px;
	justify-content: center;
	gap: 0;
	padding: 0;
	box-sizing: border-box;
	background: transparent;
	border: none;
	box-shadow: none;
}

.leaflet-control-allshops-btn {
	width: 48px;
	height: 48px;
	min-width: 48px;
	max-width: 48px;
	min-height: 48px;
	max-height: 48px;
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	line-height: 0;
}

/* Override Leaflet's .leaflet-bar a default white tile styling. */
.leaflet-control-allshops a.leaflet-control-allshops-btn {
	background: transparent !important;
	border: none !important;
	border-bottom: none !important;
}

.leaflet-control-pickpocket.is-expanded .leaflet-control-pickpocket-btn {
	width: 100%;
	justify-content: flex-start;
	gap: 8px;
	padding: 4px 8px;
}

.leaflet-control-pickpocket-btn:hover {
	background: transparent !important;
	border-color: transparent !important;
}

.leaflet-control-pickpocket-btn.is-active {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none;
}

.leaflet-control-allshops-btn:hover {
	background: transparent !important;
	border-color: transparent !important;
}

.leaflet-control-allshops-btn.is-active {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none;
}

.leaflet-control-allshops-btn:focus,
.leaflet-control-allshops-btn:focus-visible {
	outline: none;
	box-shadow: none;
}

.leaflet-control-pickpocket-icon,
.leaflet-control-allshops-icon {
	width: 20px;
	height: 20px;
	display: block;
	image-rendering: pixelated;
}

.leaflet-control-pickpocket-icon {
	width: 40px;
	height: 40px;
}

.leaflet-control-allshops-icon {
	width: 40px;
	height: 40px;
}

.leaflet-control-pickpocket-panel {
	border-top: 1px solid #3a2a00;
	background: #1a1200;
}

.leaflet-control-pickpocket-list {
	max-height: 240px;
	overflow-y: auto;
	background-color: #1e1500;
}

.leaflet-control-pickpocket-dot {
	color: #ffd700;
	font-size: 10px;
}

.pickpocket-npc-marker {
	filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 5px rgba(255, 215, 0, 0.45));
}

.popup-pickpocket-entry {
	margin: 2px 0;
}
