/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root{--primary:#1565C0;--primary-light:#1976D2;--primary-lighter:#42A5F5;--primary-bg:#E3F2FD;--accent:#FF6F00;--danger:#e53935;--success:#2E7D32;--text:#263238;--text-2:#546E7A;--muted:#90A4AE;--bg:#f0f2f5;--card:#fff;--border:#eceff1;--radius:12px;--shadow-sm:0 1px 4px rgba(0,0,0,.06);--shadow:0 2px 12px rgba(0,0,0,.08);--shadow-lg:0 4px 24px rgba(0,0,0,.12);--gradient:linear-gradient(135deg,#1565C0 0%,#1976D2 50%,#42A5F5 100%)}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing:antialiased; }
html, body { height: 100%; overflow: hidden; }
#app { height: 100%; position: relative; }
.hidden { display: none !important; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }

/* ===== Header ===== */
.header {
  position: relative; height: 56px;
  background: var(--gradient);
  display: flex; align-items: center; padding: 0 14px; z-index: 100; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(21,101,192,.3);
}
/* 首页 header 需要 fixed 以便筛选栏固定 */
#page-list > .header {
  position: fixed; top: 0; left: 0; right: 0;
}
/* 首页不在前台时，隐藏其 fixed 元素避免穿透遮挡其他页面 */
#page-list:not(.active) > .header,
#page-list:not(.active) > .filter-bars-wrapper,
#page-list:not(.active) > .tab-bar {
  display: none !important;
}
.header-title { flex: 1; color: #fff; font-size: 18px; font-weight: 600; text-align: center; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: 8px; }
.btn-icon {
  width: 36px; height: 36px; border: none; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-icon:active { background: rgba(255,255,255,.3); }

/* Header Action Buttons */
.btn-header-action {
  padding: 6px 16px; border: none; border-radius: 20px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .2s; backdrop-filter: blur(4px);
}
.btn-header-action:active { background: rgba(255,255,255,.35); transform: scale(.96); }
.btn-header-wanted { background: rgba(255,183,77,.3); border: 1px solid rgba(255,183,77,.5); }

/* District Check List (multi-select) */
.district-check-list {
  display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto;
  background: #fafafa; border: 1px solid #eee; border-radius: 6px; padding: 8px;
}
.district-check-item {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #555;
  cursor: pointer; padding: 3px 8px; border-radius: 4px; background: #fff;
  border: 1px solid #e0e0e0; transition: all .15s;
}
.district-check-item:has(input:checked) {
  background: #E3F2FD; border-color: #90CAF9; color: #1565C0;
}
.district-check-item input { margin: 0; }

/* ===== Pages ===== */
.page { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); display: none; }
.page.active { display: flex; flex-direction: column; }

/* ===== Filter Bars Wrapper (fixed container) ===== */
.filter-bars-wrapper {
  position: fixed; top: 56px; left: 0; right: 0;
  z-index: 80; background: #fff;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ===== Filter Bar Row (each bar inside wrapper) ===== */
.filter-bar-row {
  display: flex; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
/* 第一列：固定宽度，放第一个按钮 */
.filter-first-col {
  flex-shrink: 0;
}
/* 第二列：其余按钮在此自动换行 */
.filter-rest-col {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1;
}
.filter-bar-row.mgr-vacancy-bar { border-top: 1px solid #f0f0f0; }
.city-tag {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  font-size: 13px; color: var(--text-2); background: #f5f7fa;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; font-weight: 500;
}
.city-tag.active { background: var(--primary-light); color: #fff; box-shadow: 0 2px 8px rgba(25,118,210,.3); }
.city-tag:active { opacity: .7; transform: scale(.95); }
.price-count { font-size: 11px; opacity: 0.6; margin-left: 2px; }

/* Manager Filter Bar */
.mgr-filter-tag {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: #666; background: #f5f5f5; cursor: pointer;
  white-space: nowrap;
}
.mgr-filter-tag.active { background: #1976D2; color: #fff; }
.mgr-filter-tag.expiry-tag { background: #FFF8E1; color: #F57F17; }
.mgr-filter-tag.expiry-tag.active { background: #FF8F00; color: #fff; }
.mgr-filter-tag.expiry-warn { background: #FFF3E0; color: #E65100; }
.mgr-filter-tag.expiry-warn.active { background: #E65100; color: #fff; }
.mgr-filter-tag.expiry-danger { background: #FFEBEE; color: #C62828; }
.mgr-filter-tag.expiry-danger.active { background: #C62828; color: #fff; }
.mgr-filter-tag.vacancy-tag { background: #E3F2FD; color: #1565C0; }
.mgr-filter-tag.vacancy-tag.active { background: #1976D2; color: #fff; }
.mgr-filter-tag.vacancy-warn { background: #FFF3E0; color: #E65100; }
.mgr-filter-tag.vacancy-warn.active { background: #E65100; color: #fff; }

/* ===== Filter Panel ===== */
.filter-panel {
  position: fixed; top: 56px; left: 0; right: 0; background: #fff;
  z-index: 90; box-shadow: 0 4px 16px rgba(0,0,0,.08);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.filter-panel.show { max-height: 500px; }
.filter-content { padding: 16px; }
.filter-group { margin-bottom: 14px; }
.filter-group label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; font-weight: 500; }
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-row span { color: #999; }
.input-sm { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.input-full { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 5px 14px; border: 1px solid #ddd; border-radius: 20px;
  font-size: 13px; color: #666; cursor: pointer; background: #fafafa; transition: all .2s;
}
.filter-tag.active { background: #1976D2; color: #fff; border-color: #1976D2; }
.filter-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ===== Buttons ===== */
.btn { padding: 10px 24px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600; transition: all .2s; }
.btn:active { opacity: .8; transform: scale(.98); }
.btn-primary { background: var(--primary-light); color: #fff; box-shadow: 0 2px 8px rgba(25,118,210,.25); }
.btn-outline { background: #fff; color: var(--text-2); border: 1px solid #ddd; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 8px rgba(229,57,53,.2); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; padding: 14px; font-size: 16px; border-radius: 10px; }

/* ===== List ===== */
.list-container {
  flex: 1; overflow-y: auto; padding: 148px 14px 80px; -webkit-overflow-scrolling: touch;
}
.list-container.no-tab-bar { padding-bottom: 24px; }
.house-card {
  background: #fff; border-radius: var(--radius); margin-bottom: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer;
  transition: all .2s; display: flex; flex-direction: row;
}
.house-card:active { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.house-card-body {
  flex: 1; padding: 14px 16px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.house-card-images {
  position: relative; width: 140px; height: 115px; background: #f5f7fa;
  overflow: hidden; flex-shrink: 0; align-self: center; margin-right: 12px; border-radius: 8px;
}
.house-card-images img {
  width: 100%; height: 100%; object-fit: cover;
}
.house-card-images .img-count {
  position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.55);
  color: #fff; padding: 2px 6px; border-radius: 10px; font-size: 11px;
}
.house-card-title {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.house-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.house-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 3px;
  background: #E3F2FD; color: #1565C0;
}
.keyword-tag { background: #FFF3E0; color: #E65100; }
.detail-keywords {
  padding: 10px 16px; background: #fff; margin-top: 10px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.detail-keywords-label {
  font-size: 13px; color: #999; flex-shrink: 0;
}
.house-tag.green { background: #E8F5E9; color: #2E7D32; }
.house-tag.orange { background: #FFF3E0; color: #E65100; }
.house-card-price {
  font-size: 22px; font-weight: 800; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}
.house-card-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.house-status-tag {
  font-size: 11px; font-weight: 400; color: #4CAF50; background: #E8F5E9;
  padding: 1px 6px; border-radius: 3px; white-space: nowrap;
}
.house-status-tag.status-rented {
  color: #e53935; background: #FFEBEE;
}
.house-lease-tag {
  font-size: 11px; color: #999; background: #f5f5f5;
  padding: 1px 6px; border-radius: 3px; margin-left: 4px; font-weight: 400;
}
.house-card-store { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* House Card Quick Actions */
.house-card-actions {
  display: flex; gap: 6px; margin-top: 10px; padding-top: 8px;
  border-top: 1px solid #f0f0f0; flex-wrap: wrap;
}
.action-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: #666; padding: 4px 10px;
  border: 1px solid #e0e0e0; border-radius: 20px;
  cursor: pointer; background: #fafafa; transition: all .2s;
  white-space: nowrap;
}
.action-btn:active { background: #eee; }
.action-btn.action-rented {
  color: #2E7D32; border-color: #a5d6a7; background: #E8F5E9;
}
.action-btn.action-rented:active { background: #c8e6c9; }
.action-btn.action-relist {
  color: #1976D2; border-color: #90CAF9; background: #E3F2FD;
}
.action-btn.action-relist:active { background: #BBDEFB; }

.load-more { text-align: center; padding: 14px; color: var(--primary-light); font-size: 14px; cursor: pointer; font-weight: 500; }
.empty-tip { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 15px; }

/* ===== Detail ===== */
.detail-content {
  flex: 1; overflow-y: auto; padding-bottom: 0; -webkit-overflow-scrolling: touch;
}
.detail-swiper {
  position: relative; height: 260px; background: #eee; overflow: hidden;
}
.detail-swiper img { width: 100%; height: 100%; object-fit: cover; object-position: center top; cursor: pointer; }
.detail-swiper .swiper-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.swiper-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.swiper-dot.active { background: #fff; }
.detail-info { padding: 18px; background: #fff; }
.detail-top-bar {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.detail-price { font-size: 24px; font-weight: 800; color: var(--danger); white-space: nowrap; }
.detail-price small { font-size: 13px; font-weight: 400; color: #999; }
.detail-community { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.btn-contact-ta-sm {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 20px; border-radius: 22px; font-size: 14px; font-weight: 600;
  background: var(--gradient); color: #fff;
  text-decoration: none; cursor: pointer; flex-shrink: 0; margin: 0 10px; transition: all .2s; box-shadow: 0 2px 8px rgba(25,118,210,.25);
}
.btn-contact-ta-sm:active { opacity: .85; transform: scale(.97); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  padding: 14px 0; border-top: 1px solid #f0f0f0;
}
.detail-grid-item { text-align: center; }
.detail-grid-item .label { font-size: 12px; color: #999; margin-bottom: 4px; }
.detail-grid-item .value { font-size: 15px; font-weight: 500; }
.detail-desc { padding: 14px 16px; background: #fff; margin-top: 10px; }

/* Manager Detail Section (only visible to house owner) */
.mgr-detail-section {
  padding: 14px 16px; background: #fff; margin-top: 10px;
}
.mgr-detail-section h3 {
  font-size: 15px; font-weight: 600; color: #333; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.mgr-detail-row {
  display: flex; align-items: center; padding: 4px 0; font-size: 14px;
}
.mgr-detail-label {
  color: #999; width: 80px; flex-shrink: 0;
}
.mgr-detail-value {
  color: #333;
}
.mgr-detail-rented { border-left: 3px solid #e53935; }
.mgr-detail-available { border-left: 3px solid #4CAF50; }
.mgr-detail-expired {
  font-size: 12px; background: #FFEBEE; color: #C62828;
  padding: 2px 8px; border-radius: 10px; font-weight: 400;
}
.mgr-detail-warn {
  font-size: 12px; background: #FFF3E0; color: #E65100;
  padding: 2px 8px; border-radius: 10px; font-weight: 400;
}
.mgr-detail-ok {
  font-size: 12px; background: #E8F5E9; color: #2E7D32;
  padding: 2px 8px; border-radius: 10px; font-weight: 400;
}
.detail-desc h3 { font-size: 15px; margin-bottom: 8px; color: #333; }
.detail-desc p { font-size: 14px; color: #666; line-height: 1.7; white-space: pre-wrap; }
.detail-contact {
  padding: 14px 16px; background: #fff; margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.detail-contact-info { display: flex; flex-direction: column; gap: 4px; }
.detail-contact-name { font-size: 15px; font-weight: 500; }
.detail-contact-phone { font-size: 14px; color: #1976D2; }
.detail-contact .btn { padding: 10px 28px; }

/* Messages */
.detail-messages {
  padding: 16px; background: #fff; margin-top: 10px;
}
.detail-messages h3 {
  font-size: 15px; font-weight: 600; color: #333; margin-bottom: 12px;
}
.msg-list { margin-bottom: 14px; }
.msg-item {
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.msg-item:last-child { border-bottom: none; }
.msg-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.msg-nick { font-size: 13px; font-weight: 500; color: #333; }
.msg-time { font-size: 11px; color: #bbb; }
.msg-content { font-size: 14px; color: #555; line-height: 1.6; }
.msg-form { }
.msg-form-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.msg-input-nick {
  flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; background: #fafafa;
}
.msg-input-nick:focus { border-color: #1976D2; outline: none; }
.msg-textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; resize: none; background: #fafafa;
}
.msg-textarea:focus { border-color: #1976D2; outline: none; }
.msg-private-tip {
  font-size: 12px; color: #999; text-align: center; padding: 10px 0;
  background: #f9f9f9; border-radius: 6px; margin-bottom: 0;
}

/* ===== Form ===== */
.form-container {
  flex: 1; overflow-y: auto; padding: 0 14px 100px; -webkit-overflow-scrolling: touch;
}
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 500; }
.form-item .required { color: #e53935; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; background: #fff; transition: border-color .2s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: #1976D2; outline: none;
}
.form-item textarea { resize: vertical; }
.form-row { display: flex; gap: 12px; }
.flex-1 { flex: 1; }

.image-upload-area { display: flex; flex-wrap: wrap; gap: 8px; }
.tenant-section-title {
  font-size: 15px; font-weight: 600; color: #e53935; padding: 12px 0 8px;
  border-top: 1px solid #eee; margin-top: 4px;
}
.image-preview-list { display: flex; flex-wrap: wrap; gap: 8px; }
.image-preview {
  position: relative; width: 80px; height: 80px; border-radius: 6px; overflow: hidden;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .remove-img {
  position: absolute; top: 0; right: 0; width: 20px; height: 20px;
  background: rgba(0,0,0,.5); color: #fff; border: none; font-size: 14px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 0 0 0 6px;
}
.image-upload-btn {
  width: 80px; height: 80px; border: 2px dashed #ddd; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; gap: 2px;
}
.image-upload-btn span { font-size: 11px; color: #999; }

/* ===== Mine ===== */
.mine-content { padding: 0 14px 80px; overflow-y: auto; flex: 1; }
.user-card {
  background: var(--gradient);
  border-radius: 16px; padding: 24px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,.25);
}
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 18px; font-weight: 600; }
.user-role { font-size: 13px; opacity: .8; margin-top: 4px; }
.mine-menu { background: #fff; border-radius: 10px; overflow: hidden; }
.menu-item {
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background .2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f5f5f5; }
.menu-item span { flex: 1; font-size: 15px; }
.menu-item .arrow { color: #ccc; }

/* ===== Tab Bar ===== */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 58px;
  background: #fff; display: flex; border-top: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06); z-index: 100;
}
.tab-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: #999; cursor: pointer;
  transition: color .2s;
}
.tab-item.active { color: var(--primary-light); }
.tab-item span { font-size: 11px; }

/* ===== Modal ===== */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
  background: #fff; border-radius: 16px; padding: 24px; width: 100%;
  max-width: 400px; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
}
.modal-lg { max-width: 500px; }
.modal-content h2 { font-size: 17px; margin-bottom: 16px; text-align: center; }
.modal-actions { display: flex; gap: 12px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }

/* Share options */
.share-options { display: flex; justify-content: center; gap: 30px; padding: 20px 0; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.share-icon {
  width: 52px; height: 52px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.share-item span { font-size: 12px; color: #666; }

/* User management */
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-header h2 { margin: 0; }
.user-list-item {
  display: flex; align-items: center; padding: 12px 0;
  border-bottom: 1px solid #f0f0f0; gap: 10px;
}
.user-list-item:last-child { border-bottom: none; }
.user-list-item .name { flex: 1; font-weight: 500; }
.user-list-item .role-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 3px;
}
.role-admin { background: #FFF3E0; color: #E65100; }
.role-manager { background: #E3F2FD; color: #1565C0; }
.user-list-item .store { font-size: 12px; color: #999; }
.user-list-item .actions { display: flex; gap: 6px; }

/* ===== Image Viewer ===== */
.image-viewer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #000; z-index: 300; display: flex;
  align-items: center; justify-content: center;
}
.viewer-close {
  position: absolute; top: 16px; right: 16px; color: #fff;
  font-size: 32px; cursor: pointer; z-index: 1;
}
.image-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== Stats Row ===== */
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px 8px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary-light); }
.stat-card:nth-child(2) .stat-num { color: #2E7D32; }
.stat-card:nth-child(3) .stat-num { color: #e53935; }
.stat-label { font-size: 12px; color: #999; margin-top: 4px; }

/* ===== Admin Account Section ===== */
.admin-account-section {
  background: #fff; border-radius: 10px; padding: 16px;
  margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.admin-account-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-account-row {
  display: flex; align-items: center; margin-bottom: 10px; gap: 10px;
}
.admin-account-row label {
  width: 56px; font-size: 14px; color: #666; flex-shrink: 0; text-align: right;
}
.admin-account-row input {
  flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; background: #fff;
}
.admin-account-row input:focus {
  border-color: #1976D2; outline: none;
}
.admin-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-info { flex: 1; }
.admin-list-name { font-size: 15px; font-weight: 500; color: #333; }
.admin-list-pwd { font-size: 12px; color: #999; margin-top: 2px; }

/* ===== Manager Card (Admin Home) ===== */
.manager-card {
  background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05); display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
}
.manager-card.manager-suspended { opacity: 0.6; }
.manager-info { flex: 1; }
.manager-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.manager-detail { font-size: 12px; color: #888; line-height: 1.6; }
.manager-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }

/* ===== Quick Actions ===== */
.quick-actions { margin-bottom: 16px; }

/* ===== Section Title ===== */
.section-title {
  font-size: 15px; font-weight: 600; color: #333;
  margin-bottom: 10px; padding-left: 2px;
}

/* ===== Manager List ===== */
.manager-list { margin-bottom: 8px; }
.mgr-card {
  background: #fff; border-radius: 10px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.mgr-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.mgr-card-name { font-size: 15px; font-weight: 600; color: #333; }
.mgr-card-store { font-size: 12px; color: #999; margin-top: 2px; }
.mgr-card-location { font-size: 12px; color: #1976D2; margin-top: 2px; }
.mgr-card-actions { display: flex; gap: 6px; }
.mgr-card-stats {
  display: flex; gap: 16px;
}
.mgr-stat { font-size: 13px; color: #666; }
.mgr-stat b { color: #333; margin-right: 2px; }
.mgr-stat.published b { color: #2E7D32; }
.mgr-stat.deleted b { color: #e53935; }
.mgr-badge-suspended {
  font-size: 11px; background: #FFF3E0; color: #E65100;
  padding: 1px 6px; border-radius: 3px; font-weight: 400; vertical-align: middle;
}
.mgr-card.mgr-suspended {
  opacity: .55; background: #f5f5f5;
}
.btn-suspend {
  background: #FF9800; color: #fff; border: none; padding: 6px 14px; border-radius: 6px;
  font-size: 12px; cursor: pointer; font-weight: 500; transition: opacity .2s;
}
.btn-suspend:active { opacity: .7; }
.btn-resume {
  background: #4CAF50; color: #fff; border: none; padding: 6px 14px; border-radius: 6px;
  font-size: 12px; cursor: pointer; font-weight: 500; transition: opacity .2s;
}
.btn-resume:active { opacity: .7; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.75); color: #fff; padding: 12px 24px;
  border-radius: 8px; font-size: 14px; z-index: 400;
  transition: opacity .3s;
}

/* ===== Responsive - Desktop ===== */
@media (min-width: 768px) {
  .list-container { width: 100%; margin: 0 auto; padding: 60px 0 70px; }
  .house-card-images { width: 180px; height: 130px; }
  .detail-content { width: 100%; margin: 0 auto; }
  .form-container { width: 100%; margin: 0 auto; }
}

/* ===== Rent Request Items ===== */
.rq-item {
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.rq-item:last-child { border-bottom: none; }
.rq-item.rq-handled { opacity: .55; }
.rq-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.rq-name { font-size: 15px; font-weight: 600; color: #333; }
.rq-phone { font-size: 14px; color: #1976D2; text-decoration: none; }
.rq-phone:active { opacity: .7; }
.rq-badge-new {
  font-size: 11px; background: #FF9800; color: #fff; padding: 1px 8px;
  border-radius: 10px; margin-left: auto;
}
.rq-badge-handled {
  font-size: 11px; background: #E8F5E9; color: #4CAF50; padding: 1px 8px;
  border-radius: 10px; margin-left: auto;
}
.rq-detail {
  display: flex; gap: 6px; font-size: 13px; margin-bottom: 3px; color: #555;
}
.rq-detail label {
  color: #999; flex-shrink: 0; min-width: 56px;
}
.rq-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px;
}
.rq-time { font-size: 11px; color: #bbb; }
.rq-actions { display: flex; gap: 6px; }

/* Date Quick Buttons */
.date-quick-btns {
  display: flex; gap: 8px; margin-top: 8px;
}
.date-quick-btn {
  padding: 5px 14px; border: 1px solid #ddd; border-radius: 20px;
  font-size: 12px; color: #666; background: #fafafa; cursor: pointer;
  transition: all .15s;
}
.date-quick-btn:active { background: #1976D2; color: #fff; border-color: #1976D2; }

/* Avatar Upload */
.avatar-upload-area {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #1976D2, #42A5F5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; border: 3px solid #E3F2FD;
  transition: border-color .2s;
}
.avatar-preview:active { border-color: #1976D2; }
.avatar-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.avatar-default-icon { display: block; }
.avatar-upload-tip {
  font-size: 12px; color: #999;
}

/* User card avatar image */
.user-avatar-img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,255,255,.4);
}

/* Header avatar button with image */
.btn-header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,255,255,.5);
  cursor: pointer; background: none; padding: 0;
}
