/* =====================================================================
   Auction Notice Verification page - V1 (front/auction_notices.php, route legal/auction-notices)
   Scoped under .anv1 (+ #viewnotice for the details popup). Same tokens, widths and patterns as Public Notice V4
   and TNCP V1, which are not loaded here and are not changed. Result and details markup come from
   Welcome::search_auction / Welcome::viewauction (unchanged); they are restyled here only, so some rules must beat
   their inline styles (!important). No rule touches `filter`: the blur on locked values is set by the server.
   ===================================================================== */
.anv1, #viewnotice {
    --an-ink: #0a475f;
    --an-deep: #083646;
    --an-teal: #127a73;
    --an-text: #173746;
    --an-label: #3b5764;
    --an-muted: #5c7480;
    --an-line: #dce8e4;
    --an-mint: #eef7f3;
    --an-mint-2: #e1f0ea;
    --an-orange: #f28c28;
    --an-orange-hover: #e57d17;
    --an-radius: 16px;
    --an-ease: cubic-bezier(.2, .7, .22, 1);
    --an-content: 1180px;
    --an-gutter: clamp(16px, 4vw, 40px);
}
.anv1 { font-family: "Gilroy", system-ui, sans-serif; color: var(--an-text); background: #fff; }
.anv1 *, .anv1 *::before, .anv1 *::after { box-sizing: border-box; }
.anv1 h1, .anv1 h2, .anv1 h3, .anv1 p { margin: 0; }
.anv1 a { text-decoration: none; }
.anv1-wrap { max-width: calc(var(--an-content) + 2 * var(--an-gutter)); margin: 0 auto; padding: 0 var(--an-gutter); }
.anv1 :focus-visible, #viewnotice :focus-visible { outline: 3px solid var(--an-orange); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.anv1-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0;
    font: 700 15px/1 "Gilroy", system-ui, sans-serif; letter-spacing: .1px;
    cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s var(--an-ease);
}
.anv1-btn-cta { background: var(--an-orange); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(242, 140, 40, .75); }
.anv1-btn-cta:hover { background: var(--an-orange-hover); transform: translateY(-1px); }
.anv1-btn-primary { background: var(--an-ink); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(8, 54, 70, .8); }
.anv1-btn-primary:hover { background: var(--an-deep); color: #fff; transform: translateY(-1px); }
.anv1-btn-primary:disabled { opacity: .8; transform: none; cursor: progress; }
.anv1-btn .bi-arrow-right { transition: transform .2s var(--an-ease); }
.anv1-btn:hover .bi-arrow-right { transform: translateX(3px); }

/* ---------- 1. Hero ---------- */
/* Navbar -> hero blend, the same as Public Notice V4 / TNCP V1. This file is loaded only by the auction notice page. */
section.top_header { background: #d2e6df !important; }
.anv1-hero {
    --an-fade: clamp(40px, 7vw, 100px);
    background:
        linear-gradient(180deg,
            rgba(210, 230, 223, 1) 0,
            rgba(210, 230, 223, .94) calc(var(--an-fade) * .12),
            rgba(210, 230, 223, .8) calc(var(--an-fade) * .25),
            rgba(210, 230, 223, .58) calc(var(--an-fade) * .4),
            rgba(210, 230, 223, .36) calc(var(--an-fade) * .55),
            rgba(210, 230, 223, .18) calc(var(--an-fade) * .7),
            rgba(210, 230, 223, .06) calc(var(--an-fade) * .85),
            rgba(210, 230, 223, 0) var(--an-fade)),
        radial-gradient(900px 420px at 85% 10%, rgba(18, 122, 115, .10), transparent 70%),
        linear-gradient(180deg, #e9f4f0 0%, var(--an-mint) 60%, #f6fbf9 100%);
    padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px);
}
.anv1-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.anv1-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--an-muted); margin: 0 0 22px; padding: 0; list-style: none; }
.anv1-crumbs a { color: var(--an-muted); }
.anv1-crumbs a:hover { color: var(--an-ink); text-decoration: underline; }
.anv1-crumbs [aria-current] { color: var(--an-text); font-weight: 600; }
.anv1-flash:not(:empty) { margin-bottom: 16px; }
.anv1-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 8px;
    background: #d6ece5; color: var(--an-ink); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
}
.anv1-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--an-orange); flex: none; }
.anv1 .anv1-h1 {
    margin: 20px 0 18px; font-size: clamp(36px, 4.1vw, 56px); line-height: 1.04; font-weight: 800;
    letter-spacing: -1.6px; color: var(--an-deep);
}
.anv1-h1 span { display: block; color: var(--an-teal); }
.anv1 .anv1-lead { max-width: 500px; font-size: 18px; line-height: 1.55; color: #36525d; }
.anv1-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.anv1-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-weight: 700; font-size: 15px; color: var(--an-ink) !important;
    text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 5px; text-decoration-color: rgba(10, 71, 95, .35) !important;
}
.anv1-link:hover { text-decoration-color: var(--an-orange) !important; }
.anv1-link .bi { font-size: 17px; }

