:root {
	--marker-w: 28px;
	--marker-h: 44px;
	--marker-scale: 1.18;
	--ripple-opacity: .95;
	--ripple-size: 15px;
	--ripple-scale-end: 1.8;
	--layer-btn-street:url('../images/terrain_street.png');
	--layer-btn-satellite:url('../images/terrain_satellite.jpg');
}

#map-container { width: 100%; margin: 0; text-align: center; }

.tabs-menu { display: flex; gap: 10px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap; }
.tab-btn { font-family: 'Roboto'; display: flex; padding: 12px 25px; border: none; background:var(--bw_color_5); cursor: pointer; border-radius: 25px; font-weight: 500; font-size: 0.9em; transition: 0.3s; }
.tab-btn.active { background: #5F774B; color: white; box-shadow: 0 4px 10px rgba(66,133,244,0.3); }
.tab-btn svg { width: 18px; height: 18px; margin-right: 10px; }




.cards-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));; gap:var(--gap-lg); margin: 0 0 var(--pad_md) 0; }



.card { display: flex; flex-direction: column; height: 100%; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.card p { margin: 0 !important; }
.card svg { fill:#bfae90; width: 18px; height: 18px; }
.card .map-info { margin:0px 0 7px 0; font-size: 15px; font-weight: 500; gap: 20px; }


.map-info { display: flex; align-items: center; }
.map-info_time:before { content: ''; position: absolute; left:-12px; top:0; bottom: 0; width: 2px; background-color: currentColor; opacity: .5; }
.map-info_blk, .map-info_time { position: relative; display: flex; align-items: center; gap:4px; }





.show_on_map { cursor: pointer; transition: color .2s ease; }
.show_on_map:hover { color: var(--accent_color); }

.card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: center; }
.card-content { flex:1; padding:10px 12px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap:8px; }
.card-content h2 { margin: 0; font-size: 112%; font-weight: 600; color: #2c3e50; letter-spacing:-.2px; }
.card-content p { font-size: 90%; color: #666; line-height: 1.3; overflow: hidden; letter-spacing: -.3px; }
.map-link-btn { color: var(--primary_color); font-weight: bold; font-size:15px; cursor: pointer; }

.map-wrapper { width: 100%; aspect-ratio: 16 / 8; margin: 0 auto 50px; position: relative; display: flex; overflow: hidden; border: 1px solid #ccc; border-radius: 12px; }
@media (max-width: 768px) { .map-wrapper { aspect-ratio: 9 / 16; height: 80vh; border-radius: 0; } }
#map { height: 100%; flex: 1; z-index: 1; }

#side-panel::-webkit-scrollbar { width: 12px; }
#side-panel { scrollbar-width: thin; position: absolute; background: #fff; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2000; display: flex; flex-direction: column; overflow-y: auto; }
@media (min-width: 769px) { #side-panel { top: 0; right: -400px; width: 400px; height: 100%; border-left: 2px solid #ccc; } #side-panel.open { right: 0; } }
@media (max-width: 768px) { #side-panel { bottom: -100%; left: 0; width: 100%; height: 55%; border-radius: 20px 20px 0 0; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); } #side-panel.open { bottom: 0; } }

#info-content { display: flex; flex-direction: column; flex-grow: 1; }
.btn-close { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; max-height: 35px; max-width: 35px; min-width: 35px; min-height: 35px; padding:0; background: white; border-radius: 50%; border: none; font-size: 20px; cursor: pointer; z-index: 2001; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }


.panel-info { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid #dadada; color: var(--custom_color_1); padding-left: var(--pad_xs); padding-right: var(--pad_xs); font-size: 14px; font-weight: 500; min-height: 42px; }
.panel-website a { align-items: center; gap: 5px; text-decoration: none; height:40px; display: inline-flex; color:inherit; padding-top: 2px; }
.panel-info .map-info { height: 35px; margin-top: 3px; gap: 8px; }
.panel-info svg { width:18px; height: 18px; fill:currentColor; }
.panel-title { font-size: 120%; font-weight: 500; color: #2e2e2e; text-align: start; }
.panel-img { width: 100%; height: 200px; object-fit: cover; }
.panel-text { flex:1; display: flex; flex-direction: column; justify-content: space-between; }
.panel-text p { text-align: start; font-size: 92%; line-height: normal; }
.panel-text a { position: sticky; bottom: 0; left: 0; right: 0; }
.panel-text a svg { width: 20px; height: 20px; margin: -2px 0 0 12px; }
/*
.directions-btn { display: block; text-align: center; background: var(--accent_color); color: white; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: bold; margin-top: 15px; }
*/
.map-filters-container { position: absolute; top: 15px; left: 15px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.controls-container { position: absolute; bottom: 25px; left: 15px; z-index: 1000; display: flex; gap: 8px; align-items: flex-end; }
.column { display: flex; gap: 8px; flex-direction: column; }
.custom-control { padding: 0; background: white; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); font-size: 18px; cursor: pointer; transition: 0.3s; border: none; }
.custom-control.off { opacity: 0.4; }
.custom-control svg { width: 55%; height: auto; margin: 0; padding: 0 0 1px 1px; }
.layer-btn-street {  background: white no-repeat center/24px; border-radius: 8px; background-size: cover; border: 1px solid #AFAFAF; background-image:var(--layer-btn-street); }
.layer-btn-sat { background: white no-repeat center/24px; border-radius: 8px; background-size: cover; border: 1px solid #AFAFAF; background-image:var(--layer-btn-satellite); }
.rect-btn { border-radius: 8px; font-weight: bold; }

/* Markers Styles */
.custom-div-icon { background: none; border: none; }
.marker-wrapper { position: relative; display: flex; justify-content: center; align-items: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.pin-image { width: var(--marker-w); height: var(--marker-h); position: absolute; bottom: 0; left: calc(var(--marker-w) / -2); }

.custom-div-icon.selected .marker-wrapper { transform: scale(var(--marker-scale)); z-index: 3000 !important; filter: brightness(1.2); }

.ripple { 
	position: absolute; 
	width: var(--ripple-size); 
	height: var(--ripple-size); 
	border-radius: 50%; 
	top: calc(var(--ripple-size) / -2); 
	left: calc(var(--ripple-size) / -2); 
	opacity: 0; 
	pointer-events: none; 
}
.ripple-red { background: rgba(203, 43, 62, var(--ripple-opacity)); }
.ripple-blue { background: rgba(43, 130, 203, var(--ripple-opacity)); }
.ripple-green { background: rgba(42, 173, 42, var(--ripple-opacity)); }
.ripple-gold { background: rgba(255, 215, 0, var(--ripple-opacity)); }
.ripple-orange { background: rgba(203, 132, 39, var(--ripple-opacity)); }
.ripple-black  { background: rgba(43, 43, 43, var(--ripple-opacity)); }
.ripple-grey   { background: rgba(123, 123, 123, var(--ripple-opacity)); }
.ripple-violet { background: rgba(156, 43, 193, var(--ripple-opacity)); }
.ripple-yellow { background: rgba(202, 196, 40, var(--ripple-opacity)); }

@keyframes ripple-effect { 
	0% { transform: scale(1); opacity: 0.8; } 
	100% { transform: scale(var(--ripple-scale-end)); opacity: 0; } 
}
.custom-div-icon.selected .ripple { animation: ripple-effect 1.4s ease-out infinite; }

.base-label { position: absolute; top: 3px; left: -46px; background: white; padding: 1px 5px; border-radius: 5px; font-weight: bold; font-size: 11px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.2); border: 1px solid #AEA157; color: #333; z-index: 5000 !important; }
/*
.base-label::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid white; }
*/