/* ═══════════════════════════════════════════════════
   PropSuite — Master Data Dashboard
   Aesthetic: Clean Corporate + Teal Authority
   Fonts: Syne (headings) + DM Sans (body)
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-900: black;
  --teal-700: black;
  --teal-500: #0f8a7f;
  --teal-300: #3fb5aa;
  --teal-100: #ffd9d2;
  --teal-50:  #ffefec;

  --slate-900: #1a2332;
  --slate-700: #2e3d52;
  --slate-400: #7a8fa8;
  --slate-200: #dde4ed;
  --slate-100: #f0f4f8;
  --slate-50:  #f8fafc;

  --accent-gold: #d4a843;
  --accent-rose: #e05c6a;
  --accent-sky:  #3a86d4;

  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --sidebar-w: 240px;
  --topbar-h: 70px;
  --shadow-card: 0 2px 16px rgba(11,79,74,.08);
  --shadow-hover: 0 6px 28px rgba(11,79,74,.14);
}



/* ─── MAIN ───────────────────────────────────────── */
/* .main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} */

/* ─── TOPBAR ─────────────────────────────────────── */
/* .topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(11,79,74,.06);
} */

.page-title h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--slate-900);
}

.breadcrumb {
  font-size: .75rem;
  color: var(--slate-400);
  letter-spacing: .02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  padding: 9px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--slate-900);
  background: var(--slate-50);
  width: 220px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(15,138,127,.12);
}

.btn-primary {
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  letter-spacing: .02em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,138,127,.35);
}

.btn-primary.small {
  padding: 7px 14px;
  font-size: .8rem;
}



/* ─── CARD ───────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px 22px;
  border: 1px solid rgba(221,228,237,.7);
  transition: box-shadow .22s, transform .22s;
  animation: fadeUp .35s ease both;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card.wide {
  grid-column: span 2;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* stagger */
.card:nth-child(1)  { animation-delay: .04s; }
.card:nth-child(2)  { animation-delay: .08s; }
.card:nth-child(3)  { animation-delay: .12s; }
.card:nth-child(4)  { animation-delay: .16s; }
.card:nth-child(5)  { animation-delay: .20s; }
.card:nth-child(6)  { animation-delay: .24s; }
.card:nth-child(7)  { animation-delay: .28s; }
.card:nth-child(8)  { animation-delay: .30s; }
.card:nth-child(n+9){ animation-delay: .32s; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  /* border-bottom: 2px solid var(--teal-50); */
}
.master-border-line {
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #999 0px,
    #999 80px,
    #ff6a3d 80px,
    #ff6a3d 140px
  );
}

.card-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: .01em;
}

.MasterSearchBtn {
  /* width: 28px; */
   height: 28px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s, transform .15s;
}


/* ─── TAG LISTS ──────────────────────────────────── */
.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tag-list.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  font-size: .83rem;
  color: var(--teal-900);
  font-weight: 500;
  cursor: default;
  transition: background .18s;
}

.tag:hover { 
  background: var(--teal-100);
  cursor: pointer;
}

.tag.chip {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: .8rem;
  justify-content: center;
  display: inline-flex;
  white-space: nowrap;
}

.tag.chip.accent {
  background: #fff5e6;
  border-color: #f5d09a;
  color: #7a4e00;
}

.tag.chip.num {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-700);
  min-width: 38px;
  justify-content: center;
  font-weight: 600;
}

.tag.chip.amenity {
  background: #eef7ff;
  border-color: #b8d8f8;
  color: #1c4f80;
}

.tag.chip.nearby {
  background: #f0faf2;
  border-color: #b3e6be;
  color: #1a5e2e;
}

.tag.chip.media {
  background: #f5f0ff;
  border-color: #c8b5f8;
  color: #3d1a80;
}

/* Status tags */
.tag.status {
  justify-content: flex-start;
  gap: 10px;
  font-weight: 600;
}

.tag.status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag.status.available { background: #edfcf2; border-color: #a3e6bc; color: #14532d; }
.tag.status.available::before { background: #22c55e; }

.tag.status.sold { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.tag.status.sold::before { background: var(--accent-rose); }

.tag.status.construction { background: #fffbeb; border-color: #fcd34d; color: #713f12; }
.tag.status.construction::before { background: var(--accent-gold); }

.tag.status.ready { background: #eff6ff; border-color: #93c5fd; color: #1e3a5f; }
.tag.status.ready::before { background: var(--accent-sky); }

/* ─── DATA TABLE ─────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.data-table thead tr {
  background: var(--teal-700);
}

.data-table thead th {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
}

section {
    scroll-margin-top: 200px;
}

.data-table thead th:first-child { border-radius: 8px 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 8px 0 0; }

.data-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: background .14s;
}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:hover { background: var(--teal-50); }

.data-table tbody tr:nth-child(even) { background: var(--slate-50); }
.data-table tbody tr:nth-child(even):hover { background: var(--teal-50); }

.data-table td {
  padding: 9px 14px;
  color: var(--slate-700);
  vertical-align: middle;
}


.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--slate-100);
  cursor: pointer;
  font-size: .85rem;
  transition: background .15s, transform .12s;
  margin-right: 4px;
}

.act-btn:hover { background: var(--teal-100); transform: scale(1.1); }
.act-btn.del:hover { background: #fee2e2; }

/* ─── POSSESSION DATE ────────────────────────────── */
.date-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.date-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
  transition: border-color .2s;
  min-width: 150px;
}

.date-input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(15,138,127,.1);
}

.nav-item.sub.active {
  color: #ff5930;
  font-weight: bolder;
}
.nav-item.sub.active img {
  filter: invert(45%) sepia(80%) saturate(500%) hue-rotate(340deg);
}




.MasterPageSection section{
  margin-bottom: 32px;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-canvas { grid-template-columns: repeat(2, 1fr); }
  .card.wide   { grid-column: span 2; }
}

@media (max-width: 750px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .grid-canvas { grid-template-columns: 1fr; padding: 16px; }
  .card.wide   { grid-column: span 1; }
  .topbar { padding: 0 16px; }
  .search-input { width: 140px; }
}
