/**
 * GravelFinder - Favorite Segments, Collections & Verified Segments
 * Native UI & GIS Layer Styling
 * Strictly zero emojis - 100% sleek SVG vector icons
 */

:root {
    --gf-seg-primary: #475e41;
    --gf-seg-primary-dark: #354730;
    --gf-seg-primary-light: #f4f7f4;
    --gf-seg-accent: #2e7d32;
    --gf-seg-surface: #ffffff;
    --gf-seg-bg: #f8faf8;
    --gf-seg-border: #e2e8e2;
    --gf-seg-text: #1a2419;
    --gf-seg-muted: #647462;
    --gf-seg-verified: #0284c7;
    --gf-seg-verified-bg: #e0f2fe;
    --gf-seg-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gf-seg-radius: 10px;
}

/* ==========================================================================
   1. MAP OVERLAY CONTROLS (Floating on Leaflet map)
   ========================================================================== */
.gf-map-layer-control {
    display: none;
    position: absolute;
    top: 80px;
    right: 14px;
    z-index: 1000;
    background: rgba(242, 234, 215, 0.45);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: clamp(8px, 1.5vw, 12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.25s ease;
    max-width: 280px;
    overflow: hidden;
}

.gf-map-layer-control.is-open {
    display: block !important;
}

@keyframes gfHighlightPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(71, 94, 65, 0.7); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(71, 94, 65, 0); }
    100% { transform: scale(1); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18); }
}

.gf-highlight-pulse {
    animation: gfHighlightPulse 1.2s ease-out;
}

.gf-layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
    user-select: none;
}

.gf-layer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gf-seg-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.gf-layer-toggle-arrow {
    width: 14px;
    height: 14px;
    stroke: var(--gf-seg-muted);
    transition: transform 0.2s ease;
}

.gf-layer-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.gf-layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gf-seg-text);
    cursor: pointer;
}

.gf-layer-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-layer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gf-layer-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

.gf-layer-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gf-layer-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 18px;
}

.gf-layer-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

.gf-layer-switch input:checked + .gf-layer-slider {
    background-color: var(--gf-seg-primary);
}

.gf-layer-switch input:checked + .gf-layer-slider:before {
    transform: translateX(16px);
}

/* ==========================================================================
   2. MAIN WORKSPACE MODAL / DRAWER
   ========================================================================== */
/* ==========================================================================
   2. MAIN WORKSPACE - FLOATING LIQUID GLASS WINDOW
   ========================================================================== */
.gf-seg-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 10050;
    display: none;
    transition: opacity 0.25s ease;
}

.gf-seg-modal-backdrop.gf-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#gfSegDetailModal.gf-active,
#gfCreateColModal.gf-active,
#gfSubmitSegmentModal.gf-active {
    background: rgba(18, 25, 17, 0.65) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    pointer-events: auto !important;
}

#gfSegModalBackdrop.gf-active {
    display: block !important;
    pointer-events: none !important;
}

.gf-seg-workspace {
    position: fixed;
    pointer-events: auto;
    top: 75px;
    left: calc(50% - 460px);
    width: min(940px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 110px));
    background: rgba(242, 234, 215, 0.52);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: clamp(10px, 1.8vw, 16px);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: text;
    transition: box-shadow 0.2s ease;
}

.gf-seg-workspace.gf-dragging {
    box-shadow: 0 24px 60px 0 rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.95);
    user-select: none;
}

/* Workspace Header - Floating Drag Handle */
.gf-seg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    cursor: grab;
    user-select: none;
}

.gf-seg-workspace.gf-dragging .gf-seg-header {
    cursor: grabbing;
}

.gf-seg-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-seg-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gf-seg-muted);
    opacity: 0.6;
    cursor: grab;
    transition: opacity 0.2s;
}

.gf-seg-header:hover .gf-seg-drag-handle {
    opacity: 1;
}

.gf-seg-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gf-seg-text);
    margin: 0;
    letter-spacing: -0.3px;
}

.gf-seg-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-seg-close-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 24px;
    line-height: 1;
    color: var(--gf-seg-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10053;
}

.gf-seg-close-btn:hover {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fca5a5;
    transform: scale(1.05);
}

/* Workspace Navigation Tabs - Liquid Glass Pills */
.gf-seg-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    gap: 8px;
    overflow-x: auto;
}

.gf-seg-tab-btn {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-seg-text);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gf-seg-tab-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.gf-seg-tab-btn.gf-active {
    color: #ffffff;
    background: #475e41;
    border-color: #354730;
    box-shadow: 0 4px 12px rgba(71, 94, 65, 0.32);
}

.gf-seg-badge-pill {
    background: rgba(0, 0, 0, 0.08);
    color: var(--gf-seg-text);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.gf-seg-tab-btn.gf-active .gf-seg-badge-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Toolbar & Filters */
.gf-seg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.38);
    gap: 10px;
    flex-wrap: wrap;
}

.gf-seg-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.gf-seg-search-input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gf-seg-text);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.gf-seg-search-input:focus {
    background: #ffffff;
    border-color: var(--gf-seg-primary);
    box-shadow: 0 0 0 2px rgba(71, 94, 65, 0.2);
}

.gf-seg-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: var(--gf-seg-muted);
}

.gf-seg-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-seg-select {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--gf-seg-text);
    cursor: pointer;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gf-seg-select:focus {
    border-color: var(--gf-seg-primary);
    background: #ffffff;
}

.gf-seg-btn-primary {
    background: var(--gf-seg-primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(71, 94, 65, 0.25);
}

.gf-seg-btn-primary:hover {
    background: var(--gf-seg-primary-dark);
    transform: translateY(-1px);
}

.gf-seg-btn-secondary {
    background: rgba(255, 255, 255, 0.65);
    color: var(--gf-seg-text);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.gf-seg-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

/* Workspace Content Area */
.gf-seg-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.15);
}

