/* ColoradoSitePlanner - Styles */

:root {

    /* Primary colors with gradient support */

    --primary: #3b82f6;

    --primary-dark: #2563eb;

    --primary-light: #60a5fa;

    --primary-glow: rgba(59, 130, 246, 0.35);

    

    /* Accent gradient */

    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --gradient-success: linear-gradient(135deg, #22c55e 0%, #10b981 100%);

    --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1a1a2e 100%);

    

    /* Semantic colors */

    --secondary: #64748b;

    --success: #22c55e;

    --success-light: #4ade80;

    --warning: #f59e0b;

    --warning-light: #fbbf24;

    --danger: #ef4444;

    --danger-light: #f87171;

    

    /* Surfaces with better depth */

    --background: #0a0f1a;

    --surface: #151c2c;

    --surface-light: #1e293b;

    --surface-elevated: #243044;

    

    /* Text with better contrast */

    --text: #f8fafc;

    --text-muted: #94a3b8;

    --text-dim: #64748b;

    

    /* Borders and effects */

    --border: #334155;

    --border-light: #475569;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);

    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);

    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

    --shadow-glow: 0 0 20px var(--primary-glow);

    

    /* Border radius */

    --radius-sm: 6px;

    --radius-md: 10px;

    --radius-lg: 16px;

    --radius-xl: 24px;

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SegoeUI', Roboto, sans-serif;

    background: var(--background);

    color: var(--text);

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}

/* Layout */

.app-container {

    display: grid;

    grid-template-columns: 380px 1fr 320px;

    height: 100vh;

}

/* LeftPanel - Controls */

.control-panel {

    background: var(--surface);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);

}

/* Tool Switcher */
.tool-switcher {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    gap: 0;
    flex-shrink: 0;
}

.tool-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tool-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.tool-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(79,139,255,0.06);
}

.tool-tab svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.tool-tab.active svg {
    opacity: 1;
}

/* Getting Started Box */
.getting-started-box {
    background: rgba(79,139,255,0.06);
    border: 1px solid rgba(79,139,255,0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.getting-started-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.getting-started-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.getting-started-list li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 2px 0;
    padding-left: 14px;
    position: relative;
}

.getting-started-list li::before {
    content: '›';
    position: absolute;
    left: 2px;
    color: var(--accent);
    font-weight: 700;
}

.getting-started-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.panel-header {

    padding: 20px;

    border-bottom: 1px solid var(--border);

    background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface) 100%);

}

.panel-header h1 {

    font-size: 1.25rem;

    font-weight: 700;

    margin-bottom: 4px;

    background: var(--gradient-primary);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

.panel-header .subtitle {

    font-size: 0.875rem;

    color: var(--text-muted);

    letter-spacing: 0.02em;

}

.panel-content {

    flex: 1;

    overflow-y: auto;

    padding: 16px;

}

/* Sections */

.section {

    margin-bottom: 20px;

}

.section-header {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    cursor: pointer;

}

.section-header h3 {

    font-size: 0.875rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    color: var(--text-muted);

}

.section-header .step-number {

    width: 26px;

    height: 26px;

    border-radius: 50%;

    background: var(--gradient-primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.75rem;

    font-weight: 700;

    box-shadow: 0 2px 8px var(--primary-glow);

    transition: transform 0.2s, box-shadow 0.2s;

}

.section-header:hover .step-number {

    transform: scale(1.1);

    box-shadow: 0 4px 12px var(--primary-glow);

}

.section-header .step-number.completed {

    background: var(--gradient-success);

    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);

}

.section-content {

    padding-left: 32px;

}

/* FormElements */

.form-group {

    margin-bottom: 16px;

}

.form-group label {

    display: block;

    font-size: 0.875rem;

    font-weight: 500;

    margin-bottom: 6px;

    color: var(--text-muted);

}

.form-group input,

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 11px 14px;

    font-size: 0.875rem;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--background);

    color: var(--text);

    transition: all 0.25s ease;

}

.form-group input:hover,

.form-group select:hover {

    border-color: var(--border-light);

}

.form-group input:focus,

.form-group select:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-sm);

    background: var(--surface);

}

.form-group input::placeholder {

    color: var(--text-muted);

}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}

/* Buttons */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 16px;

    font-size: 0.875rem;

    font-weight: 500;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s;

}

.btn-primary {

    background: var(--gradient-primary);

    color: white;

    box-shadow: 0 2px 8px var(--primary-glow);

    position: relative;

    overflow: hidden;

}

.btn-primary::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);

    opacity: 0;

    transition: opacity 0.2s;

}

.btn-primary:hover:not(:disabled) {

    box-shadow: 0 4px 16px var(--primary-glow);

    transform: translateY(-1px);

}

.btn-primary:hover:not(:disabled)::before {

    opacity: 1;

}

.btn-primary:active:not(:disabled) {

    transform: translateY(0);

}

.btn-secondary {

    background: var(--surface-light);

    color: var(--text);

    border: 1px solid var(--border);

}

.btn-secondary:hover:not(:disabled) {

    background: var(--border);

}

.btn-success {

    background: var(--success);

    color: white;

}

.btn-block {

    width: 100%;

}

.btn:disabled {

    opacity: 0.5;

    cursor: not-allowed;

}

.btn-group {

    display: flex;

    gap: 8px;

}

/* Map/VisualizationArea */

.map-container {

    background: #0a0f1a;

    position: relative;

    overflow: hidden;

    height: 100%;

}

.map-canvas {

    width: 100%;

    height: 100%;

}

.map-controls {

    position: absolute;

    top: 16px;

    left: 16px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.map-controls button {

    width: 36px;

    height: 36px;

    border-radius: 8px;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    cursor: pointer;

    font-size: 1.25rem;

}

.map-controls button:hover {

    background: var(--surface-light);

}

.map-legend {

    position: absolute;

    bottom: 16px;

    left: 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 12px;

}

.legend-item {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.75rem;

    margin-bottom: 4px;

}

.legend-item:last-child {

    margin-bottom: 0;

}

.legend-color {

    width: 16px;

    height: 3px;

    border-radius: 2px;

}

/* RightPanel - Results */

.results-panel {

    background: var(--surface);

    border-left: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    overflow: hidden;

    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);

}

.results-header {

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.results-header h2 {

    font-size: 1rem;

    font-weight: 600;

}

.results-actions {

    display: flex;

    gap: 8px;

}

.results-action-btn {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 12px;

    border-radius: 6px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-muted);

    font-size: 0.8rem;

    cursor: pointer;

    transition: all 0.2s;

}

.results-action-btn:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

}

.results-action-btn svg {

    width: 14px;

    height: 14px;

}

/* DesktopToast */

.desktop-toast {

    position: fixed;

    bottom: 30px;

    right: 30px;

    background: var(--surface);

    color: var(--text);

    padding: 12px 20px;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.3);

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.9rem;

    font-weight: 500;

    opacity: 0;

    transform: translateY(20px);

    transition: all 0.3s ease;

    z-index: 10000;

    border: 1px solid var(--border);

}

.desktop-toast.show {

    opacity: 1;

    transform: translateY(0);

}

.desktop-toast span {

    color: var(--success);

    font-weight: 700;

}

.results-content {

    flex: 1;

    overflow-y: auto;

    padding: 16px;

}

/* ResultCards */

.result-card {

    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface) 100%);

    border-radius: var(--radius-lg);

    padding: 16px;

    margin-bottom: 16px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-sm);

    transition: transform 0.2s, box-shadow 0.2s;

}

.result-card:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-md);

}

.result-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;

}

.result-card-title {

    font-size: 0.875rem;

    font-weight: 600;

}

.result-card-badge {

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 0.75rem;

    font-weight: 600;

}

.badge-success {

    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);

    color: var(--success-light);

    border: 1px solid rgba(34, 197, 94, 0.3);

}

.badge-warning {

    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%);

    color: var(--warning-light);

    border: 1px solid rgba(245, 158, 11, 0.3);

}

.badge-danger {

    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(248, 113, 113, 0.15) 100%);

    color: var(--danger-light);

    border: 1px solid rgba(239, 68, 68, 0.3);

}

.badge-info {

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(96, 165, 250, 0.15) 100%);

    color: var(--primary-light);

    border: 1px solid rgba(59, 130, 246, 0.3);

}

/* EnvironmentalRiskStyles */

.env-grid {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 12px;

}

.env-item {

    display: flex;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 8px;

    background: var(--surface);

    border-left: 3px solid var(--border);

}

.env-item.env-good {

    border-left-color: var(--success);

    background: rgba(34, 197, 94, 0.05);

}

.env-item.env-warning {

    border-left-color: var(--warning);

    background: rgba(245, 158, 11, 0.08);

}

.env-item.env-danger {

    border-left-color: var(--danger);

    background: rgba(239, 68, 68, 0.08);

}

.env-item.env-unknown {

    border-left-color: var(--border);

    background: rgba(100, 116, 139, 0.05);

}

.env-icon {

    font-size: 1.2rem;

    flex-shrink: 0;

    width: 24px;

    text-align: center;

}

.env-details {

    flex: 1;

    min-width: 0;

}

.env-label {

    font-size: 0.75rem;

    color: var(--text-muted);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 2px;

}

.env-value {

    font-size: 0.95rem;

    font-weight: 600;

    color: var(--text);

}

.env-desc {

    font-size: 0.8rem;

    color: var(--text-muted);

    margin-top: 4px;

    line-height: 1.3;

}

.result-stats {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 4px;

}

.stat-item {

    text-align: center;

    padding: 6px 2px;

    background: var(--surface);

    border-radius: 6px;

    min-width: 0; /* Allow shrinking */

}

