    /* Taxpayer County Request Modal */
    .req-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(15, 23, 42, 0.82);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      box-sizing: border-box;
      animation: reqFadeIn 0.2s ease;
    }

    @keyframes reqFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .req-modal-card {
      background-color: #1e293b;
      border: 1px solid #334155;
      border-radius: 10px;
      width: 100%;
      max-width: 480px;
      padding: 26px 28px;
      box-sizing: border-box;
      position: relative;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
      animation: reqSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes reqSlideUp {
      from { transform: translateY(12px) scale(0.97); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }

    .req-modal-close-btn {
      position: absolute;
      top: 18px;
      right: 18px;
      background: none;
      border: none;
      color: #94a3b8;
      font-size: 1.1rem;
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      transition: color 0.15s ease, background-color 0.15s ease;
    }

    .req-modal-close-btn:hover {
      color: #f8fafc;
      background-color: #334155;
    }

    .req-modal-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.72rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #60a5fa;
      background-color: rgba(37, 99, 235, 0.12);
      border: 1px solid rgba(59, 130, 246, 0.3);
      padding: 4px 10px;
      border-radius: 4px;
      margin-bottom: 12px;
    }

    .req-modal-title {
      font-size: 1.45rem;
      font-weight: 700;
      color: #f8fafc;
      margin: 0 0 6px 0;
      letter-spacing: -0.01em;
    }

    .req-modal-lead {
      font-size: 0.88rem;
      font-weight: 500;
      color: #cbd5e1;
      margin: 0 0 8px 0;
      line-height: 1.4;
    }

    .req-modal-desc {
      font-size: 0.82rem;
      color: #94a3b8;
      margin: 0 0 20px 0;
      line-height: 1.5;
    }

    .req-modal-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .req-form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      text-align: left;
    }

    .req-form-label {
      font-size: 0.76rem;
      font-weight: 600;
      color: #cbd5e1;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .req-form-input,
    .req-form-select {
      background-color: #0f172a;
      border: 1px solid #334155;
      border-radius: 6px;
      padding: 10px 14px;
      color: #f8fafc;
      font-size: 0.88rem;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
      box-sizing: border-box;
      width: 100%;
    }

    .req-form-input:focus,
    .req-form-select:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    }

    .req-form-input::placeholder {
      color: #64748b;
    }

    .req-submit-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background-color: #2563eb;
      border: 1px solid #3b82f6;
      color: #ffffff;
      font-size: 0.88rem;
      font-weight: 600;
      padding: 11px 18px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.15s ease, transform 0.1s ease;
      margin-top: 4px;
    }

    .req-submit-btn:hover {
      background-color: #1d4ed8;
    }

    .req-submit-btn:active {
      transform: scale(0.99);
    }

    .req-modal-success {
      text-align: center;
      padding: 16px 8px;
    }

    .req-success-icon {
      font-size: 2.6rem;
      color: #34d399;
      margin-bottom: 12px;
    }

    .req-success-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #f8fafc;
      margin: 0 0 8px 0;
    }

    .req-success-desc {
      font-size: 0.86rem;
      color: #94a3b8;
      line-height: 1.5;
      margin: 0 0 20px 0;
    }

    .req-success-desc strong {
      color: #f8fafc;
    }

    .req-modal-done-btn {
      background-color: #0f172a;
      border: 1px solid #334155;
      color: #f8fafc;
      font-size: 0.84rem;
      font-weight: 600;
      padding: 9px 24px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.15s ease;
    }

    .req-modal-done-btn:hover {
      background-color: #243248;
      border-color: #475569;
    }

    .req-modal-footer {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid #334155;
      font-size: 0.76rem;
      color: #64748b;
      text-align: center;
    }

    .req-modal-footer a {
      color: #93c5fd;
      text-decoration: none;
    }

    .req-modal-footer a:hover {
      text-decoration: underline;
    }

    /* --- PRC, Radial, Tax, and Platbook Modal Styles --- */
    #prc-modal, #radial-modal, #tax-modal, #platbook-modal {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 3000; /* On top of everything */
    }

    #prc-modal.modal-visible, #radial-modal.modal-visible, #tax-modal.modal-visible, #platbook-modal.modal-visible {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #prc-modal-overlay, #radial-modal-overlay, #tax-modal-overlay, #platbook-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
    }

    #prc-modal-content, #radial-modal-content, #tax-modal-content {
        position: relative;
        z-index: 3001;
        width: 9.2in;
        max-width: 95vw;
        height: 95vh;
        margin-top: 2.5vh;
        background-color: #e5e7eb; /* match --bg-page */
        border-radius: 8px;
        box-shadow: 0 10px 35px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #prc-modal-header, #radial-modal-header, #tax-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #d1d5db;
        background-color: #fff;
        flex-shrink: 0;
    }
    
    #prc-modal-header h3, #radial-modal-header h3, #tax-modal-header h3 {
        margin: 0;
        font-weight: 600;
        color: #111827;
    }

    #prc-modal-close, #radial-modal-close, #tax-modal-close {
        background: none;
        border: none;
        font-size: 1.75rem;
        font-weight: bold;
        cursor: pointer;
        color: #6b7280;
        padding: 0 4px;
        line-height: 1;
    }

    #prc-modal-body, #radial-modal-body, #tax-modal-body {
        padding: 1rem;
        overflow-y: auto;
        flex-grow: 1;
    }

    #prc-print-btn, #radial-print-btn, #tax-print-btn {
        background-color: #1d4ed8; 
        color: white; 
        border: none;
        padding: 6px 12px; 
        font-size: 13px; 
        font-weight: 500;
        border-radius: 4px; 
        cursor: pointer; 
        margin-right: 0.5rem;
    }
    
    #prc-print-btn:hover, #radial-print-btn:hover, #tax-print-btn:hover {
        background-color: #1e40af;
    }

    #radial-csv-btn {
        background-color: #059669;
        color: white;
        border: none;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 0.5rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    #radial-csv-btn:hover {
        background-color: #047857;
    }

    #radial-labels-btn {
        background-color: #4b5563;
        color: white;
        border: none;
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        margin-right: 0.5rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    #radial-labels-btn:hover {
        background-color: #374151;
    }

    /* Platbook Modal & Tabs */
    #platbook-modal-content {
        position: relative;
        z-index: 3001;
        width: 520px;
        max-width: 92vw;
        background-color: #ffffff !important;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #platbook-modal-header {
        background-color: #ffffff !important;
    }
    #platbook-modal-body {
        background-color: #ffffff !important;
        padding: 1.25rem;
        color: #1f2937;
    }
    .plat-tab-bar {
        display: flex;
        gap: 6px;
        border-bottom: 2px solid #e5e7eb;
        margin-bottom: 1.25rem;
    }
    .plat-tab {
        background: none;
        border: none;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        color: #4b5563;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all 0.15s ease;
    }
    .plat-tab:hover {
        color: #1d4ed8;
    }
    .plat-tab.active {
        color: #1d4ed8;
        border-bottom-color: #1d4ed8;
    }
    #plat-select-twp, #plat-select-rng, #plat-input-sec {
        background-color: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #d1d5db !important;
    }
    
    /* Loaders */
    #prc-loader, #tax-loader {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 400px;
    }

    /* --- PRC Design Styles (from your original HTML) --- */
    :root {
        --border: #e5e7eb;
        --border-strong: #d1d5db;
        --text-muted: #6b7280;
        --text-strong: #111827;
        --bg-page: #e5e7eb;
        --accent: #1d4ed8;
        --accent-soft: #eff6ff;
    }
    .prc-page {
        background: #ffffff;
        width: 8.5in;
        margin: 0 auto 1rem;
        padding: 0.5in;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 14px 35px rgba(15, 23, 42, 0.19);
        border-radius: 0.375rem;
        position: relative;
    }
    .prc-header { display: flex; justify-content: space-between; gap: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; margin-bottom: 0.5rem; }
    .prc-header-left h1 { margin: 0 0 0.1rem; font-size: 1.2rem; letter-spacing: 0.09em; text-transform: uppercase; }
    .prc-header-left .subtitle { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
    .prc-header-right { text-align: right; font-size: 0.8rem; }
    .prc-badge { display: inline-flex; padding: 0.12rem 0.4rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; }
    .prc-header-right .tax-year { font-weight: 600; font-size: 0.9rem; }
    .prc-header-right .tiny { color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }
    .prc-top-row { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; }
    .prc-box { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.45rem 0.55rem; background: #ffffff; }
    .prc-box-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.2rem; }
    .prc-image-placeholder { height: 150px; border-radius: 0.375rem; border: 1px dashed var(--border); background: #f9fafb; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); text-align: center; padding: 0.25rem; }
    .prc-identity { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; }
    .prc-identity-main { flex: 1; }
    .prc-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.08rem; }
    .prc-value { font-size: 0.85rem; }
    .prc-value-strong { font-weight: 600; }
    .prc-address { margin-bottom: 0.3rem; }
    .prc-pill-row { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.15rem; }
    .prc-pill { border-radius: 999px; border: 1px solid var(--border); padding: 0.08rem 0.4rem; font-size: 0.7rem; color: var(--text-muted); background: #f9fafb; }
    .prc-section { border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.45rem 0.55rem; margin-bottom: 0.35rem; }
    .prc-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
    .prc-section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); }
    .prc-section-subtitle { font-size: 0.7rem; color: var(--text-muted); }
    .prc-main-row { display: flex; gap: 0.6rem; margin-bottom: 0.4rem; }
    .prc-main-col { flex: 1; }
    .prc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.25rem 0.7rem; margin-top: 0.12rem; }
    .prc-field-label { font-size: 0.7rem; color: var(--text-muted); }
    .prc-field-value { font-size: 0.8rem; font-weight: 500; }
    .prc-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; margin-top: 0.25rem; }
    .prc-table th, .prc-table td { border: 1px solid var(--border-strong); padding: 0.12rem 0.3rem; text-align: right; white-space: nowrap; }
    .prc-table th:first-child, .prc-table td:first-child { text-align: left; }
    .prc-table .col-owner { white-space: normal; min-width: 120px; }
    .prc-table .col-fund { white-space: normal; min-width: 140px; }
    .prc-table thead th { background: #f3f4f6; font-weight: 600; color: #374151; }
    .prc-table tfoot td { background: #f9fafb; font-weight: 600; }
    .prc-table-compact th, .prc-table-compact td { padding: 0.08rem 0.25rem; }
    .prc-notes { font-size: 0.74rem; color: var(--text-muted); min-height: 1.4rem; }
    .prc-footer { margin-top: 0.4rem; padding-top: 0.3rem; border-top: 1px dashed var(--border); font-size: 0.7rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 0.8rem; }
    .prc-footer strong { font-weight: 600; color: #4b5563; }

    /* --- Radial Report Print Specifics --- */
    @media print {
        /* 1. UNLOCK THE PAGE HEIGHT */
        html, body {
            height: auto !important;
            overflow: visible !important;
            width: 100%;
            margin: 0;
            padding: 0;
            background: #fff !important;
        }

        /* 2. Global Print Settings */
        * {
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            box-sizing: border-box !important; 
        }

        /* 3. Page Layout */
        @page {
            size: Letter portrait;
            margin: 0.4in; /* Slightly tighter margin to fit more content */
        }

        /* 4. Report Container - Allow it to flow */
        .prc-page {
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            margin: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
            border: none !important;
            border-radius: 0 !important;
            display: block !important;
        }

        /* 5. List Item Card - NO SPLITTING */
        .prc-list-item {
            border: 1px solid #ccc !important;
            background-color: #fff !important;
            border-radius: 4px;
            margin-bottom: 12px; 
            padding: 8px; 
            /* Force the printer to keep the whole card on one page */
            break-inside: avoid !important;
            page-break-inside: avoid !important;
            display: block; 
        }

        /* 6. Header Styling for Cards */
        .prc-list-item-header {
            background-color: #f3f4f6 !important;
            border-bottom: 1px solid #ddd !important;
            padding: 4px 8px;
            margin: -8px -8px 8px -8px; 
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }

        /* 7. Hide UI Elements */
        #radial-modal-header, #radial-print-btn, #radial-csv-btn, #radial-labels-btn, #radial-modal-close, #map-info-box, #search-container, #feedback-btn, #toast, #locate-btn {
            display: none !important;
        }

        /* 8. Typography & Grid Tweaks */
        .prc-list-item-title {
            font-size: 10pt;
            font-weight: bold;
            color: #000;
        }
        .prc-value, .prc-label {
            font-size: 9pt;
            color: #000;
        }
        .prc-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .grid-span-2 {
            grid-column: span 2;
            margin-top: 4px;
            padding-top: 4px;
            border-top: 1px dashed #ccc;
        }
        
        /* 9. Header Content Alignment */
        .prc-header {
            display: flex !important;
            justify-content: space-between !important;
            width: 100% !important;
            border-bottom: 2px solid #000 !important;
            margin-bottom: 10px !important;
        }

        /* --- SPECIFIC FIXES FOR RADIAL REPORT --- */

        #radial-report-container .prc-section, 
        #radial-report-container .prc-box {
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            box-shadow: none !important;
        }
        
        /* Hide the "PARCELS FOUND" header background in print to save ink/space */
        #radial-report-container .prc-section-header {
            margin-top: 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid #000;
        }

        /* constrain map height for single-page printing */
        #radial-report-container img {
            break-inside: avoid !important;
            page-break-inside: avoid !important;
            max-height: 325px !important; /* Reduced from 400px to buy vertical space */
            display: block;
            margin: 0 auto 10px auto;
        }
    }

    .prc-list-item {
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    }
    .prc-list-item-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 8px;
        border-bottom: 1px solid #f3f4f6; /* gray-100 */
        padding-bottom: 6px;
    }
    .prc-list-item-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: #111827; /* gray-900 */
    }
    .prc-list-item-account {
        font-size: 0.8rem;
        color: #6b7280; /* gray-500 */
        font-family: monospace;
    }
    .grid-span-2 {
        grid-column: span 2; /* This fixes the layout for the Legal Description */
    }
    .prc-value-legal {
        font-size: 0.75rem;
        line-height: 1.3;
        color: #4b5563;
    }

    /* --- New Disclaimer Styling --- */
    .tax-disclaimer-box {
      background-color: #fff1f2; /* Light Red/Rose background */
      border: 2px solid #e11d48; /* Strong Red border */
      color: #9f1239;            /* Dark Red text */
      padding: 8px 12px;
      margin: 8px 0;
      font-size: 0.75rem;        /* Compact font to save space */
      font-weight: 700;          /* Bold */
      text-align: center;
      line-height: 1.3;
      border-radius: 4px;
      text-transform: uppercase; /* Optional: makes it feel more "official" */
    }

    /* Ensure colors print correctly */
    @media print {
      .tax-disclaimer-box {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #fff1f2 !important;
        color: #9f1239 !important;
        border: 2px solid #e11d48 !important;
      }
      
      /* Tighten vertical spacing slightly to guarantee single-page fit */
      #tax-pages-container .prc-section {
        margin-bottom: 0.25rem !important; 
      }
      #tax-pages-container .prc-header {
        margin-bottom: 0.25rem !important;
      }
    }

    /* --- Tax Report Specific Print Optimization --- */
    @media print {
        /* Reduce page margins to maximize printable area */
        @page { margin: 0.25in; }
        
        /* Tighten up the main container */
        .prc-page { padding: 0 !important; border: none !important; }
        
        /* Reduce vertical gaps between sections */
        .prc-header { margin-bottom: 4px !important; padding-bottom: 4px !important; border-bottom: 1px solid #000 !important; }
        .prc-section { margin-bottom: 6px !important; padding: 4px !important; }
        .prc-top-row { margin-bottom: 6px !important; }
        
        /* Shrink the disclaimer boxes slightly */
        .tax-disclaimer-box { margin: 6px 0 !important; padding: 4px !important; font-size: 0.65rem !important; }
        
        /* Was 110px, increased to 165px to fix "squished" look */
        .prc-image-placeholder { height: 165px !important; }
        
        /* Make the fonts in the grid slightly smaller to compensate for the larger image */
        .prc-field-label { font-size: 0.65rem !important; }
        .prc-field-value { font-size: 0.75rem !important; }
        
        /* Tweak the identity box text to ensure it doesn't overflow with the new height */
        .prc-value { font-size: 0.8rem !important; }
    }

    /* Floating Return to Directory Pill (Shown on individual county maps) */
    .map-brand-directory-pill {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 50;
      display: flex;
      align-items: center;
      gap: 8px;
      background-color: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid #334155;
      border-radius: 8px;
      padding: 6px 12px 6px 8px;
      text-decoration: none !important;
      color: #f8fafc !important;
      font-size: 0.82rem;
      font-weight: 600;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      transition: all 0.15s ease;
      cursor: pointer;
    }

    .map-brand-directory-pill:hover {
      background-color: #1e293b;
      border-color: #60a5fa;
      color: #ffffff !important;
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    }

    .map-brand-pill-logo {
      width: 26px;
      height: 26px;
      border-radius: 5px;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 2px;
      box-sizing: border-box;
      flex-shrink: 0;
    }

    .map-brand-pill-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .map-brand-pill-text {
      display: flex;
      flex-direction: column;
      text-align: left;
    }

    .map-brand-pill-name {
      font-size: 0.78rem;
      font-weight: 700;
      color: #f8fafc;
      line-height: 1.1;
      letter-spacing: -0.01em;
    }

    .map-brand-pill-sub {
      font-size: 0.65rem;
      font-weight: 600;
      color: #60a5fa;
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 1px;
    }

