/* CoachSynQ – Fishbooker-inspired: blue/white/grey with orange CTAs */
:root {
  --brand-blue: #1a5fb4;
  --brand-blue-dark: #0d4a8f;
  --cta-blue: #1a5fb4;
  --cta-blue-hover: #0d4a8f;
  --bg-grey: #f5f6f8;
  --card-border: #e8eaed;
  --text-muted: #5f6368;
  --success-green: #1e8e3e;
  /* Shared with navbar + portal main so header and page content line up */
  --layout-gutter-x: 1rem;
  --layout-content-max: 1320px;
}

@media (min-width: 576px) {
  :root {
    --layout-gutter-x: 1.5rem;
  }
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: #fff;
  color: #202124;
}

/* Site layout (non-portal): consistent background and main spacing */
body.site-body .site-main {
  background-color: var(--bg-grey);
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  min-height: 50vh;
}

/* Standalone content page (e.g. Program detail): white card on grey */
.page-content-card {
  max-width: 1320px;
  margin: 0.5rem 1rem 0;
  padding: 1.5rem 1rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid var(--card-border);
}
@media (min-width: 576px) {
  .page-content-card {
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem 2.5rem;
  }
}
.page-content-card .breadcrumb { margin-bottom: 1rem; }
.page-content-card h1 { font-size: 1.75rem; font-weight: 700; color: #202124; }
@media (min-width: 768px) {
  .page-content-card h1 { font-size: 2rem; }
}

/* ========== Program detail (pd) — modern booking layout ========== */
.program-star { color: #dadce0; }
.program-star--full { color: #f9ab00; }
.program-star--half { color: #f9ab00; opacity: 0.85; }

.pd.page-content-card {
  padding: 1.5rem 1rem 2rem;
}
@media (min-width: 576px) {
  .pd.page-content-card { padding: 2rem 1.5rem 2.5rem; }
}

.pd__breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.pd__breadcrumb .breadcrumb-item a { color: var(--brand-blue); text-decoration: none; }
.pd__breadcrumb .breadcrumb-item.active { color: var(--text-muted); }

/* Hero / summary */
.pd-hero {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}
.pd-hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .pd-hero__title { font-size: 2rem; }
}
.pd-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pd-hero__badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-grey);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.pd-hero__badge--kind {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.pd-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.pd-hero__fact--price { color: #202124; font-weight: 600; }
.pd-hero__icon { margin-right: 0.25rem; }

/* Schedule card */
.pd-schedule {
  margin-bottom: 2rem;
}
.pd-schedule__card {
  background: linear-gradient(135deg, rgba(26, 95, 180, 0.06) 0%, rgba(26, 95, 180, 0.02) 100%);
  border: 1px solid rgba(26, 95, 180, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.06);
}
.pd-schedule__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pd-schedule__icon { font-size: 1.125rem; }
.pd-schedule__body { }
.pd-schedule__days {
  font-size: 1.25rem;
  font-weight: 700;
  color: #202124;
  margin-bottom: 0.35rem;
}
.pd-schedule__time {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}
.pd-schedule__clock { margin-right: 0.25rem; }
.pd-schedule__time--muted { color: var(--text-muted); font-weight: 500; }
.pd-schedule__range {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Two-column layout */
.pd-layout {
  display: block;
}
@media (min-width: 992px) {
  .pd-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
  }
}
.pd-main { min-width: 0; }
@media (min-width: 992px) {
  .pd-sidebar { position: sticky; top: 1rem; min-width: 0; }
}

/* Sections */
.pd-section {
  margin-bottom: 2rem;
}
.pd-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

/* About */
.pd-about__body { }
.pd-about__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #202124;
  margin: 0;
}

/* Details list */
.pd-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-details__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
}
.pd-details__item:last-child { border-bottom: none; }
.pd-details__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pd-details__value {
  font-size: 0.9375rem;
  color: #202124;
}

/* Gallery */
.pd-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .pd-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 768px) {
  .pd-gallery__grid { grid-template-columns: repeat(6, 1fr); }
}
.pd-gallery__item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-grey);
  border: 1px solid var(--card-border);
}
.pd-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reviews */
.pd-reviews__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pd-reviews__summary .pd-reviews__stars { display: inline-flex; }
.pd-reviews__avg { font-weight: 700; font-size: 1.25rem; color: #202124; }
.pd-reviews__meta { font-size: 0.9375rem; color: var(--text-muted); }
.pd-reviews__list { margin: 0; }
.pd-reviews__item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
}
.pd-reviews__item:last-child { border-bottom: none; }
.pd-reviews__item-stars { display: inline-flex; margin-right: 0.35rem; }
.pd-reviews__item-comment { font-size: 0.9375rem; line-height: 1.55; margin: 0 0 0.35rem; color: #202124; }
.pd-reviews__item-date { font-size: 0.8125rem; color: var(--text-muted); }
.pd-reviews__empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  background: var(--bg-grey);
  border-radius: 10px;
  border: 1px dashed var(--card-border);
}

