
        /* ===== RESET / BASE ===== */
        :root {
            --primary: #a48e00;
            --gold: #ffd300;
            --gold-hover: #e6be00;
            --bg: linear-gradient(180deg, #000000 0%, rgba(71, 64, 0, 1) 5%, rgb(164 142 0) 100%);
            --white: #ffffff;
            --container-bg: #625606;
            --item-bg: #786a08;
            --red: #c0392b;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            padding: 40px 20px; margin: 0; min-height: 100vh;
            background: var(--bg); background-attachment: fixed; color: #fff;
        }

        .search-container { 
            max-width: 1100px; margin: auto; background-color: var(--container-bg); 
            padding: 35px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
        }
		
		/* Versão dentro das definições */
		.version-item .version-text {
			color: #ffed95;
			font-size: 12px;
			font-weight: bold;
			opacity: 0.8;
			flex: 1; /* para ocupar o espaço restante e alinhar à esquerda */
			text-align: center;
		}

        .header { border-bottom: 2px solid var(--gold); margin-bottom: 25px; padding-bottom: 20px; }

        /* ===== TOP WRAPPER (agora com containers colapsáveis) ===== */
        .top-wrapper { 
            display: flex; 
            gap: 20px; 
            margin-bottom: 25px; 
            align-items: flex-start; 
            flex-wrap: wrap;
        }

        /* ===== ESTILOS COMUNS PARA CONTAINERS COLAPSÁVEIS ===== */
        .collapsible-container {
            background: rgba(0,0,0,0.2);
            border: 1px solid var(--gold);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .collapsible-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            height: 40px;
            background: rgba(0,0,0,0.3);
            color: var(--gold);
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            font-size: 14px;
        }

        .collapsible-header .toggle-arrow {
            font-size: 14px;
            line-height: 1;
            transition: transform 0.2s, color 0.2s;
            color: var(--gold);
        }

        .collapsible-header:hover .toggle-arrow {
            transform: scale(1.2);
            color: #fff;
        }

        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

        .collapsible-container.expanded .collapsible-content {
            max-height: 800px;
        }

		/* Container específico para municípios (largura fixa) */										   
        #municipiosCollapse {
            flex: 0 0 360px;
            max-width: 100%;
        }

        /* Container específico para filtros (ocupa o restante) */										   
        #filtrosCollapse {
            flex: 1;
            min-width: 280px;
            max-width: 560px;
        }

        /* Mantém os estilos originais da coluna de municípios */										   
        .municipio-column {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 15px;
            padding-bottom: 11px;
        }

        .municipio-images {
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            background: transparent; /* já tem fundo no container pai */
            padding: 0;
            border: none;
            justify-content: flex-start;
        }

        .municipio-img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            cursor: pointer;
            border-radius: 8px;
            padding: 5px;
            background: rgba(255,255,255,0.1);
            transition: var(--transition);
            border: 2px solid transparent;
        }
        .municipio-img:hover {
            transform: scale(1.1);
            background: rgba(255,211,0,0.2);
        }
        .municipio-img.selected {
            border-color: var(--gold);
            background: rgba(255,211,0,0.3);
            box-shadow: 0 0 15px var(--gold);
        }

																			 
        .loading {
            min-height: 24px;
            line-height: 24px;
            text-align: center;
            color: var(--gold);
            font-weight: bold;
            font-size: 12px;
            background-color: rgba(0,0,0,0.3);
            border-radius: 6px;
            padding: 2px 8px;
            transition: background-color 0.2s;
            margin-top: 5px;
        }

        /* MENSAGEM DE LOADING / HOVER - COM ALTURA FIXA E SEMPRE VISÍVEL */								
        .filtros-box {
            width: 100%;
            box-sizing: border-box;
            background: transparent; /* fundo já no container */
            padding: 15px;
            border: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .filtros-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }
        .filtros-box hr {
            border: none;
            border-top: 1px solid rgba(255,211,0,0.3);
            margin: 5px 0;
        }

        .filter-btn { 
            display: flex; align-items: center; gap: 6px; 
            padding: 6px 12px; border-radius: 15px; border: 1px solid var(--gold); 
            background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; 
            transition: var(--transition); color: #ffed95; white-space: nowrap;
        }
        .filter-btn img { width: 14px; height: 14px; filter: brightness(0) saturate(100%) invert(94%) sepia(19%) saturate(836%) hue-rotate(334deg) brightness(106%) contrast(101%); transition: var(--transition); }
        .filter-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.4); border-color: #fff; color: #fff; }
        .filter-btn:hover img { filter: brightness(0) invert(1); }
        .filter-btn.active { background: var(--gold) !important; color: #333 !important; transform: translateY(0); }
        .filter-btn.active img { filter: brightness(0) contrast(1); } 

        /* Botão especial de favoritos (coração vermelho) */
        .filter-btn.favoritos-btn img {
            filter: none !important;
        }
        .filter-btn.favoritos-btn.active img {
            filter: none !important;
        }

        /* ----- Botão Marcadores (ícone vermelho) ----- */
        .filter-btn.marcadores-btn img {
            filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7470%) hue-rotate(360deg) brightness(103%) contrast(115%) !important;
        }
        .filter-btn.marcadores-btn:hover img {
            filter: brightness(0) invert(1);
        }
        .filter-btn.marcadores-btn.active {
            background: white !important;
            color: black !important;
            border-color: white !important;
        }
        .filter-btn.marcadores-btn.active img {
            filter: brightness(0);
        }
		
		/* LED indicator */
		.filter-btn {
			position: relative; /* necessário para o posicionamento absoluto da LED */
		}

		.led-indicator {
			position: absolute;
			top: 4px;
			right: 10px;
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background-color: #444; /* LED apagada */
			transition: background-color 0.2s ease, box-shadow 0.2s ease;
			box-shadow: 0 0 2px rgba(0,0,0,0.5);
			pointer-events: none; /* para não interferir com cliques no botão */
		}

		.led-indicator.led-green {
			background-color: #00cc00; /* verde aceso */
			box-shadow: 0 0 4px #00cc00;
		}

        /* ----- Seletor de modo (3 posições) ----- */
		.mode-selector {
			display: inline-flex;
			gap: 2px;
			background: #333;
			border-radius: 20px;
			padding: 2px;
			border: 1px solid var(--gold);
			height: 24px;
			box-sizing: border-box;
			margin-top: 7px;
		}

		.mode-btn {
			background: transparent;
			border: none;
			color: #ffed95;
			font-weight: bold;
			font-size: 8px;
			padding: 0 10px;
			border-radius: 16px;
			cursor: pointer;
			transition: all 0.2s ease;
			min-width: 36px;
			text-align: center;
			line-height: 20px;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.mode-btn:hover {
			background: rgba(255,211,0,0.2);
			color: #fff;
		}

		.mode-btn.active {
			background: var(--gold) !important;
			color: #333 !important;
		}

        .btn-limpar { 
            background-color: var(--red) !important; 
            color: white !important; 
            border: 1px solid var(--gold) !important; 
            flex: 0 0 auto;
            width: auto;
        }
        .btn-limpar:hover { background-color: #e74c3c !important; border-color: #fff !important; }

        /* ===== BARRA DE PESQUISA ===== */										   
        .search-bar-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
        .search-input-box { max-width: 350px; flex: 1; position: relative; }
        input[type="text"] { width: 85%; padding: 11px 18px; border-radius: 10px; border: 1px solid #ddd; font-size: 15px; color: #333; outline: none; }

        .custom-tooltip {
            position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%) translateY(10px);
            background-color: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px;
            font-size: 13px; font-weight: bold; opacity: 0; transition: all 0.3s ease; 
            z-index: 100; border: 1px solid var(--gold); pointer-events: none;
            white-space: nowrap; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }
        .custom-tooltip::after {
            content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
            border-width: 8px; border-style: solid; border-color: var(--gold) transparent transparent transparent;
        }
        .custom-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        /* container para input + limpar */												 
        .search-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }

        .actions-wrapper { display: flex; align-items: center; gap: 20px; margin-left: auto; }
        .results-counter { color: #ffed95; font-size: 13px; font-weight: 600; }
        .counter-number { font-size: 18px; color: var(--gold); font-weight: bold; }

        .switch { position: relative; display: inline-block; width: 80px; height: 24px; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; border-radius: 24px; border: 1px solid var(--gold); transition: .4s; }
        .slider:before { position: absolute; content: "MIN"; height: 18px; width: 35px; left: 3px; bottom: 2px; background-color: var(--gold); border-radius: 20px; color: #333; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: bold; transition: .4s; }
        input:checked + .slider:before { transform: translateX(37px); content: "MAX"; }

        /* ===== RESULTADOS ===== */									
        .result-shadow {
            margin-bottom: 20px;
            filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35)) drop-shadow(0 10px 14px rgba(0,0,0,0.28));
            transition: filter 0.25s ease, transform 0.25s ease;
            will-change: filter, transform;
        }
        .result-shadow:hover {
            filter: drop-shadow(0 7px 10px rgba(0,0,0,0.4)) drop-shadow(0 18px 24px rgba(0,0,0,0.32));
        }

        .result-item { 
            display: flex; align-items: stretch; padding: 20px; background-color: var(--item-bg);
            border-radius: 12px 12px 12px 0; margin-bottom: 20px; gap: 25px; transition: var(--transition);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid #8a7a0a;
            position: relative;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
            overflow: hidden;
        }
        .result-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
        .result-item::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 20px 0 0 20px;
            border-color: transparent transparent transparent var(--container-bg);
            filter: brightness(0.9);
            z-index: 2;
        }
        .result-item::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 0 20px 20px 0;
            border-color: transparent #5a4e05 transparent transparent;
            z-index: 2;
        }

        .municipio-watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            opacity: 0;
            pointer-events: none;
            transition: opacity 1s ease;
            height: 100%;
            width: auto;
            max-height: 200px;
        }
        .municipio-watermark img {
            height: 100%;
            width: auto;
            max-width: 100%;
            filter: brightness(0) saturate(100%) invert(91%) sepia(20%) saturate(6357%) hue-rotate(358deg) brightness(102%) contrast(107%);
        }
        .result-item:hover .municipio-watermark {
            opacity: 0.08;
        }

        .thumb-column { 
            flex: 0 0 150px; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            gap: 8px; 
            z-index: 3;
            position: relative;
        }
        .thumb-link { 
            width: 150px; height: 100px; border: 4px solid var(--gold) !important; 
            border-radius: 10px; overflow: hidden; display: block; position: relative;
            box-shadow: 0px 13px 10px -11px #000000, inset 0px 10px 9px -7px #ffffff !important;
            transition: 0.3s;
            cursor: default;
            z-index: 3;
        }
        .thumb-link.clickable { 
            cursor: pointer;
        }
        /* ESTILO PARA BORDA DE FAVORITOS COM GRADIENTE */											   
        .thumb-link.favorite-border {
            border: 4px solid transparent !important;
            border-radius: 10px;
            background: linear-gradient(#786a08, #786a08) padding-box,
                        linear-gradient(345deg, #ff0000, #ff0000, #ff5500, #ffd700) border-box;
        }
        .thumb-link::after {
            content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%);
            opacity: 0.4; transition: 0.3s; pointer-events: none;
        }
        .thumb-link.clickable:hover { border-color: #fff !important; transform: scale(1.05) rotate(-2deg); }
        .thumb-link.clickable:hover::after { opacity: 1; }
        .thumb-img { width: 100%; height: 100%; object-fit: cover; }

        .thumb-toggle-indicator {
            position: absolute;
            bottom: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 16px;
            font-weight: 900;
            line-height: 1;
            padding-bottom: 1px;
            z-index: 4;
            transition: all 0.3s ease;
            pointer-events: none;
        }
        .thumb-link.clickable:hover .thumb-toggle-indicator {
            color: #fff;
            background-color: rgba(0, 0, 0, 0.9);
        }

        .favorite-indicator {
            position: absolute;
            bottom: 8px;
            left: 8px;
            width: 20px;
            height: 20px;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gold);
            font-size: 16px;
            font-weight: 900;
            line-height: 1;
            z-index: 5;
            transition: all 0.3s ease;
            cursor: pointer;
            pointer-events: auto;
        }
        .favorite-indicator:hover {
            background-color: rgba(0, 0, 0, 0.9);
        }
        .favorite-indicator.favorito {
            color: red;
        }

        .rating-stars { 
            color: var(--gold); 
            font-size: 16px; 
            letter-spacing: 1px; 
            white-space: nowrap; 
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            z-index: 3;
            position: relative;
        }
        .star-empty { color: rgba(255, 255, 255, 0.2); }

        .result-content { 
            flex: 1; 
            display: flex; 
            flex-direction: column;
            padding-right: 25px;
            position: relative;
            z-index: 3;
        }
        .result-content::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 1px;
            background: linear-gradient(to bottom, 
                transparent 0%, 
                rgba(255, 211, 0, 0.3) 15%, 
                rgba(255, 211, 0, 0.5) 50%, 
                rgba(255, 211, 0, 0.3) 85%, 
                transparent 100%);
        }

        .category-label { 
            color: var(--gold); 
            font-size: 11px; 
            font-weight: 800; 
            text-transform: uppercase; 
            display: flex; 
            align-items: center; 
            margin-bottom: 4px; 
            z-index: 3;
            position: relative;
        }
        .category-label img { width: 22px; height: 22px; margin-right: 8px; filter: brightness(0) contrast(1) invert(1); }

        .scene-title { 
			font-size: 19px; font-weight: bold; color: #fff; margin: 0 0 8px 0; 
			text-shadow: 0px 1px 2px #000000;
			display: flex;
			align-items: center;
			flex-wrap: wrap;      /* mantido para permitir quebra */
			gap: 10px;            /* mantido para espaçamento */
			z-index: 3;
			position: relative;
		}

		.title-text {
			flex: 0 1 auto;       /* não força crescimento, mas permite quebra */
			white-space: normal;  /* quebra de linha dentro do span */
		}

        .special-logos-right {
            position: absolute;
            top: 0;
            right: 45px;
            display: flex;
            align-items: center;
            z-index: 4;
            height: 28px;
        }
        .special-logos-container {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 4px 7px;
            margin-bottom: 6px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 211, 0, 0.4);
            border-radius: 8px;
            transition: all 0.2s ease;
            backdrop-filter: blur(5px);
        }
        .special-logos-container:hover {
            border-color: rgba(255, 211, 0, 0.8);
            background: rgba(0, 0, 0, 0.4);
        }
        .action-links-container {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 4px 7px;
            margin-bottom: 6px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 211, 0, 0.4);
            border-radius: 8px;
            transition: all 0.2s ease;
            backdrop-filter: blur(5px);
        }
        .action-links-container:hover {
            border-color: rgba(255, 211, 0, 0.8);
            background: rgba(0, 0, 0, 0.4);
        }
        .special-logo-img {
            height: 24px;
            width: auto;
            max-width: 100px;
            object-fit: contain;
            filter: brightness(0) invert(1) drop-shadow(0px 1px 1px rgba(0,0,0,0.5));
            transition: transform 0.2s ease;
        }
        .special-logo-img:hover {
            transform: scale(1.05);
        }
        .special-logo-img-link {
            display: inline-flex;
            text-decoration: none;
            line-height: 0;
            padding: 4px;
            border-radius: 6px;
            transition: all 0.2s ease;
        }
        .special-logo-img-link:hover {
            background-color: var(--gold);
        }
        .special-logo-img-link:hover .special-logo-img {
            filter: brightness(0) contrast(1);
        }
        .logo-separator {
            width: 1px;
            height: 20px;
            background: rgba(255, 211, 0, 0.3);
        }

        .scene-desc { 
            font-size: 14px; 
            color: #e0e0e0; 
            margin-top: 6px; 
            line-height: 1.4;
            z-index: 3;
            position: relative;
            transition: all 0.3s ease;
        }

        /* ESTILOS PARA BOTÃO DE EXPANDIR/COLAPSAR DESCRIÇÃO */												  
        .expand-btn {
            cursor: pointer;
            color: var(--gold);
            font-size: 18px;
            text-align: center;
            margin-top: 5px;
            transition: transform 0.2s, color 0.2s;
            user-select: none;
            z-index: 3;
            position: relative;
        }
        .expand-btn:hover {
            transform: scale(1.2);
            color: #fff;
        }
        .desc-container {
            position: relative;
            transition: all 0.3s ease;
        }
        .desc-container .scene-desc {
            transition: max-height 0.3s ease, opacity 0.2s ease;
            overflow: hidden;
        }
        .desc-container[data-expanded="false"] .scene-desc {
            max-height: 100px;
            opacity: 1;
        }
        .desc-container[data-expanded="true"] .scene-desc {
            max-height: 500px;
            opacity: 1;
        }

        @keyframes bounceBottom {
            0% { transform: translateY(0); }
            30% { transform: translateY(-8px); }
            50% { transform: translateY(4px); }
            70% { transform: translateY(-2px); }
            100% { transform: translateY(0); }
        }
        .desc-container.bounce {
            animation: bounceBottom 0.5s cubic-bezier(0.28, 0.84, 0.42, 1);
        }

        .btn-visitar {
            text-decoration: none; padding: 5px 25px; border-radius: 10px; font-weight: bold;
            color: #837500; background-color: var(--gold); transition: 0.3s;
            box-shadow: 0px 13px 10px -11px #000000, inset 0px 10px 9px -7px #ffffff !important;
            align-self: center; border: none; cursor: pointer; text-align: center;
            z-index: 3;
            position: relative;
        }
        .btn-visitar:hover { background: #fff; color: #333; transform: scale(1.05); }

        .side-actions { 
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
            align-items: stretch; 
            min-width: 140px;
            padding-left: 25px;
            z-index: 3;
            position: relative;
        }

        /* Estilo base para botões circulares */												 
        .btn-icon-circle { 
            width: 36px; 
            height: 36px; 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            background: rgba(0,0,0,0.2); 
            border: 1px solid rgba(255,211,0,0.3);
            color: #ffed95;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.2s ease;
            align-self: center;
            position: relative;
            z-index: 3;
            cursor: pointer;
        }
        .btn-icon-circle:hover { 
            background: var(--gold); 
            color: #000; 
            border-color: #fff;
            transform: scale(1.1);
        }
        .btn-icon-circle img {
            width: 18px;
            height: 18px;
            filter: brightness(0) saturate(100%) invert(94%) sepia(19%) saturate(836%) hue-rotate(334deg) brightness(106%) contrast(101%);
            transition: all 0.2s ease;
        }
        .btn-icon-circle:hover img {
            filter: brightness(0) contrast(1);
        }

        /* Botão específico para eliminar favoritos */														
        .btn-eliminar-fav {
            border-color: var(--red) !important;
        }
        .btn-eliminar-fav img {
            filter: none !important;
        }
        .btn-eliminar-fav:hover {
            background: var(--red) !important;
            border-color: #fff !important;
        }
        .btn-eliminar-fav:hover img {
            filter: brightness(0) invert(1) !important; /* ícone branco */
        }

        .icon-actions-row {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 8px;
        }

        .tech-filters-row { display: flex; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,211,0,0.2); }

		mark {
			display: inline;
			padding: 0;
			margin: 0;
			background: rgba(255, 245, 157, 0.7);
			color: #333;
			border-radius: 2px;
			text-shadow: none;
			white-space: normal;
		}

        .municipio-mini-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            margin-bottom: 8px;
        }
        .municipio-mini-logo img {
            height: 30px;
            width: auto;
        }
        .municipio-mini-logo span {
            color: #ffed95;
            font-size: 12px;
            font-weight: bold;
        }

        @media (max-width: 480px) {
            .municipio-mini-logo img {
           /*     display: none; */
            }
        }
        
        .plus {
            margin-bottom: 2px;
        }

        /* ===== ESTILOS DO MAPA (inalterados, cabeçalho já com 40px) ===== */								
        .map-container {
            margin-bottom: 25px;
            border: 1px solid var(--gold);
            border-radius: 12px;
            background: rgba(0,0,0,0.2);
            overflow: hidden;
            transition: height 0.5s ease;
            height: 40px;
            position: relative; /* necessário para posicionamento absoluto interno */
        }
        .map-container.expanded {
            height: 440px;
        }

        .map-fixed-tooltip {
            position: absolute;
            background: #3e3704;
            color: white;
            padding: 10px;
            border-radius: 8px;
            border: 2px solid var(--gold);
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            z-index: 3000;
            max-width: 200px;
            font-size: 12px;
            text-align: center;
            backdrop-filter: blur(5px);
            pointer-events: none; /* não interfere com cliques no mapa */

            top: 80%;
            left: 50%;
            transform: translate(-50%, -50%);

            /* Fade in/out */							 
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .map-fixed-tooltip.show {
            opacity: 1;
            visibility: visible;
        }
        .map-fixed-tooltip img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin-bottom: 5px;
            border: 1px solid var(--gold);
        }
        .map-fixed-tooltip span {
            display: block;
            font-weight: bold;
        }

        .map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 15px;
            height: 40px; /* altura fixa igual aos outros cabeçalhos */
            background: rgba(0,0,0,0.2);
            color: var(--gold);
            font-weight: bold;
            cursor: pointer;
            user-select: none;
        }
        .map-header span {
            font-size: 14px;
        }
        .map-header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .toggle-arrow {
            font-size: 18px;
            line-height: 1;
            transition: transform 0.2s, color 0.2s;
            color: var(--gold);
        }
        .map-header:hover .toggle-arrow {
            transform: scale(1.2);
            color: #fff;
        }
        .map-controls {
            display: flex;
            gap: 8px;
            cursor: default;
        }
        .map-controls button {
            background: #2f2a03;
            border: 1px solid var(--gold);
            color: var(--gold);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        .map-controls button:hover {
            background: var(--gold);
            color: #333;
            transform: scale(1.1);
        }
        .map-wrapper {
            width: 100%;
            height: 400px;
            background: transparent;
            clip-path: inset(0 0 0 0);
            transition: clip-path 0.5s ease;
        }
        .map-container:not(.expanded) .map-wrapper {
            clip-path: inset(0 0 100% 0);
        }
        .map-wrapper object {
            width: 100%;
            height: 100%;
            pointer-events: all;
        }

        /* ===== ESTILOS DO MODAL DO QR CODE ===== */													 
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background: var(--container-bg);
            padding: 30px;
            border-radius: 20px;
            border: 2px solid var(--gold);
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            position: relative;
            text-align: center;
        }
        .modal-close {
            position: absolute;
            top: 5px;
            right: 15px;
            font-size: 30px;
            cursor: pointer;
            color: var(--gold);
            transition: color 0.2s;
            line-height: 1;
        }
        .modal-close:hover {
            color: #fff;
        }
        #qrCodeImage {
            max-width: 100%;
            height: auto;
            border: 4px solid var(--gold);
            border-radius: 10px;
            background: #fff;
            padding: 10px;
            cursor: pointer;
        }
		.qr-buttons {
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			gap: 12px;
			margin-top: 20px;
		}

		.qr-buttons .btn-guardar-qr {
			flex: 1;              /* distribui o espaço igualmente */
			min-width: 140px;     /* garante uma largura mínima, mesmo em ecrãs muito pequenos */
			justify-content: center;
			text-align: center;
		}
        .modal-title {
            color: var(--gold);
            margin-top: 0;
            margin-bottom: 15px;
            font-size: 1.5em;
            padding: 0 20px; /* simétrico para centralizar corretamente */
        }
        .modal-caption {
            color: #ffed95;
            font-size: 12px;
            margin-top: 10px;
        }
        /* Botão para guardar imagem */										
        .btn-guardar-qr {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--gold);
            border-radius: 20px;
            padding: 8px 16px;
            margin-top: 15px;
            cursor: pointer;
            color: var(--gold);
            transition: all 0.2s;
            font-size: 14px;
        }
        .btn-guardar-qr:hover {
            background: var(--gold);
            color: #333;
        }
        .btn-guardar-qr:hover img {
            filter: brightness(0) contrast(1);
        }
        .btn-guardar-qr img {
            width: 18px;
            height: 18px;
            filter: brightness(0) saturate(100%) invert(94%) sepia(19%) saturate(836%) hue-rotate(334deg) brightness(106%) contrast(101%);
        }
        .marcador-lousa {
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0% { r: 15; opacity: 0.7; }
            50% { r: 20; opacity: 0.4; }
            100% { r: 15; opacity: 0.7; }
        }
        .gps-marker-btn.marcador-ativo {
            background: var(--gold) !important;
            border-color: #fff !important;
        }
        .gps-marker-btn.marcador-ativo img {
            filter: brightness(0) contrast(1);
        }
        
        /* Tooltip para marcadores */									 
        .marker-tooltip {
            position: fixed;  /* em vez de absolute */
            background: #3e3704;
            color: white;
            padding: 10px;
            border-radius: 8px;
            border: 2px solid var(--gold);
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
            z-index: 2000;
            display: none;
            pointer-events: none;  /* não interfere com o hover do círculo */
            max-width: 200px;
            font-size: 12px;
            text-align: center;
            backdrop-filter: blur(5px);
        }
        .marker-tooltip img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            margin-bottom: 5px;
            border: 1px solid var(--gold);
        }
        .marker-tooltip span {
            display: block;
            font-weight: bold;
        }
        
																  
        .side-actions .action-row .gps-marker-btn:not(.marcador-ativo) img {
            filter: brightness(0) saturate(100%) invert(45%) sepia(69%) saturate(5207%) hue-rotate(44deg) brightness(96%) contrast(102%);
        }

        /* Cor normal do ícone do botão de marcador (#837500) */											 
        .side-actions .action-row .gps-marker-btn.marcador-ativo {
            background-color: white !important;
            border-color: white !important;
        }

        .side-actions .action-row .gps-marker-btn.marcador-ativo img {
            filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7470%) hue-rotate(360deg) brightness(103%) contrast(115%) !important;
        }
        
        /* Container para a linha de ações (marcador + visite) */										   
        .side-actions .action-row {
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: center;
        }

        /* Estilo unificado para botões na action-row */												 
        .side-actions .action-row .btn-visitar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 36px;          /* altura fixa igual para ambos */
            padding: 0 25px;       /* apenas padding horizontal, o vertical é controlado pela altura */
            line-height: 1;        /* evita que o texto influencie a altura */
            box-sizing: border-box; /* garante que a altura inclui padding e borda */
        }

        /* Ajuste para o botão de marcador com ícone */														 
        .side-actions .action-row .btn-visitar img {
            width: 18px;
            height: 18px;
            filter: brightness(0); /* ícone preto por defeito */
        }

        /* Estado ativo: fundo branco, ícone vermelho */													 
        .side-actions .action-row .gps-marker-btn.marcador-ativo {
            background-color: white !important;
            border-color: white !important;
        }

        .side-actions .action-row .gps-marker-btn.marcador-ativo img {
            filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7470%) hue-rotate(360deg) brightness(103%) contrast(115%) !important;
        }

        /* ===== BOTÃO VOLTAR AO TOPO ===== */											   
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background-color: var(--gold);
            color: #333;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        .back-to-top:hover {
            transform: scale(1.1);
            background-color: #fff;
        }
  
		/* ===== GRUPO DE MARCADORES (apenas colapsado) ===== */

		#gruposMarcadoresContainer {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			pointer-events: none;
		}

		.grupo-marcadores {
			position: absolute;
			pointer-events: auto;
			cursor: pointer;
			background: #3e3704;
			color: white;
			border-radius: 8px;
			border: 2px solid var(--gold);
			box-shadow: 0 4px 15px rgba(0,0,0,0.5);
			font-size: 12px;
			text-align: center;
			backdrop-filter: blur(5px);
			transition: all 0.3s ease;
			z-index: 200;
			min-width: 30px;
			min-height: 30px;
			display: flex;
			align-items: center;
			justify-content: center;
			transform: translate(-50%, -50%);
		}

		.grupo-marcadores .grupo-content {
			padding: 10px;
			font-weight: bold;
			color: var(--gold);
		}

		.grupo-marcadores .grupo-contador {
			font-size: 14px;
			background: rgba(255,211,0,0.2);
			border-radius: 50%;
			width: 24px;
			height: 24px;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		/* Setas de navegação (mesmo estilo do tooltip, mas posicionadas fora) */
		.grupo-nav {
			position: absolute;
			transform: translateY(-50%) translateX(-50%);
			background: rgba(0,0,0,0.5);
			border: 1px solid var(--gold);
			color: var(--gold);
			border-radius: 50%;
			width: 24px;
			height: 24px;
			display: flex;
			align-items: center;
			justify-content: center;
			cursor: pointer;
			font-size: 16px;
			transition: all 0.2s;
			pointer-events: auto;
			z-index: 210;
		}

		.grupo-nav:hover {
			background: var(--gold);
			color: #333;
		}

		.grupo-nav.esquerda {
			left: -12px;
		}

		.grupo-nav.direita {
			right: -12px;
		}

		/* Destaque do marcador atual */
		.marcador-destacado image {
			filter: brightness(0) invert(1) !important;
			transition: filter 0.2s;
		}								  
														  
		  #mapFixedTooltip.show {
			pointer-events: auto; /* permite clicar no tooltip para fechar o grupo */
		} 
		
		.distancia-badge {
			background: rgba(0,0,0,0.5);
			color: var(--gold);
			font-size: 12px;
			padding: 4px 8px;
			border-radius: 20px;
			border: 1px solid var(--gold);
			margin-left: 10px;
			white-space: nowrap;j
		}
												
		/* Ícone info dentro da tooltip do mapa */
		.map-fixed-tooltip .info-icon {
			position: absolute;
			top: 15px;
			right: 15px;
			width: 20px;
			height: 20px;
			cursor: pointer;
			z-index: 10;
			pointer-events: none; /* para que o clique passe para a tooltip */
			filter: drop-shadow(2px 2px 2px black);
		}	

		.map-fixed-tooltip.group-mode {
			cursor: pointer;
		}		
   
	   .grupo-nav {
			transition: opacity 0.3s ease;
		}
		
		.result-item.destacado {
			background-color: #a5910b !important;
			transition: background-color 0.3s ease;
		}
		
		/* ===== GLOBAL TOOLTIP ===== */
		.global-tooltip {
			position: fixed;
			background: #333;
			color: #fff;
			padding: 8px 12px;
			border-radius: 20px;
			font-size: 13px;
			font-weight: 500;
			box-shadow: 0 4px 15px rgba(0,0,0,0.5);
			border: 1px solid var(--gold);
			z-index: 10000;
			pointer-events: none;
			white-space: nowrap;
			max-width: 250px;
			white-space: normal;
			word-wrap: break-word;
			text-align: center;
			opacity: 0;
			transition: opacity 0.2s ease;
			backdrop-filter: blur(5px);
			line-height: 1.4;
		}
		.global-tooltip.show {
			opacity: 1;
		}
		.global-tooltip::after {
			content: '';
			position: absolute;
			bottom: -6px;
			left: 50%;
			transform: translateX(-50%);
			border-width: 6px 6px 0;
			border-style: solid;
			border-color: var(--gold) transparent transparent transparent;
		}
		.global-tooltip.top::after {
			top: -6px;
			bottom: auto;
			border-width: 0 6px 6px;
			border-color: transparent transparent var(--gold) transparent;
		}
		.global-tooltip.left::after {
			left: 10px;
			right: auto;
			transform: none;
		}
		.global-tooltip.right::after {
			left: auto;
			right: 10px;
			transform: none;
		}
										 
		.weather-widget {
			display: flex;
			align-items: center;
			gap: 10px;
			background: rgba(0,0,0,0.3);
			border: 1px solid var(--gold);
			border-radius: 30px;
			padding: 5px 15px;
			margin: 10px 0;
			color: #ffed95;
			font-size: 14px;
		}

		.weather-widget img {
			width: 30px;
			height: 30px;
		}

		.weather-widget span {
			font-weight: bold;
		}


		.weather-main {
			display: flex;
			flex-direction: column;
			line-height: 1.3;
		}

		.weather-details {
			display: flex;
			gap: 15px;
			border-left: 1px solid rgba(255,211,0,0.3);
			padding-left: 15px;
		}


		.weather-details span::before {
			content: "💧";
			margin-right: 4px;
			font-size: 18px;
		}

		.weather-details span:last-child::before {
			content: "💨";
		}
		
		#weatherModal .modal-content {
			/* background: #807008; */
			background: linear-gradient(180deg, #242002 0%, rgba(71, 64, 0, 1) 25%, rgb(164 142 0) 90%);			/* para os ícones de nevoeiro serem visíveis */
		}

		/* ===== SECÇÃO DEFINIÇÕES ===== */
		#definicoesCollapse {
			flex: 1;
			min-width: 280px;
			max-width: 560px;
		}

		.definicoes-box {
			width: 100%;
			box-sizing: border-box;
			background: transparent;
			padding: 15px;
			border: none;
			display: flex;
			flex-direction: column;
			gap: 10px;
		}

		.definicoes-row {
			display: flex;
			flex-wrap: wrap;
			gap: 12px;
			align-items: center;
			justify-content: flex-start;
		}		

		.municipio-mini-logo {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 4px;
			margin-bottom: 8px;
		}
		.municipio-header {
			display: flex;
			align-items: center;
			gap: 8px;
		}
		.municipio-actions {
			display: flex;
			gap: 4px;
		}
		.municipio-actions img {
			width: 30px;
			height: 30px;
			cursor: pointer;
			transition: filter 0.2s;
		}
		.municipio-actions img:hover {
			filter: brightness(0) invert(1);
		}
		
		/* Switch para modo simples/detalhado */
		#toggleSimpleMode + .slider:before {
			content: "SIM";
			width: 35px;
		}
		#toggleSimpleMode:checked + .slider:before {
			content: "DET";
			transform: translateX(37px);
		}
		
		.search-container {
			opacity: 0;
			transition: opacity 1.0s ease;
		}

		.search-container.loaded {
			opacity: 1;
		}
		
		/* ===== MODO SIMPLES INI ===== */
		body.simple-mode .contact-phone,
		body.simple-mode .contact-email {
			display: none;
		}

		body.simple-mode .weather-info-icon,
		body.simple-mode .notes-icon {
			display: none;
		}

		body.simple-mode #btnImport,
		body.simple-mode #btnExport {
			display: none;
		}

		body.simple-mode .tech-filters-row .filter-btn[data-key="rota"],
		body.simple-mode .tech-filters-row .filter-btn[data-key="pedonal"],
		body.simple-mode .tech-filters-row .filter-btn[data-key="carro"] {
			display: none;
		}		
		
		/* Quando em modo simples, oculta completamente o container de ações do município */
		body.simple-mode .municipio-actions {
			display: none;
		}

		/* Opcional: garante que o cabeçalho fique centralizado */
		body.simple-mode .municipio-header {
			justify-content: center;
		}

		body.simple-mode .mode-selector {
			display: none;
		}

		body.simple-mode .led-indicator {
			display: none;
		}		
   
		/* ===== MODO SIMPLES END ===== */							 
												  
   
		/* ===== TOP WRAPPER ===== */
		.top-wrapper {
			display: flex;
			gap:20px;
			margin-bottom: 25px;
			align-items: flex-start;
			flex-wrap: wrap;
		}

		/* Municípios: largura fixa */
		#municipiosCollapse {
			flex: 0 0 360px;
			max-width: 100%;
		}

		/* Filtros: flexível, mas com min-width para não encolher demasiado */
		#filtrosCollapse {
			flex: 2 1 300px; /* cresce mais que os outros */
			min-width: 280px;
			max-width: 560px;
		}
		
		@media (max-width: 768px) { /* essencial para que a box dos filtros não se tripe em mobile */
			#filtrosCollapse {
				flex: 1 1 auto !important;
				min-width: 0 !important;
				max-width: 100% !important;
			}
		}

		/* Definições: largura baseada no conteúdo, com min-width reduzido */
		#definicoesCollapse {
			flex: 0 1 auto;
			min-width: 140px; /* suficiente para os controlos empilhados */
		}

		/* Conteúdo da definições */
		.definicoes-box {
			width: 100%;
			box-sizing: border-box;
			padding: 10px;
		}

		.definicoes-row {
			display: flex;
			flex-direction: column;
			gap: 8px;
			align-items: stretch;
		}

		.definicoes-row select {
			width: 100%;
			padding: 6px;
			border-radius: 6px;
			background: #333;
			color: #ffed95;
			border: 1px solid var(--gold);
			font-size: 12px;
		}

		.definicoes-row .toggle-container {
			width: 100%;
			display: flex;
			justify-content: flex-start;
		}

		.definicoes-row .switch {
			width: 80px;
		}

		.definicoes-item {
			display: flex;
			align-items: center;
			gap: 8px;
			width: 100%;
		}

		.definicoes-icon {
			width: 20px;
			height: 20px;
			filter: brightness(0) saturate(100%) invert(94%) sepia(19%) saturate(836%) hue-rotate(334deg) brightness(106%) contrast(101%);
			flex-shrink: 0;
		}

		.definicoes-item select {
			flex: 1;
			min-width: 0; /* permite que o select encolha se necessário */
		}

		.definicoes-item .toggle-container {
			flex: 1;
			display: flex;
			justify-content: flex-start;
		}

		/* Em ecrãs mais pequenos, empilhar tudo verticalmente */
		@media (max-width: 1000px) {
			.top-wrapper {
				flex-direction: column;
			}
			#municipiosCollapse,
			#filtrosCollapse,
			#definicoesCollapse {
				width: 100%;
				max-width: none;
				min-width: 0;
			}
		}
												  
		/* Intro.js – garantir contraste */
		.introjs-tooltip {
			background-color: #333 !important;  /* fundo escuro */
			color: #fff !important;              /* texto branco */ 
		}

		.introjs-tooltip-title {
			color: #fff7ab !important;       /* título dourado, se quiser manter o tema */
		}

		.introjs-tooltiptext {
			color: #fff !important;               /* texto da descrição a branco */
		}
		
		.introjs-destaques {
			font-weight: 900;
			color: #ffd300;
		}
		
		.introjs-tooltipbuttons {
			background: #22222280;
			border-radius: 0px 0px 10px 10px;
		}

		.introjs-button {
			color: #333 !important;                /* botões a escuro */
			background-color: var(--gold) !important;
			border: none !important;
			text-shadow: none !important;
		}

		.introjs-button:hover {
			background-color: #fff !important;
			color: #333 !important;
		}		  
						
		.introjs-tooltip.introjs-right, .introjs-tooltip.introjs-left, .introjs-tooltip.introjs-top-left-aligned, .introjs-tooltip.introjs-bottom-left-aligned {
			border: var(--gold) solid;
			border-radius: 10px;
		}
		
		.introjs-arrow.left {
			border: transparent 9px solid !important;
			border-right-color: var(--gold) !important;
			left: -19px !important;
		}
		
		.introjs-arrow.right {
			border: transparent 9px solid !important;
			border-left-color: var(--gold) !important;
			right: -19px !important;
		}
		
		.introjs-arrow.top {
			border: transparent 9px solid !important;
			border-bottom-color: var(--gold) !important;
			top: -19px !important;
		}
		
		.introjs-arrow.bottom {
			border: transparent 9px solid !important;
			border-top-color: var(--gold) !important;
			bottom: -19px !important;
		}

		.introjs-skipbutton	{
			color: var(--gold) !important;
		}

		.introjs-skipbutton:hover {
			color: #fff !important;
		}		
		
		.introjs-prevbutton, .introjs-nextbutton {		
			font-weight: bold !important;
			border-radius: 25px !important;
			box-shadow: 0 0 0 .1rem #888 !important;			
		}	
		
		.introjs-prevbutton:hover, .introjs-nextbutton:hover  {		
			box-shadow: 0 0 0 .1rem #fff !important;
			background-color: var(--gold) !important;
		}

		.introjs-helperLayer {
			box-shadow: rgba(33, 33, 33, 0.8) 0px 0px 10px 2px, rgb(0 0 0 / 50%) 0px 0px 0px 5000px !important;
		}
		
		.introjs-bullets ul li a.active, .introjs-bullets ul li a:hover {
			background: var(--gold) !important;
		}
   
			 
						   
				
				  
					 
				   
					
					   
				   
								 
				   
					  
   
				   
								   
			   
   
					
									  
						  
   

        /* ===== MEDIA QUERIES ===== */									   
        @media (max-width: 1024px) {
            .search-container { padding: 25px; }
            .top-wrapper { flex-direction: column; }
            #municipiosCollapse { width: 100%; flex: 0 0 auto; }
            #filtrosCollapse { width: 100%; max-width: none; }
            .result-item { gap: 20px; }
            .thumb-column { flex: 0 0 130px; }
            .thumb-link { width: 130px; height: 90px; }
            .side-actions { min-width: 130px; padding-left: 20px; }
            .result-content { padding-right: 20px; }
            .special-logos-right { right: 40px; }
            .special-logo-img { height: 22px; }
            .plus { margin-bottom: 2px; }
            .map-wrapper { height: 400px; }
            .map-container.expanded { height: 460px; }
        }

        @media (max-width: 768px) {
            body { padding: 20px 15px; }
            .search-container { padding: 20px; }
            .search-bar-wrapper { flex-direction: column; align-items: stretch; gap: 15px; }
            .search-group { width: 100%; }
            .actions-wrapper { margin-left: 0; justify-content: space-between; width: 100%; }
            .result-item { flex-direction: column; gap: 15px; }
            .thumb-column { flex: 0 0 auto; width: 100%; align-items: center; }
            .thumb-link { width: 100%; max-width: 250px; height: 150px; }
            .result-content { padding-right: 0; width: 100%; min-height: 60px; }
            .result-content::after { display: none; }
            .special-logos-right { position: static; height: auto; margin-top: 10px; justify-content: flex-start; width: 100%; }
            .side-actions { min-width: 100%; align-items: center; margin-top: 10px; padding-left: 0; padding-top: 15px; border-top: 1px solid rgba(255,211,0,0.2); }
            .icon-actions-row { justify-content: center; width: 100%; }
            .scene-title { font-size: 17px; }
            .scene-desc { font-size: 13px; }
            .special-logo-img { height: 20px; }
            .special-logos-container, .action-links-container { margin-left: 0; gap: 8px; padding: 5px 8px; right: 0px; position: absolute; margin-top: 30px; }
            .plus { margin-bottom: 0px; }
            .map-wrapper { height: 300px; }
            .map-container.expanded { height: 360px; }
        }

        @media (max-width: 480px) {
            body { padding: 15px 10px; }
            .search-container { padding: 15px; }
            .header { padding-bottom: 15px; margin-bottom: 15px; }
            .top-wrapper { margin-bottom: 15px; }
            
            /* Forçar botões de filtro a 2 por linha (exceto os de exportar/importar) */				  
            .filtros-row .filter-btn:not(.btn-icon-circle) {
                flex: 0 0 calc(50% - 4px);
                box-sizing: border-box;
                justify-content: center;
            }
            
            .filter-btn { 
                padding: 5px 8px; 
                font-size: 11px; 
            }
            .filter-btn img { 
                width: 12px; 
                height: 12px; 
            }
            
            .search-bar-wrapper { gap: 10px; }
            
            .search-group {
                display: flex;
                align-items: center;
                gap: 8px;
            }
            .search-input-box {
                flex: 1;
                max-width: none;
            }
            .btn-limpar {
                flex: 0 0 auto;
                white-space: nowrap;
                padding: 5px 12px;
                font-size: 12px;
            }
            
            .actions-wrapper { flex-wrap: wrap; gap: 10px; }
            .results-counter { order: 1; }
            .toggle-container { order: 2; }
            .tech-filters-row { justify-content: center; flex-wrap: wrap; }
            .result-item { padding: 15px; }
            .thumb-link { max-width: 100%; height: 120px; }
            .btn-visitar { padding: 5px 20px; font-size: 14px; }
            .btn-icon-circle { width: 32px; height: 32px; }
            .btn-icon-circle img { width: 16px; height: 16px; }
            .icon-actions-row { gap: 6px; }
            .special-logos-right { margin-top: 8px; }
            .special-logos-container, .action-links-container { width: auto; gap: 6px; padding: 4px 6px; border-radius: 6px; }
            .special-logo-img { height: 18px; }
            .plus { margin-bottom: 0px; }
            .map-wrapper { height: 250px; }
            .map-container.expanded { height: 310px; }
        }

        @media (max-width: 360px) {
            .filter-btn span:not(.btn-limpar span) {
                display: none;
            }
            .filter-btn:not(.btn-limpar) {
                padding: 0;
                border-radius: 50%;
                width: 36px;
                height: 36px;
                justify-content: center;
                align-items: center;
            }
            .filter-btn:not(.btn-limpar) img {
                width: 18px;
                height: 18px;
                margin: 0;
            }
            .btn-limpar {
                width: auto;
                padding: 6px 12px;
                border-radius: 15px;
                flex: 0 0 auto;
                white-space: nowrap;
            }
            .btn-limpar span {
                display: inline;
            }
            .btn-icon-circle {
                width: 32px;
                height: 32px;
            }
            .category-label { font-size: 10px; }
            .scene-title { font-size: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
            .special-logos-right { width: 100%; }
            .special-logos-container, .action-links-container { width: auto; justify-content: center; }
            .thumb-link { height: 100px; }
            .special-logo-img { height: 16px; }
            .plus { margin-bottom: 0px; }
            .map-wrapper { height: 200px; }
            .map-container.expanded { height: 260px; }
        }

        @media (min-height: 800px) and (max-width: 768px) {
            body { min-height: calc(100vh - 40px); }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            body { padding: 10px; }
            .search-container { padding: 15px; }
            .result-item { flex-direction: row; padding: 15px; }
            .thumb-column { flex: 0 0 120px; }
            .thumb-link { width: 120px; height: 80px; }
            .side-actions { min-width: 120px; padding-left: 15px; }
            .result-content { padding-right: 15px; }
            .special-logos-right { right: 35px; }
            .special-logo-img { height: 20px; }
            .special-logos-container, .action-links-container { gap: 8px; padding: 4px 8px; }
            .map-wrapper { height: 250px; }
            .map-container.expanded { height: 310px; }
        }