/**
 * Estilos públicos do WP Geo Posts Map
 * 
 * @package WP_Geo_Posts_Map
 * @author Dante Testa <https://dantetesta.com.br>
 * @since 1.0.1
 * @updated 07/01/2026 às 11:58
 */

/* ========================================
   Root Wrapper - Isolamento completo do tema
======================================== */
.wpgpm-root  {
    /* Reset de herança do tema */
    all: unset;
    display: block;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.5;
    color: var(--wpgpm-text, #1e293b);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wpgpm-root *,
.wpgpm-root *::before,
.wpgpm-root *::after  {
    box-sizing: inherit;
}

/* CSS Variables - Escopadas ao root */
.wpgpm-root  {
    --wpgpm-primary: #3b82f6;
    --wpgpm-primary-dark: #2563eb;
    --wpgpm-primary-light: #60a5fa;
    --wpgpm-secondary: #1e293b;
    --wpgpm-accent: #10b981;
    --wpgpm-danger: #ef4444;
    --wpgpm-background: #ffffff;
    --wpgpm-surface: #f8fafc;
    --wpgpm-text: #1e293b;
    --wpgpm-text-light: #64748b;
    --wpgpm-border: #e2e8f0;
    --wpgpm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --wpgpm-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --wpgpm-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --wpgpm-radius: 12px;
    --wpgpm-radius-sm: 8px;
    --wpgpm-radius-lg: 16px;
    --wpgpm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wpgpm-offcanvas-width: 340px;
}

/* ========================================
   Map Wrapper
======================================== */
.wpgpm-root .wpgpm-map-wrapper,
.wpgpm-root #wpgpm-map-wrapper  {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
}

.wpgpm-root .wpgpm-map  {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ========================================
   Toggle Button
======================================== */
.wpgpm-root .wpgpm-toggle-btn  {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--wpgpm-radius-lg);
    box-shadow: var(--wpgpm-shadow);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpgpm-root .wpgpm-toggle-btn:hover  {
    background: linear-gradient(135deg, var(--wpgpm-primary-dark) 0%, #1d4ed8 100%);
}

.wpgpm-root .wpgpm-toggle-icon  {
    display: flex;
    align-items: center;
}

.wpgpm-root .wpgpm-toggle-btn .wpgpm-badge  {
    background: white;
    color: var(--wpgpm-primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ========================================
   Results Floating
======================================== */
.wpgpm-root .wpgpm-results-floating  {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--wpgpm-radius-lg);
    box-shadow: var(--wpgpm-shadow);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.wpgpm-root #wpgpm-results-count  {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpgpm-primary);
}

.wpgpm-root .wpgpm-results-label  {
    font-size: 13px;
    color: var(--wpgpm-text-light);
}

/* ========================================
   Offcanvas
======================================== */
.wpgpm-root .wpgpm-offcanvas  {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--wpgpm-offcanvas-width);
    max-width: 90%;
    z-index: 1001;
    background: var(--wpgpm-background);
    box-shadow: var(--wpgpm-shadow-xl);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpgpm-root .wpgpm-offcanvas.open  {
    transform: translateX(0);
}

/* Offcanvas Header */
.wpgpm-root .wpgpm-offcanvas-header  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%);
    color: white;
}

.wpgpm-root .wpgpm-offcanvas-brand  {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpgpm-root .wpgpm-brand-icon  {
    font-size: 28px;
    line-height: 1;
}

.wpgpm-root .wpgpm-brand-text  {
    font-size: 20px;
    font-weight: 700;
}

.wpgpm-root .wpgpm-close-btn  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-close-btn:hover  {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Offcanvas Body */
.wpgpm-root .wpgpm-offcanvas-body  {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Filter Sections */
.wpgpm-root .wpgpm-filter-section  {
    margin-bottom: 24px;
}

.wpgpm-root .wpgpm-filter-title  {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wpgpm-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpgpm-root .wpgpm-filter-title svg  {
    color: var(--wpgpm-primary);
}

/* Search */
.wpgpm-root .wpgpm-search-wrapper  {
    position: relative;
}

.wpgpm-root .wpgpm-search-input  {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid var(--wpgpm-border);
    border-radius: var(--wpgpm-radius);
    font-size: 14px;
    color: var(--wpgpm-text);
    background: var(--wpgpm-background);
    transition: var(--wpgpm-transition);
    outline: none;
}

.wpgpm-root .wpgpm-search-input:focus  {
    border-color: var(--wpgpm-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.wpgpm-root .wpgpm-search-input::placeholder  {
    color: var(--wpgpm-text-light);
}

.wpgpm-root .wpgpm-search-btn  {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wpgpm-primary);
    color: white;
    border: none;
    border-radius: var(--wpgpm-radius-sm);
    cursor: pointer;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-search-btn:hover  {
    background: var(--wpgpm-primary-dark);
}

/* Checkbox Group */
.wpgpm-root .wpgpm-checkbox-group  {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}

.wpgpm-root .wpgpm-checkbox-group::-webkit-scrollbar  {
    width: 6px;
}

.wpgpm-root .wpgpm-checkbox-group::-webkit-scrollbar-track  {
    background: var(--wpgpm-surface);
    border-radius: 3px;
}

.wpgpm-root .wpgpm-checkbox-group::-webkit-scrollbar-thumb  {
    background: var(--wpgpm-border);
    border-radius: 3px;
}

.wpgpm-root .wpgpm-checkbox-item  {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--wpgpm-surface);
    border: 2px solid transparent;
    border-radius: var(--wpgpm-radius-sm);
    cursor: pointer;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-checkbox-item:hover  {
    background: #f1f5f9;
    border-color: var(--wpgpm-border);
}

.wpgpm-root .wpgpm-checkbox-item.active  {
    background: #eff6ff;
    border-color: var(--wpgpm-primary);
}

.wpgpm-root .wpgpm-checkbox-item input[type="checkbox"]  {
    display: none;
}

.wpgpm-root .wpgpm-checkbox-custom  {
    width: 20px;
    height: 20px;
    border: 2px solid var(--wpgpm-border);
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-checkbox-item.active .wpgpm-checkbox-custom  {
    background: var(--wpgpm-primary);
    border-color: var(--wpgpm-primary);
}

.wpgpm-root .wpgpm-checkbox-custom::after  {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.wpgpm-root .wpgpm-checkbox-item.active .wpgpm-checkbox-custom::after  {
    opacity: 1;
}

.wpgpm-root .wpgpm-checkbox-label  {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--wpgpm-text);
}

.wpgpm-root .wpgpm-checkbox-count  {
    font-size: 12px;
    color: var(--wpgpm-text-light);
    background: var(--wpgpm-border);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ========================================
   Checkbox Tree - Hierarquia de Taxonomias
======================================== */
.wpgpm-root .wpgpm-checkbox-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpgpm-root .wpgpm-term-wrapper {
    display: flex;
    flex-direction: column;
}

.wpgpm-root .wpgpm-term-parent {
    margin-bottom: 4px;
}

.wpgpm-root .wpgpm-term-child {
    margin-left: 28px;
    position: relative;
}

.wpgpm-root .wpgpm-term-child::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--wpgpm-border);
    border-radius: 1px;
}

.wpgpm-root .wpgpm-term-level-1 {
    margin-left: 28px;
}

.wpgpm-root .wpgpm-term-level-2 {
    margin-left: 56px;
}

.wpgpm-root .wpgpm-term-level-3 {
    margin-left: 84px;
}

.wpgpm-root .wpgpm-has-children {
    font-weight: 600;
    background: #f8fafc;
}

.wpgpm-root .wpgpm-toggle-children {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--wpgpm-primary);
    transition: transform 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.wpgpm-root .wpgpm-toggle-children:hover {
    color: var(--wpgpm-primary-dark);
}

.wpgpm-root .wpgpm-toggle-children.expanded {
    transform: rotate(90deg);
}

.wpgpm-root .wpgpm-toggle-children .wpgpm-toggle-icon {
    width: 16px;
    height: 16px;
}

.wpgpm-root .wpgpm-children-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* Offcanvas Footer - Botão Limpar Filtros sempre visível */
.wpgpm-root .wpgpm-offcanvas-footer  {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: white;
    border-top: 1px solid var(--wpgpm-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
    z-index: 10;
}

.wpgpm-root .wpgpm-reset-btn,
.wpgpm-root .wpgpm-apply-btn  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    height: 48px;
    /* Altura fixa para consistência */
    padding: 0 16px;
    border-radius: var(--wpgpm-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wpgpm-transition);
    white-space: nowrap;
    /* Evita quebra de linha */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpgpm-root .wpgpm-reset-btn  {
    background: white;
    color: var(--wpgpm-text-light);
    border: 2px solid var(--wpgpm-border);
}

.wpgpm-root .wpgpm-reset-btn svg  {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wpgpm-root .wpgpm-reset-btn:hover  {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--wpgpm-danger);
}

.wpgpm-root .wpgpm-apply-btn  {
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.wpgpm-root .wpgpm-apply-btn:hover  {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.wpgpm-root .wpgpm-apply-btn:active  {
    transform: translateY(0);
}

/* Offcanvas Overlay */
.wpgpm-root .wpgpm-offcanvas-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-offcanvas-overlay.visible  {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Empty State
======================================== */
.wpgpm-root .wpgpm-empty-state  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--wpgpm-radius-lg);
    box-shadow: var(--wpgpm-shadow-xl);
    max-width: 400px;
}

.wpgpm-root .wpgpm-empty-icon  {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.wpgpm-root .wpgpm-empty-state h3  {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--wpgpm-secondary);
}

.wpgpm-root .wpgpm-empty-state p  {
    margin: 0 0 24px;
    color: var(--wpgpm-text-light);
    font-size: 16px;
    line-height: 1.6;
}

.wpgpm-root .wpgpm-empty-reset  {
    padding: 12px 32px;
    background: var(--wpgpm-primary);
    color: white;
    border: none;
    border-radius: var(--wpgpm-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-empty-reset:hover  {
    background: var(--wpgpm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========================================
   Loading Overlay
======================================== */
.wpgpm-root .wpgpm-loading  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: opacity 0.5s ease;
}

.wpgpm-root .wpgpm-loading.hidden  {
    opacity: 0;
    pointer-events: none;
}

.wpgpm-root .wpgpm-spinner  {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Leaflet Customizations
======================================== */
.wpgpm-root .leaflet-popup-content-wrapper  {
    border-radius: var(--wpgpm-radius) !important;
    box-shadow: var(--wpgpm-shadow-lg) !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Controles do Leaflet - Direita, abaixo do contador */
.wpgpm-root .leaflet-top.leaflet-left  {
    left: auto !important;
    right: 50px !important;
    top: 120px !important;
}

.wpgpm-root .leaflet-control-zoom,
.wpgpm-root .leaflet-control-fullscreen {
    margin: 0 0 10px 0 !important;
}

.wpgpm-root .leaflet-popup-content  {
    margin: 0 !important;
    width: 280px !important;
}

.wpgpm-root .leaflet-popup-tip  {
    box-shadow: var(--wpgpm-shadow) !important;
}

/* Botão X de fechar o popup */
.wpgpm-root .leaflet-popup-close-button  {
    width: 28px !important;
    height: 28px !important;
    background: #dc2626 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: bold !important;
    line-height: 28px !important;
    text-align: center !important;
    top: 8px !important;
    right: 8px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4) !important;
    transition: all 0.2s ease !important;
}

.wpgpm-root .leaflet-popup-close-button:hover  {
    background: #b91c1c !important;
    transform: scale(1.1);
}

.wpgpm-root .wpgpm-popup  {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Imagem do popup - fullwidth */
.wpgpm-root .wpgpm-popup-image  {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



.wpgpm-root .wpgpm-popup-content  {
    padding: 16px;
}

.wpgpm-root .wpgpm-popup-title  {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wpgpm-secondary);
    line-height: 1.4;
}

.wpgpm-root .wpgpm-popup-excerpt  {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--wpgpm-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpgpm-root .wpgpm-popup-meta  {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wpgpm-root .wpgpm-popup-category  {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpgpm-root .wpgpm-popup-date  {
    font-size: 12px;
    color: var(--wpgpm-text-light);
}

.wpgpm-root .wpgpm-popup-link  {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%);
    color: white !important;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--wpgpm-radius-sm);
    transition: var(--wpgpm-transition);
}

.wpgpm-root .wpgpm-popup-link:hover  {
    background: linear-gradient(135deg, var(--wpgpm-primary-dark) 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Marker Clusters */
.wpgpm-root .marker-cluster  {
    background: transparent !important;
}

.wpgpm-root .marker-cluster div  {
    width: 40px !important;
    height: 40px !important;
    margin-left: -5px !important;
    margin-top: -5px !important;
    background: linear-gradient(135deg, var(--wpgpm-primary) 0%, var(--wpgpm-primary-dark) 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    border: 3px solid white !important;
    transition: var(--wpgpm-transition);
}

.wpgpm-root .marker-cluster:hover div  {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5) !important;
}

.wpgpm-root .marker-cluster-small div  {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.wpgpm-root .marker-cluster-medium div  {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.wpgpm-root .marker-cluster-large div  {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px)  {
.wpgpm-root     :root  {
        --wpgpm-offcanvas-width: 100%;
    }

.wpgpm-root     .wpgpm-toggle-btn  {
        top: 15px;
        left: 15px;
        padding: 10px 14px;
        z-index: 900;
    }

.wpgpm-root     .wpgpm-toggle-text  {
        display: none;
    }

.wpgpm-root     .wpgpm-results-floating  {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }

    /* Leaflet Mobile */
.wpgpm-root     .leaflet-top.leaflet-left  {
        right: 15px !important;
        top: 80px !important;
    }

.wpgpm-root     #wpgpm-results-count  {
        font-size: 18px;
    }

.wpgpm-root     .leaflet-popup-content  {
        width: 250px !important;
    }

.wpgpm-root     .wpgpm-empty-state  {
        padding: 24px;
        max-width: calc(100% - 40px);
    }

.wpgpm-root     .wpgpm-empty-icon  {
        font-size: 48px;
    }

.wpgpm-root     .wpgpm-empty-state h3  {
        font-size: 20px;
    }
}

@media (max-width: 480px)  {
.wpgpm-root     .wpgpm-offcanvas-footer  {
        flex-direction: column;
    }

.wpgpm-root     .wpgpm-checkbox-group  {
        max-height: 200px;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print  {

    .wpgpm-toggle-btn,
    .wpgpm-offcanvas,
    .wpgpm-offcanvas-overlay,
    .wpgpm-results-floating,
    .wpgpm-loading,
.wpgpm-root     .wpgpm-empty-state  {
        display: none !important;
    }
}

/* ========================================
   Accessibility
======================================== */
@media (prefers-reduced-motion: reduce)  {

    *,
    *::before,
.wpgpm-root     *::after  {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
.wpgpm-search-input:focus-visible,
.wpgpm-checkbox-item:focus-visible,
.wpgpm-toggle-btn:focus-visible,
.wpgpm-close-btn:focus-visible,
.wpgpm-reset-btn:focus-visible,
.wpgpm-apply-btn:focus-visible,
.wpgpm-root .wpgpm-popup-link:focus-visible  {
    outline: 3px solid var(--wpgpm-primary);
    outline-offset: 2px;
}

/* ========================================
   Custom Marker Styles
======================================== */
.wpgpm-root .wpgpm-marker-container  {
    background: transparent !important;
    border: none !important;
}

.wpgpm-root .wpgpm-marker-icon  {
    color: #f43f5e;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpgpm-root .wpgpm-marker-icon:hover  {
    transform: scale(1.15);
}

.wpgpm-root .wpgpm-marker-icon svg  {
    width: 100%;
    height: 100%;
}

/* Custom Image Marker */
.wpgpm-root .wpgpm-custom-marker  {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.wpgpm-root .wpgpm-custom-marker:hover  {
    transform: scale(1.15);
}

.wpgpm-root .wpgpm-custom-marker img  {
    width: 100%;
    height: 100%;
    object-fit: contain;
}