/* Coach card (sidebar) */
.pd-coach { margin-bottom: 1.5rem; }
.pd-coach__card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pd-coach__photo {
  width: 100%;
  aspect-ratio: 1;
  max-height: 200px;
  background: var(--bg-grey);
}
.pd-coach__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-coach__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}
.pd-coach__info { padding: 1.25rem; }
.pd-coach__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.pd-coach__name a { color: #202124; text-decoration: none; }
.pd-coach__name a:hover { color: var(--brand-blue); }
.pd-coach__business { font-size: 0.9375rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.pd-coach__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.pd-coach__rating-text { font-size: 0.9375rem; font-weight: 600; color: #202124; }
.pd-coach__headline { font-size: 0.9375rem; font-weight: 600; color: #202124; margin: 0 0 0.5rem; }
.pd-coach__bio { font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); margin: 0 0 1rem; }
.pd-coach__btn { width: 100%; }

/* CTA card */
.pd-cta__card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pd-cta__card--login {
  border-color: rgba(26, 95, 180, 0.25);
  background: linear-gradient(180deg, rgba(26, 95, 180, 0.04) 0%, #fff 100%);
}
.pd-cta__card--muted {
  background: var(--bg-grey);
  border-color: var(--card-border);
}
.pd-cta__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 0.5rem;
}
.pd-cta__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.pd-cta__form .form-label { font-size: 0.875rem; font-weight: 600; color: #202124; }
.pd-cta__submit {
  background: var(--cta-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
}
.pd-cta__submit:hover {
  background: var(--cta-blue-hover);
  color: #fff;
}

.pd-back { margin-top: 2rem; margin-bottom: 0; }

/* ========== Coach profile (cp) — same design language as program detail ========== */
.cp.page-content-card {
  padding: 1.5rem 1rem 2rem;
}
@media (min-width: 576px) {
  .cp.page-content-card { padding: 2rem 1.5rem 2.5rem; }
}

.cp-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}
@media (min-width: 768px) {
  .cp-hero {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }
}

.cp-hero__photo {
  flex-shrink: 0;
}
.cp-hero__img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}
.cp-hero__placeholder {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  background: var(--bg-grey);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.5;
}

.cp-hero__name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 0.35rem;
}
@media (min-width: 768px) {
  .cp-hero__name { font-size: 2rem; }
}
.cp-hero__business {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.cp-hero__headline {
  font-size: 1rem;
  font-weight: 600;
  color: #202124;
  margin: 0 0 0.75rem;
}
.cp-hero__badges { margin-bottom: 0.5rem; }
.cp-hero__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.5rem;
}
.cp-hero__stars { display: inline-flex; }
.cp-hero__rating-text { font-weight: 600; font-size: 1rem; color: #202124; }
.cp-hero__fact {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.cp-hero__fact span:first-child { margin-right: 0.25rem; }

/* ========== Portal pages (coach/parent dashboard) — same design language ========== */
.portal-page { }
.portal-page__breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.portal-page__breadcrumb .breadcrumb-item a { color: var(--brand-blue); text-decoration: none; }
.portal-page__breadcrumb .breadcrumb-item.active { color: var(--text-muted); }
.portal-page__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .portal-page__title { font-size: 2rem; }
}
.portal-page__lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.portal-page__section {
  margin-bottom: 2rem;
}
.portal-page__section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}
.portal-page__card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.portal-page__card-header {
  padding: 1rem 1.25rem;
  background: var(--bg-grey);
  border-bottom: 1px solid var(--card-border);
  font-weight: 700;
  font-size: 1rem;
  color: #202124;
}
.portal-page__card-body {
  padding: 1.25rem;
}
.portal-page__card-body.p-0 { padding: 0; }
.portal-page__card .table {
  margin-bottom: 0;
}
.portal-page__card .table th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
}
.portal-page__card .table td {
  padding: 0.75rem 1.25rem;
  vertical-align: middle;
}
.portal-page__card .table tbody tr {
  border-bottom: 1px solid var(--card-border);
}
.portal-page__card .table tbody tr:last-child {
  border-bottom: none;
}
.portal-page__stat-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .portal-page__stat-cards { grid-template-columns: repeat(3, 1fr); }
}
.portal-page__stat-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.portal-page__stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.portal-page__stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #202124;
}
.portal-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.portal-page__btn-primary {
  background: var(--cta-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}
.portal-page__btn-primary:hover {
  background: var(--cta-blue-hover);
  color: #fff;
}
.portal-page__empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  background: var(--bg-grey);
  border-radius: 10px;
  border: 1px dashed var(--card-border);
}
.portal-page__quick-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.portal-page__quick-actions .btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }

