* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #1D9E75; --brand-dark: #0F6E56; --brand-light: #E1F5EE;
  --approve: #1D9E75; --reject: #D85A30;
  --reject-light: #FAECE7; --approve-light: #E1F5EE;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCREEN WRAPPER ── */
.screen { display: none; min-height: 520px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.screen.active { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; animation: fadeIn 0.4s ease; }

/* ── LOGIN CARD ── */
.login-card {
  background: white;
  border: 0.5px solid #ddd;
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  width: 100%; max-width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.brand-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.brand-icon svg { width: 16px; height: 16px; fill: #fff; }
.brand-name { font-size: 16px; font-weight: 600; color: #111; }
.card-title { font-size: 18px; font-weight: 600; color: #111; margin: 18px 0 5px; }
.card-sub { font-size: 13px; color: #666; margin-bottom: 1.75rem; line-height: 1.5; }

/* ── FIELD ── */
.field-label { font-size: 12px; font-weight: 500; color: #666; display: block; margin-bottom: 5px; }
.field-wrap { position: relative; margin-bottom: 1rem; }
.phone-prefix { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #666; }
#phone-input { width: 100%; padding: 10px 10px 10px 42px; border: 1.5px solid #ddd; border-radius: 8px; outline: none; font-size: 14px; }

/* ── OTP BOXES ── */
.otp-row { display: flex; gap: 8px; margin-bottom: 1.25rem; justify-content: center; }
.otp-box {
  width: 42px; height: 50px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 20px; font-weight: 600;
  text-align: center; color: #111;
  background: white;
  outline: none;
}
.otp-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,158,117,0.1); }

/* ── BUTTONS ── */
.btn-main {
  width: 100%; padding: 12px;
  background: var(--brand); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-main:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── DASHBOARD ── */
#dashboard { display: none; min-height: 100vh; font-family: -apple-system, sans-serif; background: #f9fafb; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 56px; border-bottom: 1px solid #e5e7eb; background: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 13px; color: #6b7280; cursor: pointer; padding: 6px 12px; border-radius: 6px; font-weight: 500; }
.nav-link.active { color: #111827; background: #f3f4f6; }
.nav-badge { margin-left: 6px; font-size: 11px; background: var(--brand-light); color: var(--brand-dark); border-radius: 10px; padding: 2px 8px; }

.table-container { padding: 24px; max-width: 1400px; margin: 0 auto; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 16px; text-align: left; font-size: 11px; color: #6b7280; border-bottom: 1px solid #e5e7eb; background: #f9fafb; text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 16px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; }

.contact-info { font-size: 12px; line-height: 1.4; }
.contact-name { font-weight: 600; color: #111; display: block; margin-bottom: 2px; }
.contact-email { color: #6b7280; display: block; font-size: 11px; }

.id-cell { font-family: ui-monospace, monospace; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1.5px solid #eee; margin-right: 4px; }
.selected-approve { background: var(--approve-light) !important; color: var(--brand-dark); border-color: #9FE1CB !important; }
.selected-reject { background: var(--reject-light) !important; color: var(--reject); border-color: #F5C4B3 !important; }

.err-msg { font-size: 12px; color: var(--reject); margin-top: 4px; min-height: 16px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #111827; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(20px); transition: 0.3s; z-index: 1000; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.toast.show { opacity: 1; transform: translateY(0); }

.modal-wrapper { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); align-items: center; justify-content: center; z-index: 500; backdrop-filter: blur(2px); }
.modal-wrapper.open { display: flex; }
.modal-box { background: #fff; padding: 24px; border-radius: 16px; width: 100%; max-width: 400px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* All Properties Grid */
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.prop-card { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.prop-media { background: #f3f4f6; position: relative; }
.prop-media-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.prop-media-scroller > * { width: 100%; height: 200px; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }
.prop-card-body { padding: 16px; }
.prop-title { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 4px; }
.prop-location { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.prop-price { font-size: 18px; font-weight: 700; color: var(--brand-dark); }
.prop-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; margin-top: 12px; }
.prop-detail { background: #f9fafb; padding: 6px 10px; border-radius: 6px; }
.prop-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.amenity-tag { font-size: 11px; background: #f3f4f6; color: #4b5563; padding: 3px 8px; border-radius: 12px; }
.verification-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: capitalize; }
.badge-accepted { background: var(--approve-light); color: var(--brand-dark); }
.badge-rejected { background: var(--reject-light); color: var(--reject); }

.media-modal-wrapper { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.72); align-items: center; justify-content: center; z-index: 800; padding: 20px; }
.media-modal-wrapper.open { display: flex; }
.media-modal { background: #fff; border-radius: 16px; width: min(960px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.media-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.media-modal-close { border: none; background: #f3f4f6; color: #111827; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.media-modal-body { padding: 20px; display: grid; gap: 16px; }
.media-preview { background: #0f172a; border-radius: 12px; min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-preview img, .media-preview video { width: 100%; max-height: 460px; object-fit: contain; background: #0f172a; }
.media-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-nav button { border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.media-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.media-thumb { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; }
.media-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(29,158,117,0.12); }
.media-thumb img, .media-thumb video { width: 100%; height: 74px; object-fit: cover; display: block; }
.media-empty { color: #6b7280; text-align: center; padding: 32px 12px; }

/* Property actions (three-dot menu) */
.prop-actions { position: absolute; top: 12px; right: 12px; z-index: 30; }
.dot-btn { background: rgba(255,255,255,0.9); border: 1px solid #e5e7eb; width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; }
.prop-actions-menu { display:none; position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width:120px; overflow:hidden; }
.prop-actions-menu.open { display:block; }
.prop-actions-menu button { width:100%; text-align:left; padding:10px 12px; border:none; background:none; cursor:pointer; font-size:13px; color:#111827; }
.prop-actions-menu button:hover { background:#f3f4f6; }

/* Wider, responsive modal and form styles */
.modal-box { max-width: 720px; box-sizing: border-box; }
.modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px }
.modal-close { background:#f3f4f6; border:none; width:36px; height:36px; border-radius:8px; cursor:pointer }
.form-grid { display:grid; grid-template-columns: 1fr; gap:10px; }
@media(min-width:720px){ .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-row { display:flex; flex-direction:column; }
.field-label { margin-bottom:6px; font-size:13px }
.input-field, .textarea-field { padding:10px; border:1px solid #e5e7eb; border-radius:8px; font-size:14px; width:100%; box-sizing:border-box }
.textarea-field { resize:vertical; min-height:96px }
.modal-actions { display:flex; gap:12px; justify-content:flex-end; margin-top:8px }
.modal-note { font-size:12px; color:#6b7280; grid-column:1/-1 }

.page-content { display: none; }
.page-content.active { display: block; }
