/* Dynamic retreat listing and detail styles. Designed to sit beside assets/css/styles.css. */
.retreat-hero {
  min-height: 82vh;
   position: relative;
  display: grid;
  align-items: center; 
  background:
    linear-gradient(100deg, rgba(13, 50, 76, .78), rgba(13, 50, 76, .36)),
    var(--retreat-hero-image, url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80')) center/cover no-repeat;
  color: #fff;
  padding: 96px 24px;
}

.retreat-hero .hero-content,
.retreat-page-intro {
  max-width: 1040px;
  margin: 0 auto;
}

.retreat-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.94;
  margin: 0 0 1.3rem;
  max-width: 900px;
  font-weight: 500;
}

.retreat-hero p {
  color: #fff;
}

.retreat-hero p {
  max-width: 760px;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

.retreat-page-intro {
  text-align: center;
  padding: 88px 24px 44px;
}

.retreat-page-intro p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Move retreat hero text up and left */
.retreat-hero {
  align-items: start !important;
  min-height: 68vh !important;
  padding: 10px 24px 70px !important;
}

.retreat-hero .hero-content {
  max-width: 1040px !important;
  margin-left: clamp(150px, 8vw, 120px) !important;
  margin-right: auto !important;
}

.retreat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.retreat-grid.single-row {
  margin-top: 28px;
}

.retreat-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(13, 50, 76, .12);
  border: 1px solid rgba(189, 174, 147, .28);
  display: flex;
  flex-direction: column;
}

.retreat-card-image {
  position: relative;
  height: 320px;
  min-height: 0;
  background: #d9e7ef;
  overflow: hidden;
}

.retreat-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.retreat-card:hover .retreat-card-image img {
  transform: scale(1.035);
}

.retreat-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #17364d;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.retreat-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.retreat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.retreat-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f4eee3;
  color: #1b435f;
  font-size: .92rem;
  font-weight: 700;
}

.retreat-card-body p {
  margin-bottom: 22px;
}

.retreat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.retreat-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 55px rgba(13, 50, 76, .1);
}

.detail-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  gap: 44px;
  align-items: start;
}

.detail-card,
.detail-side-card {
  background: #fff;
  border-radius: 30px;
  border: 1px solid rgba(189, 174, 147, .28);
  box-shadow: 0 18px 55px rgba(13, 50, 76, .10);
}

.detail-card {
  padding: 38px;
}

.detail-card + .detail-card {
  margin-top: 26px;
}

.detail-card h2,
.detail-side-card h3 {
  margin-top: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-side-card {
  padding: 28px;
  position: sticky;
  top: 110px;
}

.detail-side-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.clean-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(189, 174, 147, .22);
}

.clean-list li:last-child {
  border-bottom: 0;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8b15a;
}

.retreat-admin-note {
  background: #fff8df;
  border-left: 4px solid #d8b15a;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 18px;
  font-size: .96rem;
}

@media (max-width: 900px) {
  .retreat-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .retreat-hero {
    min-height: 42vh;
    padding: 72px 20px;
  }

  .retreat-card-image {
    height: 245px;
  }

  .retreat-card-body,
  .detail-card,
  .detail-side-card {
    padding: 24px;
  }

  .retreat-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Homepage featured retreat cards: keep the cards compact instead of stretching tall. */
.retreat-grid.single-row {
  align-items: start;
}

.retreat-grid.single-row .retreat-card {
  align-self: start;
  height: auto;
}

.retreat-grid.single-row .retreat-card-image {
  height: 260px;
}

.retreat-grid.single-row .retreat-card-body {
  flex: 0 0 auto;
  display: block;
  min-height: 0;
  padding: 28px 28px 30px;
}

.retreat-grid.single-row .retreat-card-body p:empty {
  display: none;
}

.retreat-grid.single-row .retreat-card-body p {
  margin: 0 0 18px;
}

.retreat-grid.single-row .retreat-actions {
  margin-top: 20px;
}

@media (max-width: 620px) {
  .retreat-grid.single-row .retreat-card-image {
    height: 220px;
  }
}

/* Compact retreat detail hero: less empty image space on retreat.php */
.retreat-hero {
  min-height: 430px;
  padding: 82px 24px 68px;
  background:
    linear-gradient(90deg, rgba(13, 50, 76, .82), rgba(13, 50, 76, .42)),
    var(--retreat-hero-image, url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80')) center 70% / cover no-repeat;
}

.retreat-hero .hero-content {
  max-width: 980px;
}

.retreat-hero h1 {
  max-width: 760px;
}

.retreat-hero p {
  max-width: 720px;
}

.retreat-hero .hero-actions {
  margin-top: 26px;
}

.retreat-hero .hero-note {
  margin-top: 28px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .retreat-hero {
    min-height: 390px;
    padding: 72px 22px 58px;
    background:
      linear-gradient(90deg, rgba(13, 50, 76, .84), rgba(13, 50, 76, .46)),
      var(--retreat-hero-image, url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80')) center 70% / cover no-repeat;
  }
}

@media (max-width: 620px) {
  .retreat-hero {
    min-height: 360px;
    padding: 64px 20px 50px;
  }
}

/* Retreat detail page: move the agenda/rhythm card into the right sidebar under payment. */
.detail-side-stack {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 24px;
  align-self: start;
}

.detail-side-stack .detail-side-card {
  position: static;
}

.agenda-side-card .clean-list li {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 900px) {
  .detail-side-stack {
    position: static;
  }
}
