/* =====================================================
   ParcelSearchModern.css
   Page-specific styles for AssessorParcelMap.aspx.
   Depends on: HeaderModern.css, SharedModern.css
   ===================================================== */

/* ===== HERO SUBTITLE ===== */
.hero-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.95); /* WCAG 1.4.3: ~6.8:1 on hero gradient ✓ */
    max-width: 620px;
    margin: 0;
    line-height: 1.5;
}

/* ===== TEXT-SIZE BAR (no back link on this page) ===== */
.page-top-bar.right-only {
    justify-content: flex-end;
}

/* ===== 2-COLUMN SEARCH GRID ===== */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}

/* ===== SEARCH CARDS ===== */
.search-card {
    background: #fff;
    border: 1px solid #dde5f4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10,63,148,0.05);
}

.search-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px 14px;
    border-bottom: 1px solid #edf1fa;
}

.search-card-header.blue { background: #edf3ff; }
.search-card-header.teal { background: #edfaf7; }

.search-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.search-card-icon.blue { background: #1260cc; }
.search-card-icon.teal { background: #0b7a6e; } /* darkened: white text = 5.2:1 ✓ */

.search-card-header-text h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1260cc;
    line-height: 1.2;
    margin: 0;
}

.search-card-header-text.teal h2 { color: #0a6b5e; } /* darkened: 6.0:1 on #edfaf7 ✓ */

.search-card-header-text p {
    font-size: 11px;
    color: #445571;
    margin: 2px 0 0 0;
}

.search-card-body {
    padding: 28px 24px;
}

/* ===== SERVER ERROR LABEL ===== */
.server-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 16px;
}

/* Hide empty error labels */
.server-error:empty { display: none; }

/* ASP.NET validator spans */
.validator-msg {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

/* ===== FORM LAYOUT ===== */
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 140px 140px;
    gap: 16px;
    margin-bottom: 16px;
}

.form-full {
    margin-bottom: 16px;
}

/* ===== FIELD (label + input) ===== */
.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #445571;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #1a2438;
    background: #fff;
    border: 1.5px solid #dde5f4;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.field input[type="text"]::placeholder { color: #6b7a99; }

.field input[type="text"]:focus-visible,
.field input[type="text"]:focus {
    border-color: #1260cc;
    box-shadow: 0 0 0 3px rgba(18,96,204,0.15);
    outline: none;
}

/* ===== SORT TOGGLE (styled radio buttons) ===== */
.sort-section {
    margin-bottom: 22px;
}

.sort-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #445571;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.sort-toggle {
    display: inline-flex;
    background: #f4f7fc;
    border: 1px solid #dde5f4;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

/* ASP.NET RadioButton renders <span><input/><label/></span> */
.sort-toggle span {
    display: flex;
}

/* Hide the native radio button visually but keep it accessible */
.sort-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sort-toggle label {
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    color: #445571;
    user-select: none;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.sort-toggle label:hover {
    color: #1a2438;
    background: rgba(255,255,255,0.6);
}

.sort-toggle input[type="radio"]:checked + label {
    background: #fff;
    color: #1a2438;
    font-weight: 600;
    border-color: #dde5f4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sort-toggle input[type="radio"]:focus-visible + label {
    outline: 3px solid #1260cc;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ===== ACTION BUTTONS ===== */
.btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.btn-primary {
    padding: 11px 26px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    background: #1260cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.btn-primary:hover { background: #0a4fa8; }

.btn-primary:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #1260cc;
}

.btn-teal {
    padding: 11px 26px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    background: #0b7a6e; /* darkened from #0d9989: white text = 5.2:1 ✓ */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-teal:hover { background: #096b60; }

.btn-teal:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #0d9989;
}

.btn-ghost {
    background: none;
    color: #445571;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: color 0.15s;
}

.btn-ghost:hover { color: #1a2438; }

.btn-ghost:focus-visible {
    outline: 3px solid #1260cc;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== TIP TEXT ===== */
.field-tip {
    font-size: 11px;
    color: #445571;
    font-style: italic;
    margin-top: 4px;
    line-height: 1.5;
}

/* ===== FORMAT GUIDE (map card) ===== */
.format-guide {
    background: #f4f7fc;
    border: 1px solid #dde5f4;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0 22px;
}

.format-guide h3 {
    font-size: 11px;
    font-weight: 600;
    color: #445571;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px 0;
}

.format-guide ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.format-guide li {
    font-size: 12px;
    color: #445571;
    padding: 4px 0;
    border-bottom: 1px solid #edf1fa;
    line-height: 1.5;
}

.format-guide li:last-child { border-bottom: none; }

.format-guide code {
    font-family: 'Courier New', monospace;
    background: #fff;
    border: 1px solid #dde5f4;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
}

/* ===== INFO NOTE ===== */
.info-note {
    background: #edf3ff;
    border: 1px solid #dde5f4;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 11px;
    color: #445571;
    font-style: italic;
    line-height: 1.5;
    margin-top: 16px;
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===== MAP DISCLAIMER ===== */
.map-disclaimer {
    margin-top: 36px;
    padding: 12px 16px;
    background: #edf3ff;
    border: 1px solid #dde5f4;
    border-radius: 8px;
    font-size: 11px;
    color: #445571;
    font-style: italic;
    line-height: 1.5;
}

.map-disclaimer-label {
    font-weight: 700;
    font-style: normal;
    color: #445571;
    margin-right: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .btn-row {
        flex-wrap: wrap;
    }

    .search-card-body {
        padding: 20px 16px;
    }
}