.stat-value {

    font-size: 0.9rem;

    font-weight: 700;

    color: var(--text);

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

.stat-label {

    font-size: 0.6rem;

    color: var(--text-muted);

    text-transform: uppercase;

    letter-spacing: 0;

    margin-top: 1px;

    white-space: nowrap;

}

.result-list {

    list-style: none;

    margin-top: 12px;

    padding-top: 12px;

    border-top: 1px solid var(--border);

}

.result-list li {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding: 6px 0;

    font-size: 0.8rem;

    color: var(--text-muted);

}

.result-list li:last-child {

    padding-bottom: 0;

}

.result-list .icon {

    flex-shrink: 0;

    width: 18px;

    text-align: center;

    font-size: 0.85rem;

}

/* Progress indicator */

.progress-bar {

    height: 4px;

    background: var(--surface-light);

    border-radius: 2px;

    overflow: hidden;

    margin-bottom: 16px;

}

.progress-fill {

    height: 100%;

    background: var(--primary);

    border-radius: 2px;

    transition: width 0.3s ease;

}

/* Loading states */

.loading {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}

.spinner {

    width: 32px;

    height: 32px;

    border: 3px solid var(--surface-light);

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 1s linear infinite;

}

@keyframes spin {

    to { transform: rotate(360deg); }

}

/* Alerts */

.alert {

    padding: 12px 16px;

    border-radius: 8px;

    font-size: 0.875rem;

    margin-bottom: 16px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

}

.alert-warning {

    background: rgba(245, 158, 11, 0.15);

    border: 1px solid rgba(245, 158, 11, 0.3);

    color: #fbbf24;

}

/* Terrain/Septic warnings - compact and wrapped */

.terrain-warnings {

    background: rgba(245, 158, 11, 0.12);

    border: 1px solid rgba(245, 158, 11, 0.25);

    border-radius: 8px;

    padding: 10px 12px;

    margin-top: 10px;

}

.terrain-warnings .warn-item {

    font-size: 0.75rem;

    line-height: 1.4;

    padding: 3px 0;

    color: #fbbf24;

    word-wrap: break-word;

    overflow-wrap: break-word;

}

.terrain-warnings .unlock-btn-small {

    margin-top: 8px;

    width: 100%;

    font-size: 0.75rem;

    padding: 6px 10px;

}

.alert-danger {

    background: rgba(239, 68, 68, 0.15);

    border: 1px solid rgba(239, 68, 68, 0.3);

    color: #f87171;

}

.alert-info {

    background: rgba(37, 99, 235, 0.15);

    border: 1px solid rgba(37, 99, 235, 0.3);

    color: #60a5fa;

}

.alert-success {

    background: rgba(34, 197, 94, 0.15);

    border: 1px solid rgba(34, 197, 94, 0.3);

    color: #4ade80;

}

/* FeasibilityRating */

.feasibility-display {

    text-align: center;

    padding: 12px 16px;

    border-radius: 8px;

    margin-bottom: 12px;

}

.feasibility-display.favorable {

    background: rgba(34, 197, 94, 0.15);

    border: 2px solid var(--success);

}

.feasibility-display.moderate {

    background: rgba(245, 158, 11, 0.15);

    border: 2px solid var(--warning);

}

.feasibility-display.challenging {

    background: rgba(239, 68, 68, 0.15);

    border: 2px solid var(--danger);

}

.feasibility-label {

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;

    color: var(--text-muted);

    margin-bottom: 4px;

}

.feasibility-value {

    font-size: 1.1rem;

    font-weight: 600;

}

/* Cost display */

.cost-display {

    text-align: center;

    padding: 16px;

    background: var(--surface-light);

    border-radius: 8px;

    margin-bottom: 16px;

}

.cost-label {

    font-size: 0.75rem;

    color: var(--text-muted);

    margin-bottom: 4px;

}

.cost-range {

    font-size: 1.25rem;

    font-weight: 600;

}

.cost-range .low {

    color: var(--success);

}

.cost-range .high {

    color: var(--warning);

}

/* Downloads section */

.download-buttons {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.download-btn {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 16px;

    background: var(--surface-light);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    text-decoration: none;

    transition: all 0.2s;

}

.download-btn:hover {

    background: var(--border);

    border-color: var(--primary);

}

.download-btn .icon {

    font-size: 1.25rem;

}

.download-btn .info {

    flex: 1;

}

.download-btn .filename {

    font-weight: 500;

}

.download-btn .filesize {

    font-size: 0.75rem;

    color: var(--text-muted);

}

/* Disclaimer */

.disclaimer {

    background: rgba(245, 158, 11, 0.1);

    border: 1px solid rgba(245, 158, 11, 0.3);

    border-radius: 8px;

    padding: 12px;

    font-size: 0.75rem;

    color: var(--text-muted);

    margin-top: 16px;

}

.disclaimer strong {

    color: var(--warning);

}

/* Tooltip */

.tooltip {

    position: relative;

}

.tooltip::after {

    content: attr(data-tooltip);

    position: absolute;

    bottom: 100%;

    left: 50%;

    transform: translateX(-50%);

    background: var(--surface);

    border: 1px solid var(--border);

    padding: 6px 10px;

    border-radius: 6px;

    font-size: 0.75rem;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    transition: all 0.2s;

}

.tooltip:hover::after {

    opacity: 1;

    visibility: visible;

}

/* Responsive */

@media (max-width: 1200px) {

    .app-container {

        grid-template-columns: 320px 1fr;

    }

    

    .results-panel {

        display: none;

    }

}

@media (max-width: 768px) {

    .app-container {

        grid-template-columns: 1fr;

    }

    

    .control-panel {

        max-height: 50vh;

    }

}

/* ==================== AddressAutocomplete ==================== */

.autocomplete-container {

    position: relative;

}

.suggestions-dropdown {

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-top: none;

    border-radius: 0 0 8px 8px;

    max-height: 250px;

    overflow-y: auto;

    z-index: 1000;

    display: none;

}

.suggestions-dropdown.active {

    display: block;

}

.suggestion-item {

    padding: 12px 14px;

    cursor: pointer;

    border-bottom: 1px solid var(--border);

    transition: background 0.15s;

}

.suggestion-item:last-child {

    border-bottom: none;

}

.suggestion-item:hover {

    background: var(--surface-light);

}

.suggestion-item .address-main {

    font-weight: 500;

    color: var(--text);

    margin-bottom: 2px;

}

.suggestion-item .address-secondary {

    font-size: 0.8rem;

    color: var(--text-muted);

}

.suggestion-item .match-highlight {

    color: var(--primary);

    font-weight: 600;

}

.suggestion-loading {

    padding: 16px;

    text-align: center;

    color: var(--text-muted);

}

.map-search-toggle {

    margin: 12px 0;

}

/* ==================== ParcelMap ==================== */

.parcel-map-container {

    position: absolute;

    inset: 0;

    z-index: 100;

    background: var(--background);

}

.parcel-map {

    width: 100%;

    height: 100%;

}

.parcel-map-controls {

    position: absolute;

    top: 16px;

    left: 60px;

    right: 16px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    z-index: 1000;

    pointer-events: none;

}

.parcel-map-controls > * {

    pointer-events: auto;

}

.map-search-box {

    display: flex;

    background: var(--surface);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}

.map-search-box input {

    width: 280px;

    padding: 12px 16px;

    border: none;

    background: var(--surface);

    color: var(--text);

    font-size: 0.9rem;

}

.map-search-box input::placeholder {

    color: var(--text-muted);

}

.map-search-box input:focus {

    outline: none;

}

.map-search-box button {

    padding: 12px 16px;

    background: var(--primary);

    border: none;

    color: white;

    cursor: pointer;

    transition: background 0.2s;

}

.map-search-box button:hover {

    background: var(--primary-dark);

}

.map-instructions {

    display: flex;

    align-items: center;

    gap: 16px;

    background: var(--surface);

    padding: 10px 16px;

    border-radius: 8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

}

.map-instructions span {

    color: var(--text-muted);

    font-size: 0.875rem;

    transition: color 0.2s ease;

}

.map-instructions span.no-coverage {

    color: #f59e0b;

    font-weight: 500;

}

/* Parcel popup styles */

.parcel-popup {

    min-width: 220px;

}

.parcel-popup h4 {

    margin: 0 0 8px 0;

    color: #1e293b;

    font-size: 0.95rem;

}

.parcel-popup p {

    margin: 4px 0;

    font-size: 0.85rem;

    color: #475569;

}

.parcel-popup .select-btn {

    margin-top: 12px;

    width: 100%;

    padding: 8px 16px;

    background: #2563eb;

    color: white;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 500;

}

.parcel-popup .select-btn:hover {

    background: #1d4ed8;

}

/* Well popup styles */

.well-popup {

    min-width: 180px;

    font-size: 0.85rem;

}

.well-popup strong {

    color: #1e293b;

    display: block;

    margin-bottom: 6px;

}

.well-popup b {

    color: #475569;

}

/* Well cluster styles */

.well-cluster {

    background: rgba(59, 130, 246, 0.8);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 3px solid rgba(255, 255, 255, 0.9);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);

    transition: transform 0.2s ease;

}

.well-cluster:hover {

    transform: scale(1.1);

}

.well-cluster div {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}

.well-cluster span {

    color: white;

    font-weight: bold;

    font-size: 12px;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

}

.well-cluster-small {

    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);

    width: 35px !important;

    height: 35px !important;

}

.well-cluster-small span {

    font-size: 11px;

}

.well-cluster-medium {

    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    width: 45px !important;

    height: 45px !important;

}

.well-cluster-medium span {

    font-size: 13px;

}

.well-cluster-large {

    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    width: 55px !important;

    height: 55px !important;

}

.well-cluster-large span {

    font-size: 14px;

}

/* Well legend on map */

.well-legend {

    background: rgba(255, 255, 255, 0.95);

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 0.75rem;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

}

.well-legend-title {

    font-weight: 600;

    margin-bottom: 6px;

    color: #1e293b;

}

.well-legend-item {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 4px 0;

    color: #475569;

}

.well-legend-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    border: 1px solid white;

}

/* Leaflet customization for dark theme */

.leaflet-container {

    background: #0a0f1a;

}

.leaflet-control-zoom {

    display: none; /* Using our own zoom controls */

}

.leaflet-popup-content-wrapper {

    background: white;

    border-radius: 8px;

}

.leaflet-popup-tip {

    background: white;

}

#sitePlanContainer {

    width: 100%;

    height: 100%;

    position: relative;

}

/* ==================== Placement Toolbar ==================== */
.placement-toolbar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.96);
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    z-index: 100;
    align-items: stretch;
}

/* --- Toolbar groups --- */
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
}

/* Select group — neutral */
.tg-select {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.25);
}
.tg-select .toolbar-btn-active,
.tg-select .toolbar-btn.active {
    background: #475569;
    border-color: #64748b;
}

/* Buildings group — blue */
.tg-buildings {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.25);
}
.tg-buildings .toolbar-btn-active,
.tg-buildings .toolbar-btn.active {
    background: #2563eb;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.tg-buildings .toolbar-btn:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: #3b82f6;
}

/* Access group — amber */
.tg-access {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.20);
}
.tg-access .toolbar-btn-active,
.tg-access .toolbar-btn.active {
    background: #d97706;
    border-color: #b45309;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.tg-access .toolbar-btn:hover {
    background: rgba(245, 158, 11, 0.30);
    border-color: #f59e0b;
}

/* Utilities group — green */
.tg-utilities {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.20);
}
.tg-utilities .toolbar-btn-active,
.tg-utilities .toolbar-btn.active {
    background: #059669;
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.tg-utilities .toolbar-btn:hover {
    background: rgba(16, 185, 129, 0.30);
    border-color: #10b981;
}

/* Actions group — neutral */
.tg-actions {
    background: rgba(100, 116, 139, 0.10);
    border-color: rgba(100, 116, 139, 0.15);
}

/* --- Step badges --- */
.toolbar-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}
.tg-buildings-badge {
    background: #3b82f6;
}
.tg-access-badge {
    background: #f59e0b;
    color: #1e293b;
}
.tg-utilities-badge {
    background: #10b981;
}