/* Focus states */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 95, 180, 0.25);
}

/* ========== Header / Nav ========== */
.navbar-coachsynq {
  background: #fff !important;
  border-bottom: 1px solid #e8eaed;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.navbar-coachsynq.navbar-signed-in {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-coachsynq .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-blue) !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-coachsynq .navbar-brand img {
  height: 34px;
  width: auto;
}

.nav-link--bar {
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.nav-link--bar:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Guest: primary CTA */
.navbar-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-decoration: none;
  background: var(--brand-blue);
  border: 1px solid #124080;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(18, 64, 128, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.navbar-cta-primary:hover {
  color: #fff !important;
  background: var(--brand-blue-dark);
  border-color: #0d3a66;
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.22);
}

.navbar-cta-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.3);
}

/* Signed-in: portal entry — outline, not a loud nav-link blob */
.navbar-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-blue) !important;
  text-decoration: none;
  background: #f8f9fb;
  border: 1px solid #dadce0;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .navbar-portal-btn {
    width: auto;
  }
}

.navbar-portal-btn:hover {
  color: var(--brand-blue-dark) !important;
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.1);
}

.navbar-portal-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.25);
}

.navbar-portal-btn__icon {
  flex-shrink: 0;
  color: var(--brand-blue);
}

/* User menu trigger */
.navbar-user-dropdown .navbar-user-trigger {
  display: inline-flex;
  align-items: center;
  max-width: min(220px, 42vw);
  padding: 0.45rem 0.75rem 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #202124 !important;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.navbar-user-dropdown .navbar-user-trigger:hover,
.navbar-user-dropdown .navbar-user-trigger:focus {
  border-color: #bdc1c6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #202124 !important;
}

.navbar-user-dropdown .navbar-user-trigger::after {
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  opacity: 0.65;
}

.navbar-user-trigger__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-user-dropdown .dropdown-menu {
  margin-top: 0.35rem;
  border-radius: 10px;
  padding: 0.35rem 0;
  min-width: 10rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06);
}

