/**
 * AgentsPro <-> Notarizr Directory (HivePress) visual bridge.
 *
 * HivePress deliberately ships with theme-agnostic, unstyled class names
 * (.button, .hp-listing, .hp-form, etc.) and expects the active theme to
 * supply the actual look. This file maps those classes onto AgentsPro's
 * existing design tokens (colors/fonts from style.css) so directory pages
 * built with the plugin feel like part of the same site.
 *
 * Deliberately lives in the THEME, not the plugin: plugin updates would
 * silently wipe out any styling changes made inside the plugin's own files.
 */

/* ── Buttons ─────────────────────────────────────────────────────── */
.hp-page .button,
.hp-page .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    background: var(--navy);
    color: #fff;
    transition: background 0.15s ease;
}
.hp-page .button:hover,
.hp-page .button-primary:hover {
    background: var(--navy-light);
    color: #fff;
}
.hp-page .button--secondary {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}
.hp-page .button--secondary:hover {
    background: var(--gold-pale);
}

/* ── Headings & body text ───────────────────────────────────────── */
.hp-page,
.hp-page input,
.hp-page select,
.hp-page textarea {
    font-family: var(--font-primary);
    color: var(--text);
}
.hp-page h1, .hp-page h2, .hp-page h3, .hp-page h4 {
    font-family: var(--font-display);
    color: var(--text);
}
.hp-page a { color: var(--navy); }
.hp-page a:hover { color: var(--navy-light); }

/* ── Listing cards ──────────────────────────────────────────────── */
.hp-page .hp-listing {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.15s ease;
}
.hp-page .hp-listing:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hp-page .hp-listing__title a { color: var(--text); font-weight: 700; }
.hp-page .hp-listing__categories,
.hp-page .hp-listing__attributes { color: var(--muted); font-size: 0.85rem; }

/* ── Forms (submit listing, filters, account) ───────────────────── */
.hp-page .hp-form input[type="text"],
.hp-page .hp-form input[type="email"],
.hp-page .hp-form input[type="tel"],
.hp-page .hp-form input[type="number"],
.hp-page .hp-form select,
.hp-page .hp-form textarea {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-primary);
}
.hp-page .hp-form input:focus,
.hp-page .hp-form select:focus,
.hp-page .hp-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ── Pagination ──────────────────────────────────────────────────── */
.hp-page .hp-pagination__item--active a,
.hp-page .hp-pagination__item--active span {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ── Menus (e.g. "Add Listing" in site header if HivePress renders one) ─ */
.hp-page .hp-menu__item--listing-submit {
    background: var(--gold);
    color: #fff;
    border-radius: 8px;
}
