/* Show & Disclose by ShopProp — brand palette + typography.
   Mirrors ShopProp / Showing Hive: slate primary, white, soft gray,
   muted gold accents, serif headings + Poppins body. */
:root {
  --primary: #4A5568;
  --primary-hover: #3D4852;
  --heading: #111111;
  --body: #333333;
  --secondary: #6B6B6B;
  --muted: #8A8A8A;
  --divider: #EAEAEA;
  --bg: #FFFFFF;
  --bg-alt-1: #F8F8F8;
  --bg-alt-2: #F2F3F5;
  --bg-card: #FFFFFF;
  --accent: #1A5420;
  --accent-text: #2E7D32;
  --danger: #C41E3A;
  --warn: #D68F00;
  --gold: #B7935A;
  --gold-soft: #C9A56F;
  --gold-bg: #FBF7EE;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 2px 10px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 8px 28px rgba(17, 17, 17, 0.08);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 14px; color: var(--body); }
a { color: var(--primary); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--primary-hover); }
a.plain { border: 0; }

small, .small { font-size: 12px; color: var(--secondary); }
.label { font-size: 11px; color: var(--secondary); text-transform: uppercase; letter-spacing: 1.2px; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow    { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; border-bottom: 1px solid var(--divider);
  background: var(--white);
}
.nav .brand {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600;
  color: var(--heading); text-decoration: none; border: 0;
  letter-spacing: 0.4px;
}
.nav .brand .by {
  font-family: 'Poppins', sans-serif; font-size: 11px;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  margin-left: 10px; font-weight: 500;
}
.nav-links a {
  margin-left: 28px; color: var(--secondary); border: 0;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--heading); }

/* Hero */
.hero {
  background: var(--bg-alt-1);
  padding: 90px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: 54px; max-width: 800px; margin: 0 auto 18px; }
.hero p.lede {
  font-size: 18px; color: var(--secondary);
  max-width: 620px; margin: 0 auto 32px;
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt-1); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card.elevated { box-shadow: var(--shadow-md); }
.card.elevated:hover { box-shadow: var(--shadow-lg); }
.card h2, .card h3 { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* Stat cards (seller summary + admin) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 600; color: var(--heading);
  line-height: 1;
}
.stat .l {
  font-size: 11px; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 1.4px;
  margin-top: 6px;
}
.stat.accent { border-color: var(--gold-soft); background: var(--gold-bg); }
.stat.accent .n { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.6px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--primary); color: var(--white);
  border: 1px solid var(--primary);
  text-decoration: none; border-bottom: 1px solid var(--primary);
  transition: background 120ms ease, box-shadow 120ms ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--white); box-shadow: var(--shadow-sm); }
.btn.ghost {
  background: var(--white); color: var(--primary);
  border: 1px solid var(--divider);
}
.btn.ghost:hover { background: var(--bg-alt-2); }
.btn.gold {
  background: var(--gold); border-color: var(--gold); color: var(--white);
}
.btn.gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #A8172E; border-color: #A8172E; }
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.block { display: block; width: 100%; text-align: center; }

/* Forms */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  background: var(--white); color: var(--body);
  font-family: inherit; font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Pills / status */
.pill {
  display: inline-block; padding: 3px 10px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  border-radius: 999px; background: var(--bg-alt-2); color: var(--secondary);
}
.pill.requested { background: #FFF8E5; color: #8B6A00; }
.pill.confirmed { background: #E8F5EA; color: var(--accent-text); }
.pill.completed { background: #EEF2F7; color: var(--primary); }
.pill.cancelled, .pill.denied { background: #FBE9EC; color: var(--danger); }
.pill.rescheduled { background: #F1ECFE; color: #5E48A8; }
.pill.no_show { background: #F4F4F4; color: var(--muted); }
.pill.gold { background: var(--gold-bg); color: var(--gold); }

/* Timeline */
.timeline { border-left: 1px solid var(--divider); padding-left: 22px; margin: 0; }
.timeline .ev {
  position: relative; padding: 14px 0; border-bottom: 1px solid var(--divider);
}
.timeline .ev:last-child { border-bottom: 0; }
.timeline .ev::before {
  content: ''; position: absolute; left: -28px; top: 22px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--divider);
}
.timeline .ev.gold::before { background: var(--gold); }
.timeline .ev .when { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.timeline .ev .body { color: var(--body); margin-top: 4px; }

/* Property header */
.property-hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px;
  align-items: stretch;
  padding: 36px 0 18px;
}
@media (max-width: 880px) { .property-hero { grid-template-columns: 1fr; } }
.property-hero .photo {
  background: var(--bg-alt-2); border-radius: var(--radius-lg);
  overflow: hidden; min-height: 260px; box-shadow: var(--shadow-sm);
}
.property-hero .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-hero .meta .address { font-size: 32px; }
.property-hero .meta .sub { color: var(--secondary); margin-bottom: 18px; }
.property-hero .meta .facts { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0 22px; }
.property-hero .meta .facts .f { font-size: 13px; color: var(--secondary); }
.property-hero .meta .facts .f strong { color: var(--heading); font-weight: 500; }

/* Action grid (the buyer-agent actions) */
.action-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  margin: 18px 0 32px;
}
.action-grid .action {
  background: var(--white);
  border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all 120ms ease;
  text-align: left;
}
.action-grid .action:hover {
  border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.action-grid .action h4 { margin: 0 0 6px; }
.action-grid .action p { font-size: 13px; color: var(--secondary); margin: 0; }
.action-grid .action .icon { color: var(--gold); font-size: 18px; margin-bottom: 12px; display: block; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(17,17,17,0.42);
  display: none; align-items: center; justify-content: center; z-index: 50;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-top: 0; }
.modal .close-x {
  float: right; cursor: pointer; border: 0; background: none;
  font-size: 22px; color: var(--muted); line-height: 1;
}
.modal .close-x:hover { color: var(--heading); }

/* Notes */
.note { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; }
.note.ok { background: #E8F5EA; color: var(--accent-text); }
.note.bad { background: #FBE9EC; color: var(--danger); }
.note.info { background: var(--bg-alt-1); color: var(--secondary); }
.note.gold { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-soft); }

/* Tables */
table.list { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
table.list th, table.list td {
  padding: 11px 14px; border-bottom: 1px solid var(--divider);
  text-align: left; vertical-align: top;
}
table.list th {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  color: var(--heading); font-size: 14px; background: var(--bg-alt-1);
}

/* Footer */
.foot {
  padding: 36px 24px; border-top: 1px solid var(--divider);
  text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 1px;
}
.foot a { color: var(--secondary); border: 0; }

/* Utility */
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