/* --- Toolbar buttons --- */
.toolbar-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.toolbar-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.toolbar-btn.active,
.toolbar-btn-active {
    background: var(--primary);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}
.toolbar-btn-danger {
    color: var(--danger);
}
.toolbar-btn-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}
.toolbar-btn-warning {
    color: #f59e0b;
    font-size: 0.7rem;
    padding: 4px 6px;
}
.toolbar-btn-warning:hover {
    background: #f59e0b;
    border-color: #d97706;
    color: white;
}

/* --- Size inputs --- */
.toolbar-size-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.toolbar-size-inputs input {
    width: 40px;
    padding: 3px 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.72rem;
    text-align: center;
}
.toolbar-size-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}
.toolbar-size-inputs span {
    color: var(--text-muted);
}
#septicSizeDisplay {
    font-size: 0.68rem;
    color: var(--success);
    white-space: nowrap;
}

/* --- Toolbar hint bar (below toolbar) --- */
.toolbar-hint-bar {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    padding: 4px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 100;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
}
.toolbar-spacebar-hint {
    font-style: normal;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(100, 116, 139, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* --- Onboarding toaster --- */
.onboarding-toaster {
    position: absolute;
    top: 80px;
    right: 16px;
    width: 300px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 200;
    padding: 0;
    overflow: hidden;
    animation: onboardSlideIn 0.4s ease-out;
}
@keyframes onboardSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.onboarding-toaster.hidden {
    display: none;
}
.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
.onboarding-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}
.onboarding-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.onboarding-close:hover {
    color: var(--text);
}
.onboarding-steps {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.4;
}
.onboarding-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.onboarding-num-tip {
    background: #475569;
    font-size: 0.85rem;
}
.onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.onboarding-dismiss-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.onboarding-dismiss-label input {
    accent-color: var(--primary);
}
.onboarding-got-it {
    padding: 5px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.onboarding-got-it:hover {
    background: var(--primary-dark);
}

/* Selection highlight for placed items */

.canvas-item-selected {

    outline: 2px dashed var(--primary);

}

/* ModalStyles */

.modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

}

.modal-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.7);

}

.modal-content {

    position: relative;

    background: var(--surface);

    border-radius: 8px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    max-width: 90vw;

    max-height: 90vh;

    overflow: hidden;

    display: flex;

    flex-direction: column;

}

.pdf-preview-modal {

    width: 85vw;

    height: 85vh;

}

.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid var(--border);

}

.modal-header h3 {

    margin: 0;

    font-size: 1.25rem;

}

.modal-close {

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 1.5rem;

    cursor: pointer;

    padding: 0;

    line-height: 1;

}

.modal-close:hover {

    color: var(--text);

}

.modal-body {

    flex: 1;

    overflow: auto;

    padding: 0;

}

.modal-footer {

    display: flex;

    gap: 12px;

    justify-content: flex-end;

    padding: 16px 20px;

    border-top: 1px solid var(--border);

}

/* ========================================

   PAYMENT & PAYWALL STYLES

   ======================================== */

/* PaywallOverlay */

.paywall-overlay {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(15, 23, 42, 0.95);

    backdrop-filter: blur(8px);

    z-index: 10000;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}

.paywall-overlay.active {

    opacity: 1;

    visibility: visible;

}

.paywall-container {

    width: 95%;

    max-width: 1100px;

    max-height: 90vh;

    overflow: auto;

    background: var(--surface);

    border-radius: 20px;

    border: 1px solid var(--border);

    transform: translateY(20px);

    transition: transform 0.3s ease;

}

.paywall-overlay.active .paywall-container {

    transform: translateY(0);

}

.paywall-header {

    text-align: center;

    padding: 40px 30px 20px;

    border-bottom: 1px solid var(--border);

}

.paywall-header h2 {

    font-size: 28px;

    font-weight: 700;

    margin-bottom: 10px;

    background: linear-gradient(135deg, #fff, #94a3b8);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.paywall-header p {

    color: var(--text-muted);

    font-size: 16px;

}

.paywall-close {

    position: absolute;

    top: 20px;

    right: 20px;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    border: none;

    color: var(--text-muted);

    font-size: 24px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

}

.paywall-close:hover {

    background: rgba(255, 255, 255, 0.2);

    color: var(--text);

}

/* PricingGrid */

.pricing-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    padding: 30px;

}

.pricing-card {

    background: rgba(255, 255, 255, 0.03);

    border-radius: 16px;

    border: 1px solid var(--border);

    padding: 30px 25px;

    position: relative;

    transition: all 0.3s ease;

}

.pricing-card:hover {

    border-color: var(--primary);

    transform: translateY(-4px);

}

.pricing-card.popular {

    border-color: var(--primary);

    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), transparent);

}

.pricing-card.popular::before {

    content: 'MOST POPULAR';

    position: absolute;

    top: -12px;

    left: 50%;

    transform: translateX(-50%);

    background: linear-gradient(135deg, var(--primary), #3b82f6);

    color: white;

    padding: 5px 15px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

}

.pricing-tier-name {

    font-size: 18px;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 15px;

}

.pricing-price {

    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-bottom: 20px;

}

.pricing-price .amount {

    font-size: 42px;

    font-weight: 700;

    color: var(--text);

}

.pricing-price .period {

    color: var(--text-muted);

    font-size: 16px;

}

.pricing-features {

    list-style: none;

    margin-bottom: 25px;

}

.pricing-features li {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 8px 0;

    color: var(--text-muted);

    font-size: 14px;

}

.pricing-features li::before {

    content: '';

    color: var(--success);

    font-weight: bold;

    flex-shrink: 0;

}

.pricing-btn {

    width: 100%;

    padding: 14px 20px;

    border-radius: 10px;

    border: none;

    font-weight: 600;

    font-size: 15px;

    cursor: pointer;

    transition: all 0.3s ease;

}

.pricing-btn-primary {

    background: linear-gradient(135deg, var(--primary), #3b82f6);

    color: white;

}

.pricing-btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);

}

.pricing-btn-secondary {

    background: rgba(255, 255, 255, 0.1);

    color: var(--text);

    border: 1px solid var(--border);

}

.pricing-btn-secondary:hover {

    background: rgba(255, 255, 255, 0.15);

}

/* 3-tier paywall tweaks */

.paywall-container.paywall-3tier {

    position: relative;

}

.pricing-grid.pricing-grid-3tier {

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

}

.pro-upsell {

    text-align: center;

    padding: 0 30px 30px;

    color: var(--text-muted);

}

.pro-upsell a {

    color: var(--primary);

    text-decoration: none;

    font-weight: 600;

}

.pro-upsell a:hover {

    text-decoration: underline;

}

.pro-details {

    text-align: center;

}

.pro-price {

    font-size: 32px;

    font-weight: 800;

    color: var(--text);

    margin: 10px 0 16px;

}

.pro-price span {

    font-size: 16px;

    font-weight: 600;

    color: var(--text-muted);

}

.pro-features {

    list-style: none;

    padding: 0;

    margin: 0 0 18px;

}

.pro-features li {

    padding: 6px 0;

    color: var(--text-muted);

}

/* PayPerUseSection */

.pay-per-use-section {

    padding: 30px;

    border-top: 1px solid var(--border);

    background: rgba(0, 0, 0, 0.2);

}

.pay-per-use-section h3 {

    text-align: center;

    margin-bottom: 20px;

    color: var(--text);

    font-size: 20px;

}

.pay-per-use-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 15px;

    max-width: 800px;

    margin: 0 auto;

}

.ppu-card {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 12px;

    border: 1px solid var(--border);

    padding: 20px;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s;

}

.ppu-card:hover {

    border-color: var(--primary);

    background: rgba(37, 99, 235, 0.1);

}

.ppu-card .name {

    font-weight: 600;

    margin-bottom: 5px;

}

.ppu-card .price {

    font-size: 24px;

    font-weight: 700;

    color: var(--primary);

    margin-bottom: 5px;

}

.ppu-card .description {

    font-size: 13px;

    color: var(--text-muted);

}

/* EmailInputModal */

.email-modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(15, 23, 42, 0.95);

    backdrop-filter: blur(8px);

    z-index: 10001;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}

.email-modal.active {

    opacity: 1;

    visibility: visible;

}

.email-modal-content {

    background: var(--surface);

    border-radius: 16px;

    border: 1px solid var(--border);

    padding: 40px;

    max-width: 400px;

    width: 90%;

    text-align: center;

}

.email-modal-content h3 {

    margin-bottom: 10px;

    font-size: 22px;

}

.email-modal-content p {

    color: var(--text-muted);

    margin-bottom: 25px;

    font-size: 14px;

}

.email-input-group {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.email-input-group input {

    padding: 14px 16px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: var(--surface-light);

    color: var(--text);

    font-size: 16px;

}

.email-input-group input:focus {

    outline: none;

    border-color: var(--primary);

}

.email-input-group button {

    padding: 14px 20px;

    border-radius: 10px;

    border: none;

    background: linear-gradient(135deg, var(--primary), #3b82f6);

    color: white;

    font-weight: 600;

    font-size: 15px;

    cursor: pointer;

    transition: all 0.3s ease;

}

.email-input-group button:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);

}

/* UpgradeButton (hidden - integrated into dropdown) */

.upgrade-btn {

    display: none;

}

/* UserMenu */

.user-menu {

    position: relative;

}

.user-menu-btn {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: linear-gradient(135deg, var(--surface-light), var(--surface));

    color: var(--text-muted);

    border: 2px solid var(--border);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

    padding: 0;

    position: relative;

}

.user-menu-btn:hover {

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);

    transform: scale(1.05);

}

.user-menu-btn .user-initial {

    display: none;

    font-size: 15px;

    font-weight: 700;

    color: var(--text);

    line-height: 1;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

}

.user-menu-btn .user-icon-default {

    width: 18px;

    height: 18px;

}

.user-menu-btn svg {

    width: 18px;

    height: 18px;

}

.user-dropdown {

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 0;

    min-width: 260px;

    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);

    display: none;

    z-index: 1000;

    overflow: hidden;

    backdrop-filter: blur(20px);

}

.user-dropdown.active {

    display: block;

    animation: dropdownSlide 0.2s ease-out;

}