/* Hero visual: the plot layout from the design reference (HTML/CSS only). One 8 s loop: neutral plot -> selected teal
   -> scanning line -> orange-red matched Plot 09. Paused = every animation (incl. ::after) frozen. Illustrative only. */
.anv1-visual { margin: 0; min-width: 0; }
.anv1-visual .lay {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 22px;
    background: radial-gradient(ellipse at 95% 0%, #174854 0, transparent 57%), #092b37; color: #fff;
    box-shadow: 0 30px 60px -28px rgba(8, 54, 70, .45);
}
.anv1-visual .lay-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 16px; }
.anv1-visual .lay-top strong { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.anv1-visual .example { font-size: 12px; color: #e1f4ef; border: 1px solid #66818a; border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.anv1-visual .map {
    position: relative; isolation: isolate; aspect-ratio: 1.62; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff64;
    background-color: #dbe8d7;
    background-image: linear-gradient(#64887822 1px, transparent 1px), linear-gradient(90deg, #64887822 1px, transparent 1px), radial-gradient(ellipse at 28% 7%, #eaf3dc 0%, #c9e1d6 83%);
    background-size: 16px 16px, 16px 16px, 100% 100%;
}
.anv1-visual .boundary { position: absolute; inset: 9% 7% 11%; border: 2px dashed #166e62; border-radius: 10px; animation: anv1Boundary 8s infinite; }
.anv1-visual .road { position: absolute; background: #557176; border: 2px solid #6e8986; box-shadow: 0 0 0 3px #edf3e5; }
.anv1-visual .road::after { content: ""; position: absolute; opacity: .7; }
.anv1-visual .road-v { top: 10%; bottom: 12%; left: 47%; width: 7%; }
.anv1-visual .road-v::after { height: 100%; left: 50%; border-left: 1px dashed #f4f2c8; }
.anv1-visual .road-h { left: 8%; right: 8%; top: 48%; height: 11%; }
.anv1-visual .road-h::after { width: 100%; top: 50%; border-top: 1px dashed #f4f2c8; }
.anv1-visual .parcels { position: absolute; display: grid; gap: 5px; }
.anv1-visual .nw { left: 11%; top: 16%; width: 32%; height: 25%; grid-template-columns: repeat(3, 1fr); }
.anv1-visual .ne { left: 59%; right: 11%; top: 16%; height: 25%; grid-template-columns: repeat(3, 1fr); }
.anv1-visual .sw { left: 11%; width: 32%; top: 65%; bottom: 17%; grid-template-columns: 1.28fr 1fr; }
.anv1-visual .se { left: 59%; right: 11%; top: 65%; bottom: 17%; grid-template-columns: 1fr 1.36fr; }
.anv1-visual .parcel {
    display: grid; place-items: center; border: 1px solid #6a9283; border-radius: 4px; background: #eef5e7; color: #24574d;
    font-size: clamp(9px, 1vw, 12px); font-weight: 800; box-shadow: inset 0 0 0 2px #ffffff70;
}
.anv1-visual .park {
    border: 1px solid #659e83; border-radius: 5px;
    background: radial-gradient(circle at 21% 36%, #408166 0 8%, transparent 9%), radial-gradient(circle at 48% 68%, #4c8866 0 11%, transparent 12%),
                radial-gradient(circle at 74% 34%, #579a75 0 9%, transparent 10%), #a8d0a9;
}
.anv1-visual .target { position: relative; z-index: 1; border-width: 2px; animation: anv1Target 8s infinite; }
.anv1-visual .target::after {
    content: "!"; display: grid; place-items: center; position: absolute; top: -8px; right: -7px; width: 19px; height: 19px;
    border: 1px solid #fff4e8; border-radius: 50%; background: #9f382b; color: #fff; font-size: 12px; font-weight: 800;
    opacity: 0; animation: anv1Badge 8s infinite;
}
.anv1-visual .scan {
    position: absolute; z-index: 2; top: 9%; bottom: 11%; left: 8%; width: 2px; background: #14685e;
    box-shadow: -4px 0 15px 5px #1985775e; animation: anv1Scan 8s infinite linear; pointer-events: none;
}
.anv1-visual .statuses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.anv1-visual .status {
    border-radius: 10px; padding: 9px 10px; display: grid; grid-template-columns: 21px 1fr; align-items: center; column-gap: 8px;
    font-size: 15px; line-height: 1.25; font-weight: 800; min-width: 0;
}
.anv1-visual .status small { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.anv1-visual .status i { font-style: normal; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.anv1-visual .selected { color: #d6f5f6; background: #165060; }
.anv1-visual .warning { position: relative; overflow: hidden; color: #ffe1cd; background: #633526; animation: anv1Result 8s infinite; }
.anv1-visual .checking {
    position: absolute; inset: 0; display: grid; place-items: center; background: #294959; color: #edf9fa; font-size: 14px;
    opacity: 0; animation: anv1Checking 8s infinite; pointer-events: none;
}
.anv1-visual .lay-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: #d3e5e7; font-size: 13px; }
.anv1-visual .lay-foot button {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 36px; padding: 0 12px;
    color: #fff; font: 700 13px/1 "Gilroy", system-ui, sans-serif; border: 1px solid #6b8c92; border-radius: 8px; background: #153b47; cursor: pointer;
}
.anv1-visual .lay-foot button:hover { background: #225362; }
.anv1-visual figcaption { font-size: 12px; line-height: 1.5; color: var(--an-muted); margin: 10px 2px 0; }
.anv1-visual .lay.is-paused *, .anv1-visual .lay.is-paused *::after, .anv1-visual .lay.is-paused *::before,
.anv1-visual .lay.is-offscreen *, .anv1-visual .lay.is-offscreen *::after, .anv1-visual .lay.is-offscreen *::before { animation-play-state: paused !important; }
@keyframes anv1Boundary { 0%, 100% { box-shadow: 0 0 0 1px #177d6d22; } 12%, 25% { box-shadow: 0 0 0 3px #177d6d62; } 50%, 90% { box-shadow: 0 0 0 1px #177d6d22; } }
@keyframes anv1Target {
    0%, 100% { background: #eef5e7; border-color: #6a9283; color: #24574d; }
    12%, 52% { background: #c0e5d5; border-color: #187d70; color: #07534c; }
    58%, 91% { background: #ffe2cc; border-color: #9f382b; color: #832c22; box-shadow: 0 0 0 3px #af413835; }
}
@keyframes anv1Badge { 0%, 53%, 97%, 100% { opacity: 0; } 59%, 91% { opacity: 1; } }
@keyframes anv1Scan { 0%, 24% { left: 8%; opacity: 0; } 25% { left: 8%; opacity: 1; } 54% { left: 86%; opacity: 1; } 59%, 100% { left: 86%; opacity: 0; } }
@keyframes anv1Checking { 0%, 53% { opacity: 1; } 58%, 91% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes anv1Result { 0%, 53%, 97%, 100% { box-shadow: none; } 59%, 91% { box-shadow: inset 0 0 0 1px #ffc8a3c2; } }

/* ---------- 2. Benefit cards + coverage ---------- */
.anv1-reveal { padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); background: #fff; }
.anv1 .anv1-h2-sm { font-size: 22px; font-weight: 800; color: var(--an-deep); letter-spacing: -.3px; margin-bottom: 18px; }
.anv1-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.anv1-card {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 18px 16px;
    border: 1px solid var(--an-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.anv1-card:hover { border-color: #bcd9cf; box-shadow: 0 10px 24px -18px rgba(8, 54, 70, .5); }
.anv1-ico, .anv1-cov-ico {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
    background: var(--an-mint-2); color: var(--an-teal); font-size: 19px;
}
.anv1-ico-warm { background: #fff2e4; color: #b4620f; }
.anv1 .anv1-card h3 { font-size: 16px; font-weight: 800; color: var(--an-deep); margin-bottom: 4px; }
.anv1 .anv1-card p { font-size: 14px; line-height: 1.45; color: var(--an-muted); }
.anv1-coverage {
    display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 22px;
    border-radius: 14px; background: linear-gradient(100deg, var(--an-deep) 0%, #0d5a66 100%); color: #fff;
}
.anv1-cov-ico { width: 44px; height: 44px; background: rgba(255, 255, 255, .12); color: #9fe0cf; font-size: 20px; }
.anv1 .anv1-cov-title { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.4; }
.anv1-cov-title strong { color: #ffb366; font-weight: 800; }

/* ---------- 3. Search ---------- */
.anv1-search { padding: clamp(40px, 5vw, 64px) 0 clamp(44px, 5vw, 72px); background: linear-gradient(180deg, var(--an-mint) 0%, #f7fbfa 100%); scroll-margin-top: 90px; }
.anv1-head, .anv1-res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.anv1 .anv1-kicker {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--an-teal);
}
.anv1-kicker::before { content: ""; width: 18px; height: 2px; background: var(--an-orange); }
.anv1 .anv1-h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: var(--an-deep); letter-spacing: -.6px; line-height: 1.1; }
.anv1 .anv1-sub { margin-top: 8px; font-size: 15px; color: var(--an-muted); }
.anv1 .anv1-live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--an-teal) !important; white-space: nowrap; }
.anv1 .anv1-live:hover { color: var(--an-deep) !important; text-decoration: underline; text-underline-offset: 4px; }
/* The form card keeps the legacy .search-box class (footer scrollToSearchBox() targets it). No overflow:hidden: the
   select2 / datepicker drop-downs must be able to extend past the card. */
.anv1 .anv1-form.search-box {
    position: relative; padding: clamp(22px, 3vw, 34px); margin: 0;
    background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-radius);
    box-shadow: 0 24px 50px -36px rgba(8, 54, 70, .55);
}
.anv1-form::before {
    content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 4px;
    border-radius: var(--an-radius) var(--an-radius) 0 0;
    background: linear-gradient(90deg, var(--an-ink), var(--an-teal) 60%, #7cc7b5);
}
.anv1-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.anv1-wide { grid-column: 1 / -1; }
.anv1 .anv1-guide {
    display: flex; gap: 10px; align-items: center; padding: 11px 15px; margin-bottom: 18px;
    border-radius: 10px; background: #eef7f6; border: 1px solid #cfe6e1; font-size: 14px; color: #24434f;
}
.anv1-guide .bi { color: var(--an-teal); font-size: 16px; flex: none; }
.anv1-guide b { font-weight: 800; }
.anv1-field { margin-bottom: 18px; min-width: 0; }
.anv1 .anv1-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--an-deep); }
.anv1-req { color: #d6452f; margin-left: 3px; }
.anv1 .form-control, .anv1 .form-select {
    height: 50px; padding: 0 15px; border: 1px solid #cddcd8; border-radius: 10px; background-color: #fff;
    font-size: 15px; color: var(--an-text); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.anv1 .form-select, .anv1 select.form-control { padding-right: 40px; }
.anv1 select.form-control { appearance: auto; }
.anv1 .form-control::placeholder { color: #8a9da4; }
.anv1 .form-control:focus, .anv1 .form-select:focus { border-color: var(--an-teal); box-shadow: 0 0 0 4px rgba(18, 122, 115, .14); outline: 0; }
.anv1-input-ico { position: relative; }
.anv1-input-ico .form-control { padding-right: 44px; }
.anv1-input-ico .fa-info-circle { position: absolute; right: 15px; top: 25px; transform: translateY(-50%); color: var(--an-teal); font-size: 17px; cursor: help; }
.anv1 .text-danger.invalid:not(:empty), .anv1 .invalid_plot_no_or_khasra_no_borrower_name:not(:empty) { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.anv1 .readonly-select { pointer-events: none; background-color: #f6faf9; }
/* select2 pickers (city; bank once Advanced Filters is opened) */
.anv1 .select2-container .select2-selection--single { height: 50px !important; border: 1px solid #cddcd8 !important; border-radius: 10px; padding: 0; }
.anv1 .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 15px; padding-right: 48px; color: var(--an-text); font-size: 15px; }
.anv1 .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #8a9da4; }
.anv1 .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 10px; }
.anv1 .select2-container--default .select2-selection--single .select2-selection__clear { margin-right: 6px; height: 48px; }
.anv1 .select2-container--focus .select2-selection--single, .anv1 .select2-container--open .select2-selection--single { border-color: var(--an-teal) !important; box-shadow: 0 0 0 4px rgba(18, 122, 115, .14); }
/* Advanced Filters (bank, notice date range): the legacy #toggleExtraFields icon and #extraFields box keep their
   handler; the whole row is a button. */
.anv1-adv { border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); margin: 2px 0 20px; }
.anv1-adv-toggle {
    display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 56px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit;
}
.anv1-adv-label { font-size: 15px; font-weight: 800; color: var(--an-ink); }
.anv1-adv-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--an-muted); }
.anv1-adv-meta [data-adv-active]:not(:empty) { padding: 4px 10px; border-radius: 999px; background: var(--an-mint-2); color: var(--an-teal); font-weight: 700; }
.anv1 #toggleExtraFields { font-size: 20px; color: var(--an-teal); line-height: 1; }
.anv1 #extraFields { padding: 2px 0 4px; }
.anv1 .datepicker.form-control { cursor: pointer; background-color: #fff; }

.anv1-foot { padding-top: 4px; }
.anv1-trust { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 700; color: #2b4a55; }
.anv1-trust li { display: inline-flex; align-items: center; gap: 6px; }
.anv1-trust .bi { color: var(--an-teal); font-size: 16px; }
.anv1-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
/* sample link keeps id #auctionSampleBtn and the legacy .live-auction-btn class (click logging) */
.anv1 .anv1-sample.live-auction-btn {
    display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 18px;
    background: #fff7ec; color: #7a3f07; border: 1px solid #f6d3ac; border-radius: 10px; box-shadow: none;
    font-size: 14px; font-weight: 700; transform: none; transition: background .2s;
}
.anv1 .anv1-sample.live-auction-btn:hover { background: #ffefd9; color: #6a3505; }
.anv1-sample .bi { font-size: 17px; color: var(--an-orange); }
.anv1 #submit_btn { min-width: 260px; white-space: nowrap; }
.anv1-submit { display: flex; align-items: center; gap: 12px; }
.anv1 #loadingGif img { width: 56px !important; height: 52px !important; padding: 0 !important; }

/* ---------- 4. Results ---------- */
/* Always in the layout (collapsed until a reply arrives). */
.anv1-results { padding: 0; background: #fff; scroll-margin-top: 90px; }
.anv1-results .anv1-res-head { display: none; }
.anv1-results.has-results { padding: clamp(36px, 5vw, 60px) 0 clamp(48px, 6vw, 80px); }
.anv1-results.has-results .anv1-res-head { display: flex; padding-bottom: 18px; border-bottom: 1px solid var(--an-line); }
.anv1-results.is-empty-result .anv1-res-head { border-bottom: 0; }
.anv1 .anv1-h2:focus { outline: 0; }
.anv1 .anv1-res-meta { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--an-teal); }
.anv1 .anv1-res-meta:empty { display: none; }
.anv1 .search-bar-container { display: none; width: min(380px, 100%); position: static; margin: 0 !important; padding: 0; background: none; border-radius: 0; box-shadow: none; height: auto !important; }
.anv1 .search-bar label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--an-muted); margin-bottom: 6px; }
.anv1 #noticeResultSearch { height: 44px !important; min-height: 44px; padding: 11px 14px !important; resize: none; font-size: 14px !important; line-height: 1.4; border-radius: 10px; white-space: pre; overflow: hidden; }
.anv1 #noticeResultSearch::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anv1 #resultCount { margin-top: 6px; font-size: 13px; }
.anv1 #resultCount .text-info { color: var(--an-teal) !important; font-weight: 600; }
.anv1-results.is-single #resultSearchBar { display: none !important; }
.anv1 .view-noticeafter { margin: 0 !important; padding: 0; }

/* result card: .row.mt-2 > .col-lg-12 (inline max-width 800px) > .noticeafter (inline styles) */
.anv1 .view-noticeafter > .row { margin: 0 !important; display: block !important; }
.anv1 .view-noticeafter > .row + .row { margin-top: 22px !important; }
.anv1 .view-noticeafter > .row:first-of-type { margin-top: 24px !important; }
.anv1 .view-noticeafter > .row > [class*="col-"] { max-width: none !important; width: 100%; padding: 0; }
.anv1 .view-noticeafter .noticeafter {
    position: relative; max-width: none !important; font-size: 15px !important; cursor: default;
    min-height: 0 !important; height: auto !important; padding: 10px 0 24px !important; border: 1px solid #dde8e4 !important;
    border-radius: 14px !important; background: #fff !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: 0 1px 2px rgba(8, 54, 70, .04), 0 12px 28px -20px rgba(8, 54, 70, .28) !important; overflow: hidden;
    display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    transition: border-color .2s, box-shadow .2s;
}
.anv1 .view-noticeafter .noticeafter:hover { border-color: #c6ddd5 !important; box-shadow: 0 1px 2px rgba(8, 54, 70, .05), 0 16px 32px -20px rgba(8, 54, 70, .34) !important; }
.anv1 .noticeafter > table { grid-column: 1 / -1; }
.anv1 .noticeafter table { display: block; width: 100% !important; margin: 0 !important; font-size: 15px !important; border-collapse: collapse; }
.anv1 .noticeafter tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anv1 .noticeafter tr {
    grid-column: 1 / -1; display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: baseline; align-content: start; gap: 4px 24px;
    padding: 12px 24px; border: 0 !important; border-bottom: 1px solid #eef4f2 !important;
}
.anv1 .noticeafter tr:empty { display: none; }
.anv1 .noticeafter td { display: block; width: auto !important; max-width: none !important; padding: 0 !important; border: 0; overflow-wrap: anywhere; }
.anv1 .noticeafter td:first-child { font-size: 14px; font-weight: 700 !important; letter-spacing: .4px; text-transform: uppercase; color: var(--an-label); white-space: nowrap; }
.anv1 .noticeafter td:last-child { color: var(--an-text); font-size: 16px; line-height: 1.55; }
.anv1 .noticeafter td:last-child > span[class^="blur-content-"] { font-size: 16px !important; color: var(--an-text) !important; }
/* rows tagged by auction-notice-v1.js from their label (presentation only) */
.anv1 .noticeafter tr.anv1-r-name td:last-child { font-size: 19px; font-weight: 700; color: var(--an-deep); line-height: 1.35; }
.anv1 .noticeafter tr.anv1-r-address td:last-child { font-weight: 600; }
.anv1 .noticeafter tr.anv1-r-meta { grid-column: auto; grid-template-columns: 1fr; gap: 4px; padding: 12px 24px 14px; border-bottom: 0 !important; background: #f7fbf9; }
.anv1 .noticeafter tr.anv1-r-meta + tr.anv1-r-meta { border-left: 1px solid #e6efec !important; }
/* address: the full text, up to 2 lines, then Read More / Read Less (the page's .toggle-address handler swaps the
   spans and the link text; auction-notice-v1.js opens / closes the clamp in step). Nothing is removed. */
.anv1 .noticeafter .auction-short-address { display: none !important; }
.anv1 .noticeafter .auction-full-address { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.anv1 .noticeafter td.anv1-addr-open .auction-full-address { display: block !important; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.anv1 .noticeafter .toggle-address { display: inline-block; margin: 2px 0 0 !important; color: var(--an-teal) !important; font-size: 15px; font-weight: 700; white-space: nowrap; }
.anv1 .noticeafter .toggle-address:hover { text-decoration: underline; }
.anv1 .noticeafter .toggle-address.anv1-addr-fits { display: none; }
@media (min-width: 768px) {
    .anv1 .noticeafter td.anv1-addr-cell { position: relative; }
    .anv1 .noticeafter .toggle-address { position: absolute; left: -184px; top: 24px; margin: 0 !important; font-size: 14px; }
}
/* actions: Generate Report (dark teal) + View Details (outline) */
.anv1 .noticeafter > .d-flex { grid-column: 1; align-self: start; gap: 12px !important; margin: 0 !important; padding: 20px 24px 0; }
.anv1 .noticeafter > .d-flex .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto !important; min-height: 46px;
    padding: 0 20px !important; margin: 0 !important; border-radius: 10px;
    font: 700 15px/1 "Gilroy", system-ui, sans-serif !important; box-shadow: none; transition: background .2s, border-color .2s;
}
.anv1 .noticeafter .generate-auction-certificate-btn { background: var(--an-ink) !important; border: 1px solid var(--an-ink) !important; color: #fff !important; box-shadow: 0 10px 22px -14px rgba(8, 54, 70, .9); }
.anv1 .noticeafter .generate-auction-certificate-btn:hover { background: var(--an-deep) !important; }
.anv1 .noticeafter > .d-flex .btn-success { background: #fff !important; border: 1px solid #c4d8d3 !important; color: var(--an-ink) !important; }
.anv1 .noticeafter > .d-flex .btn-success:hover { border-color: var(--an-ink) !important; background: #f3f9f7 !important; }
.anv1 .noticeafter > .d-flex .btn[style*="pointer-events:none"], .anv1 .noticeafter > .d-flex .btn[style*="pointer-events: none"] { opacity: .5; box-shadow: none; }
/* unlock call to action (locked cards) */
.anv1 .noticeafter .unlock-container { grid-column: 2; align-self: start; justify-content: flex-end; margin-top: 0; padding: 20px 24px 0 0; }
.anv1 .noticeafter > div[style*="margin-top: 16px"][style*="margin-bottom: 16px"]:empty { display: none; }
.anv1 .noticeafter .unlock-wrapper { width: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 16px; margin-top: 0; padding: 0; border-radius: 12px; background: none !important; border: 0 !important; }
.anv1 .noticeafter .unlock-3d-final {
    width: auto !important; max-width: none; animation: none !important; transform: none !important;
    background: var(--an-orange) !important; border: 0 !important; border-radius: 10px !important;
    box-shadow: 0 8px 18px -12px rgba(242, 140, 40, .9) !important; min-height: 46px; display: inline-flex; align-items: center;
    padding: 0 18px !important; font-size: 14px !important; font-weight: 700 !important; white-space: nowrap;
}
.anv1 .noticeafter .unlock-3d-final:hover { background: var(--an-orange-hover) !important; }
.anv1 .noticeafter .unlock-subtext { order: -1; width: auto; text-align: left; margin-top: 0; font-size: 13px; font-weight: 600; color: #7a4a1c; }
/* pagination (the server sends it only when there is more than one page) */
.anv1 .view-noticeafter > .row.mt-4 { margin-top: 26px !important; }
.anv1 .view-noticeafter div.pagination:empty { display: none; }
.anv1 .view-noticeafter ul.pagination { margin: 0; gap: 6px; flex-wrap: wrap; }
.anv1 .pagination .page-link { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px !important; border: 1px solid var(--an-line); color: var(--an-ink); font-weight: 700; }
.anv1 .pagination .page-item.active .page-link { background: var(--an-ink); border-color: var(--an-ink); color: #fff; }
.anv1 .pagination .page-item.disabled .page-link { color: #a9bac0; }
/* no results (main_helper noResultMessageHtml) */
.anv1 .view-noticeafter > .col-lg-8 { width: 100%; max-width: 720px; margin: 8px auto 0; padding: 0; }
.anv1 .noticeafterss { border: 1px solid var(--an-line); border-radius: var(--an-radius) !important; box-shadow: 0 16px 36px -30px rgba(8, 54, 70, .55) !important; padding: 30px 26px !important; }
.anv1 .noticeafterss h2 { font-size: 24px; font-weight: 800; color: #b3261e !important; margin-bottom: 10px; }
.anv1 .noticeafterss p, .anv1 .noticeafterss li { color: var(--an-text); font-size: 15px; }
.anv1 .noticeafterss .btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px !important; margin-top: 0 !important; border-radius: 10px; background: var(--an-ink); border-color: var(--an-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.anv1 .noticeafterss .d-flex { flex-wrap: wrap; gap: 12px !important; }

/* ---------- 5. View Details popup (#viewnotice; content from Welcome::viewauction) ---------- */
#viewnotice .modal-dialog { max-width: 860px; }
#viewnotice .modal-content { border: 0; border-radius: 16px; overflow: hidden; font-family: "Gilroy", system-ui, sans-serif; color: var(--an-text); max-height: calc(100dvh - 48px); }
#viewnotice .anv1-mhead {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px;
    padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--an-line);
}
#viewnotice .anv1-mtitle { margin: 0; font-size: 22px; font-weight: 800; color: var(--an-deep); letter-spacing: -.3px; }
#viewnotice .anv1-mclose {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--an-line); border-radius: 10px;
    background: #fff; color: var(--an-deep); font-size: 22px; line-height: 1; cursor: pointer;
}
#viewnotice .anv1-mclose:hover { border-color: var(--an-ink); background: var(--an-mint); }
#viewnotice .modal-body { padding: 22px 24px 24px; overflow-y: auto; }
#viewnotice .modal-body img { max-width: 100%; height: auto; }
#viewnotice .modal-body iframe { max-width: 100%; }
#viewnotice .modal-body > .row { margin: 0; }
#viewnotice .modal-body > .row > [class*="col-"] { padding: 0; }
#viewnotice .noticeafter.anv1-details { width: 100%; max-width: none !important; padding: 0 !important; margin: 0 !important; font-size: 15px !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; box-shadow: none !important; border: 0 !important; background: none !important; }
#viewnotice .anv1-dgroup { border: 1px solid var(--an-line); border-radius: 12px; overflow: hidden; }
#viewnotice .anv1-dgroup > h4 { margin: 0 !important; padding: 12px 16px; background: #e9f4ef; color: var(--an-teal) !important; font-size: 15px !important; font-weight: 800; }
/* dense: a half-width field after full-width ones fills the gap beside the previous half-width field (visual only) */
#viewnotice .anv1-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
#viewnotice .anv1-dgrid > p { margin: 0 !important; padding: 12px 16px; border-top: 1px solid #edf2f0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; color: var(--an-text); }
#viewnotice .anv1-dgrid > p.anv1-dwide { grid-column: 1 / -1; }
#viewnotice .anv1-dgrid > p.anv1-daddr { font-weight: 600; }
#viewnotice .anv1-dgrid > p > strong:first-child { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--an-label); }
#viewnotice .anv1-dgroup + hr, #viewnotice .anv1-details > hr { display: none; }
#viewnotice .anv1-mfoot { display: flex; justify-content: flex-end; padding: 0 24px 22px; }
#viewnotice .anv1-mfoot button { min-height: 44px; min-width: 110px; padding: 0 18px; border: 1px solid #c4d8d3; border-radius: 10px; background: #fff; color: var(--an-ink); font: 700 14px/1 "Gilroy", system-ui, sans-serif; cursor: pointer; }
#viewnotice .anv1-mfoot button:hover { border-color: var(--an-ink); background: var(--an-mint); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .anv1-hero-grid { grid-template-columns: 1fr; }
    .anv1 .anv1-lead { max-width: 560px; }
    .anv1-visual { max-width: 720px; width: 100%; }
    .anv1-cards { grid-template-columns: 1fr; gap: 10px; }
    .anv1-card { align-items: center; padding: 14px 16px; }
    .anv1 .noticeafter .unlock-container { grid-column: 1 / -1; justify-content: flex-start; padding: 16px 24px 0; }
    .anv1 .noticeafter .unlock-wrapper { justify-content: flex-start; padding: 10px 14px; background: #fff7ec !important; border: 1px solid #f6d9b8 !important; }
}
@media (max-width: 767px) {
    .anv1-head, .anv1-res-head, .anv1-results.has-results .anv1-res-head { flex-direction: column; align-items: flex-start; }
    .anv1-grid { grid-template-columns: 1fr; }
    .anv1-actions { flex-direction: column-reverse; align-items: stretch; }
    .anv1-submit { flex-direction: column; align-items: stretch; }
    .anv1 #submit_btn { width: 100%; min-width: 0; }
    .anv1 #loadingGif { align-self: center; }
    .anv1 .anv1-sample.live-auction-btn { justify-content: center; text-align: center; padding: 10px 16px; line-height: 1.35; }
    .anv1 .search-bar-container { width: 100%; }
    .anv1-coverage { align-items: flex-start; padding: 14px 16px; }
    .anv1 .anv1-cov-title { font-size: 15px; }
    .anv1 .view-noticeafter > .row + .row { margin-top: 20px !important; }
    .anv1 .view-noticeafter .noticeafter { padding: 8px 0 20px !important; }
    .anv1 .noticeafter tbody { grid-template-columns: 1fr 1fr; }
    .anv1 .noticeafter tr { grid-template-columns: 1fr; gap: 4px; padding: 12px 20px; }
    .anv1 .noticeafter tr.anv1-r-meta { padding: 12px 20px 14px; }
    .anv1 .noticeafter tr.anv1-r-meta:first-of-type, .anv1 .noticeafter tr.anv1-r-bank { grid-column: 1 / -1; border-bottom: 1px solid #e6efec !important; }
    .anv1 .noticeafter tr.anv1-r-bank + tr.anv1-r-meta { border-left: 0 !important; }
    .anv1 .noticeafter td:last-child { font-size: 15px; }
    .anv1 .noticeafter tr.anv1-r-name td:last-child { font-size: 18px; }
    .anv1 .noticeafter td:first-child { white-space: normal; font-size: 13px; }
    .anv1 .noticeafter > .d-flex { grid-column: 1 / -1; padding: 16px 20px 0; display: grid !important; grid-template-columns: 1fr 1fr; }
    .anv1 .noticeafter > .d-flex .btn { width: 100% !important; padding: 0 8px !important; font-size: 14px !important; white-space: nowrap; }
    .anv1 .noticeafter .unlock-container { padding: 14px 20px 0; }
    .anv1 .noticeafter .unlock-wrapper { width: 100%; padding: 12px 14px; }
    .anv1 .noticeafter .unlock-3d-final { white-space: normal !important; width: 100% !important; justify-content: center; text-align: center; }
    .anv1 .noticeafter .unlock-subtext { order: 0; }
    #viewnotice .modal-dialog { margin: 12px; }
    #viewnotice .modal-content { max-height: calc(100dvh - 24px); }
    #viewnotice .anv1-mhead { padding: 14px 16px; }
    #viewnotice .anv1-mtitle { font-size: 19px; }
    #viewnotice .modal-body { padding: 15px; }
    #viewnotice .anv1-dgrid { grid-template-columns: 1fr; }
    #viewnotice .anv1-mfoot { padding: 0 15px 15px; }
}
@media (max-width: 640px) {
    .anv1-visual .lay { padding: 12px; border-radius: 14px; }
    .anv1-visual .lay-top { margin-bottom: 11px; }
    .anv1-visual .lay-top strong { font-size: 14px; }
    .anv1-visual .example { font-size: 11px; padding: 4px 7px; }
    .anv1-visual .status { padding: 8px 6px; column-gap: 5px; grid-template-columns: 17px 1fr; font-size: 13px; }
    .anv1-visual .status small { font-size: 11px; }
    .anv1-visual .status i { width: 17px; height: 17px; font-size: 11px; }
    .anv1-visual .lay-foot { font-size: 12px; gap: 6px; }
    .anv1-visual .lay-foot button { min-height: 34px; padding: 0 10px; font-size: 12px; }
    .anv1-visual figcaption { font-size: 12px; }
}
@media (max-width: 420px) {
    .anv1 .anv1-h1 { letter-spacing: -1px; }
    .anv1-hero-actions { flex-direction: column; align-items: stretch; }
    .anv1-hero-actions .anv1-btn { width: 100%; }
    .anv1-link { justify-content: center; }
}

/* ---------- Reduced motion: a static illustrative match, no loop, no toggle ---------- */
@media (prefers-reduced-motion: reduce) {
    .anv1 * { transition: none !important; }
    .anv1-visual .lay *, .anv1-visual .lay *::after { animation: none !important; }
    .anv1-visual .scan, .anv1-visual #anv1Motion { display: none !important; }
    .anv1-visual .checking { opacity: 0; }
    .anv1-visual .target { background: #ffe2cc; border-color: #9f382b; color: #832c22; box-shadow: 0 0 0 3px #af413835; }
    .anv1-visual .target::after { opacity: 1; }
    .anv1-visual .warning { box-shadow: inset 0 0 0 1px #ffc8a3c2; }
}

/* ---------- Legacy rules kept from the page's old inline <style> (modal width, blur helpers) ---------- */
.anv1 .fa-info-circle { color: var(--an-teal); }
.blur { filter: blur(5px); pointer-events: none; }
.overlay { top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, .3); z-index: 999; display: none; }