.navbar-user-dropdown .dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.navbar-user-dropdown .dropdown-item:hover {
  background: #f1f3f4;
}

.navbar-user-dropdown button.dropdown-item {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

/* Navbar content constrained to match site width */
.navbar__wrap {
  padding-left: var(--layout-gutter-x);
  padding-right: var(--layout-gutter-x);
}
.navbar__inner {
  max-width: var(--layout-content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.navbar__inner .navbar-brand { margin-right: 1rem; }
.navbar__inner .navbar-toggler { order: 3; margin-left: auto; }
.navbar__inner .navbar-collapse {
  flex-basis: 100%;
  order: 4;
}
@media (min-width: 576px) {
  .navbar__inner .navbar-collapse {
    flex-basis: auto;
    order: 0;
    flex-grow: 1;
    justify-content: flex-end;
  }
}

.navbar-nav--guest-auth {
  width: 100%;
}
@media (min-width: 576px) {
  .navbar-nav--guest-auth {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .navbar-portal-btn--center-sm {
    justify-content: center;
  }
}

.navbar-coachsynq .nav-link {
  color: #202124 !important;
  font-weight: 500;
}

.navbar-coachsynq .nav-link:hover {
  color: var(--brand-blue) !important;
}

/* Guest header: transparent over hero, white logo & text (FishingBooker-style) */
.navbar-coachsynq.navbar-guest {
  background: rgba(0, 0, 0, 0) !important;
  border-bottom: none;
  box-shadow: none;
}

/* On non-home guest pages, use solid dark nav so it reads on white background */
body:not(.page-home-guest) .navbar-coachsynq.navbar-guest {
  background: rgba(0, 0, 0, 0.88) !important;
}

/* Guest navbar: same horizontal margins as body (.marketplace-container) */
.navbar-guest__inner {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .navbar-guest__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.navbar-coachsynq.navbar-guest .navbar-brand {
  color: #fff !important;
}

.navbar-coachsynq.navbar-guest .nav-link {
  color: #fff !important;
}

.navbar-coachsynq.navbar-guest .nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-coachsynq.navbar-guest .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-coachsynq.navbar-guest .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Home guest: nav overlays hero */
body.page-home-guest .navbar-coachsynq.navbar-guest {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

body.page-home-guest .guest-main {
  padding-top: 0;
}

/* ========== Signed-in layout: sidebar + main ========== */
:root {
  --sidebar-width: 220px;
  --sidebar-active-border: #1a5fb4;
}

body.layout-with-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.layout-with-sidebar .navbar-coachsynq {
  flex-shrink: 0;
}

/* Portal body: same horizontal band as navbar (gutter + max 1320 centered) */
.portal-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-left: var(--layout-gutter-x);
  padding-right: var(--layout-gutter-x);
  background: var(--bg-grey);
  box-sizing: border-box;
}

body.layout-with-sidebar .portal-shell > .app-layout {
  flex: 1;
  min-height: 0;
  max-width: var(--layout-content-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--card-border);
  border-top: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.app-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Left sidebar – My Account (FishingBooker-style) */
.account-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.account-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  color: #202124;
  margin: 0 1.25rem 1rem;
  padding: 0;
  line-height: 1.3;
}

.account-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #5f6368;
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.account-sidebar__link:hover {
  color: var(--brand-blue);
  background: rgba(26, 95, 180, 0.06);
}

.account-sidebar__link.active {
  color: var(--brand-blue);
  font-weight: 600;
  border-left-color: var(--sidebar-active-border);
  background: rgba(26, 95, 180, 0.06);
}

.account-sidebar__icon {
  flex-shrink: 0;
  color: inherit;
}

/* Collapsible Coach portal group (parent+coach) */
.account-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.account-sidebar__link--toggler {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.account-sidebar__link--toggler .account-sidebar__chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.account-sidebar__link--toggler:not(.collapsed) .account-sidebar__chevron {
  transform: rotate(180deg);
}

.account-sidebar__subnav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0.5rem;
  border-left: 2px solid var(--card-border);
  margin-left: 1.25rem;
  margin-bottom: 0.25rem;
}

.account-sidebar__link--sub {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.account-sidebar__link--sub .account-sidebar__icon {
  display: none;
}

.app-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  background: #fff;
}

.app-main__inner {
  max-width: none;
  margin-left: 0;
  margin-right: auto;
  padding: 1.5rem 1.5rem 2rem 1.25rem;
}

/* When signed in, on mobile only show sidebar toggle (not the nav collapse toggler) */
@media (max-width: 767.98px) {
  .navbar-signed-in .navbar-toggler:not(.sidebar-toggle) {
    display: none;
  }
}

.sidebar-toggle {
  display: none;
}

@media (max-width: 767.98px) {
  .navbar-signed-in .sidebar-toggle {
    display: inline-block;
  }
}

/* Mobile: sidebar drawer full-bleed; main stays in aligned column */
@media (max-width: 767.98px) {
  .portal-shell {
    padding-left: 0;
    padding-right: 0;
    background: #fff;
  }

  body.layout-with-sidebar .portal-shell > .app-layout {
    flex: 1;
    min-height: 0;
    border: none;
    box-shadow: none;
    max-width: none;
  }

  .account-sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 1030;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open .account-sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 56px;
    background: rgba(0,0,0,0.4);
    z-index: 1029;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
  }

  .app-main__inner {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    padding-left: var(--layout-gutter-x);
    padding-right: var(--layout-gutter-x);
  }
}

/* ========== Primary buttons (orange CTA) ========== */
.btn-primary, .btn-search {
  background: var(--cta-blue);
  border-color: var(--cta-blue);
}

.btn-primary:hover, .btn-search:hover {
  background: var(--cta-blue-hover);
  border-color: var(--cta-blue-hover);
}

.btn-primary:focus, .btn-search:focus {
  box-shadow: 0 0 0 0.2rem rgba(26, 95, 180, 0.35);
}

/* ========== Hero banner (guest home – FishingBooker-style) ========== */
.hero-banner {
  position: relative;
  min-height: 420px;
  background-image: url("/images/herobanner2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 74, 143, 0.5) 0%, rgba(13, 74, 143, 0.25) 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Hero content uses same horizontal margins as body (.marketplace-container) */
.hero-banner__content {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 2.5rem 1rem 1.5rem;
  box-sizing: border-box;
}

.hero-banner__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-banner__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-banner__search-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--layout-content-max, 1320px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 var(--layout-gutter-x, 1rem) 1.75rem;
  box-sizing: border-box;
}

/* Hero search — matches signed-in header (borders, radius, brand CTA) */
.hero-search {
  width: 100%;
}

.hero-search__card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-search__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  width: 100%;
  min-width: 0;
}

.hero-search__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hero-search__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #5f6368;
  margin: 0;
  line-height: 1.2;
}

.hero-search__control {
  height: 44px;
  padding: 0 0.8rem;
  font-size: 0.9375rem;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-search__control::placeholder {
  color: #80868b;
}

.hero-search__control:hover {
  border-color: #bdc1c6;
}

.hero-search__control:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
}

select.hero-search__control {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  appearance: none;
  -webkit-appearance: none;
}

.hero-search__field--city {
  grid-column: 1 / -1;
}

.hero-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 100%;
  height: 46px;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff !important;
  border: 1px solid #124080;
  border-radius: 8px;
  background: var(--brand-blue);
  box-shadow: 0 1px 2px rgba(18, 64, 128, 0.12);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.hero-search__submit:hover {
  background: var(--brand-blue-dark);
  border-color: #0d3a66;
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.22);
  color: #fff !important;
}

.hero-search__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.35);
}