@keyframes dropdownSlide {

    from {

        opacity: 0;

        transform: translateY(-8px) scale(0.96);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}

.user-dropdown-header {

    padding: 20px 20px 16px;

    text-align: center;

}

.user-avatar-large {

    width: 52px;

    height: 52px;

    border-radius: 50%;

    background: linear-gradient(135deg, var(--primary), #6366f1);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 10px auto;

    font-size: 22px;

    font-weight: 700;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}

.user-avatar-large svg {

    width: 24px;

    height: 24px;

    stroke: white;

}

.user-dropdown .user-email {

    padding: 0;

    font-size: 13px;

    color: var(--text);

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-bottom: 6px;

}

.user-plan-badge {

    display: inline-block;

    font-size: 11px;

    font-weight: 600;

    color: var(--text-muted);

    background: var(--surface-light);

    padding: 3px 10px;

    border-radius: 20px;

    letter-spacing: 0.3px;

}

.user-plan-badge.pro {

    color: #f59e0b;

    background: rgba(245, 158, 11, 0.12);

    border: 1px solid rgba(245, 158, 11, 0.25);

}

.user-dropdown-divider {

    height: 1px;

    background: var(--border);

    margin: 0;

}

.user-dropdown a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 20px;

    color: var(--text);

    text-decoration: none;

    font-size: 13.5px;

    font-weight: 500;

    transition: background 0.15s;

}

.user-dropdown a svg {

    width: 16px;

    height: 16px;

    opacity: 0.6;

    flex-shrink: 0;

}

.user-dropdown a:hover {

    background: var(--surface-light);

}

.user-dropdown a:hover svg {

    opacity: 1;

}

.user-dropdown a.upgrade-menu-link {

    color: #f59e0b;

}

.user-dropdown a.upgrade-menu-link svg {

    stroke: #f59e0b;

    opacity: 0.8;

}

.user-dropdown a.upgrade-menu-link:hover {

    background: rgba(245, 158, 11, 0.08);

}

.user-dropdown a.logout-link {

    color: #ef4444;

}

.user-dropdown a.logout-link svg {

    stroke: #ef4444;

    opacity: 0.7;

}

.user-dropdown a.logout-link:hover {

    background: rgba(239, 68, 68, 0.08);

}

/* SavedPlansModal */

.plans-modal-overlay {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0,0,0,0.8);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 2000;

}

.plans-modal-overlay.active {

    display: flex;

}

.plans-modal {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 16px;

    width: 100%;

    max-width: 500px;

    max-height: 80vh;

    overflow: hidden;

    display: flex;

    flex-direction: column;

}

.plans-modal-header {

    padding: 20px;

    border-bottom: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.plans-modal-header h2 {

    font-size: 1.25rem;

}

.plans-modal-close {

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 24px;

    cursor: pointer;

}

.plans-modal-body {

    flex: 1;

    overflow-y: auto;

    padding: 16px;

}

.plan-item {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 16px;

    background: var(--background);

    border-radius: 12px;

    margin-bottom: 12px;

    cursor: pointer;

    transition: all 0.2s;

}

.plan-item:hover {

    background: var(--surface-light);

    transform: translateX(4px);

}

.plan-item-info h4 {

    font-size: 15px;

    margin-bottom: 4px;

}

.plan-item-info p {

    font-size: 13px;

    color: var(--text-muted);

}

.plan-item-actions {

    display: flex;

    gap: 8px;

}

.plan-item-actions button {

    padding: 6px 12px;

    border-radius: 6px;

    font-size: 12px;

    cursor: pointer;

    border: none;

    transition: all 0.2s;

}

.plan-item-actions .load-btn {

    background: var(--primary);

    color: white;

}

.plan-item-actions .delete-btn {

    background: transparent;

    color: var(--danger);

    border: 1px solid var(--danger);

}

.plan-item-actions .delete-btn:hover {

    background: var(--danger);

    color: white;

}

.no-plans {

    text-align: center;

    padding: 40px 20px;

    color: var(--text-muted);

}

/* UpgradeButton inHeader */

.upgrade-btn {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 16px;

    background: linear-gradient(135deg, #f59e0b, #d97706);

    color: white;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.2s;

}

.upgrade-btn:hover {

    transform: translateY(-1px);

    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);

}

/* LimitReachedBanner */

.limit-banner {

    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));

    border: 1px solid rgba(239, 68, 68, 0.3);

    border-radius: 12px;

    padding: 16px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;

}

.limit-banner-text {

    display: flex;

    align-items: center;

    gap: 12px;

}

.limit-banner-text .icon {

    font-size: 24px;

}

.limit-banner-text .message {

    font-size: 14px;

}

.limit-banner-text .message strong {

    color: var(--danger);

}

.limit-banner .upgrade-btn {

    flex-shrink: 0;

}

/* ================================================

   NEW VALUE-BASED PAYWALL STYLES

   ================================================ */

.paywall-header h2 {

    font-size: 26px;

    font-weight: 700;

    margin-bottom: 12px;

    color: #fff;

    background: none;

    -webkit-background-clip: initial;

    -webkit-text-fill-color: initial;

}

.unlock-features {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    padding: 0 30px 25px;

    max-width: 600px;

    margin: 0 auto;

}

.unlock-feature {

    display: flex;

    align-items: center;

    gap: 10px;

    background: rgba(37, 99, 235, 0.1);

    padding: 12px 16px;

    border-radius: 10px;

    border: 1px solid rgba(37, 99, 235, 0.2);

}

.unlock-icon {

    font-size: 20px;

}

.unlock-feature span:last-child {

    font-size: 14px;

    color: var(--text);

}

/* Simplified 2-column pricing */

.pricing-grid-simple {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;

    padding: 30px;

    max-width: 800px;

    margin: 0 auto;

}

@media (max-width: 600px) {

    .unlock-features {

        grid-template-columns: 1fr;

    }

    .pricing-grid-simple {

        grid-template-columns: 1fr;

    }

}

.pricing-card .pricing-desc {

    color: var(--text-muted);

    font-size: 14px;

    margin-bottom: 20px;

}

.pricing-card .pro-audience {

    color: var(--text-muted);

    font-size: 13px;

    font-style: italic;

    margin-bottom: 15px;

    text-align: center;

}

.pricing-card.popular .popular-badge {

    position: absolute;

    top: -12px;

    left: 50%;

    transform: translateX(-50%);

    background: linear-gradient(135deg, #10b981, #059669);

    color: white;

    padding: 5px 15px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

}

/* Hide old ::before for popular since we have .popular-badge now */

.pricing-card.popular::before {

    display: none;

}

.pricing-btn-pro {

    background: linear-gradient(135deg, #10b981, #059669);

    color: white;

}

.pricing-btn-pro:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);

}

/* Warning message */

.paywall-warning {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 15px 30px;

    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));

    border-top: 1px solid rgba(245, 158, 11, 0.2);

    font-size: 15px;

    font-weight: 500;

    color: #fbbf24;

}

.warning-icon {

    font-size: 18px;

}

/* Bulk section */

.bulk-section {

    text-align: center;

    padding: 15px 30px 30px;

}

.bulk-section p {

    color: var(--text-muted);

    font-size: 14px;

}

.bulk-section a {

    color: var(--primary);

    text-decoration: none;

    font-weight: 500;

}

.bulk-section a:hover {

    text-decoration: underline;

}

/* BulkModal */

.bulk-modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(15, 23, 42, 0.95);

    backdrop-filter: blur(8px);

    z-index: 10002;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}

.bulk-modal.active {

    opacity: 1;

    visibility: visible;

}

.bulk-modal-content {

    background: var(--surface);

    border-radius: 16px;

    border: 1px solid var(--border);

    padding: 30px;

    max-width: 500px;

    width: 90%;

    text-align: center;

    position: relative;

}

.bulk-close {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 32px;

    height: 32px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    border: none;

    color: var(--text-muted);

    font-size: 20px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

}

.bulk-close:hover {

    background: rgba(255, 255, 255, 0.2);

    color: var(--text);

}

.bulk-modal-content h3 {

    font-size: 22px;

    margin-bottom: 20px;

}

.bulk-options {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-bottom: 20px;

}

.bulk-option {

    background: rgba(255, 255, 255, 0.05);

    border-radius: 12px;

    border: 1px solid var(--border);

    padding: 20px;

    cursor: pointer;

    transition: all 0.2s;

}

.bulk-option:hover {

    border-color: var(--primary);

    background: rgba(37, 99, 235, 0.1);

}

.bulk-name {

    font-weight: 600;

    margin-bottom: 8px;

}

.bulk-price {

    font-size: 28px;

    font-weight: 700;

    color: var(--primary);

    margin-bottom: 5px;

}

.bulk-savings {

    font-size: 13px;

    color: #10b981;

    font-weight: 500;

}

.bulk-note {

    font-size: 14px;

    color: var(--text-muted);

}

.bulk-note a {

    color: var(--primary);

    text-decoration: none;

}

.bulk-note a:hover {

    text-decoration: underline;

}

/* ========================================

   LOCKED CONTENT & ANALYSIS PREVIEW

======================================== */

/* Locked data - blurred with preview */

.locked-data {

    position: relative;

    user-select: none;

}

.locked-data .locked-value {

    filter: blur(5px);

    opacity: 0.6;

    pointer-events: none;

}

.locked-data .locked-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(0, 0, 0, 0.15);

    border-radius: inherit;

    cursor: pointer;

    transition: background 0.2s;

}

.locked-data .locked-overlay:hover {

    background: rgba(0, 0, 0, 0.25);

}

.locked-data .lock-icon {

    font-size: 1.25rem;

    opacity: 0.9;

}

/* Locked stats row */

.locked-stats {

    position: relative;

}

.locked-stats .stat-value {

    filter: blur(5px);

    opacity: 0.5;

}

.locked-stats::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    font-size: 1.5rem;

    z-index: 1;

}

/* UnlockCTA card */

.unlock-cta-card {

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.18) 100%);

    border: 2px solid var(--primary);

    border-radius: 12px;

    padding: 20px 16px;

    margin-top: 12px;

    text-align: center;

    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);

}

.unlock-cta-card h4 {

    margin: 0 0 6px 0;

    font-size: 0.9rem;

    color: var(--text);

}

.unlock-cta-card p {

    font-size: 0.75rem;

    color: var(--text-muted);

    margin: 0 0 10px 0;

    line-height: 1.4;

}

.unlock-preview-list {

    list-style: none;

    padding: 0;

    margin: 0 0 12px 0;

    text-align: left;

}

.unlock-preview-list li {

    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 0.75rem;

    color: var(--text-muted);

    padding: 3px 0;

}

.unlock-preview-list li::before {

    content: "";

    color: var(--success);

    font-weight: bold;

    font-size: 0.8rem;

}

.unlock-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);

    color: white;

    border: none;

    border-radius: 8px;

    padding: 14px 28px;

    font-size: 1rem;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s;

    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);

    width: 100%;

    max-width: 280px;

}

.unlock-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);

}

.unlock-btn .price {

    opacity: 0.9;

    font-weight: 500;

}

