/* ============================================================
   Single-property dashboard pager + mobile bottom tab bar
   ============================================================ */

/* modern-ui.css defines a global `.tab-content { max-height:60vh; overflow-y:auto }`
   for the property MODAL. The dashboard reuses that class name for full-page
   tabs, which capped the Home view at 60vh and clipped the card (leaving a white
   void below). Un-cap it for the dashboard's tabs only. */
.content-body .tab-content {
    max-height: none;
    overflow: visible;
    padding: 0;
}

/* ── Property pager ─────────────────────────────────────── */
.prop-pager {
    max-width: 460px;
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
}

.pgr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pgr-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.pgr-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--brand);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.pgr-arrow:hover:not(:disabled) { background: var(--brand); color: #fff; transform: scale(1.05); }
.pgr-arrow:disabled { opacity: 0.35; cursor: default; }

.pgr-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
    animation: pgrFade 0.35s ease;
}
@keyframes pgrFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pgr-photo {
    position: relative;
    width: 100%;
    height: 240px;
    background: #eef0f4;
}
.pgr-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgr-photo-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 3rem;
}
.pgr-status {
    position: absolute; top: 0.85rem; left: 0.85rem;
    background: rgba(17, 24, 39, 0.82); color: #fff;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem; border-radius: 999px;
}

.pgr-body { padding: 1.5rem 1.5rem 1.75rem; }

.pgr-address {
    font-size: 1.35rem; font-weight: 700; color: #111827;
    margin: 0 0 0.25rem; line-height: 1.25;
}
.pgr-acct { font-size: 0.8rem; color: #9ca3af; margin-bottom: 1.25rem; }

.pgr-hero {
    background: linear-gradient(135deg, var(--navy-500) 0%, var(--brand) 100%);
    color: #fff; border-radius: 12px; padding: 1.25rem 1.5rem; text-align: center;
    margin-bottom: 1.25rem;
}
.pgr-hero-label { font-size: 0.78rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.pgr-hero-value { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.pgr-hero-value span { font-size: 1rem; font-weight: 600; opacity: 0.85; }

.pgr-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.pgr-stats > div {
    background: #f9fafb; border-radius: 10px; padding: 0.85rem 1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.pgr-stats span { font-size: 0.72rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }
.pgr-stats strong { font-size: 1.1rem; color: #111827; }
.pgr-stats strong.pos { color: #059669; }

.pgr-deadline { font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }

.pgr-actions { display: flex; gap: 0.6rem; }
.pgr-btn {
    flex: 1; padding: 0.85rem 1rem; border-radius: 10px; border: 1px solid #e5e7eb;
    background: #fff; color: #374151; font-weight: 600; font-size: 0.92rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    transition: all 0.2s ease;
}
.pgr-btn:hover { background: #f9fafb; }
.pgr-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); flex: 2; }
.pgr-btn-primary:hover { background: var(--navy-800); }

.pgr-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.pgr-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
    background: #d1d5db; cursor: pointer; transition: all 0.2s ease;
}
.pgr-dot.active { background: var(--brand); width: 22px; border-radius: 5px; }

.pgr-empty { text-align: center; padding: 3.5rem 1.5rem; }
.pgr-empty-icon { font-size: 2.75rem; color: #d1d5db; margin-bottom: 1rem; }
.pgr-empty h3 { color: #374151; margin-bottom: 0.5rem; }
.pgr-empty p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1.5rem; }
.pgr-empty .pgr-btn { flex: none; display: inline-flex; }

/* ── Mobile bottom tab bar ──────────────────────────────── */
.mobile-tabbar { display: none; }

@media (max-width: 768px) {
    /* Hide the desktop sidebar chrome; the bottom bar drives navigation. */
    .dashboard-layout .sidebar { display: none !important; }
    .dashboard-layout .main-content { margin-left: 0 !important; }
    .content-header { display: none !important; }
    .content-body { padding: 1rem 1rem calc(72px + 1rem) !important; }

    .prop-pager { max-width: 100%; }

    .mobile-tabbar {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
        background: #fff; border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    }
    .mobile-tabbar .mtab {
        flex: 1; background: none; border: none; cursor: pointer;
        display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
        color: #9ca3af; font-size: 0.68rem; font-weight: 600; padding: 0.4rem 0;
        transition: color 0.15s ease;
    }
    .mobile-tabbar .mtab i { font-size: 1.15rem; }
    .mobile-tabbar .mtab.active { color: var(--brand); }
    .mobile-tabbar .mtab-add i {
        background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; margin-bottom: 0.1rem;
        box-shadow: 0 4px 12px rgba(28, 61, 90, 0.35);
    }
    .mobile-tabbar .mtab-add { color: var(--brand); }
}

/* Desktop: center the pager with a touch of breathing room */
@media (min-width: 769px) {
    .prop-pager { padding-top: 1.5rem; }
}