.hero-search__submit-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.hero-banner__portal-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero-banner__portal-btn {
  color: #fff !important;
  text-decoration: none;
  display: inline-block;
}

.hero-banner__portal-btn:hover {
  color: #fff !important;
}

@media (min-width: 576px) {
  .hero-banner__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-banner__search-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-banner {
    min-height: 380px;
  }

  .hero-banner__title {
    font-size: 2.5rem;
  }

  .hero-banner__subtitle {
    font-size: 1.25rem;
  }

  /* Full-width single row: growing columns + fixed narrow fields + CTA */
  .hero-search__card {
    display: grid;
    grid-template-columns:
      minmax(4.75rem, 6rem)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1.35fr)
      minmax(4.75rem, 6.25rem)
      minmax(4.5rem, 5.75rem)
      minmax(10.5rem, auto);
    align-items: end;
    column-gap: 0.75rem;
    row-gap: 0;
    padding: 1.1rem 1.35rem 1.2rem;
  }

  .hero-search__fields {
    display: contents;
  }

  .hero-search__field--age {
    grid-column: 1;
  }

  .hero-search__field--sport {
    grid-column: 2;
  }

  .hero-search__field--type {
    grid-column: 3;
  }

  .hero-search__field--city {
    grid-column: 4;
  }

  .hero-search__field--state {
    grid-column: 5;
  }

  .hero-search__field--zip {
    grid-column: 6;
  }

  .hero-search__submit {
    grid-column: 7;
    width: 100%;
    min-width: 10.5rem;
    align-self: end;
  }
}