/* Subtle glow animation for unlock button */

@keyframes unlock-glow {

    0%, 100% { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }

    50% { box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55); }

}

.unlock-btn {

    animation: unlock-glow 2.5s ease-in-out infinite;

}

.unlock-btn:hover {

    animation: none;

}

/* Small unlock button for inline use */

.unlock-btn-small {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 6px;

    padding: 8px 14px;

    font-size: 0.8rem;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s;

}

.unlock-btn-small:hover {

    background: rgba(255, 255, 255, 0.25);

    border-color: rgba(255, 255, 255, 0.5);

}

/* Teaser hint */

.teaser-hint {

    font-size: 0.75rem;

    color: var(--text-muted);

    font-style: italic;

    margin-top: 4px;

}

.teaser-hint a,

.teaser-hint .unlock-link {

    color: #f59e0b;

    text-decoration: none;

    font-weight: 500;

}

.teaser-hint a:hover,

.teaser-hint .unlock-link:hover {

    color: #fbbf24;

    text-decoration: underline;

}

/* Unlock link (used inline) */

.unlock-link {

    color: #f59e0b;

    cursor: pointer;

    font-weight: 500;

}

.unlock-link:hover {

    color: #fbbf24;

    text-decoration: underline;

}

/* Premium badge */

.badge-premium {

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);

    color: var(--primary);

    border: 1px solid rgba(37, 99, 235, 0.3);

}

/* Unlocked badge */

.badge-unlocked {

    background: rgba(16, 185, 129, 0.2);

    color: #10b981;

}

/* Feasibility summary (free tier) */

.feasibility-summary {

    padding: 12px;

    background: var(--surface);

    border-radius: 8px;

    margin-bottom: 12px;

}

.feasibility-summary .summary-item {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 6px 0;

    font-size: 0.85rem;

}

.feasibility-summary .summary-icon {

    font-size: 1rem;

    width: 24px;

    text-align: center;

}

.feasibility-summary .summary-label {

    flex: 1;

    color: var(--text-muted);

}

.feasibility-summary .summary-value {

    font-weight: 600;

}

.feasibility-summary .summary-value.good {

    color: var(--success);

}

.feasibility-summary .summary-value.warning {

    color: var(--warning);

}

.feasibility-summary .summary-value.bad {

    color: var(--danger);

}

/* ==================== ChoiceModal (What do you need?) ==================== */

.choice-modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.8);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 10000;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

    padding: 20px;

}

.choice-modal-overlay.active {

    opacity: 1;

    visibility: visible;

}

.choice-modal {

    background: var(--surface);

    border-radius: 16px;

    max-width: 680px;

    width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);

    transform: translateY(20px);

    transition: transform 0.3s ease;

}

.choice-modal-overlay.active .choice-modal {

    transform: translateY(0);

}

.choice-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border);

    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);

}

.choice-parcel-info {

    display: flex;

    align-items: flex-start;

    gap: 12px;

}

.choice-parcel-icon {

    font-size: 1.5rem;

}

.choice-address {

    font-size: 1.1rem;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 4px;

}

.choice-details {

    font-size: 0.85rem;

    color: var(--text-muted);

}

.choice-modal-close {

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 1.5rem;

    cursor: pointer;

    padding: 4px 8px;

    line-height: 1;

    transition: color 0.2s;

}

.choice-modal-close:hover {

    color: var(--text);

}

.choice-modal-body {

    padding: 24px;

}

.choice-question {

    text-align: center;

    font-size: 1.25rem;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 24px;

}

.choice-options {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

    margin-bottom: 20px;

}

.choice-card {

    position: relative;

    background: var(--background);

    border: 2px solid var(--border);

    border-radius: 12px;

    padding: 20px;

    cursor: pointer;

    transition: all 0.2s ease;

    text-align: center;

}

.choice-card:hover {

    border-color: var(--primary);

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);

}

.choice-card-popular {

    border-color: var(--primary);

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);

}

.choice-popular-badge {

    position: absolute;

    top: -10px;

    left: 50%;

    transform: translateX(-50%);

    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);

    color: white;

    font-size: 0.65rem;

    font-weight: 700;

    padding: 4px 12px;

    border-radius: 20px;

    letter-spacing: 0.5px;

}

.choice-card-icon {

    font-size: 2.5rem;

    margin-bottom: 12px;

}

.choice-card-title {

    font-size: 1.1rem;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 4px;

}

.choice-card-subtitle {

    font-size: 0.85rem;

    color: var(--text-muted);

    margin-bottom: 16px;

}

.choice-card-features {

    list-style: none;

    padding: 0;

    margin: 0 0 16px 0;

    text-align: left;

}

.choice-card-features li {

    font-size: 0.8rem;

    color: var(--text-muted);

    padding: 4px 0;

}

.choice-card-price {

    font-size: 1.75rem;

    font-weight: 700;

    color: var(--success);

    margin-bottom: 12px;

}

.choice-savings {

    font-size: 0.75rem;

    font-weight: 500;

    color: var(--warning);

    background: rgba(251, 191, 36, 0.1);

    padding: 2px 8px;

    border-radius: 12px;

    margin-left: 8px;

}

.choice-card-cta {

    display: inline-block;

    background: var(--primary);

    color: white;

    padding: 10px 24px;

    border-radius: 8px;

    font-weight: 600;

    font-size: 0.9rem;

    transition: all 0.2s;

}

.choice-card:hover .choice-card-cta {

    background: #1d4ed8;

}

.choice-skip-btn {

    display: block;

    width: 100%;

    background: none;

    border: none;

    color: var(--text-muted);

    font-size: 0.9rem;

    padding: 12px;

    cursor: pointer;

    transition: color 0.2s;

    text-decoration: underline;

    text-underline-offset: 2px;

}

.choice-skip-btn:hover {

    color: var(--text);

}

/* ==================== Mobile-SpecificStyles ==================== */

/* Hide site plan elements on mobile */

@media (max-width: 768px) {

    /* Hide the bundle option on mobile - feasibility only */

    .choice-options {

        grid-template-columns: 1fr;

    }

    

    .desktop-only {

        display: none !important;

    }

    

    /* Make choice modal full-screen on mobile */

    .choice-modal-overlay {

        padding: 0;

        align-items: flex-end;

    }

    

    .choice-modal {

        max-width: 100%;

        border-radius: 20px 20px 0 0;

        max-height: 85vh;

    }

    

    /* Hide site plan container and toolbar on mobile */

    body.mobile-mode #sitePlanContainer,

    body.mobile-mode .placement-toolbar,

    body.mobile-mode .toolbar-hint-bar,

    body.mobile-mode .onboarding-toaster {

        display: none !important;

    }

    

    /* Show parcel map instead on mobile */

    body.mobile-mode #parcelMapContainer {

        display: block !important;

    }

    

    /* Hide the "ShowSitePlan" button on mobile */

    body.mobile-mode #closeParcelMap {

        display: none !important;

    }

    

    /* Simplify left panel on mobile */

    body.mobile-mode .section[data-step="5"] {

        display: none !important;

    }

    

    /* Make results panel visible and scrollable on mobile */

    body.mobile-mode .results-panel {

        display: block !important;

        position: fixed;

        bottom: 0;

        left: 0;

        right: 0;

        max-height: 40vh;

        border-radius: 20px 20px 0 0;

        z-index: 100;

        overflow-y: auto;

    }

    

    /* Adjust control panel for mobile */

    .control-panel {

        max-height: 40vh;

        overflow-y: auto;

    }

    

    /* Map takes more space on mobile */

    .map-container {

        min-height: 50vh;

    }

}

/* Mobile results panel slide-up behavior */

body.mobile-mode .results-panel {

    transform: translateY(calc(100% - 60px));

    transition: transform 0.3s ease;

}

body.mobile-mode .results-panel:hover,

body.mobile-mode .results-panel.expanded {

    transform: translateY(0);

}

body.mobile-mode .results-panel::before {

    content: '';

    display: block;

    width: 40px;

    height: 4px;

    background: var(--border);

    border-radius: 2px;

    margin: 8px auto;

}

/* Mobile feasibilityCTA at top of results */

.mobile-cta {

    display: none;

    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);

    color: white;

    padding: 16px;

    border-radius: 12px;

    margin-bottom: 16px;

    text-align: center;

    cursor: pointer;

}

body.mobile-mode .mobile-cta {

    display: block;

}

.mobile-cta-title {

    font-size: 1.1rem;

    font-weight: 600;

    margin-bottom: 4px;

}

.mobile-cta-subtitle {

    font-size: 0.85rem;

    opacity: 0.9;

}

.mobile-cta-price {

    font-size: 1.5rem;

    font-weight: 700;

    margin-top: 8px;

}

/* ==================== MOBILE LANDING PAGE ==================== */

.mobile-landing,

.mobile-results {

    display: none;

}

@media (max-width: 768px) {

    .desktop-only {

        display: none !important;

    }

    

    body.mobile-mode .mobile-unlock-section {

        display: block;

    }

    

    body.mobile-mode .mobile-results-footer {

        display: block;

    }

    

    .mobile-landing {

        display: block;

        min-height: 100vh;

        background: var(--background);

    }

}

/* MobileHero */

.mobile-hero {

    position: relative;

    padding: 48px 20px 56px;

    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 40%, #8b5cf6 100%);

    text-align: center;

    overflow: hidden;

}

.mobile-hero::before {

    content: '';

    position: absolute;

    top: -50%;

    right: -20%;

    width: 80%;

    height: 200%;

    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);

    pointer-events: none;

}

.mobile-hero-bg {

    position: absolute;

    inset: 0;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,20 L10,8 L25,15 L40,5 L55,12 L70,3 L85,10 L100,2 L100,20 Z' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E") bottom repeat-x;

    background-size: 100% 50px;

}

.mobile-hero-content {

    position: relative;

    z-index: 1;

}

.mobile-hero-title {

    font-size: 1.9rem;

    font-weight: 800;

    color: white;

    margin: 0 0 12px 0;

    line-height: 1.2;

    text-shadow: 0 2px 12px rgba(0,0,0,0.2);

    letter-spacing: -0.02em;

}

.mobile-hero-subtitle {

    font-size: 1rem;

    color: rgba(255,255,255,0.9);

    margin: 0;

    line-height: 1.5;

}

/* MobileSearchSection */

.mobile-search-section {

    padding: 20px;

    margin-top: -20px;

    position: relative;

    z-index: 2;

}

.mobile-search-card {

    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface) 100%);

    border-radius: 20px;

    padding: 28px 24px;

    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border);

    border: none;

}

.mobile-search-card h2 {

    margin: 0 0 24px 0;

    font-size: 1.3rem;

    font-weight: 700;

    color: var(--text);

    text-align: center;

}

.mobile-form-group {

    margin-bottom: 16px;

}

