.tools-btn, .properties-btn, .map-print-btn, #btnLayers {
    width: 50px;
    height: 50px;
    font-size: 18px;
    border: 3px solid white;
    border-radius: var(--border-radius-small);
}

.map-fullscreen-toggle,
.bbx-map-container .map-fullscreen-toggle,
.bbx-map-container.map-fullscreen .map-fullscreen-toggle {
    width: 50px;
    height: 50px;
    font-size: 18px;
    border: 3px solid white;
    border-radius: var(--border-radius-small);
}

.modal-propiedades {
    max-width: 280px;
}

.modal-content-propiedades {
    max-width: 280px;
}

#kmlPropertiesModal {
    max-width: 320px;
}

@media (max-width: 768px) {
    .preview-tabs {
        flex-direction: column;
    }
    
    .preview-tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--medium-gray);
        border-right: 3px solid transparent;
        justify-content: flex-start;
    }
    
    .preview-tab-btn.active {
        border-right-color: var(--accent-color);
        border-bottom-color: transparent;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-map {
        height: 300px;
    }
    
    .table-container {
        max-height: 300px;
    }
    
    .format-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .modal-propiedades {
        max-width: 240px;
        top: 150px;
        right: 20px;
    }
    
    .modal-content-propiedades {
        max-width: 240px;
        padding: 8px;
    }
    
    #kmlPropertiesModal {
        max-width: 260px;
    }
    
    .snap-config-panel {
        top: 70px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .preview-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .preview-tab-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
        text-align: left;
        border-bottom: 1px solid var(--medium-gray);
        border-right: 3px solid transparent;
        justify-content: flex-start;
    }
    
    .preview-tab-btn.active {
        border-right-color: var(--accent-color);
        border-bottom-color: transparent;
    }
    
    .preview-tab-btn i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .preview-map {
        height: 250px;
    }
    
    .table-container {
        max-height: 250px;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.375rem 0.25rem;
    }
    
    .format-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
    
    .modal-propiedades {
        max-width: 200px;
        top: 120px;
        right: 15px;
    }
    
    .modal-content-propiedades {
        max-width: 200px;
        padding: 6px;
    }
    
    #kmlPropertiesModal {
        max-width: 220px;
    }
    
    .snap-config-panel {
        top: 60px;
        left: 12px;
    }
}

@media (max-width: 375px) {
    .preview-tab-btn {
        padding: 0.625rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .preview-tab-btn i {
        font-size: 0.875rem;
        margin-right: 0.375rem;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.125rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    .preview-map {
        height: 200px;
    }
    
    .table-container {
        max-height: 200px;
    }
    
    .data-table {
        font-size: 0.6875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.25rem 0.125rem;
    }
    
    .format-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    .modal-propiedades {
        max-width: 180px;
        top: 100px;
        right: 10px;
    }
    
    .modal-content-propiedades {
        max-width: 180px;
        padding: 4px;
    }
    
    #kmlPropertiesModal {
        max-width: 200px;
    }
    
    .snap-config-panel {
        top: 50px;
        left: 10px;
    }
}

@media (max-width: 320px) {
    .preview-tab-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .preview-tab-btn i {
        font-size: 0.8125rem;
        margin-right: 0.25rem;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .stat-card {
        padding: 0.375rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.625rem;
    }
    
    .preview-map {
        height: 180px;
    }
    
    .table-container {
        max-height: 180px;
    }
    
    .data-table {
        font-size: 0.625rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.125rem 0.0625rem;
    }
    
    .format-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .tools-btn, .properties-btn, .map-print-btn, #btnLayers {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .map-fullscreen-toggle,
    .bbx-map-container .map-fullscreen-toggle,
    .bbx-map-container.map-fullscreen .map-fullscreen-toggle {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .modal-propiedades {
        max-width: 160px;
        top: 90px;
        right: 8px;
    }
    
    .modal-content-propiedades {
        max-width: 160px;
        padding: 3px;
    }
    
    #kmlPropertiesModal {
        max-width: 180px;
    }
    
    .snap-config-panel {
        top: 45px;
        left: 8px;
    }
}