@media (min-width: 1100px) {
  .hero-search__card {
    column-gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    grid-template-columns:
      minmax(5rem, 6.25rem)
      minmax(0, 1.15fr)
      minmax(0, 1.15fr)
      minmax(0, 1.5fr)
      minmax(5rem, 6.5rem)
      minmax(5rem, 6rem)
      minmax(11rem, auto);
  }
}

/* When hero is present, add spacing before marketplace content */
.hero-banner + .marketplace-page {
  padding-top: 1.5rem;
}

/* ========== Search bar (prominent, single row) ========== */
.search-hero {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0.75rem 1rem;
}

.search-hero .form-control,
.search-hero .form-select {
  border-radius: 6px;
  border-color: var(--card-border);
}

.search-hero .btn-search {
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

/* ========== Program cards (Fishbooker-style) ========== */
.card-program {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card-program:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #d2d5d9;
}

.card-program .card-title a {
  color: #202124;
  font-weight: 600;
  text-decoration: none;
}

.card-program .card-title a:hover {
  color: var(--brand-blue);
}

/* Price in green (like Fishbooker) */
.price-display {
  color: var(--success-green);
  font-weight: 700;
}

/* Orange CTA on cards */
.btn-card-cta {
  background: var(--cta-blue);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.btn-card-cta:hover {
  background: var(--cta-blue-hover);
  color: #fff;
}

/* Badges */
.badge-sport {
  background: var(--brand-blue);
}

.badge-type {
  background: #5f6368;
}

/* Breadcrumb */
.breadcrumb-coachsynq {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-coachsynq a {
  color: var(--brand-blue);
  text-decoration: none;
}

/* Footer */
.footer-coachsynq {
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Page headings */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #202124;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 1.75rem;
  }
}

/* ========== Marketplace discovery page (program listing) ========== */
.marketplace-page {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  background-color: var(--bg-grey);
  min-height: 60vh;
}

.marketplace-container {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .marketplace-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Breadcrumb */
.marketplace-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.marketplace-breadcrumb .breadcrumb-item a {
  color: var(--brand-blue);
  text-decoration: none;
}

.marketplace-breadcrumb .breadcrumb-item.active {
  color: var(--text-muted);
}

/* Search panel – polished bar */
.marketplace-search-panel {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.marketplace-search-panel:focus-within {
  border-color: rgba(26, 95, 180, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(26, 95, 180, 0.1);
}

.marketplace-search-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.marketplace-search-control {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.marketplace-search-control:hover {
  border-color: #c4c7cc;
}

.marketplace-search-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
  outline: 0;
}

.marketplace-search-btn {
  height: 44px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.marketplace-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.35);
}

.marketplace-search-btn:active {
  transform: translateY(0);
}

.marketplace-parent-cta a {
  color: var(--brand-blue);
  text-decoration: none;
}

/* Results header */
.marketplace-results-header {
  margin-bottom: 0.5rem;
}

.marketplace-results-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #202124;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .marketplace-results-title {
    font-size: 1.875rem;
  }
}

.marketplace-results-subtitle {
  font-size: 0.9375rem;
}

/* Filter bar – pill styling */
.marketplace-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.marketplace-filter-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--card-border);
  background: #fff;
  color: #202124;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.marketplace-filter-pill:hover {
  background: var(--bg-grey);
  border-color: #d2d5d9;
  color: #202124;
}