/* Segment Cards Grid - Liquid Frosted Glass */
.gf-seg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.gf-seg-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    position: relative;
}

.gf-seg-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.95);
}

.gf-seg-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.gf-seg-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gf-seg-text);
    margin: 0;
    line-height: 1.3;
}

.gf-seg-fav-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #cbd5e1;
    transition: color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.gf-seg-fav-star:hover {
    transform: scale(1.15);
}

.gf-seg-fav-star.gf-saved {
    color: #f59e0b;
}

/* Metadata chips */
.gf-seg-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.gf-seg-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.gf-chip-verified {
    background: var(--gf-seg-verified-bg);
    color: var(--gf-seg-verified);
}

.gf-chip-surface {
    background: #ecfdf5;
    color: #065f46;
}

.gf-chip-difficulty {
    background: #fef3c7;
    color: #92400e;
}

.gf-seg-stats-row {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    font-size: 12px;
    color: var(--gf-seg-muted);
}

.gf-seg-stat-val {
    font-weight: 700;
    color: var(--gf-seg-text);
}

/* Collection tags on card */
.gf-seg-collections-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.gf-seg-collection-tag {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Card Actions */
.gf-seg-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.gf-seg-btn-link {
    background: none;
    border: none;
    color: var(--gf-seg-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gf-seg-btn-link:hover {
    text-decoration: underline;
}

/* Empty State */
.gf-seg-empty-state {
    text-align: center;
    padding: 48px 24px;
    max-width: 440px;
    margin: 0 auto;
}

.gf-seg-empty-icon {
    width: 48px;
    height: 48px;
    stroke: var(--gf-seg-muted);
    margin-bottom: 16px;
    opacity: 0.6;
}

.gf-seg-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gf-seg-text);
    margin: 0 0 8px 0;
}

.gf-seg-empty-desc {
    font-size: 13px;
    color: var(--gf-seg-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ==========================================================================
   3. COLLECTIONS VIEW
   ========================================================================== */
.gf-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gf-col-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border-left: 5px solid var(--gf-seg-primary);
}

.gf-col-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 1);
}

.gf-col-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.gf-col-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--gf-seg-text);
    margin: 0;
}

.gf-col-desc {
    font-size: 12px;
    color: var(--gf-seg-muted);
    line-height: 1.4;
    margin: 4px 0 12px 0;
}

/* ==========================================================================
   4. DETAIL MODAL (Segment inspect & actions)
   ========================================================================== */
.gf-detail-card {
    pointer-events: auto !important;
    position: relative;
    z-index: 10052;
    background: rgba(242, 234, 215, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.85);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    animation: gfModalScale 0.2s ease;
}

.gf-detail-header {
    padding: 16px 20px;
    background: rgba(71, 94, 65, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.gf-detail-body {
    padding: 18px 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.gf-detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.gf-detail-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--gf-seg-text);
}

.gf-detail-stat-label {
    font-size: 11px;
    color: var(--gf-seg-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.gf-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--gf-seg-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--gf-seg-text);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.gf-notes-textarea:focus {
    border-color: var(--gf-seg-primary);
}

/* Quick popup star button in Map Road Popup */
.gf-popup-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f4f6f4;
    border: 1px solid #d5dfd5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-seg-text);
    cursor: pointer;
    transition: all 0.2s;
    justify-content: center;
}

.gf-popup-star-btn:hover {
    background: #e7ede7;
    border-color: var(--gf-seg-primary);
}

.gf-popup-star-btn.gf-saved {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* ==========================================================================
   WORKSPACE HEADER LAYER SWITCH & BANNER CONTROLS
   ========================================================================== */
.gf-header-zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #475e41;
    color: #ffffff;
    border: none;
    padding: 4px 11px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gf-header-zoom-btn:hover {
    background: #394b34;
    transform: scale(1.03);
}

.gf-header-layer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.gf-header-layer-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(71, 94, 65, 0.35);
}

.gf-header-layer-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gf-seg-text);
}

.gf-layer-switch.gf-header-switch {
    width: 28px;
    height: 16px;
}

.gf-layer-switch.gf-header-switch .gf-layer-slider:before {
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
}

.gf-layer-switch.gf-header-switch input:checked + .gf-layer-slider:before {
    transform: translateX(12px);
}

.gf-seg-layer-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 14px;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gf-seg-layer-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gf-layer-toggle-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-seg-text);
    user-select: none;
}

.gf-layer-toggle-chip input[type="checkbox"] {
    cursor: pointer;
    accent-color: #f59e0b;
    width: 16px;
    height: 16px;
    margin: 0;
}

.gf-seg-layer-stats {
    font-size: 12px;
    color: var(--gf-seg-muted);
    font-weight: 500;
}

.gf-seg-layer-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gf-seg-btn-banner-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #475e41;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(71, 94, 65, 0.2);
}

.gf-seg-btn-banner-action:hover {
    background: #394b34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(71, 94, 65, 0.25);
}

/* Custom map tooltip for segments */
.gf-seg-map-tooltip {
    background: rgba(242, 234, 215, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(71, 94, 65, 0.3) !important;
    border-radius: 6px !important;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gf-seg-workspace {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 85vh !important;
        max-height: 85vh !important;
        border-radius: 18px 18px 0 0 !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        transform: none !important;
    }
    .gf-map-layer-control {
        top: 70px;
        right: 10px;
        max-width: 240px;
    }
    .gf-seg-grid {
        grid-template-columns: 1fr;
    }
    .gf-detail-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
