/**
 * Panels Component Styles
 * Info panel and basemap switcher
 */

/* ===== INFO PANEL ===== */
#info-panel {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    z-index: var(--z-index-ui);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
}

#info-panel > div {
    margin: 4px 0;
}

#coords-display {
    font-weight: 600;
    color: var(--color-text-primary);
}

#data-count {
    color: var(--color-secondary);
    font-weight: 500;
}

#wfs-status {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

#wfs-status.loading {
    color: var(--color-warning);
}

#wfs-status.loaded {
    color: var(--color-success);
}

#wfs-status.error {
    color: var(--color-error);
}

#wfs-status.waiting {
    color: #999;
}

/* ===== BASEMAP SWITCHER ===== */
#basemap-switcher {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-lg);
    z-index: var(--z-index-controls);
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
}

/* Toggle Button */
#basemap-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    color: var(--color-text-secondary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

#basemap-toggle-btn:hover,
#basemap-toggle-btn:active {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-hover);
    color: #202124;
}

#basemap-toggle-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Base Map Panel */
#basemap-panel {
    position: absolute;
    right: 48px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 180px;
    max-width: 220px;
    transform: translateX(20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    pointer-events: none;
}

#basemap-panel.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Header */
#basemap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#basemap-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

#basemap-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-text-secondary);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    line-height: 1;
}

#basemap-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #202124;
}

/* Base Map Options */
#basemap-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.basemap-option {
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.basemap-option:hover,
.basemap-option:active {
    border-color: var(--color-secondary);
    transform: scale(1.02);
}

.basemap-option.active {
    border-color: var(--color-primary);
    background: rgba(94, 23, 235, 0.05);
}

.basemap-thumbnail {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-align: center;
    padding: 2px;
}

.basemap-name {
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.2;
}

.basemap-option.active .basemap-name {
    color: var(--color-primary);
    font-weight: 700;
}