.marketplace-filter-pill--muted {
  color: var(--text-muted);
  border-color: transparent;
  background: transparent;
  font-weight: 500;
}

/* Results list */
.marketplace-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .marketplace-results-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Marketplace card – premium horizontal layout */
.marketplace-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.marketplace-card:hover {
  border-color: #d2d5d9;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.marketplace-card .row {
  min-height: 200px;
}

@media (min-width: 768px) {
  .marketplace-card .row {
    min-height: 240px;
  }
}

/* Card: premium left image section */
.marketplace-card__image-col {
  flex: 0 0 auto;
  width: 100%;
  max-height: 200px;
}

@media (min-width: 768px) {
  .marketplace-card__image-col {
    width: 220px;
    max-width: 220px;
    max-height: none;
  }
}

.marketplace-card__image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(160deg, #e8eaed 0%, #dadce0 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .marketplace-card__image-wrap {
    min-height: 100%;
    border-radius: 14px 0 0 14px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  }
}

.marketplace-card:hover .marketplace-card__image-wrap .marketplace-card__image {
  transform: scale(1.03);
}

.marketplace-card__image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (min-width: 768px) {
  .marketplace-card__image {
    min-height: 240px;
    border-radius: 14px 0 0 14px;
  }
}

.marketplace-card__image--placeholder {
  background: linear-gradient(160deg, #e8eaed 0%, #dadce0 100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 24 24' fill='%239aa0a6' opacity='0.6'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px;
}

.marketplace-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(26, 95, 180, 0.4);
}

.marketplace-card__badge--sport {
  background: var(--brand-blue);
}

.marketplace-card__image-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.02em;
}

/* Card: content column – spacing and hierarchy */
.marketplace-card__content-col {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .marketplace-card__content-col {
    flex: 1 1 0%;
  }
}

.marketplace-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
}

.marketplace-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.15rem 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .marketplace-card__title {
    font-size: 1.25rem;
  }
}

.marketplace-card__title a {
  color: #202124;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marketplace-card__title a:hover {
  color: var(--brand-blue);
}

.marketplace-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.marketplace-card__rating {
  color: #b45309;
  font-weight: 600;
}

.marketplace-card__badge-inline {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #e8eaed;
  color: #5f6368;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.marketplace-card__kind {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.marketplace-card__details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.marketplace-card__details li {
  margin-bottom: 0.2rem;
}

.marketplace-card__details li:last-child {
  margin-bottom: 0;
}

/* Coach name and company under title – no avatar */
.marketplace-card__coach-line {
  font-size: 0.875rem;
  line-height: 1.3;
}

.marketplace-card__coach-name {
  font-weight: 600;
  color: #5f6368;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marketplace-card__coach-name:hover {
  color: var(--brand-blue);
}

