/* Programs listing page */
.programs-hero{
  padding:40px 0 20px;
  background:linear-gradient(180deg,#f7faf9 0%,#ffffff 72%);
}
.programs-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:32px;
  align-items:stretch;
}
.programs-hero-copy .eyebrow{margin-bottom:8px}
.programs-hero-copy h1{
  font-size:clamp(34px,4.2vw,52px);
  line-height:1.15;
  margin:8px 0 14px;
}
.programs-hero-copy .lead{margin:0;max-width:560px}
.programs-hero-media{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  min-height:260px;
  background:linear-gradient(145deg,#0c7f80,#10283a);
  box-shadow:var(--shadow);
}
.programs-hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:260px;
}
.programs-hero-media.is-fallback img{
  object-fit:contain;
  padding:48px;
  opacity:.96;
}
.programs-hero-caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  color:#fff;
  font-weight:750;
  font-size:17px;
  text-shadow:0 8px 24px rgba(0,0,0,.35);
}

.programs-features-wrap{padding:8px 0 4px}
.programs-features{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
}
.programs-feature{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-weight:700;
  font-size:14px;
}
.feature-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--gold);
  flex:0 0 auto;
}

.programs-list-section{padding:28px 0 80px}
.filter-bar{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0 0 28px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
}
.category-chips{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 6px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#f8faf9;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
  color:var(--ink);
  transition:.2s ease;
  flex:0 0 auto;
}
.chip:hover{border-color:#b7c8ce;background:#fff}
.chip.active{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}
.chip-icon,
.cat-icon-preview,
.meta-icon,
.filter-search-icon{
  display:inline-flex;
  width:18px;
  height:18px;
  flex:0 0 auto;
}
.chip-icon svg,
.cat-icon-preview svg,
.meta-icon svg,
.filter-search-icon svg,
.program-bookmark svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.chip.active .chip-icon{color:#fff}

.filter-controls{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:center;
}
.filter-search{position:relative;display:block;min-width:0}
.filter-search input{
  width:100%;
  padding:12px 14px 12px 40px;
  border:1px solid var(--line);
  border-radius:14px;
  font:inherit;
  background:#fff;
}
.filter-search-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}
html[dir="rtl"] .filter-search-icon{left:auto;right:14px}
html[dir="rtl"] .filter-search input{padding:12px 40px 12px 14px}
.filter-controls select{
  width:100%;
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  font:inherit;
  background:#fff;
}
.filter-date{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.filter-date-field{flex:1;min-width:0;display:block}
.filter-date-field input{
  width:100%;
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  font:inherit;
  background:#fff;
}
.filter-date-apply{flex:0 0 auto;white-space:nowrap}
.filter-date-clear{
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  text-decoration:underline;
  white-space:nowrap;
}
.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.cards-rich{align-items:stretch}
.program-card-rich{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  height:100%;
}
.program-cover-link{display:block}
.program-card-rich .program-cover{position:relative}
.program-bookmark{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  box-shadow:0 8px 20px rgba(16,40,58,.12);
  z-index:2;
}
html[dir="rtl"] .program-bookmark{right:auto;left:12px}
.program-bookmark svg{width:18px;height:18px}
.program-card-pills{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-width:calc(100% - 24px);
  z-index:2;
}
html[dir="rtl"] .program-card-pills{left:auto;right:12px}
.program-card-pills .pill{
  background:rgba(255,255,255,.96);
  margin-bottom:0;
  font-size:11px;
  padding:5px 9px;
}
.program-card-rich .program-body{
  display:flex;
  flex-direction:column;
  flex:1;
}
.program-card-summary{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
  margin:0;
}
.program-meta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:16px 0 18px;
}
.meta-item{
  display:flex;
  gap:8px;
  align-items:flex-start;
  background:#f4f7f7;
  border-radius:14px;
  padding:10px;
  min-width:0;
}
.meta-item > div{min-width:0}
.meta-item span{
  display:block;
  font-size:11px;
  color:var(--muted);
  font-weight:650;
}
.meta-item strong{
  display:block;
  font-size:13px;
  line-height:1.3;
  word-break:break-word;
}
.meta-icon{color:var(--green);margin-top:2px;flex:0 0 auto}
.program-card-cta{
  width:100%;
  justify-content:center;
  margin-top:auto;
}

.admin-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:14px;
  margin:0 0 4px;
}
.admin-gallery-item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.admin-gallery-item img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:10px;
  background:#f4f7f7;
}
.admin-gallery-item .btn{width:100%;justify-content:center}

.category-check-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:10px;
}
.category-check{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
  font-weight:650;
}
.cat-icon-preview{color:var(--green)}

html[dir="rtl"] .category-chips,
html[dir="rtl"] .filter-controls{direction:rtl}

