.owner-portal {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.portal-header,
.property-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.portal-eyebrow {
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-grid,
.property-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 20px;
}

.summary-card,
.property-card {
    display: block;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 8px 24px rgb(15 23 42 / 6%);
}

.property-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.property-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .portal-header,
    .property-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


.property-card {
    overflow: hidden;
}

.property-image-container {
    width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f7;
    aspect-ratio: 16 / 9;
}

.property-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
}

.property-card:hover .property-image {
    transform: scale(1.035);
}

.property-image-placeholder {
    display: flex;
    width: 100%;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            #eef4fb,
            #f8fafc
        );
    color: #667085;
    aspect-ratio: 16 / 9;
}

.property-image-placeholder span {
    font-size: 2.3rem;
}

.property-image-placeholder small {
    font-size: 0.82rem;
}


.portal-back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.property-detail-image {
    width: 240px;
    max-width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.property-summary-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 18px;
    margin: 30px 0 42px;
}

.property-summary-card {
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.property-summary-card span {
    display: block;
    margin-bottom: 10px;
    color: #667085;
}

.property-summary-card strong {
    color: #172033;
    font-size: 1.25rem;
}

.occupancy-status.occupied {
    color: #b54708;
}

.occupancy-status.available {
    color: #027a48;
}

.portal-detail-section {
    margin-top: 42px;
}

.portal-section-title {
    margin-bottom: 18px;
}

.portal-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.portal-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #eef0f3;
    text-align: left;
    vertical-align: middle;
}

.portal-table th {
    background: #f8fafc;
    color: #475467;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.portal-badge,
.payment-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.portal-badge.active,
.payment-status.paid {
    background: #ecfdf3;
    color: #027a48;
}

.portal-badge.inactive,
.payment-status.unpaid {
    background: #fef3f2;
    color: #b42318;
}

.payment-status.partial {
    background: #fffaeb;
    color: #b54708;
}

.document-link {
    display: inline-flex;
    margin: 3px 8px 3px 0;
    color: #175cd3;
    font-weight: 700;
    text-decoration: none;
}