/* =============================================================================
   REPORT A CONCERN — listing.php
   CR: fysh-report-concern-2026-06-25
   Loaded as /assets/css/report-concern.css via listing.php $page_css.
============================================================================= */

/* ── CTA trigger ─────────────────────────────────────────────────────────── */

.listing-report-cta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.listing-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: transparent;
    transition: color var(--ease), text-decoration-color var(--ease);
}
.listing-report-btn:hover,
.listing-report-btn:focus-visible {
    color: var(--navy);
    text-decoration-color: currentColor;
}
.listing-report-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
}
.listing-report-btn .ti { font-size: 13px; }

/* ── Dialog shell ────────────────────────────────────────────────────────── */

.report-modal {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    border: none;
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.report-modal::backdrop {
    background: rgba(15, 35, 64, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Inner layout ────────────────────────────────────────────────────────── */

.report-modal__inner {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100dvh - 48px);
}

.report-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.report-modal__title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

.report-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color var(--ease), border-color var(--ease);
}
.report-modal__close:hover,
.report-modal__close:focus-visible { color: var(--navy); border-color: var(--navy); }
.report-modal__close:focus-visible  { outline: 2px solid var(--gold); outline-offset: 2px; }
.report-modal__close .ti            { font-size: 15px; }

.report-modal__ref {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 14px;
}

.report-modal__intro {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
    margin: 0 0 20px;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.report-modal__field {
    margin-bottom: 16px;
}

.report-modal__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}

.report-modal__optional {
    font-weight: 400;
    color: var(--muted);
}

.report-modal__select,
.report-modal__textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    background: #fff;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
    appearance: auto;
}
.report-modal__select:focus,
.report-modal__textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.12);
}
.report-modal__textarea {
    resize: vertical;
    min-height: 76px;
    line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.report-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.report-modal__cancel {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    cursor: pointer;
    transition: color var(--ease), border-color var(--ease);
}
.report-modal__cancel:hover { color: var(--navy); border-color: var(--navy); }

.report-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    cursor: pointer;
    transition: background var(--ease);
}
.report-modal__submit:hover:not(:disabled) { background: var(--blue); }
.report-modal__submit:disabled             { opacity: 0.55; cursor: not-allowed; }
.report-modal__submit .ti                  { font-size: 14px; }

/* ── Success state ───────────────────────────────────────────────────────── */

.report-modal__success {
    text-align: center;
    padding: 28px 8px 8px;
}
.report-modal__success-icon {
    font-size: 42px;
    color: #3B6D11;
    display: block;
    margin-bottom: 12px;
}
.report-modal__success p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.5;
    margin: 0;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .report-modal__footer { flex-direction: column-reverse; }
    .report-modal__cancel,
    .report-modal__submit { width: 100%; justify-content: center; }
}