/* Program detail gallery carousel */
.gallery-carousel{
  position:relative;
  container-type:inline-size;
}
.gallery-viewport{
  --gallery-gap:12px;
  --gallery-cols:1;
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - (var(--gallery-gap) * (var(--gallery-cols) - 1))) / var(--gallery-cols));
  gap:var(--gallery-gap);
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:2px 2px 8px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.gallery-slide{
  margin:0;
  scroll-snap-align:start;
  min-width:0;
}
.gallery-zoom{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:zoom-in;
  border-radius:16px;
  overflow:hidden;
}
.gallery-slide img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
  display:block;
  background:#eef4f3;
  transition:transform .25s ease;
}
.gallery-zoom:hover img{transform:scale(1.03)}
.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(8,24,34,.88);
  backdrop-filter:blur(4px);
}
.gallery-lightbox.is-open{display:flex}
.gallery-lightbox img{
  max-width:min(1100px,96vw);
  max-height:86vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  background:#0a1c26;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next{
  position:absolute;
  border:0;
  background:rgba(255,255,255,.94);
  color:var(--ink);
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.gallery-lightbox-close{top:18px;right:18px;font-size:26px}
.gallery-lightbox-prev{left:18px;top:50%;transform:translateY(-50%)}
.gallery-lightbox-next{right:18px;top:50%;transform:translateY(-50%)}
html[dir="rtl"] .gallery-lightbox-close{right:auto;left:18px}
html[dir="rtl"] .gallery-lightbox-prev{left:auto;right:18px}
html[dir="rtl"] .gallery-lightbox-next{right:auto;left:18px}
body.gallery-lightbox-open{overflow:hidden}
.gallery-nav{
  position:absolute;
  top:50%;
  transform:translateY(-60%);
  z-index:2;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:var(--ink);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(16,40,58,.12);
  display:grid;
  place-items:center;
  padding:0;
}
.gallery-nav:hover{background:#fff}
.gallery-nav-prev{left:-6px}
.gallery-nav-next{right:-6px}
html[dir="rtl"] .gallery-nav-prev{left:auto;right:-6px}
html[dir="rtl"] .gallery-nav-next{right:auto;left:-6px}
.gallery-carousel.is-static .gallery-nav{display:none}

@container (min-width:380px){
  .gallery-viewport{--gallery-cols:2}
}
@container (min-width:560px){
  .gallery-viewport{--gallery-cols:3}
}
@container (min-width:760px){
  .gallery-viewport{--gallery-cols:4}
}

@media (max-width:640px){
  .gallery-nav-prev{left:4px}
  .gallery-nav-next{right:4px}
  html[dir="rtl"] .gallery-nav-prev{left:auto;right:4px}
  html[dir="rtl"] .gallery-nav-next{right:auto;left:4px}
}

/* Program detail: daily hours / amenities / outcomes / trips */
.daily-hours-week{
  margin:18px 0 10px;
  font-size:18px;
}
.daily-hours-week:first-child{margin-top:0}
.daily-hours-table{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  margin-bottom:14px;
}
.admin-day-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:12px;
}
.admin-day-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#f8faf9;
}
.admin-day-card > strong{display:block;margin-bottom:8px}
.admin-day-card .form-grid{grid-template-columns:1fr;gap:8px}
.admin-week-block{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  margin-bottom:14px;
  background:#fff;
}
.admin-week-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.daily-hours-head,
.daily-hours-row{
  display:grid;
  grid-template-columns:minmax(110px,.9fr) minmax(0,1.6fr);
  gap:12px;
  padding:12px 16px;
  align-items:center;
}
.daily-hours-head{
  background:#f4f8f7;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.daily-hours-row{
  border-top:1px solid var(--line);
  font-size:14px;
}
.daily-hours-row strong{font-weight:750}
.daily-hours-row span{color:var(--ink)}
html[dir="rtl"] .daily-hours-head,
html[dir="rtl"] .daily-hours-row{direction:rtl}

.amenities-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.amenity-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  font-weight:650;
  font-size:14px;
}
.amenity-icon{
  width:28px;
  height:28px;
  flex:0 0 auto;
  color:var(--green);
  display:inline-flex;
}
.amenity-icon svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.outcomes-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}
.outcomes-list li{
  position:relative;
  padding:12px 14px 12px 40px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  font-weight:650;
}
.outcomes-list li::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  width:14px;
  height:8px;
  border-left:2.5px solid var(--green);
  border-bottom:2.5px solid var(--green);
  transform:translateY(-60%) rotate(-45deg);
}
html[dir="rtl"] .outcomes-list li{padding:12px 40px 12px 14px}
html[dir="rtl"] .outcomes-list li::before{left:auto;right:14px}
.trips-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}
.trip-card{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
}
.trip-card img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
  background:#eef4f3;
}
.trip-body{padding:14px 16px 16px}
.trip-week{
  display:inline-block;
  font-size:12px;
  font-weight:750;
  color:var(--green);
  margin-bottom:6px;
}
.trip-body h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.3;
}
.trip-body p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

@media (max-width:980px){
  .programs-hero-grid{grid-template-columns:1fr}
  .programs-hero-media{min-height:220px}
  .programs-features{grid-template-columns:1fr;gap:12px}
  .filter-controls{grid-template-columns:1fr 1fr}
  .filter-search{grid-column:1 / -1}
  .cards.cards-rich{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .programs-hero{padding:24px 0 12px}
  .programs-list-section{padding:18px 0 56px}
  .filter-bar{padding:14px}
  .filter-controls{grid-template-columns:1fr}
  .cards.cards-rich{grid-template-columns:1fr}
  .program-meta-grid{grid-template-columns:1fr 1fr}
}