.mobile-form-group label {

    display: block;

    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.875rem;

    font-weight: 500;

}

.mobile-form-group input {

    width: 100%;

    padding: 14px 16px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text);

    font-size: 16px; /* Prevents iOS zoom */

}

.mobile-form-group input:focus {

    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);

}

.mobile-form-divider {

    text-align: center;

    color: var(--text-muted);

    font-size: 0.75rem;

    margin: 16px 0;

    position: relative;

}

.mobile-form-divider::before,

.mobile-form-divider::after {

    content: '';

    position: absolute;

    top: 50%;

    width: calc(50% - 20px);

    height: 1px;

    background: var(--border);

}

.mobile-form-divider::before { left: 0; }

.mobile-form-divider::after { right: 0; }

.mobile-coords-toggle {

    text-align: center;

    color: var(--primary);

    font-size: 0.875rem;

    cursor: pointer;

    margin: 16px 0;

    padding: 8px;

}

.mobile-form-row {

    display: flex;

    gap: 12px;

}

.mobile-form-row .mobile-form-group {

    flex: 1;

}

.mobile-search-btn {

    width: 100%;

    padding: 16px;

    background: var(--gradient-primary);

    color: white;

    border: none;

    border-radius: 14px;

    font-size: 1.1rem;

    font-weight: 700;

    cursor: pointer;

    margin-top: 8px;

    transition: all 0.2s;

    box-shadow: 0 4px 16px var(--primary-glow);

    letter-spacing: 0.02em;

}

.mobile-search-btn:active {

    transform: scale(0.98);

    box-shadow: 0 2px 8px var(--primary-glow);

}

/* MobileFeatures */

.mobile-features {

    padding: 24px 20px;

}

.mobile-features h3 {

    margin: 0 0 16px 0;

    color: var(--text);

    font-size: 1.1rem;

    text-align: center;

}

.mobile-feature-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.mobile-feature-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface) 100%);

    border-radius: 14px;

    border: 1px solid var(--border);

    transition: transform 0.2s, box-shadow 0.2s;

}

.mobile-feature-item:active {

    transform: scale(0.98);

}

.mobile-feature-icon {

    font-size: 1.5rem;

    width: 40px;

    text-align: center;

}

.mobile-feature-text {

    display: flex;

    flex-direction: column;

}

.mobile-feature-text strong {

    color: var(--text);

    font-size: 0.95rem;

}

.mobile-feature-text span {

    color: var(--text-muted);

    font-size: 0.8rem;

}

/* MobileTrustSignals */

.mobile-trust {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    border-top: 1px solid var(--border);

}

.mobile-trust-item {

    text-align: center;

    color: var(--text-muted);

    font-size: 0.85rem;

}

/* Mobile Why Section */
.mobile-why-section {
    padding: 24px 20px;
    background: var(--surface);
    margin: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.mobile-why-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.mobile-why-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mobile-why-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.mobile-why-section li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0 6px 20px;
    position: relative;
}

.mobile-why-section li::before {
    content: "❌";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Mobile Pricing Section */
.mobile-pricing-section {
    padding: 24px 20px;
}

.mobile-pricing-section h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
}

.mobile-pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}

.mobile-pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, var(--surface) 100%);
}

.mobile-pricing-name {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.mobile-pricing-price {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.mobile-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-pricing-card li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0 6px 24px;
    position: relative;
}

.mobile-pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.mobile-pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* Mobile Final CTA */
.mobile-final-cta {
    padding: 32px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(37, 99, 235, 0.1) 100%);
    margin: 16px;
    border-radius: 12px;
}

.mobile-final-cta p {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.mobile-final-cta .mobile-search-btn {
    width: auto;
    padding: 14px 32px;
}

/* Mobile Footer */
.mobile-footer {
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.mobile-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* ==================== MOBILE RESULTS PAGE ==================== */

.mobile-results {

    min-height: 100vh;

    background: var(--background);

    padding-bottom: 100px;

}

.mobile-results-header {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px 20px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 100;

}

.mobile-back-btn {

    background: none;

    border: none;

    color: var(--primary);

    font-size: 1rem;

    cursor: pointer;

    padding: 8px 0;

}

.mobile-results-title {

    color: var(--text);

    font-weight: 600;

    font-size: 1rem;

}

/* MobileTopoContainer */

.mobile-topo-container {

    position: relative;

    height: 280px;

    background: linear-gradient(135deg, #1a3a2f 0%, #0d1f18 100%);

    overflow: hidden;

}

.mobile-map {

    width: 100%;

    height: 100%;

}

.mobile-zoom-controls {

    position: absolute;

    top: 10px;

    left: 10px;

    display: flex;

    flex-direction: column;

    gap: 0;

    z-index: 1000;

    filter: none !important;

    -webkit-filter: none !important;

}

.mobile-zoom-btn {

    width: 40px;

    height: 40px;

    border: none;

    background: rgba(30, 41, 59, 0.95);

    box-shadow: 0 2px 6px rgba(0,0,0,0.3);

    font-size: 24px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    filter: none !important;

    -webkit-filter: none !important;

}

.mobile-zoom-btn:first-child {

    border-radius: 8px 8px 0 0;

    border-bottom: 1px solid rgba(255,255,255,0.2);

}

.mobile-zoom-btn:last-child {

    border-radius: 0 0 8px 8px;

}

.mobile-zoom-btn:active {

    background: rgba(59, 130, 246, 0.9);

}

.mobile-map-controls {

    position: absolute;

    top: 10px;

    right: 10px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    z-index: 1000;

    filter: none !important;

    -webkit-filter: none !important;

}

.mobile-map-btn {

    width: 36px;

    height: 36px;

    border: none;

    border-radius: 8px;

    background: rgba(30, 41, 59, 0.95);

    box-shadow: 0 2px 6px rgba(0,0,0,0.3);

    font-size: 16px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    filter: none !important;

    -webkit-filter: none !important;

}

.mobile-map-btn.active {

    background: var(--primary);

    color: white;

}

.mobile-topo-loading {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: rgba(255,255,255,0.8);

    font-size: 0.9rem;

    z-index: 999;

    background: rgba(0,0,0,0.5);

}

.mobile-topo-spinner {

    width: 32px;

    height: 32px;

    border: 3px solid rgba(255,255,255,0.2);

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 1s linear infinite;

}

@keyframes spin {

    to { transform: rotate(360deg); }

}

/* MobilePropertyCard */

.mobile-property-card {

    margin: 16px;

    padding: 20px;

    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface) 100%);

    border-radius: 16px;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-md);

}

.mobile-property-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 16px;

}

.mobile-property-header h3 {

    margin: 0;

    font-size: 1rem;

    color: var(--text);

    flex: 1;

    line-height: 1.3;

}

.mobile-property-badge {

    background: var(--gradient-primary);

    color: white;

    padding: 5px 12px;

    border-radius: 20px;

    font-size: 0.7rem;

    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 2px 8px var(--primary-glow);

}

.mobile-property-stats {

    display: flex;

    justify-content: space-around;

    text-align: center;

}

.mobile-stat {

    display: flex;

    flex-direction: column;

    align-items: center;

}

.mobile-stat-value {

    font-size: 1.35rem;

    font-weight: 800;

    background: var(--gradient-primary);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

.mobile-stat-label {

    font-size: 0.75rem;

    color: var(--text-muted);

    margin-top: 2px;

}

/* MobilePreviewSection */

.mobile-preview-section {

    padding: 0 16px;

}

.mobile-preview-section h4 {

    margin: 0 0 12px 0;

    color: var(--text);

    font-size: 1rem;

}

.mobile-result-card {

    background: linear-gradient(145deg, var(--surface-light) 0%, var(--surface) 100%);

    border-radius: 14px;

    border: 1px solid var(--border);

    margin-bottom: 12px;

    overflow: hidden;

    box-shadow: var(--shadow-sm);

}

.mobile-result-header {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    background: rgba(255,255,255,0.02);

    border-bottom: 1px solid var(--border);

}

.mobile-result-icon {

    font-size: 1.25rem;

}

.mobile-result-title {

    font-weight: 600;

    color: var(--text);

    font-size: 0.95rem;

}

.mobile-result-content {

    padding: 12px 16px;

}

.mobile-result-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 8px 0;

    color: var(--text-muted);

    font-size: 0.9rem;

}

.mobile-result-row:not(:last-child) {

    border-bottom: 1px solid var(--border);

}

.mobile-result-value {

    color: var(--text);

    font-weight: 600;

}

.mobile-result-locked {

    opacity: 0.6;

}

.mobile-locked-value {

    color: var(--text-muted);

    font-size: 0.85rem;

}

/* MobileUnlockSection */

.mobile-unlock-section {

    display: none; /* Hidden by default on desktop */

    padding: 16px;

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    background: linear-gradient(0deg, var(--background) 80%, transparent);

    padding-top: 40px;

    z-index: 100;

}

.mobile-unlock-card {

    background: linear-gradient(135deg, var(--success) 0%, #15803d 100%);

    border-radius: 16px;

    padding: 16px;

    cursor: pointer;

    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);

}

.mobile-unlock-header {

    display: flex;

    align-items: center;

    gap: 12px;

}

.mobile-unlock-icon {

    font-size: 2rem;

}

.mobile-unlock-text {

    flex: 1;

    display: flex;

    flex-direction: column;

}

.mobile-unlock-text strong {

    color: white;

    font-size: 1rem;

}

.mobile-unlock-text span {

    color: rgba(255,255,255,0.8);

    font-size: 0.8rem;

}

.mobile-unlock-price {

    color: white;

    font-size: 1.5rem;

    font-weight: 700;

}

.mobile-unlock-cta {

    text-align: center;

    color: white;

    font-weight: 600;

    margin-top: 12px;

    padding-top: 12px;

    border-top: 1px solid rgba(255,255,255,0.2);

}

/* MobileResultsFooter */

.mobile-results-footer {

    display: none; /* Hidden by default on desktop */

    text-align: center;

    padding: 20px;

    padding-bottom: 140px; /* Space for fixed unlock card */

    color: var(--text-muted);

    font-size: 0.75rem;

}

/* MobileDataCards */

.mobile-data-card {

    margin: 12px 16px;

    background: var(--surface);

    border-radius: 12px;

    border: 1px solid var(--border);

    overflow: hidden;

    position: relative; /* For absolute positioning of premium overlay */

}

/* Premium Section Styling */

.premium-section .mobile-data-content.blurred {

    filter: blur(6px);

    pointer-events: none;

    user-select: none;

}

.premium-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(15, 23, 42, 0.92);

    backdrop-filter: blur(10px);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 10;

    cursor: pointer;

}

.premium-overlay-content {

    text-align: center;

    padding: 24px;

}

