/* ============================================================
   HAVEN — Host Dashboard CSS
   ============================================================ */

.dash-header { padding: 100px 0 24px; }
.dash-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.dash-sub { font-size: 15px; color: var(--text-2); }
.dash-header-actions { display: flex; align-items: center; gap: 12px; }
.erp-badge {
  padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-3);
}
.erp-badge.connected { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--emerald); }

/* STATS */
.dash-stats { padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-card.accent { border-color: rgba(79,142,247,0.3); background: rgba(79,142,247,0.04); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-val { font-size: 32px; font-weight: 900; background: var(--accent-grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* TABS */
.dash-tabs-section { border-bottom: 1px solid var(--border); position: sticky; top: 60px; background: var(--bg-dark); z-index: 40; }
.dash-tabs { display: flex; gap: 4px; }
.dash-tab {
  padding: 14px 24px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-2); font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.dash-tab:hover { color: var(--text-1); }
.dash-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* CONTENT */
.dash-content { padding: 32px 0; }

/* TOOLBAR */
.dash-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.search-bar { flex: 1; min-width: 200px; }
.filter-select { max-width: 180px; padding: 10px 14px !important; font-size: 13px !important; }

/* PROPERTY LIST */
.prop-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.prop-card {
  display: grid; grid-template-columns: 80px 1fr auto auto;
  align-items: center; gap: 20px; padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition);
}
.prop-card:hover { border-color: var(--border-hover); }
.prop-thumb {
  width: 80px; height: 60px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.prop-info { min-width: 0; }
.prop-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.prop-meta-item { display: flex; align-items: center; gap: 4px; }
.prop-status { padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.prop-status.active { background: rgba(16,185,129,0.12); color: var(--emerald); }
.prop-status.pending { background: rgba(245,158,11,0.12); color: var(--gold); }
.prop-status.inactive { background: var(--surface); color: var(--text-3); }
.prop-actions { display: flex; gap: 6px; }
.prop-action-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-size: 14px; transition: var(--transition);
}
.prop-action-btn:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.prop-action-btn.delete:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }
.prop-price-col { text-align: right; }
.prop-price { font-size: 18px; font-weight: 800; color: var(--accent); }
.prop-price-sub { font-size: 11px; color: var(--text-3); }

/* BOOKINGS TABLE */
.bookings-table-wrap { overflow-x: auto; }
.bookings-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.bookings-table th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3);
  border-bottom: 1px solid var(--border); background: var(--bg-card);
}
.bookings-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.bookings-table tr { transition: background 0.2s; cursor: pointer; }
.bookings-table tr:hover { background: var(--surface); }
.book-status { padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.book-status.confirmed { background: rgba(16,185,129,0.12); color: var(--emerald); }
.book-status.pending { background: rgba(245,158,11,0.12); color: var(--gold); }
.book-status.completed { background: rgba(79,142,247,0.12); color: var(--accent); }
.book-status.cancelled { background: rgba(239,68,68,0.1); color: #ef4444; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state.hidden { display: none; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }

/* FORM LAYOUT */
.form-row { display: flex; gap: 16px; }
.flex1 { flex: 1; }

/* CONFIRM DIALOG */
.confirm-dialog { background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: var(--radius-lg); padding: 32px; max-width: 400px; width: 100%; text-align: center; }
.confirm-dialog h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.confirm-dialog p { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-overlay { z-index: 3000; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .prop-card { grid-template-columns: 60px 1fr; }
  .prop-price-col, .prop-status { display: none; }
  .form-row { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-header h1 { font-size: 24px; }
}
