/* ─── Listing Detail Hero ─────────────────────────────────────────── */
.listing-detail-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--secondary);
}
.listing-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

/* ─── Listing Detail Layout ───────────────────────────────────────── */
.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* ─── Listing Breadcrumb ──────────────────────────────────────────── */
.listing-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 1rem 0;
  flex-wrap: wrap;
}
.listing-breadcrumb a:hover { color: var(--teal); text-decoration: underline; }

/* ─── Listing Highlights Bar ──────────────────────────────────────── */
.listing-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}
.highlight-item .icon {
  display: flex;
  align-items: center;
  color: var(--teal);
  flex-shrink: 0;
}

/* ─── Section divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

/* ─── Review card ─────────────────────────────────────────────────── */
.review-card {
  padding: 1.25rem;
  background: var(--secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: 0.875rem; }
.reviewer-date { font-size: 0.75rem; color: var(--text-secondary); margin-top: 1px; }

/* ─── Includes / Excludes lists ───────────────────────────────────── */
.includes-list,
.excludes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.includes-list li,
.excludes-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.includes-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.excludes-list li::before { content: '✗'; color: var(--danger); font-weight: 700; flex-shrink: 0; }

/* ─── Booking Sidebar (sticky card) ──────────────────────────────── */
.booking-summary {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}
.booking-summary-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.booking-summary-body {
  padding: 1.5rem;
}

/* ─── Booking Page ────────────────────────────────────────────────── */
.booking-page { padding: 2.5rem 0 4rem; }
.booking-form-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

/* ─── Booking Layout ─────────────────────────────────────────────── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* ─── Dashboard Tabs ─────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  background: var(--secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--teal); background: white; }
.tab-btn.active {
  background: white;
  color: var(--teal);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ─── Dashboard stats grid ───────────────────────────────────────── */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ─── Dashboard booking card ─────────────────────────────────────── */
.booking-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.18s;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.booking-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-color); }
.booking-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
@media (max-width: 640px) {
  .booking-card {
    grid-template-columns: 64px 1fr;
  }
  .booking-card-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
  }
}

/* ─── Account page grids ─────────────────────────────────────────── */
.account-outer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.account-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .account-outer-grid { grid-template-columns: 1fr; }
  .account-inner-grid { grid-template-columns: 1fr; }
}

/* ─── Booking detail grid ────────────────────────────────────────── */
.booking-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .booking-detail-grid { grid-template-columns: 1fr; }
}

/* ─── Vendor form grids ──────────────────────────────────────────── */
.vendor-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vendor-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) {
  .vendor-form-grid-2 { grid-template-columns: 1fr; }
  .vendor-form-grid-3 { grid-template-columns: 1fr; }
}

/* ─── Vendor dashboard grids ─────────────────────────────────────── */
.vendor-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.vendor-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) {
  .vendor-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .vendor-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .vendor-content-grid { grid-template-columns: 1fr; }
}

/* ─── Vendor bookings table → card stack on mobile ───────────────── */
@media (max-width: 700px) {
  .vendor-bookings-table thead { display: none; }
  .vendor-bookings-table tr {
    display: flex; flex-direction: column;
    background: white; border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem; padding: 1rem;
    box-shadow: var(--shadow-card);
  }
  .vendor-bookings-table td {
    border: none; padding: 0.25rem 0; font-size: 0.875rem;
  }
  .vendor-bookings-table td::before {
    content: attr(data-label);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-secondary); display: block; margin-bottom: 2px;
  }
}

/* ─── Admin stat grid ────────────────────────────────────────────── */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ─── Chip (tag / category filter) ───────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover, .chip.active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* ─── Responsive: listing detail ─────────────────────────────────── */
@media (max-width: 1100px) {
  .listing-detail-layout {
    grid-template-columns: 1fr;
  }
  .booking-summary {
    position: static;
  }
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .listing-detail-hero { height: 300px; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-form-card { padding: 1.25rem; }
  .listing-detail-layout { gap: 1.5rem; padding: 1.5rem 0 3rem; }
  .booking-layout { padding: 1.5rem 0 3rem; gap: 1.5rem; }
}

@media (max-width: 500px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
  .listing-detail-hero { height: 240px; }
  .listing-highlights { padding: 1rem; gap: 0.625rem; }
  .highlight-item { font-size: 0.8rem; }
  .booking-page { padding: 1.5rem 0 3rem; }
}

/* ─── Listing: includes grid ─────────────────────────────────────── */
.includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) {
  .includes-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ─── Listing: image gallery strip ──────────────────────────────── */
.listing-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.listing-gallery::-webkit-scrollbar { display: none; }
.listing-gallery-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.72;
  border: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.listing-gallery-thumb:hover,
.listing-gallery-thumb.active { opacity: 1; border-color: var(--teal); }

/* ─── Listing: mobile sticky book bar ───────────────────────────── */
.mobile-book-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  padding: 0.875rem 1.25rem;
  z-index: 90;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
@media (max-width: 1100px) {
  .mobile-book-bar { display: flex; }
  /* Add bottom padding so content isn't hidden behind the bar */
  .listing-detail-layout { padding-bottom: 6rem; }
  /* Hide the sidebar booking card since bar replaces it */
  #booking-sidebar { display: none; }
}

/* ─── Listing: star picker mobile ───────────────────────────────── */
.star-picker svg { transition: fill 0.1s; }
@media (max-width: 640px) {
  .star-picker svg { width: 36px !important; height: 36px !important; }
}