.premium-icon {

    font-size: 2.5rem;

    margin-bottom: 12px;

}

.premium-title {

    font-size: 1.1rem;

    font-weight: 700;

    color: white;

    margin-bottom: 6px;

}

.premium-subtitle {

    font-size: 0.9rem;

    color: rgba(255, 255, 255, 0.7);

    margin-bottom: 16px;

}

.premium-unlock-btn {

    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);

    color: white;

    border: none;

    padding: 12px 28px;

    border-radius: 8px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);

    transition: all 0.2s;

}

.premium-unlock-btn:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);

}

/* Hide overlay when parcel is unlocked */

.premium-section.unlocked .premium-overlay {

    display: none;

}

.premium-section.unlocked .mobile-data-content.blurred {

    filter: none;

    pointer-events: auto;

    user-select: auto;

}

.mobile-data-header {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    background: rgba(255,255,255,0.03);

    border-bottom: 1px solid var(--border);

}

.mobile-data-icon {

    font-size: 1.2rem;

}

.mobile-data-title {

    font-weight: 600;

    color: var(--text);

    font-size: 0.95rem;

}

.mobile-data-content {

    padding: 12px 16px;

}

.mobile-data-loading {

    color: var(--text-muted);

    font-size: 0.85rem;

    text-align: center;

    padding: 8px 0;

}

.mobile-data-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 8px 0;

    font-size: 0.9rem;

}

.mobile-data-row:not(:last-child) {

    border-bottom: 1px solid var(--border);

}

.mobile-data-label {

    color: var(--text-muted);

}

.mobile-data-value {

    color: var(--text);

    font-weight: 600;

}

.mobile-data-value.success {

    color: var(--success);

}

.mobile-data-value.warning {

    color: var(--warning);

}

.mobile-data-value.danger {

    color: var(--danger);

}

/* Mobile Teaser Styles - Preview before unlock */

.mobile-teaser {

    padding: 16px;

    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);

    border-top: 1px solid var(--border);

}

.teaser-stat {

    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-bottom: 12px;

}

.teaser-value {

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--success);

}

.teaser-label {

    font-size: 0.9rem;

    color: var(--text-muted);

}

.teaser-unlock {

    background: rgba(34, 197, 94, 0.15);

    border: 1px dashed var(--success);

    border-radius: 8px;

    padding: 12px 16px;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s;

}

.teaser-unlock:hover {

    background: rgba(34, 197, 94, 0.25);

    transform: translateY(-1px);

}

.teaser-unlock span {

    color: var(--success);

    font-weight: 600;

    font-size: 0.9rem;

}

/* Teaser detail rows */

.teaser-details {

    margin: 12px 0;

    padding: 10px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

}

.teaser-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 6px 0;

}

.teaser-row-label {

    font-size: 0.85rem;

    color: var(--text-muted);

}

.teaser-row-value {

    font-size: 0.9rem;

    font-weight: 600;

    color: var(--text);

}

.teaser-row-value.favorable {

    color: var(--success);

}

.teaser-row-value.moderate {

    color: var(--warning);

}

.teaser-row-value.challenging {

    color: var(--danger);

}

.mobile-well-count {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    margin-bottom: 8px;

}

.mobile-well-count-value {

    font-size: 1.5rem;

    font-weight: 700;

    color: var(--primary);

}

.mobile-well-count-label {

    color: var(--text-muted);

    font-size: 0.85rem;

}

.mobile-feasibility-badge {

    display: inline-block;

    padding: 4px 12px;

    border-radius: 20px;

    font-size: 0.85rem;

    font-weight: 600;

}

.mobile-feasibility-badge.favorable {

    background: rgba(34, 197, 94, 0.2);

    color: var(--success);

}

.mobile-feasibility-badge.moderate {

    background: rgba(245, 158, 11, 0.2);

    color: var(--warning);

}

.mobile-feasibility-badge.challenging {

    background: rgba(239, 68, 68, 0.2);

    color: var(--danger);

}

/* Address suggestions dropdown for mobile */

.mobile-search-card .suggestions-dropdown {

    position: absolute;

    top: calc(100% + 4px);

    left: 0;

    right: 0;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow: 0 8px 32px rgba(0,0,0,0.4);

    z-index: 1000;

    max-height: 280px;

    overflow-y: auto;

    display: none;

}

.mobile-search-card .suggestions-dropdown.active {

    display: block;

}

.mobile-search-card .suggestion-item {

    padding: 14px 16px;

    cursor: pointer;

    border-bottom: 1px solid var(--border);

    transition: background 0.15s;

}

.mobile-search-card .suggestion-item:last-child {

    border-bottom: none;

}

.mobile-search-card .suggestion-item:hover,

.mobile-search-card .suggestion-item.active {

    background: var(--surface-light);

}

.mobile-search-card .suggestion-item .address-main {

    font-size: 15px;

    font-weight: 500;

    color: var(--text);

    margin-bottom: 3px;

}

.mobile-search-card .suggestion-item .address-secondary {

    font-size: 13px;

    color: var(--text-muted);

}

.mobile-search-card .suggestion-loading {

    padding: 20px 16px;

    text-align: center;

    color: var(--text-muted);

    font-size: 14px;

}

.mobile-form-group {

    position: relative;

}

/* Cost estimate rows */

.mobile-cost-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border);

}

.mobile-cost-row:last-of-type {

    border-bottom: none;

}

.mobile-cost-row.municipal {

    background: rgba(76, 175, 80, 0.08);

    padding: 12px;

    margin: 0 -12px;

    border-radius: 6px;

    border-bottom: none;

}

.mobile-cost-icon {

    font-size: 1.1rem;

    width: 24px;

    text-align: center;

    flex-shrink: 0;

    padding-top: 2px;

}

.mobile-cost-details {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 2px;

    min-width: 0;

}

.mobile-cost-label {

    color: var(--text);

    font-size: 0.9rem;

    font-weight: 500;

}

.mobile-cost-sublabel {

    color: var(--text-muted);

    font-size: 0.75rem;

    line-height: 1.3;

}

.mobile-cost-value {

    font-weight: 600;

    color: var(--text);

    font-size: 0.85rem;

    text-align: right;

    white-space: nowrap;

    flex-shrink: 0;

}

.cost-section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-bottom: 8px;

    margin-bottom: 4px;

    border-bottom: 2px solid var(--primary);

}

.cost-section-header span:first-child {

    font-weight: 700;

    color: var(--text);

    font-size: 0.95rem;

}

.cost-header-note {

    font-size: 0.7rem;

    color: var(--text-muted);

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

.mobile-cost-total {

    margin-top: 16px;

    padding: 16px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #1a73e8));

    border-radius: 12px;

    margin: 16px -12px -8px;

}

.cost-total-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

    padding-bottom: 8px;

    border-bottom: 1px solid rgba(255,255,255,0.2);

}

.cost-total-label {

    color: rgba(255,255,255,0.85);

    font-size: 0.85rem;

}

.cost-total-value {

    color: white;

    font-weight: 600;

    font-size: 0.95rem;

}

.cost-total-primary {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.cost-total-primary .cost-total-label {

    font-weight: 600;

    font-size: 0.9rem;

}

.cost-total-big {

    color: white;

    font-size: 1.4rem;

    font-weight: 700;

}

.cost-disclaimer {

    margin-top: 12px;

    padding: 10px;

    background: rgba(255, 193, 7, 0.08);

    border-radius: 6px;

    border-left: 3px solid var(--warning);

}

.cost-disclaimer p {

    margin: 0;

    font-size: 0.7rem;

    color: var(--text-muted);

    line-height: 1.4;

}

/* Share andNavigate buttons */

.mobile-property-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}

.mobile-share-btn,

.mobile-navigate-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-muted);

    cursor: pointer;

    transition: all 0.2s;

}

.mobile-share-btn:hover,

.mobile-navigate-btn:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: white;

}

.mobile-share-btn:active,

.mobile-navigate-btn:active {

    transform: scale(0.95);

}

/* ToastNotification */

.toast-notification {

    position: fixed;

    bottom: 100px;

    left: 50%;

    transform: translateX(-50%) translateY(20px);

    background: var(--surface);

    color: var(--text);

    padding: 12px 20px;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.3);

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 0.9rem;

    font-weight: 500;

    opacity: 0;

    transition: all 0.3s ease;

    z-index: 10000;

    border: 1px solid var(--border);

}

.toast-notification.show {

    opacity: 1;

    transform: translateX(-50%) translateY(0);

}

.toast-notification span {

    color: var(--success);

    font-weight: 700;

}

/* MapPickerModal */

.map-picker-modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: var(--bg);

    z-index: 10000;

    display: flex;

    flex-direction: column;

}

.map-picker-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 16px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    gap: 12px;

}

.map-picker-header h3 {

    flex: 1;

    margin: 0;

    font-size: 1rem;

    color: var(--text);

    text-align: center;

}

.map-picker-close {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    border: none;

    background: var(--bg);

    color: var(--text);

    font-size: 1.2rem;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

}

.map-picker-confirm {

    padding: 8px 16px;

    border-radius: 20px;

    border: none;

    background: var(--primary);

    color: white;

    font-size: 0.85rem;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

}

.map-picker-confirm:disabled {

    background: var(--text-muted);

    opacity: 0.5;

    cursor: not-allowed;

}

.map-picker-instructions {

    padding: 10px 16px;

    background: rgba(33, 150, 243, 0.1);

    color: var(--primary);

    font-size: 0.85rem;

    text-align: center;

}

.map-picker-search {

    display: flex;

    padding: 10px 16px;

    gap: 8px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

}

.map-picker-search input {

    flex: 1;

    padding: 10px 14px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--bg);

    color: var(--text);

    font-size: 0.9rem;

}

.map-picker-search button {

    padding: 10px 16px;

    border: none;

    border-radius: 8px;

    background: var(--primary);

    color: white;

    font-size: 1rem;

    cursor: pointer;

}

.map-picker-container {

    flex: 1;

    min-height: 300px;

}

.map-picker-coords {

    padding: 10px 16px;

    background: var(--surface);

    border-top: 1px solid var(--border);

    text-align: center;

    font-family: monospace;

    font-size: 0.85rem;

    color: var(--text-muted);

}

.map-pin-icon {

    font-size: 48px;

    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));

    animation: pinDrop 0.3s ease-out;

}

@keyframes pinDrop {

    0% {

        transform: translateY(-20px);

        opacity: 0;

    }

    100% {

        transform: translateY(0);

        opacity: 1;

    }

}

/* County tooltip styling */

.county-tooltip {

    background: rgba(0, 0, 0, 0.8) !important;

    border: none !important;

    border-radius: 4px !important;

    color: white !important;

    font-size: 12px !important;

    padding: 4px 8px !important;

    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;

}

.county-tooltip::before {

    display: none !important;

}

