/* Terriq Parcel Subsidence Inspector™ - Premium B2C/B2B Dark Design System */
:root {
    --bg-main: #080B11;
    --card-bg: rgba(15, 23, 42, 0.94);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-purple: #A855F7;
    --accent-red: #EF4444;
    --accent-amber: #F59E0B;
    --accent-green: #10B981;
    --accent-cyan: #06B6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Map Container */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: #080B11;
}

/* Top Search Header */
.top-header {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 440px;
    max-width: calc(100vw - 32px);
}

.search-box-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.brand-badge span {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-purple);
}

.header-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 11px 40px 11px 14px;
    color: #FFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: rgba(0, 0, 0, 0.65);
}

.search-icon {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

/* Suggestions dropdown */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
    z-index: 1001;
}

.suggestion-item {
    padding: 10px 14px;
    font-size: 12px;
    color: #E2E8F0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #FFF;
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.quick-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Toggle button for small screens */
.panel-toggle-btn {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--card-bg);
    border: 1px solid var(--accent-purple);
    color: #FFF;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Right Side Audit Panel */
.audit-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    width: 440px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.audit-panel::-webkit-scrollbar {
    width: 5px;
}
.audit-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

/* Score Card */
.score-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid;
    box-shadow: 0 0 16px currentColor;
}

.score-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 2px;
}

.score-details {
    flex: 1;
}

.score-level-badge {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 3px;
    line-height: 1.3;
}

.score-mining-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #E2E8F0;
    font-weight: 600;
}

/* Key Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 12px;
}

.metric-label {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.metric-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15.5px;
    font-weight: 700;
    color: #FFF;
}

/* Listing Detected Card */
.listing-card {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    padding: 8px 10px;
    margin: 10px 0;
    animation: fadeIn 0.25s ease-out;
}

.listing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.listing-badge {
    background: #9333EA;
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

.listing-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #FCD34D;
}

.listing-area {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #94A3B8;
}

.listing-title {
    font-size: 11px;
    color: #E2E8F0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Time-Series Trajectory Card */
.timeseries-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.timeseries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeseries-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}

.timeseries-legend {
    font-size: 11px;
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
}

.timeseries-chart-box {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Recommendations Card */
.recom-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.recom-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #E2E8F0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.recom-text {
    font-size: 13px;
    line-height: 1.55;
    color: #CBD5E1;
    margin-bottom: 12px;
}

.tip-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--accent-amber);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #FDE68A;
    line-height: 1.45;
    margin-bottom: 8px;
}

.tip-box.danger {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: var(--accent-red);
    color: #FCA5A5;
}

.tip-box.success {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: var(--accent-green);
    color: #6EE7B7;
}

/* Action Buttons */
.action-row {
    display: flex;
    gap: 8px;
}

.btn-cert {
    flex: 1;
    background: linear-gradient(135deg, #9333EA, #7E22CE);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
    transition: all 0.2s ease;
}

.btn-cert:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(147, 51, 234, 0.6);
}

/* Responsive Styles for Medium and Small Screens */
@media (max-width: 1024px) {
    .top-header {
        width: 360px;
    }
    .audit-panel {
        width: 380px;
    }
}

@media (max-width: 880px) {
    .top-header {
        width: calc(100vw - 32px);
    }
    .panel-toggle-btn {
        display: block;
    }
    .audit-panel {
        top: auto;
        bottom: 70px;
        right: 16px;
        left: 16px;
        width: calc(100vw - 32px);
        max-height: 52vh;
        transform: translateY(0);
    }
}

/* Ghosted / Locked Content & Teaser Paywall */
.ghosted-blur {
    -webkit-filter: blur(14px);
    filter: blur(14px);
    opacity: 0.18;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: -webkit-filter 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

.unlock-teaser-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 10px 0 14px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.unlock-teaser-card.risk-alert {
    border-color: rgba(239, 68, 68, 0.65);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(15, 23, 42, 0.97) 60%);
    box-shadow: 0 16px 36px rgba(220, 38, 38, 0.28);
}

.unlock-teaser-card.risk-alert .unlock-badge {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.unlock-teaser-card.safe-alert {
    border-color: rgba(16, 185, 129, 0.65);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.97) 60%);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
}

.unlock-teaser-card.safe-alert .unlock-badge {
    color: #6EE7B7;
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.unlock-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FCD34D;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 9px;
}

.unlock-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 12px;
    line-height: 1.4;
}

