/**
 * GSH Developers Real Estate Marketplace
 * Core Stylesheet: Multivendor Dashboard, Comparison Table, Favorites, and Badges
 */

/* DASHBOARD LAYOUT */
.gsh-dashboard-container {
  display: flex;
  gap: 30px;
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0F172A;
}

.gsh-dash-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.06);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.gsh-user-profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 20px;
}

.user-avatar img {
  border-radius: 50%;
  border: 2px solid #C5A880;
}

.user-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #0B192C;
}

.user-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 10px;
}

.gsh-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dash-nav-link:hover {
  background: #F8FAFC;
  color: #0B192C;
}

.dash-nav-link.active {
  background: #0B192C;
  color: #FFFFFF;
  font-weight: 600;
}

.dash-nav-link .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.dash-nav-link .badge {
  margin-left: auto;
  background: #E2E8F0;
  color: #0F172A;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.dash-nav-link.active .badge {
  background: #1E3E62;
  color: #FFFFFF;
}

.dash-nav-link .badge.highlight {
  background: #C5A880;
  color: #FFFFFF;
}

.dash-nav-link.logout-link {
  margin-top: 20px;
  border-top: 1px solid #E2E8F0;
  padding-top: 15px;
  color: #DC2626;
}

.dash-nav-link.logout-link:hover {
  background: #FEF2F2;
}

/* MAIN DASHBOARD CONTENT */
.gsh-dash-main {
  flex: 1;
  min-width: 0;
}

.gsh-tab-content {
  display: none;
}

.gsh-tab-content.active {
  display: block;
}

.dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.dash-top-bar h2,
.dash-top-bar h3 {
  margin: 0 0 6px 0;
  color: #0B192C;
  font-weight: 700;
}

.dash-top-bar .subtitle {
  margin: 0;
  color: #64748B;
  font-size: 14px;
}

/* STATS GRID */
.gsh-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.stat-icon .dashicons { font-size: 24px; width: 24px; height: 24px; }
.bg-navy { background: #0B192C; }
.bg-green { background: #10B981; }
.bg-amber { background: #F59E0B; }
.bg-red { background: #EF4444; }
.bg-gold { background: #C5A880; }

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #0B192C;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

/* WORKFLOW BANNER */
.gsh-workflow-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 22px;
  margin-top: 30px;
}

.gsh-workflow-banner h4 {
  margin: 0 0 15px 0;
  color: #0B192C;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-steps-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.wf-step {
  flex: 1;
  min-width: 180px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
}

.wf-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0B192C;
  color: #fff;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wf-step strong { display: block; font-size: 14px; color: #0B192C; margin-bottom: 4px; }
.wf-step p { margin: 0; font-size: 12px; color: #64748B; line-height: 1.4; }
.wf-arrow { font-size: 20px; color: #CBD5E1; font-weight: bold; }

/* DASHBOARD TABLES */
.gsh-table-responsive {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.gsh-dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.gsh-dash-table th {
  background: #F8FAFC;
  padding: 14px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #E2E8F0;
}

.gsh-dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.table-prop-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.table-thumb-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
}

.prop-code-badge {
  display: inline-block;
  padding: 2px 6px;
  background: #0B192C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.prop-table-price {
  font-weight: 700;
  color: #0B192C;
  margin-top: 3px;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-approved { background: #DEF7EC; color: #03543F; }
.status-pending_review { background: #FEF3C7; color: #92400E; }
.status-rejected { background: #FDE8E8; color: #9B1C1C; }
.status-draft { background: #F1F5F9; color: #475569; }

.rejection-note {
  margin-top: 4px;
  font-size: 11px;
  color: #9B1C1C;
  background: #FFF5F5;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #FED7D7;
}

.action-btn-view {
  display: inline-block;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #0B192C;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.action-btn-view:hover {
  background: #0B192C;
  color: #fff;
}

/* WIZARD STEP INDICATOR */
.wizard-steps-indicator {
  display: flex;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
}

.wz-step-item {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  border-right: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wz-step-item:last-child { border-right: none; }

.wz-step-item span {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}

.wz-step-item.active {
  background: #FFFFFF;
  color: #0B192C;
  border-bottom: 2px solid #C5A880;
}

.wz-step-item.active span {
  background: #0B192C;
}

.wz-step-item.completed span {
  background: #10B981;
}

/* WIZARD PANES & FORMS */
.gsh-wizard-form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wz-pane { display: none; }
.wz-pane.active { display: block; }
.wz-pane-title { margin: 0 0 20px 0; color: #0B192C; font-size: 18px; border-bottom: 1px solid #E2E8F0; padding-bottom: 12px; }

.gsh-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gsh-input, .gsh-select, .gsh-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 14px;
  color: #0F172A;
}

.gsh-input:focus, .gsh-select:focus, .gsh-textarea:focus {
  outline: none;
  border-color: #0B192C;
  box-shadow: 0 0 0 3px rgba(11, 25, 44, 0.1);
}

.wz-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.gsh-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gsh-btn-primary { background: #0B192C; color: #FFFFFF; }
.gsh-btn-primary:hover { background: #1E3E62; }
.gsh-btn-secondary { background: #F1F5F9; color: #334155; }
.gsh-btn-secondary:hover { background: #E2E8F0; }
.gsh-btn-outline { background: transparent; border: 1px solid #CBD5E1; color: #475569; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

/* AMENITIES CHECKBOXES */
.gsh-amenities-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.gsh-amenities-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
}

/* WIZARD REVIEW SUMMARY */
.wz-review-summary {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 14px;
}

/* COMPARISON TABLE */
.gsh-compare-table-wrapper {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-top: 25px;
}

.gsh-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.gsh-compare-table th, .gsh-compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
}

.gsh-compare-table th:last-child, .gsh-compare-table td:last-child {
  border-right: none;
}

.gsh-compare-table .spec-label {
  background: #F8FAFC;
  font-weight: 700;
  color: #0B192C;
  width: 200px;
}

.compare-card-head {
  position: relative;
  text-align: center;
}

.compare-card-head img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.compare-code {
  display: inline-block;
  background: #0B192C;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.compare-card-head h4 {
  margin: 6px 0;
  font-size: 14px;
}

.compare-card-head h4 a {
  color: #0B192C;
  text-decoration: none;
}

.compare-price {
  font-weight: 800;
  color: #C5A880;
  font-size: 16px;
}

.remove-compare-col {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
}

/* EMPTY STATES */
.empty-state-box, .gsh-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.empty-state-box p, .gsh-empty-state p {
  color: #64748B;
  font-size: 15px;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .gsh-dashboard-container {
    flex-direction: column;
  }
  .gsh-dash-sidebar {
    width: 100%;
    position: static;
  }
  .wizard-steps-indicator {
    display: none;
  }
}
