/* ═══════════════════════════════════════════════════════════════════════════
   HousifyHub — Landlord pages (register, login, my-listings dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hide Astra header + page title on the my-listings dashboard ─────────── */
.page-my-listings .site-header,
.page-my-listings #masthead,
.page-my-listings .ast-masthead-custom-spacing,
.page-my-listings header.site-header,
.page-my-listings .ast-masthead-wrapper {
    display: none !important;
}
.page-my-listings .entry-title,
.page-my-listings h1.page-title,
.page-my-listings .page-header,
.page-my-listings .ast-page-title-wrap {
    display: none !important;
}

/* ── Auth pages: register + login ────────────────────────────────────────── */
.hk-auth-wrap {
    max-width: 480px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}
.hk-auth-wrap h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
.hk-auth-wrap > p {
    margin: 0 0 28px;
    color: #6b7280;
    font-size: 14px;
}
.hk-auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}
.hk-auth-switch a {
    color: #1e7a34;
    font-weight: 600;
    text-decoration: none;
}
.hk-auth-switch a:hover { text-decoration: underline; }

/* ── reCAPTCHA widget ─────────────────────────────────────────────────────── */
.hk-recaptcha-field {
    margin-bottom: 20px;
}

/* ── Dashboard wrapper ────────────────────────────────────────────────────── */
.hk-dashboard {
    max-width: 1000px;
    margin: 32px auto;
    padding: 0 16px 48px;
}

/* ── Dashboard header: welcome text + button ──────────────────────────────── */
.hk-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.hk-dashboard-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

/* ── Primary CTA: "+ List New Property" ──────────────────────────────────── */
.hk-btn-new-listing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    background: #1e7a34;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: background .15s;
    white-space: nowrap;
}
.hk-btn-new-listing:hover { background: #166028; }

/* ── Stats grid (2-col mobile → 4-col desktop) ────────────────────────────── */
.hk-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}
@media (min-width: 600px) {
    .hk-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.hk-stat-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hk-stat-number {
    font-size: 30px;
    font-weight: 800;
    color: #166534;
    line-height: 1;
}
.hk-stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Sign-out link (below stats grid) ────────────────────────────────────── */
.hk-dashboard-signout {
    text-align: right;
    margin-bottom: 24px;
}
.hk-signout-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}
.hk-signout-link:hover { color: #dc2626; text-decoration: underline; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.hk-dashboard-empty {
    text-align: center;
    padding: 64px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}
.hk-dashboard-empty p {
    margin: 0 0 20px;
    font-size: 16px;
}

/* ── Listings table ───────────────────────────────────────────────────────── */
.hk-listings-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.hk-listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.hk-listings-table th {
    background: #f9fafb;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.hk-listings-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}
.hk-listings-table tbody tr:last-child td { border-bottom: none; }
.hk-listings-table tbody tr:hover          { background: #f9fafb; }

.hk-lt-photo { width: 72px; }
.hk-lt-no-photo {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.hk-lt-title {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}
.hk-lt-title:hover { color: #1e7a34; text-decoration: underline; }

.hk-lt-post-status {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

/* Listing status badges */
.hk-lt-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.hk-lt-status.available { background: #dcfce7; color: #166534; }
.hk-lt-status.reserved  { background: #fef9c3; color: #854d0e; }
.hk-lt-status.rented    { background: #fee2e2; color: #991b1b; }