.marketplace-card__coach-business {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Availability block – in content column where coach block was */
.marketplace-card__availability {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.marketplace-card__availability .marketplace-card__cta-btn {
  margin-left: auto;
}

@media (max-width: 575px) {
  .marketplace-card__availability .marketplace-card__cta-btn {
    margin-left: 0;
    width: 100%;
  }
}

.marketplace-card__spots {
  font-size: 0.875rem;
  margin: 0;
  color: var(--success-green);
  font-weight: 600;
}

.marketplace-card__spots-num {
  font-weight: 800;
  font-size: 1rem;
}

.marketplace-card__price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.marketplace-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success-green);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.marketplace-card__price-unit {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.marketplace-card__cta-btn {
  margin-top: 0.75rem;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 10px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.marketplace-card__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.4);
  color: #fff;
}

.marketplace-card__cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .marketplace-card__cta-btn {
    margin-top: 0.85rem;
    min-height: 48px;
    width: 100%;
  }
}

/* Mobile: stack order image → content → CTA */
@media (max-width: 767px) {
  .marketplace-card .row {
    flex-direction: column;
    min-height: 0;
  }

  .marketplace-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .marketplace-card__image-col {
    max-height: 200px;
  }

  .marketplace-card__image-wrap {
    border-radius: 14px 14px 0 0;
    min-height: 200px;
  }

  .marketplace-card__image,
  .marketplace-card__image--placeholder {
    border-radius: 14px 14px 0 0;
    min-height: 200px;
  }

  .marketplace-card:hover .marketplace-card__image-wrap .marketplace-card__image {
    transform: none;
  }

  .marketplace-card__body {
    padding: 1rem 1.25rem;
  }

  .marketplace-card__title {
    font-size: 1.125rem;
  }

  .marketplace-card__availability {
    padding-top: 0.65rem;
  }
}

.marketplace-empty .btn {
  border-radius: 10px;
}

/* —— Inbox (coach ↔ parent) —— */
.messaging-inbox-btn {
  color: var(--csq-text, #1a1a2e) !important;
  border-radius: 10px;
}
.messaging-inbox-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.messaging-inbox-btn__icon {
  display: block;
  vertical-align: middle;
}
.messaging-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  color: #fff;
  background: #dc3545;
  border-radius: 999px;
  border: 2px solid #fff;
}
.messaging-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.messaging-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.messaging-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.messaging-panel.is-open {
  transform: translateX(0);
}
.messaging-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.messaging-panel__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.messaging-panel__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
}
.messaging-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c757d;
  margin: 0.85rem 0 0.4rem;
  padding: 0 0.15rem;
}
.messaging-section-label:first-child {
  margin-top: 0;
}
.messaging-sender-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.2rem;
}
.messaging-conv-list {
  overflow-y: auto;
  flex: 1;
}
.messaging-conv-item--program .messaging-conv-item__name::before {
  content: "📋 ";
  font-size: 0.85em;
}
.impersonation-banner {
  background: linear-gradient(90deg, #6f42c1 0%, #5a32a3 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.impersonation-banner__inner {
  max-width: var(--layout-content-max, 1320px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.impersonation-banner .btn-light {
  font-weight: 600;
}
.admin-user-search-results {
  max-height: 320px;
  overflow-y: auto;
}

.messaging-conv-list .messaging-conv-item--program + .messaging-conv-item--direct,
.messaging-conv-list .messaging-section-label + .messaging-conv-item--direct {
  margin-top: 0.25rem;
}
.messaging-conv-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: background 0.15s;
}
.messaging-conv-item:hover {
  background: #f0f0f0;
}
.messaging-conv-item__name {
  font-weight: 600;
  font-size: 0.9rem;
}
.messaging-conv-item__preview {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.messaging-conv-item__badge {
  float: right;
  margin-left: 0.5rem;
  min-width: 1.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #0d6efd;
  border-radius: 999px;
}
.messaging-thread-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.messaging-thread-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.messaging-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 180px;
}
.messaging-bubble {
  max-width: 88%;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}
.messaging-bubble--mine {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.messaging-bubble--them {
  align-self: flex-start;
  background: #e9ecef;
  color: #212529;
  border-bottom-left-radius: 4px;
}
.messaging-bubble__time {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}
