/* ============================================================
   Livasta Host Dashboard — Overview Page Styles
   ============================================================ */

/* ---------- Activity Feed ---------- */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--sage);
  position: relative;
}

.activity-item:last-child { border-bottom: none; }

/* small dot marker + connecting timeline line */
.activity-item .activity-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--white);
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: -1px;
  width: 2px;
  background: var(--sage);
}

.activity-item:last-child::before { display: none; }

.activity-dot.green { background: #22A366; }
.activity-dot.gold  { background: #C9962F; }
.activity-dot.coral { background: var(--coral); }
.activity-dot.blue  { background: #3B6EC2; }
.activity-dot.pine  { background: var(--pine); }

.activity-item .activity-text { min-width: 0; }
.activity-item .activity-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.activity-item .activity-title span { color: var(--pine); }
.activity-item .activity-desc { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.activity-item .activity-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (max-width: 520px) {
  .activity-item { grid-template-columns: auto 1fr; }
  .activity-item .activity-time { grid-column: 2; margin-top: 2px; }
}

/* ---------- Quick Action Cards ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid rgba(220, 232, 223, 0.7);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.quick-action:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quick-action .qa-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action .qa-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

/* ---------- Booking Status Cards (Overview) ---------- */
.booking-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .booking-overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .booking-overview-grid { grid-template-columns: repeat(3, 1fr); }
}

.booking-status-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(220, 232, 223, 0.7);
  padding: 20px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.booking-status-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.booking-status-card.new-booking {
  border-left: 4px solid var(--coral);
  animation: highlight-glow 2s ease-out;
}

.booking-status-card .bsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.booking-status-card .bsc-guest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-status-card .bsc-guest img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-status-card .bsc-guest-name {
  font-size: 14px;
  font-weight: 600;
}

.booking-status-card .bsc-guest-prop {
  font-size: 12px;
  color: var(--muted);
}

.booking-status-card .bsc-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.booking-status-card .bsc-detail-item {
  display: flex;
  flex-direction: column;
}

.booking-status-card .bsc-detail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-status-card .bsc-detail-value {
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.booking-status-card .bsc-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 223, 0.5);
}

.booking-status-card .bsc-actions button {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.booking-status-card .bsc-accept {
  background: var(--pine);
  color: var(--cream);
}

.booking-status-card .bsc-accept:hover {
  background: var(--pine-light);
}

.booking-status-card .bsc-decline {
  border: 1px solid var(--sage);
  color: var(--muted);
}

.booking-status-card .bsc-decline:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- Today's Snapshot ---------- */
.snapshot-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.snapshot-strip::-webkit-scrollbar { display: none; }

.snapshot-item {
  flex-shrink: 0;
  min-width: 180px;
  padding: 16px;
  background: var(--white);
  border: 1px solid rgba(220, 232, 223, 0.7);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.snapshot-item .snap-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.snapshot-item .snap-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.snapshot-item .snap-label {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Upcoming Check-ins ---------- */
.checkin-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(220, 232, 223, 0.5);
}

.checkin-card:last-child {
  border-bottom: none;
}

.checkin-date {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pine);
  flex-shrink: 0;
}

.checkin-date .month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.checkin-date .day {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

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

.checkin-info .guest-name {
  font-size: 14px;
  font-weight: 600;
}

.checkin-info .property-name {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Charts section ---------- */
.chart-container {
  position: relative;
  height: 256px;
}

/* ---------- Booking Detail Modal ---------- */
.booking-detail-modal {
  max-width: 560px;
}

.booking-detail-modal .guest-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.booking-detail-modal .guest-profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-detail-modal .guest-info .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pine);
}

.booking-detail-modal .guest-info .email {
  font-size: 13px;
  color: var(--muted);
}

.booking-detail-modal .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-detail-modal .detail-item {
  display: flex;
  flex-direction: column;
}

.booking-detail-modal .detail-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.booking-detail-modal .detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- KPI icon accents + modern polish (overview) ---------- */
.stat-card .stat-icon.accent-teal  { background: rgba(0,122,122,.12); color: #007A7A; }
.stat-card .stat-icon.accent-blue  { background: #E8EFF9; color: #3B6EC2; }
.stat-card .stat-icon.accent-green { background: #E3F1E6; color: #2F7D4F; }
.stat-card .stat-icon.accent-gold  { background: #FBF0DD; color: #B5792A; }

.stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.booking-status-card { transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.booking-status-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   Airbnb-style operations overview (reservations)
   ============================================================ */
.section-actions { display: flex; align-items: center; gap: 12px; }
.listings-chip { font-size: 13px; color: var(--muted); background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius-full); padding: 8px 14px; white-space: nowrap; }
.listings-chip strong { color: var(--pine); margin-left: 4px; }

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.res-title { font-family: 'Fraunces', serif; font-size: 1.15rem; color: var(--ink); margin: 0; }

/* reservations card */
.reservations-card { padding: 22px; }
.res-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.res-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.res-tabs::-webkit-scrollbar { display: none; }
.res-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--sage);
  background: var(--white); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s;
}
.res-tab:hover { border-color: var(--pine); color: var(--pine); }
.res-tab.active { background: var(--pine); border-color: var(--pine); color: #fff; }
.res-tab .tab-count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--sage); color: var(--pine); font-size: 11px; font-weight: 800; }
.res-tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

.reservations-list { display: flex; flex-direction: column; }
.res-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--sage); }
.res-item:last-child { border-bottom: none; }
.res-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.res-main { flex: 1; min-width: 0; }
.res-line1 { display: flex; align-items: center; gap: 10px; }
.res-guest { font-weight: 700; color: var(--ink); font-size: 15px; }
.res-prop { color: var(--muted); font-size: 13px; margin-top: 1px; }
.res-dates { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.res-amount { font-weight: 800; color: var(--pine); font-size: 15px; white-space: nowrap; }
.badge-muted { background: var(--sage); color: var(--muted); }

/* two-column bottom (Today's schedule + Recent activity) */
.overview-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.overview-two-col > .card {
  padding: 20px;
  min-width: 0; /* prevent grid blowout */
}
@media (max-width: 900px) {
  .overview-two-col { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 480px) {
  .overview-two-col > .card { padding: 14px; }
}

/* today's schedule */
.today-schedule { display: flex; flex-direction: column; gap: 10px; }
.sched-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--sage); border-radius: var(--radius-md);
  background: var(--canvas); transition: border-color .15s ease, box-shadow .15s ease;
}
.sched-item:hover { border-color: var(--pine); box-shadow: var(--shadow-sm); }
.sched-pill {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 5px 10px; border-radius: var(--radius-full); flex-shrink: 0;
}
.sched-in { background: rgba(0,122,122,.12); color: var(--pine); }
.sched-out { background: #FBF0DD; color: #B5792A; }
.sched-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sched-text strong { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-text span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  .sched-item { gap: 8px; padding: 10px; flex-wrap: wrap; }
  .sched-pill { font-size: 10px; padding: 4px 8px; }
  .sched-text strong { font-size: 13px; }
}

/* activity feed mobile fixes */
@media (max-width: 480px) {
  .activity-item { gap: 8px; padding: 10px 0; }
  .activity-item .activity-title { font-size: 13px; }
  .activity-item .activity-desc { font-size: 12px; }
  .activity-item .activity-time { font-size: 11px; }
}

@media (max-width: 640px) {
  .section-actions { width: 100%; justify-content: space-between; }
  .res-amount { font-size: 14px; }
}

/* ---------- Reservations card responsive ---------- */
@media (max-width: 640px) {
  .reservations-card { padding: 14px; }
  .res-tabs { gap: 6px; }
  .res-tab { padding: 6px 10px; font-size: 12px; }
  .res-item { gap: 10px; padding: 10px 2px; flex-wrap: wrap; }
  .res-avatar { width: 38px; height: 38px; }
  .res-guest { font-size: 14px; }
  .res-line1 { flex-wrap: wrap; gap: 6px; }
}

/* ---------- Earnings overview + Booking status widgets ---------- */
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .perf-grid { grid-template-columns: 1fr; gap: 16px; } }
.perf-card { padding: 20px; }
.perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.perf-title { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.perf-value { font-size: 28px; font-weight: 800; color: var(--ink); font-family: 'Fraunces', serif; }
.perf-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sparkline { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 16px; }
.spark-bar { flex: 1; min-height: 6px; border-radius: 4px 4px 0 0; background: linear-gradient(var(--pine), var(--pine-light)); opacity: .85; transition: height .4s ease; }
.spark-bar:last-child { background: linear-gradient(var(--violet), #8b7cf0); opacity: 1; }

.status-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 14px; background: var(--sage); }
.status-bar span { display: block; height: 100%; transition: width .5s ease; }
.status-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 7px; }
.status-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-legend b { color: var(--ink); }

@media (max-width: 480px) {
  .perf-card { padding: 14px; }
  .perf-value { font-size: 22px; }
  .sparkline { height: 44px; gap: 4px; }
  .status-legend { gap: 10px; font-size: 12px; }
}

/* ---------- Quick action items (overview) ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .quick-actions { grid-template-columns: repeat(4, 1fr); } }
.qa-item {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius-lg);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.qa-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.qa-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qa-label { font-weight: 700; font-size: 14px; flex: 1; }
.qa-arrow { color: var(--muted); font-weight: 800; transition: transform .15s ease; }
.qa-item:hover .qa-arrow { transform: translateX(3px); }
.qa-teal   .qa-icon { background: rgba(0,122,122,.12);  color: var(--pine); }
.qa-violet .qa-icon { background: var(--violet-soft);    color: var(--violet); }
.qa-blue   .qa-icon { background: #E8EFF9;               color: #3B6EC2; }
.qa-gold   .qa-icon { background: #FBF0DD;               color: #B5792A; }

@media (max-width: 480px) {
  .qa-item { padding: 12px; gap: 10px; }
  .qa-icon { width: 36px; height: 36px; }
  .qa-label { font-size: 13px; }
}

/* ---------- Snapshot strip responsive ---------- */
@media (max-width: 640px) {
  .snapshot-strip { gap: 10px; }
  .snapshot-item { min-width: 150px; padding: 12px; gap: 10px; }
  .snapshot-item .snap-icon { width: 32px; height: 32px; }
  .snapshot-item .snap-value { font-size: 16px; }
  .snapshot-item .snap-label { font-size: 11px; }
}