.unlock-bullets {
    text-align: left;
    font-size: 12.5px;
    color: #CBD5E1;
    line-height: 1.55;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.teaser-bullet-item {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.teaser-bullet-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.teaser-lock-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E2E8F0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.04em;
    font-family: 'JetBrains Mono', monospace;
}

.teaser-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #CBD5E1;
    margin-bottom: 12px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 7px 12px;
    border-radius: 8px;
}

.teaser-price-bold {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14.5px;
    font-weight: 800;
    color: #FCD34D;
}

.btn-unlock-cta {
    width: 100%;
    background: linear-gradient(135deg, #9333EA, #7E22CE);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFF;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.45);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-unlock-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(147, 51, 234, 0.65);
}

.btn-price-pill {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.unlock-note {
    font-size: 11px;
    color: #94A3B8;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.unlock-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.trust-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Modal Checkout Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 11, 17, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: #0F172A;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    width: 480px;
    max-width: 100%;
    padding: 24px 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.modal-sub {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    color: #C084FC;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFF;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
}
.modal-close:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.1);
}

.modal-summary {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 6px;
}

.summary-features {
    font-size: 11px;
    color: #CBD5E1;
    line-height: 1.45;
    margin: 10px 0;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 700;
    color: #FFF;
}

.price-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 800;
    color: #FCD34D;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 9px 12px;
    color: #FFF;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #A855F7;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.blik-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
    color: #FCD34D;
}

.payment-tabs {
    display: flex;
    gap: 8px;
}

.pay-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
    transition: all 0.2s ease;
}

.pay-tab input {
    margin: 0;
}

.pay-tab.active {
    border-color: #A855F7;
    background: rgba(168, 85, 247, 0.12);
    color: #FFF;
}

.blik-badge {
    background: #E11D48;
    color: #FFF;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #9333EA, #7E22CE);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFF;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.45);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(147, 51, 234, 0.65);
}

.checkout-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    font-size: 11px;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.modal-footer-note {
    font-size: 10px;
    color: #64748B;
    text-align: center;
    margin-top: 14px;
    line-height: 1.4;
}

/* ==========================================================================
   Leaflet Map Controls Styling (Dark Glassmorphism & Spacing)
   ========================================================================== */
.leaflet-bottom.leaflet-left {
    margin-left: 16px;
    margin-bottom: 24px;
    z-index: 950;
}

.leaflet-bottom.leaflet-right {
    margin-right: 16px;
    margin-bottom: 24px;
    z-index: 950;
}

/* Layer Control Switcher */
.leaflet-control-layers {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75) !important;
    color: #F8FAFC !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 12px !important;
    transition: all 0.2s ease;
}

.leaflet-control-layers:hover {
    border-color: rgba(168, 85, 247, 0.4) !important;
}

.leaflet-control-layers-toggle {
    filter: invert(1) brightness(1.2);
    width: 38px !important;
    height: 38px !important;
    background-size: 20px 20px !important;
}

.leaflet-control-layers-expanded {
    padding: 12px 16px !important;
    min-width: 230px;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
    margin-bottom: 8px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    font-size: 12px;
    font-weight: 500;
}

.leaflet-control-layers-base label:hover,
.leaflet-control-layers-overlays label:hover {
    color: #FFFFFF;
}

.leaflet-control-layers-base input[type="radio"],
.leaflet-control-layers-overlays input[type="checkbox"] {
    accent-color: #A855F7;
    cursor: pointer;
}

.leaflet-control-layers-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    margin: 10px 0 !important;
}

/* Zoom Controls (+ / -) */
.leaflet-control-zoom {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-control-zoom a {
    background-color: var(--card-bg) !important;
    color: #F8FAFC !important;
    border-bottom: 1px solid var(--border-color) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 16px !important;
    transition: all 0.15s ease;
}

.leaflet-control-zoom a:hover {
    background-color: rgba(30, 41, 59, 0.95) !important;
    color: #38BDF8 !important;
}

/* ==========================================================================
   TERRIQ ENGINEERING PRINT ENGINE (100% VECTOR DIN A4 OUTPUT)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    
    html, body {
        width: 210mm !important;
        height: auto !important;
        background: #FFFFFF !important;
        color: #0F172A !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #map, .top-header, .panel-toggle-btn, .audit-panel, .listing-card {
        display: none !important;
    }

    #pdfPrintContainer {
        display: block !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        background: #FFFFFF !important;
    }

    .pdf-page {
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        box-sizing: border-box !important;
        padding: 16mm 16mm 12mm 16mm !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: #FFFFFF !important;
    }

    .pdf-page:last-child {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
}

#pdfPrintContainer {
    display: none;
}



