/* ==========================================================================
   5-Pillar Hotel Advertising Intelligence System
   ========================================================================== */

.hp-command-center {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 48px;
  font-family: inherit;
  color: #1e293b;
}

/* Hotel Executive Header */
.hp-hotel-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hp-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.hp-hotel-title-group h1 {
  font-size: 26px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-hotel-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
}

.hp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 550;
  color: #334155;
}

.hp-badge-pill.status-connected {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.hp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.hp-action-btn.btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.hp-action-btn.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.hp-action-btn.btn-primary {
  background: #0f172a;
  color: #ffffff;
}

.hp-action-btn.btn-primary:hover {
  background: #1e293b;
}

/* Executive Financial & OTA Benchmark Strip */
.hp-financial-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.hp-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.hp-kpi-card.highlight-profit {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}

.hp-kpi-card.highlight-cos {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.hp-kpi-label {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hp-kpi-card.highlight-profit .hp-kpi-value {
  color: #047857;
}

.hp-kpi-card.highlight-cos .hp-kpi-value {
  color: #0369a1;
}

.hp-kpi-subtext {
  font-size: 12px;
  color: #64748b;
}

/* Overall 5-Pillar Scorecard Strip */
.hp-scorecard-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.hp-scorecard-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.hp-scorecard-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.hp-scorecard-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-status-count {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-status-count.count-aligned {
  background: #dcfce7;
  color: #166534;
}

.hp-status-count.count-mismatch {
  background: #fef3c7;
  color: #92400e;
}

.hp-status-count.count-missing {
  background: #fee2e2;
  color: #991b1b;
}

/* Flagged Mismatches Action Panel */
.hp-mismatches-panel {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.06);
}

.hp-mismatches-panel.no-critical {
  border-color: #fef08a;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.06);
}

.hp-mismatches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hp-mismatches-header h2 {
  font-size: 18px;
  font-weight: 750;
  color: #991b1b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-mismatches-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-mismatch-card {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-mismatch-card.warning-mismatch {
  background: #fffbeb;
  border-color: #fde68a;
}

.hp-mismatch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-mismatch-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hp-mismatch-badge {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hp-mismatch-badge.badge-critical {
  background: #ef4444;
  color: #ffffff;
}

.hp-mismatch-badge.badge-warning {
  background: #f59e0b;
  color: #ffffff;
}

.hp-mismatch-badge.badge-opportunity {
  background: #3b82f6;
  color: #ffffff;
}

.hp-mismatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .hp-mismatch-grid {
    grid-template-columns: 1fr;
  }
}

.hp-mismatch-block strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 4px;
}

.hp-mismatch-block p {
  font-size: 13px;
  color: #334155;
  margin: 0;
  line-height: 1.4;
}

.hp-mismatch-fix {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hp-fix-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hp-fix-text {
  font-size: 13px;
  color: #14532d;
  font-weight: 550;
  margin: 0;
  line-height: 1.4;
}

/* 5 Pillars Main Grid */
.hp-pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-pillar-card:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.hp-pillar-card.pillar-running-aligned {
  border-left: 6px solid #16a34a;
}

.hp-pillar-card.pillar-running-mismatch {
  border-left: 6px solid #f59e0b;
}

.hp-pillar-card.pillar-not-running {
  border-left: 6px solid #ef4444;
}

.hp-pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hp-pillar-title-area {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hp-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.hp-pillar-running-aligned .hp-pillar-icon {
  background: #dcfce7;
}

.hp-pillar-running-mismatch .hp-pillar-icon {
  background: #fef3c7;
}

.hp-pillar-not-running .hp-pillar-icon {
  background: #fee2e2;
}

.hp-pillar-name-group h3 {
  font-size: 19px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 4px;
}

.hp-pillar-objective {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  max-width: 620px;
}

.hp-pillar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hp-pillar-status-badge.status-running-aligned {
  background: #dcfce7;
  color: #15803d;
}

.hp-pillar-status-badge.status-running-mismatch {
  background: #fef3c7;
  color: #b45309;
}

.hp-pillar-status-badge.status-not-running {
  background: #fee2e2;
  color: #b91c1c;
}

/* Pillar Financial & Efficiency Strip */
.hp-pillar-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.hp-subkpi dt {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 2px;
}

.hp-subkpi dd {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.hp-subkpi.cos-green dd {
  color: #15803d;
}

.hp-subkpi.cos-amber dd {
  color: #b45309;
}

.hp-subkpi.ota-saved dd {
  color: #047857;
}

/* 5 Signals Verification Container */
.hp-signals-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-signals-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.hp-signal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-signal-box.signal-aligned {
  border-left: 3px solid #22c55e;
}

.hp-signal-box.signal-mismatch {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.hp-signal-box.signal-missing {
  border-left: 3px solid #ef4444;
  background: #fef2f2;
}

.hp-signal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.hp-signal-state-badge {
  font-size: 10px;
  font-weight: 750;
  padding: 2px 6px;
  border-radius: 4px;
}

.signal-aligned .hp-signal-state-badge {
  background: #dcfce7;
  color: #15803d;
}

.signal-mismatch .hp-signal-state-badge {
  background: #fef3c7;
  color: #b45309;
}

.signal-missing .hp-signal-state-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.hp-signal-detail {
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
  margin: 0;
}

/* Pillar Expandable Details / Fixes */
.hp-pillar-findings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.hp-pillar-details-toggle {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hp-pillar-details-toggle:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hp-financial-strip {
    grid-template-columns: 1fr;
  }
  .hp-hotel-header {
    padding: 16px 12px;
  }
  .hp-command-center {
    margin: 0 0 32px 0;
  }
  .hp-header-top {
    flex-direction: column;
  }
  .hp-pillar-top {
    flex-direction: column;
  }
  .hp-signals-grid {
    grid-template-columns: 1fr;
  }
  .hp-pillar-card {
    padding: 16px 12px;
  }
}

