/* HOST PERFORMANCE PAGE STYLES */

.perf-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.perf-header {
  margin-bottom: 8px;
}

.perf-header h1 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.perf-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Dropdown styling */
.custom-select-wrapper {
  position: relative;
}

.custom-select {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(15, 61, 46, 0.15);
  background-color: #fff;
  color: var(--primary-dark);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230f3d2e' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  box-shadow: 0 4px 12px rgba(15, 61, 46, 0.03);
}

.custom-select:hover, .custom-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 4px 16px rgba(15, 61, 46, 0.08);
}

/* Top Summary Cards Grid */
.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .summary-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .summary-cards-grid {
    grid-template-columns: 1fr;
  }
}

.premium-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(15, 61, 46, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(15, 61, 46, 0.06);
  border-color: rgba(18, 94, 64, 0.15);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 94, 64, 0.06);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.premium-card:hover .card-icon-wrap {
  background: var(--primary-green);
  color: #fff;
}

.card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.card-trend {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.trend-neutral {
  color: #8b96a5;
}

/* Two Column Layout: Main Content + Right Sidebar */
.perf-layout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

@media (max-width: 1200px) {
  .perf-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.analytics-section {
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(15, 61, 46, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  margin-bottom: 32px;
}

.analytics-section:last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title-premium {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Chart Canvas Wrapper */
.chart-box {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Top Performing Property Card Styles */
.top-property-showcase {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.top-property-img-wrap {
  width: 240px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.top-property-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.top-property-showcase:hover .top-property-img-wrap img {
  transform: scale(1.06);
}

.top-property-info-wrap {
  flex: 1;
  min-width: 280px;
}

.top-property-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.top-property-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.top-property-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .top-property-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-property-img-wrap {
    width: 100%;
    height: 200px;
  }
}

.top-metric-item {
  background: #f8faf9;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 46, 0.03);
}

.top-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.top-metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.btn-view-property {
  background-color: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-view-property:hover {
  background-color: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(18, 94, 64, 0.2);
}

/* Guest Insights Grid */
.guest-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .guest-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .guest-insights-grid {
    grid-template-columns: 1fr;
  }
}

.insight-metric-card {
  background: #f8faf9;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(15, 61, 46, 0.03);
  transition: all 0.3s ease;
}

.insight-metric-card:hover {
  background: #fff;
  border-color: rgba(18, 94, 64, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.insight-icon {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.insight-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.insight-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Recent Performance Table */
.recent-perf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.recent-perf-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: none;
}

.recent-perf-table td {
  padding: 16px;
  background: #fff;
  vertical-align: middle;
  border-top: 1px solid rgba(15, 61, 46, 0.05);
  border-bottom: 1px solid rgba(15, 61, 46, 0.05);
  transition: background 0.3s;
}

.recent-perf-table td:first-child {
  border-left: 1px solid rgba(15, 61, 46, 0.05);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.recent-perf-table td:last-child {
  border-right: 1px solid rgba(15, 61, 46, 0.05);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.recent-perf-table tr {
  transition: transform 0.25s ease;
}

.recent-perf-table tr:hover td {
  background: #fdfbf7;
}

.recent-perf-table tr:hover {
  transform: translateY(-2px);
}

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

.table-prop-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.table-prop-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 2px 0;
}

.table-prop-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Right Sidebar: Quick Performance Panel */
.quick-perf-sidebar {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 61, 46, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  height: fit-content;
  position: sticky;
  top: 110px;
}

.quick-perf-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}

.quick-perf-item {
  margin-bottom: 20px;
}

.quick-perf-item:last-child {
  margin-bottom: 0;
}

.quick-perf-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.quick-perf-card {
  background: #f8faf9;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 61, 46, 0.02);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.quick-perf-card:hover {
  background: #f0f4f2;
  transform: translateX(4px);
}

.quick-perf-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(18, 94, 64, 0.06);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-perf-info {
  flex: 1;
  min-width: 0;
}

.quick-perf-info h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-perf-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