/* Map legend for picker */

.map-picker-legend {

    position: absolute;

    bottom: 60px;

    left: 10px;

    background: rgba(0,0,0,0.75);

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 11px;

    z-index: 1000;

    pointer-events: none;

}

.map-picker-legend div {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 4px 0;

}

.legend-line {

    width: 20px;

    height: 3px;

    border-radius: 2px;

}

.legend-line.state {

    background: #FFD700;

    border: 1px dashed #FFD700;

}

.legend-line.county {

    background: #00BFFF;

}

.legend-line.parcel {

    background: #FF6B35;

}

.legend-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

}

.legend-dot.wells {

    background: #2196F3;

}

/* ==================== RECENT SEARCHES ==================== */

.recent-searches-container {

    margin-bottom: 20px;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    background: var(--surface);

}

.recent-searches-header {

    padding: 12px 16px;

    background: var(--surface-light);

    border-bottom: 1px solid var(--border);

    font-size: 13px;

    font-weight: 600;

    color: var(--text-muted);

}

.recent-searches-list {

    max-height: 200px;

    overflow-y: auto;

}

.recent-search-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 12px 16px;

    border-bottom: 1px solid var(--border);

    cursor: pointer;

    transition: background 0.2s;

}

.recent-search-item:last-child {

    border-bottom: none;

}

.recent-search-item:hover {

    background: var(--surface-light);

}

.recent-search-info {

    flex: 1;

    min-width: 0;

}

.recent-search-address {

    font-size: 14px;

    font-weight: 500;

    color: var(--text);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

.recent-search-meta {

    font-size: 12px;

    color: var(--text-muted);

    margin-top: 2px;

}

.recent-search-arrow {

    color: var(--primary);

    font-size: 16px;

    margin-left: 12px;

}

/* ==================== RED FLAGS / ALERTS ==================== */

.red-flags-container {

    margin: 0 16px 16px 16px;

}

.red-flags-header {

    font-size: 14px;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 10px;

}

.red-flags-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}

.red-flag-item {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 12px 14px;

    border-radius: 10px;

    background: var(--surface);

    border-left: 4px solid;

}

.red-flag-warning {

    border-color: #ef4444;

    background: rgba(239, 68, 68, 0.1);

}

.red-flag-caution {

    border-color: #f59e0b;

    background: rgba(245, 158, 11, 0.1);

}

.red-flag-info {

    border-color: #3b82f6;

    background: rgba(59, 130, 246, 0.1);

}

.red-flag-icon {

    font-size: 20px;

    flex-shrink: 0;

}

.red-flag-content {

    flex: 1;

}

.red-flag-title {

    font-size: 14px;

    font-weight: 600;

    color: var(--text);

    margin-bottom: 2px;

}

.red-flag-message {

    font-size: 13px;

    color: var(--text-muted);

    line-height: 1.4;

}

/* ==================== SHARE & ACTION BUTTONS ==================== */

.mobile-results-header {

    display: flex;

    align-items: center;

    gap: 12px;

}

.mobile-results-actions {

    display: flex;

    gap: 8px;

    margin-left: auto;

    padding-right: 12px;

}

.mobile-action-btn {

    width: 36px;

    height: 36px;

    border-radius: 8px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-muted);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

}

.mobile-action-btn:hover {

    background: var(--surface-light);

    color: var(--text);

    border-color: var(--text-muted);

}

.mobile-action-btn svg {

    width: 18px;

    height: 18px;

}

/* ==================== NEARBY PARCELS ==================== */

.nearby-parcels-container {

    margin: 16px;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    background: var(--surface);

}

.nearby-header {

    padding: 14px 16px;

    background: var(--surface-light);

    border-bottom: 1px solid var(--border);

    font-size: 14px;

    font-weight: 600;

    color: var(--text);

}

.nearby-list {

    max-height: 300px;

    overflow-y: auto;

}

.nearby-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 16px;

    border-bottom: 1px solid var(--border);

    cursor: pointer;

    transition: background 0.2s;

}

.nearby-item:last-child {

    border-bottom: none;

}

.nearby-item:hover {

    background: var(--surface-light);

}

.nearby-info {

    flex: 1;

    min-width: 0;

}

.nearby-address {

    font-size: 14px;

    font-weight: 500;

    color: var(--text);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

.nearby-meta {

    font-size: 12px;

    color: var(--text-muted);

    margin-top: 2px;

}

.nearby-arrow {

    color: var(--primary);

    font-size: 13px;

    font-weight: 500;

    margin-left: 12px;

    white-space: nowrap;

}

.nearby-loading, .nearby-empty {

    padding: 20px 16px;

    text-align: center;

    color: var(--text-muted);

    font-size: 14px;

}

/* ==================== PRINT STYLES ==================== */

@media print {

    body {

        background: white !important;

        color: black !important;

    }

    

    .mobile-landing,

    .mobile-results-header,

    .mobile-map-controls,

    .mobile-zoom-controls,

    .mobile-unlock-section,

    .mobile-results-footer,

    .nearby-parcels-container,

    .mobile-action-btn,

    .desktop-only,

    .upgrade-btn,

    .user-menu {

        display: none !important;

    }

    

    .mobile-results {

        display: block !important;

        background: white !important;

    }

    

    .mobile-topo-container {

        height: 300px !important;

        page-break-inside: avoid;

    }

    

    .mobile-property-card,

    .mobile-data-card,

    .red-flags-container {

        break-inside: avoid;

        page-break-inside: avoid;

        background: white !important;

        border: 1px solid #ddd !important;

        margin: 10px 0 !important;

    }

    

    .red-flag-item {

        background: #f9f9f9 !important;

    }

    

    .mobile-data-header {

        background: #f0f0f0 !important;

    }

    

    .mobile-property-header h3,

    .mobile-stat-value,

    .mobile-data-title,

    .red-flag-title,

    .nearby-address {

        color: black !important;

    }

    

    .mobile-stat-label,

    .mobile-text-muted,

    .red-flag-message,

    .nearby-meta {

        color: #666 !important;

    }

    

    /* Print header */

    .mobile-results::before {

        content: "ColoradoSitePlanner - PropertyAnalysisReport";

        display: block;

        font-size: 18px;

        font-weight: bold;

        text-align: center;

        padding: 20px 0;

        border-bottom: 2px solid black;

        margin-bottom: 20px;

    }

    

    /* Print footer */

    .mobile-results::after {

        content: "Generated from coloradositeplanner.com | Data fromColoradoDWR & USGS";

        display: block;

        font-size: 10px;

        text-align: center;

        padding: 20px 0;

        border-top: 1px solid #ddd;

        margin-top: 20px;

        color: #666;

    }

}

/* ==================== PROGRESS INDICATOR ==================== */

.mobile-progress-container {

    display: none;

    flex-direction: row;

    justify-content: space-between;

    padding: 12px 16px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

    gap: 8px;

    transition: opacity 0.3s ease;

}

.mobile-progress-step {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 4px;

    flex: 1;

    opacity: 0.4;

    transition: all 0.3s ease;

}

.mobile-progress-step.active {

    opacity: 1;

}

.mobile-progress-step.completed {

    opacity: 1;

}

.mobile-progress-step .progress-icon {

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    border-radius: 50%;

    background: var(--surface-light);

    color: var(--text-muted);

    transition: all 0.3s ease;

}

.mobile-progress-step.active .progress-icon {

    background: var(--primary);

    color: white;

    animation: pulse 1.5s infinite;

}

.mobile-progress-step.completed .progress-icon {

    background: #22c55e;

    color: white;

}

.mobile-progress-step .progress-text {

    font-size: 10px;

    color: var(--text-muted);

    text-align: center;

    white-space: nowrap;

}

.mobile-progress-step.active .progress-text,

.mobile-progress-step.completed .progress-text {

    color: var(--text);

}

@keyframes pulse {

    0%, 100% { transform: scale(1); }

    50% { transform: scale(1.1); }

}

/* ==================== COLLAPSIBLE CARDS ==================== */

.mobile-data-header.collapsible {

    cursor: pointer;

    user-select: none;

    transition: background 0.2s;

}

.mobile-data-header.collapsible:hover {

    background: var(--surface-light);

}

.mobile-data-header.collapsible:active {

    background: var(--surface);

}

.collapse-icon {

    margin-left: auto;

    font-size: 10px;

    color: var(--text-muted);

    transition: transform 0.3s ease;

}

.mobile-data-card .mobile-data-content {

    overflow: hidden;

    transition: max-height 0.3s ease;

}

.mobile-data-card.collapsed .mobile-data-content {

    max-height: 0 !important;

    padding-top: 0;

    padding-bottom: 0;

}

.mobile-data-card.collapsed .collapse-icon {

    transform: rotate(-90deg);

}

/* ==================== SEARCH AGAIN BUTTON ==================== */

.mobile-search-again-container {

    padding: 16px;

    padding-bottom: 120px;

    position: sticky;

    bottom: 0;

    background: linear-gradient(transparent, var(--background) 20%);

    padding-top: 40px;

    margin-top: -24px;

    z-index: 50;

}

.mobile-search-again-btn {

    width: 100%;

    padding: 16px 24px;

    font-size: 16px;

    font-weight: 600;

    color: var(--text);

    background: var(--surface);

    border: 2px solid var(--border);

    border-radius: 12px;

    cursor: pointer;

    transition: all 0.2s;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}

.mobile-search-again-btn:hover {

    background: var(--surface-light);

    border-color: var(--primary);

    color: var(--primary);

}

.mobile-search-again-btn:active {

    transform: scale(0.98);

}

/* ==================== ENVIRONMENTAL DATA SECTION ==================== */

.mobile-env-sections {

    display: flex;

    flex-direction: column;

    gap: 16px;

}

.mobile-env-item {

    padding-bottom: 14px;

    border-bottom: 1px solid var(--border);

}

.mobile-env-item:last-child {

    padding-bottom: 0;

    border-bottom: none;

}

.mobile-env-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 8px;

}

.mobile-env-icon {

    font-size: 18px;

}

.mobile-env-title {

    font-size: 14px;

    font-weight: 600;

    color: var(--text);

    flex: 1;

}

.mobile-env-description {

    font-size: 13px;

    color: var(--text-muted);

    line-height: 1.4;

    margin-bottom: 6px;

}

.mobile-env-description strong {

    color: var(--text);

}

.mobile-env-warning {

    font-size: 12px;

    color: #f59e0b;

    background: rgba(245, 158, 11, 0.1);

    padding: 6px 10px;

    border-radius: 6px;

    margin-top: 6px;

}

.mobile-env-list {

    margin: 4px 0 0 0;

    padding-left: 18px;

    font-size: 12px;

    color: var(--text-muted);

    line-height: 1.6;

}

.mobile-env-list li {

    margin-bottom: 2px;

}