/* ==========================================================================
   Ancoia Trail Directory — Single Page Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  --jlw-primary      : #4a6834;
  --jlw-primary-dark : #b26d32;
  --jlw-primary-light: #edf0eb;
  --jlw-text         : #1f2937;
  --jlw-text-muted   : #6b7280;
  --jlw-border       : #e5e7eb;
  --jlw-white        : #ffffff;
  --jlw-font         : 'Avenir', 'Avenir Next', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══ BREAK OUT OF EVERY KNOWN THEME CONTAINER ══════════════════════════════ */

/* Generic WordPress containers */
.jlw-fullwidth-page .site-main,
.jlw-fullwidth-page main.site-main,
.jlw-fullwidth-page #content,
.jlw-fullwidth-page #primary,
.jlw-fullwidth-page .content-area,
.jlw-fullwidth-page article.post,
.jlw-fullwidth-page article.page,
.jlw-fullwidth-page .entry-content,
.jlw-fullwidth-page .post-inner,
.jlw-fullwidth-page .page-content,
.jlw-fullwidth-page .post-content,
.jlw-fullwidth-page .singular-inner {
  max-width : none !important;
  width     : 100% !important;
  padding   : 0 !important;
  margin    : 0 !important;
}

/* Elementor Hello / free Elementor theme */
.jlw-fullwidth-page .elementor-section-wrap,
.jlw-fullwidth-page .elementor-widget-wrap,
.jlw-fullwidth-page .elementor-widget-container,
.jlw-fullwidth-page .elementor-container,
.jlw-fullwidth-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width : none !important;
  padding   : 0 !important;
}

/* Twenty Twenty-Two / Twenty Twenty-Three (block themes) */
.jlw-fullwidth-page .wp-site-blocks,
.jlw-fullwidth-page .wp-block-post-content,
.jlw-fullwidth-page .is-layout-constrained {
  --wp--style--global--content-size   : 100% !important;
  --wp--style--global--wide-size      : 100% !important;
  max-width : none !important;
  padding   : 0 !important;
}

/* GeneratePress / Astra / OceanWP / Neve / Divi common containers */
.jlw-fullwidth-page .inside-article,
.jlw-fullwidth-page .entry,
.jlw-fullwidth-page .post-entry,
.jlw-fullwidth-page .hentry,
.jlw-fullwidth-page .type-page,
.jlw-fullwidth-page .type-post,
.jlw-fullwidth-page .ast-container,
.jlw-fullwidth-page #page-header-wrap,
.jlw-fullwidth-page .ocean-container,
.jlw-fullwidth-page .nv-content-wrap,
.jlw-fullwidth-page .et_pb_post_content {
  max-width : none !important;
  width     : 100% !important;
  padding   : 0 !important;
  margin    : 0 !important;
}

/* ThemeREX Addons themes (Listener, and other trx_addons-based themes):
   theme renders a widget sidebar next to .content_wrap when body has
   sidebar_show/sidebar_right — hide it and let our content take full width. */
.jlw-fullwidth-page .sidebar.widget_area,
.jlw-fullwidth-page > .page_wrap .sidebar {
  display : none !important;
}
.jlw-fullwidth-page .page_content_wrap,
.jlw-fullwidth-page .content_wrap,
.jlw-fullwidth-page .content_wrap .content {
  width     : 100% !important;
  max-width : 100% !important;
  flex      : 1 1 100% !important;
  float     : none !important;
  margin    : 0 !important;
}

/* ══ SINGLE WRAPPER ════════════════════════════════════════════════════════ */
.jlw-single {
  font-family : var(--jlw-font);
  color       : var(--jlw-text);
  margin-top  : 0;
  /* own layout context so vw-based children work correctly */
  position    : relative;
  overflow-x  : hidden;
}
.jlw-single *, .jlw-single *::before, .jlw-single *::after { box-sizing: border-box; }

/* ══ HERO — full-bleed, flush to header ════════════════════════════════════ */
.jlw-hero {
  position     : relative;
  min-height   : 460px;
  display      : flex;
  align-items  : flex-end;
  overflow     : hidden;
  margin-bottom: 0;
  /* Break out of any remaining theme container */
  width        : 100vw;
  margin-left  : calc(50% - 50vw);
  margin-right : calc(50% - 50vw);
  margin-top   : 0;
}
.jlw-hero__bg {
  position  : absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #2c3e1f 0%, #3b532a 40%, #4a6834 100%);
}
.jlw-hero__bg img {
  width: 100%; height: 100%; object-fit: contain; opacity: .4; display: block;
}
.jlw-hero__overlay {
  position  : absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.70) 0%, rgba(0,0,0,.05) 70%);
}
.jlw-hero__content {
  position  : relative; z-index: 2;
  padding   : 48px 40px;
  width     : 100%;
  max-width : 1400px;
  margin    : 0 auto;
}

/* Guide avatar in hero */
.jlw-hero__avatar-wrap {
  width: 120px; height: 120px; border-radius: 50%;
  overflow: hidden; border: 4px solid var(--jlw-white);
  box-shadow: 0 4px 20px rgba(0,0,0,.25); flex-shrink: 0;
  background: var(--jlw-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin-bottom: 16px;
}
.jlw-hero__avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.jlw-hero__org {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: var(--jlw-white); font-size: .8rem; font-weight: 600;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 10px;
  backdrop-filter: blur(4px);
}

.jlw-hero__name {
  font-size: 2.4rem; font-weight: 800; color: var(--jlw-white);
  margin: 0 0 6px; line-height: 1.15; text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

.jlw-hero__subtitle {
  font-size: 1rem; color: rgba(255,255,255,.88); margin: 0 0 12px;
  display: flex; align-items: center; gap: 6px;
}

.jlw-hero__meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.jlw-hero__meta-item {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.9); font-size: .9rem;
}

/* Stat chips in hero */
.jlw-hero__stat-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.jlw-stat-chip {
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
  padding: 6px 16px; color: var(--jlw-white); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* ══ ACTION BAR ═════════════════════════════════════════════════════════════ */
.jlw-action-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--jlw-border);
  margin-bottom: 28px;
}
.jlw-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 50px; font-family: var(--jlw-font);
  font-size: .875rem; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.jlw-action-btn--primary {
  background: var(--jlw-primary); color: var(--jlw-white);
  border: 2px solid var(--jlw-primary);
}
.jlw-action-btn--primary:hover {
  background: var(--jlw-primary-dark); border-color: var(--jlw-primary-dark);
  color: var(--jlw-white);
}
.jlw-action-btn--outline {
  background: transparent; color: var(--jlw-text);
  border: 1.5px solid var(--jlw-border);
}
.jlw-action-btn--outline:hover { border-color: var(--jlw-primary); color: var(--jlw-primary); }

/* ══ PAGE LAYOUT — also full-bleed so it isn't squeezed by theme containers ═ */
.jlw-single-layout {
  display             : grid;
  grid-template-columns: 1fr 360px;
  gap                 : 32px;
  /* Full-viewport-width, same as hero */
  width               : 100vw;
  margin-left         : calc(50% - 50vw);
  margin-right        : calc(50% - 50vw);
  /* Centre content up to 1400px with comfortable side padding */
  padding-top         : 32px;
  padding-bottom      : 60px;
  padding-left        : max(40px, calc((100vw - 1380px) / 2));
  padding-right       : max(40px, calc((100vw - 1380px) / 2));
  box-sizing          : border-box;
}
@media (max-width: 960px) {
  .jlw-single-layout {
    grid-template-columns: 1fr;
    padding-left : 24px;
    padding-right: 24px;
  }
}

/* ══ CONTENT SECTIONS ═══════════════════════════════════════════════════════ */
.jlw-section { margin-bottom: 36px; }
.jlw-section:last-child { margin-bottom: 0; }

.jlw-section__title {
  font-size: 1.15rem; font-weight: 700; color: var(--jlw-text);
  margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--jlw-primary-light);
  display: flex; align-items: center; gap: 8px;
}

/* Bio text */
.jlw-bio-text {
  font-size: 1rem; line-height: 1.8; color: var(--jlw-text);
  white-space: pre-line;
}
.jlw-bio-text p { margin: 0 0 1em; }

/* ══ BADGES ═════════════════════════════════════════════════════════════════ */
.jlw-badges {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.jlw-badge-img {
  height: 64px; width: auto; max-width: 120px;
  object-fit: contain; border-radius: 6px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.12));
  transition: transform .2s;
}
.jlw-badge-img:hover { transform: scale(1.05); }

/* ══ GALLERY ════════════════════════════════════════════════════════════════ */
.jlw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  align-items: start;
}
.jlw-gallery__item {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--jlw-primary-light); transition: transform .2s;
}
.jlw-gallery__item:hover { transform: scale(1.02); }
.jlw-gallery__item img { width: 100%; height: auto; display: block; }

/* ══ TRAIL FEATURES ═════════════════════════════════════════════════════════ */
.jlw-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.jlw-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--jlw-border); background: var(--jlw-white);
}
.jlw-feature--yes { border-color: rgba(22,163,74,.25); background: rgba(22,163,74,.06); }
.jlw-feature--no  { border-color: rgba(220,38,38,.2);  background: rgba(220,38,38,.05); }
.jlw-feature__icon { font-size: 1.25rem; flex-shrink: 0; }
.jlw-feature__label { flex: 1; font-size: .9rem; font-weight: 600; color: var(--jlw-text); }
.jlw-feature__badge {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--jlw-white);
}
.jlw-feature--yes .jlw-feature__badge { background: #16a34a; }
.jlw-feature--no  .jlw-feature__badge { background: #dc2626; }

/* ══ GETTING THERE CARD ═════════════════════════════════════════════════════ */
.jlw-info-card--getting-there { margin-top: 20px; }
.jlw-info-card__text {
  font-size: .9rem; line-height: 1.6; color: var(--jlw-text); margin: 0 0 12px;
}
.jlw-info-card__provider {
  font-size: .8rem; color: var(--jlw-text-muted); margin: 0;
  padding-top: 12px; border-top: 1px solid rgba(0,0,0,.05);
}
.jlw-info-card__provider a { color: var(--jlw-primary); font-weight: 600; text-decoration: none; }
.jlw-info-card__provider a:hover { text-decoration: underline; }

/* ══ SQUARE TRAIL GALLERY IMAGES ════════════════════════════════════════════ */
.jlw-single--trail .jlw-gallery__item {
  aspect-ratio: 1 / 1;
}
.jlw-single--trail .jlw-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ══ VIDEOS ═════════════════════════════════════════════════════════════════ */
.jlw-videos { display: flex; flex-direction: column; gap: 20px; }
.jlw-video-item {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.jlw-video-item iframe,
.jlw-video-item video {
  display: block; width: 100%; aspect-ratio: 16/9; border: none;
}
.jlw-video-title {
  font-size: .875rem; font-weight: 600; padding: 10px 14px;
  background: var(--jlw-primary-light); color: var(--jlw-text);
}

/* ══ SINGLE MAP ═════════════════════════════════════════════════════════════ */
.jlw-single-map {
  height: 320px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.jlw-map-actions {
  display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap;
}
.jlw-map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--jlw-primary); font-weight: 600;
  text-decoration: none; padding: 6px 0;
}
.jlw-map-link:hover { color: var(--jlw-primary-dark); }

/* ══ SIDEBAR CARDS ══════════════════════════════════════════════════════════ */
.jlw-sidebar { display: flex; flex-direction: column; gap: 20px; }

.jlw-report-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .85rem; color: var(--jlw-text-muted); text-decoration: none;
  padding: 10px; border: 1px dashed var(--jlw-border); border-radius: var(--jlw-radius-sm);
  transition: color .15s, border-color .15s;
}
.jlw-report-link:hover { color: #dc2626; border-color: #dc2626; }
/* Sticky only on large screens */
@media (min-width: 961px) {
  .jlw-sidebar { position: sticky; top: 20px; align-self: start; }
}

.jlw-info-card {
  background: var(--jlw-white); border: 1px solid var(--jlw-border);
  border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.jlw-info-card__title {
  font-size: 1rem; font-weight: 700; margin: 0 0 16px; color: var(--jlw-text);
}

.jlw-info-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.jlw-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.jlw-info-row__icon  { color: var(--jlw-primary); flex-shrink: 0; margin-top: 2px; font-size: 1rem; }
.jlw-info-row__label { font-size: .75rem; color: var(--jlw-text-muted); font-weight: 500; margin-bottom: 2px; }
.jlw-info-row__value { font-size: .9rem; color: var(--jlw-text); font-weight: 600; }

/* Status pill */
.jlw-status { font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; white-space: nowrap; }
.jlw-status--open     { background: #dcfce7; color: #16a34a; }
.jlw-status--full     { background: #fee2e2; color: #dc2626; }
.jlw-status--closed   { background: #f3f4f6; color: #6b7280; }
.jlw-status--seasonal { background: #fef9c3; color: #ca8a04; }

/* Cert badges */
.jlw-cert-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #dcfce7; color: #16a34a;
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 50px;
  margin-right: 6px; margin-bottom: 6px;
}

/* Tags */
.jlw-tag { font-size: .7rem; padding: 2px 8px; border-radius: 50px; white-space: nowrap; }
.jlw-tag--specialty { background: #e0f2fe; color: #0284c7; }
.jlw-tag--language  { background: #ede9fe; color: #7c3aed; }

/* Booking card */
.jlw-booking-card {
  background: linear-gradient(135deg, var(--jlw-primary) 0%, var(--jlw-primary-dark) 100%);
  border-radius: 16px; padding: 24px; color: var(--jlw-white); text-align: center;
}
.jlw-booking-price { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.jlw-booking-label { font-size: .85rem; opacity: .85; margin-bottom: 16px; }
.jlw-booking-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--jlw-white); color: var(--jlw-primary-dark);
  border: none; border-radius: 50px; font-family: var(--jlw-font);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .2s;
  text-decoration: none; text-align: center;
}
.jlw-booking-btn:hover { background: var(--jlw-primary-light); color: var(--jlw-primary-dark); }

/* Spots progress */
.jlw-spots-card  { margin-top: 12px; }
.jlw-spots-bar   { height: 8px; background: rgba(255,255,255,.25); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.jlw-spots-fill  { height: 100%; background: var(--jlw-white); border-radius: 10px; transition: width .4s; }
.jlw-spots-text  { font-size: .8rem; opacity: .85; }
.jlw-spots-urgent{ font-weight: 700; color: #fef08a; }

/* ══ SOCIAL NETWORKS ════════════════════════════════════════════════════════ */
.jlw-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jlw-social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: all .2s; border: 1.5px solid var(--jlw-border); color: var(--jlw-text);
}
.jlw-social-link:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.1); }
.jlw-social-link--facebook  { border-color: #1877f2; color: #1877f2; }
.jlw-social-link--instagram { border-color: #e1306c; color: #e1306c; }
.jlw-social-link--twitter   { border-color: #1da1f2; color: #1da1f2; }
.jlw-social-link--youtube   { border-color: #ff0000; color: #ff0000; }
.jlw-social-link--linkedin  { border-color: #0a66c2; color: #0a66c2; }
.jlw-social-link--website   { border-color: var(--jlw-primary); color: var(--jlw-primary); }
.jlw-social-link--whatsapp  { border-color: #25d366; color: #25d366; }

/* ══ CONTACT FORM (sidebar) ═════════════════════════════════════════════════ */
.jlw-contact-form { display: flex; flex-direction: column; gap: 12px; }
.jlw-form-field   { display: flex; flex-direction: column; gap: 5px; }
.jlw-form-field label { font-size: .8rem; font-weight: 600; color: var(--jlw-text); }
.jlw-form-field input,
.jlw-form-field textarea {
  padding: 10px 14px; border: 1.5px solid var(--jlw-border); border-radius: 10px;
  font-family: var(--jlw-font); font-size: .9rem; outline: none; transition: border-color .2s;
  width: 100%;
}
.jlw-form-field input:focus,
.jlw-form-field textarea:focus { border-color: var(--jlw-primary); }
.jlw-form-field textarea { resize: vertical; min-height: 90px; }
.jlw-form-submit {
  padding: 12px; background: var(--jlw-primary); color: var(--jlw-white);
  border: none; border-radius: 50px; font-family: var(--jlw-font);
  font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s;
  width: 100%;
}
.jlw-form-submit:hover { background: var(--jlw-primary-dark); }

/* ══ TRAIL-SPECIFIC STATS GRID ══════════════════════════════════════════════ */
.jlw-trail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.jlw-trail-stat {
  background: var(--jlw-primary-light); border-radius: 12px; padding: 18px;
  text-align: center; border: 1px solid rgba(0,169,158,.15);
}
.jlw-trail-stat__icon  { font-size: 1.5rem; margin-bottom: 6px; }
.jlw-trail-stat__value { font-size: 1.1rem; font-weight: 700; color: var(--jlw-primary); margin-bottom: 3px; }
.jlw-trail-stat__label { font-size: .75rem; color: var(--jlw-text-muted); }

/* ══ MAIN-CONTENT AREA ══════════════════════════════════════════════════════ */
.jlw-main-content { min-width: 0; }

/* ══ REVIEWS ════════════════════════════════════════════════════════════════ */
.jlw-reviews__summary { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.jlw-reviews__avg { font-size: 1.6rem; font-weight: 800; color: var(--jlw-text); }
.jlw-reviews__stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 1px; }
.jlw-reviews__count { color: var(--jlw-text-muted); font-size: .85rem; }
.jlw-reviews__empty, .jlw-reviews__login-note { color: var(--jlw-text-muted); font-size: .9rem; }
.jlw-reviews__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.jlw-review { padding: 14px; background: #f9fafb; border-radius: var(--jlw-radius-sm); border: 1px solid var(--jlw-border); }
.jlw-review__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.jlw-review__author { font-weight: 700; font-size: .9rem; }
.jlw-review__stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.jlw-review__date { color: var(--jlw-text-muted); font-size: .78rem; margin-left: auto; }
.jlw-review__comment { margin: 0; font-size: .9rem; color: var(--jlw-text); line-height: 1.5; }

.jlw-review-form { border-top: 1px solid var(--jlw-border); padding-top: 16px; }
.jlw-review-form__title { font-weight: 700; margin: 0 0 10px; }
.jlw-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 12px; }
.jlw-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.jlw-star-input label { font-size: 1.6rem; color: #d1d5db; cursor: pointer; transition: color .1s; }
.jlw-star-input input:checked ~ label,
.jlw-star-input label:hover,
.jlw-star-input label:hover ~ label { color: #f59e0b; }
.jlw-review-form textarea {
  width: 100%; border: 1px solid var(--jlw-border); border-radius: var(--jlw-radius-sm);
  padding: 10px; font-family: inherit; font-size: .9rem; resize: vertical; margin-bottom: 10px;
}
.jlw-review-form__submit {
  background: var(--jlw-primary); color: #fff; border: none; border-radius: var(--jlw-radius-sm);
  padding: 10px 20px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.jlw-review-form__submit:hover { background: var(--jlw-primary-dark); }
.jlw-review-form__msg { margin: 10px 0 0; font-size: .85rem; font-weight: 600; }

/* ══ LIGHTBOX ══════════════════════════════════════════════════════════════ */
.jlw-gallery__item img.jlw-lightbox-trigger { cursor: zoom-in; }
.jlw-lightbox-overlay {
  position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.jlw-lightbox-overlay[hidden] { display: none; }
.jlw-lightbox-img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.jlw-lightbox-close {
  position: absolute; top: 16px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: .8;
}
.jlw-lightbox-close:hover { opacity: 1; }

/* ══ FRONT-END CONTENT FORM ═════════════════════════════════════════════════ */
.jlw-form-notice { padding: 16px; background: #fef3c7; border: 1px solid #f59e0b; border-radius: var(--jlw-radius-sm); }
.jlw-content-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  max-width: 900px; font-family: var(--jlw-font);
}
.jlw-content-form .jlw-metabox-row--full { grid-column: 1 / -1; }
.jlw-content-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.jlw-content-form input[type="text"],
.jlw-content-form input[type="number"],
.jlw-content-form input[type="date"],
.jlw-content-form input[type="url"],
.jlw-content-form select,
.jlw-content-form textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--jlw-border); border-radius: var(--jlw-radius-sm);
  font-family: inherit; font-size: .9rem; box-sizing: border-box;
}
.jlw-content-form textarea { resize: vertical; }
.jlw-fe-btn {
  background: #fff; border: 1px solid var(--jlw-border); border-radius: var(--jlw-radius-sm);
  padding: 8px 14px; font-size: .85rem; cursor: pointer; margin-right: 8px;
}
.jlw-fe-submit {
  grid-column: 1 / -1; justify-self: start; background: var(--jlw-primary); color: #fff; border: none;
  border-radius: var(--jlw-radius-sm); padding: 12px 28px; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.jlw-fe-submit:hover { background: var(--jlw-primary-dark); }
.jlw-fe-submit:disabled { opacity: .6; cursor: default; }
.jlw-fe-msg { grid-column: 1 / -1; font-weight: 600; margin: 0; }

/* ══ BOOKING CALENDAR ═══════════════════════════════════════════════════════ */
.jlw-slots { display: flex; flex-direction: column; gap: 8px; }
.jlw-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--jlw-border); border-radius: var(--jlw-radius-sm); background: #fff;
}
.jlw-slot--full { opacity: .6; }
.jlw-slot__info { display: flex; gap: 12px; align-items: baseline; }
.jlw-slot__date { font-weight: 700; font-size: .9rem; }
.jlw-slot__time { color: var(--jlw-text-muted); font-size: .85rem; }
.jlw-slot__book {
  background: var(--jlw-primary); color: #fff; border: none; border-radius: var(--jlw-radius-sm);
  padding: 6px 16px; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.jlw-slot__book:hover { background: var(--jlw-primary-dark); }
.jlw-slot__book:disabled { opacity: .6; cursor: default; }
.jlw-slot__status { font-size: .8rem; color: var(--jlw-text-muted); font-weight: 600; }
.jlw-booking-msg { margin-top: 10px; font-weight: 600; font-size: .9rem; }

/* ══ DASHBOARD ══════════════════════════════════════════════════════════════ */
.jlw-dashboard { max-width: 900px; font-family: var(--jlw-font); }
.jlw-dash-section { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--jlw-border); }
.jlw-dash-section h3 { margin-bottom: 12px; }
.jlw-dash-empty { color: var(--jlw-text-muted); font-size: .9rem; }
.jlw-dash-browse-links a { color: var(--jlw-primary); font-weight: 600; text-decoration: none; }
.jlw-dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jlw-dash-list li { padding: 10px 14px; background: #f9fafb; border-radius: var(--jlw-radius-sm); border: 1px solid var(--jlw-border); font-size: .9rem; }
.jlw-dash-list a { color: var(--jlw-primary); margin: 0 4px; }
.jlw-dash-status {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; margin-right: 6px; background: #e5e7eb; color: #4b5563;
}
.jlw-dash-status--publish, .jlw-dash-status--confirmed { background: #dcfce7; color: #16a34a; }
.jlw-dash-status--pending, .jlw-dash-status--requested { background: #fef3c7; color: #b45309; }
.jlw-dash-status--declined, .jlw-dash-status--cancelled { background: #fee2e2; color: #dc2626; }

.jlw-avail-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.jlw-avail-table th { text-align: left; font-size: .8rem; color: var(--jlw-text-muted); padding: 6px 8px; }
.jlw-avail-table td { padding: 4px 8px; }
.jlw-avail-table input { padding: 6px 8px; border: 1px solid var(--jlw-border); border-radius: 4px; }
.jlw-avail-remove { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 1rem; }
.jlw-booking-action {
  background: #fff; border: 1px solid var(--jlw-border); border-radius: 4px; padding: 4px 10px;
  font-size: .78rem; cursor: pointer; margin-left: 6px;
}

/* ══ RESPONSIVE ═════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .jlw-hero { margin-top: 0; min-height: 380px; }
  .jlw-hero__name { font-size: 1.8rem; }
  .jlw-hero__content { padding: 32px 20px; }
  .jlw-hero__avatar-wrap { width: 90px; height: 90px; }
  .jlw-action-bar { flex-direction: column; align-items: stretch; }
  .jlw-action-btn { justify-content: center; }
  .jlw-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 480px) {
  .jlw-hero { margin-top: -40px; padding-top: 40px; min-height: 320px; }
  .jlw-hero__name { font-size: 1.5rem; }
}


/* ══════════════════════════════════
   TRAINING TEAM
══════════════════════════════════ */
.jlw-single .jlw-team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.jlw-single .jlw-team-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--jlw-white); border: 1px solid rgba(74,104,52,.14); border-radius: 16px;
  box-shadow: var(--jlw-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.jlw-single .jlw-team-card:hover { transform: translateY(-3px); box-shadow: var(--jlw-shadow-hover); }
.jlw-single .jlw-team-card__media {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--jlw-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.jlw-single .jlw-team-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block;
  margin: 0; border-radius: 0;
}
.jlw-single .jlw-team-card__initials { font-size: 2.4rem; font-weight: 700; color: var(--jlw-primary); letter-spacing: .04em; }
.jlw-single .jlw-team-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.jlw-single .jlw-team-card__name { margin: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 700; color: var(--jlw-text); }
.jlw-single .jlw-team-card__role {
  margin: -4px 0 2px; font-size: .78rem; font-weight: 600; line-height: 1.45; letter-spacing: .02em;
  color: var(--jlw-primary);
}
.jlw-single .jlw-team-card__bio { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--jlw-text-muted); }
.jlw-single .jlw-team-card__link {
  margin-top: auto; padding-top: 4px; font-size: .88rem; font-weight: 600;
  color: var(--jlw-primary); text-decoration: none;
}
.jlw-single .jlw-team-card__link:hover { color: var(--jlw-primary-dark); }

/* ══════════════════════════════════
   CERTIFICATION PATHWAY
══════════════════════════════════ */
.jlw-single .jlw-pathway { list-style: none; margin: 0; padding: 0; }
.jlw-single .jlw-pathway__step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  margin: 0; padding: 0 0 20px;
}
.jlw-single .jlw-pathway__step:last-child { padding-bottom: 0; }
.jlw-single .jlw-pathway__step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
  background: linear-gradient(var(--jlw-primary), rgba(74,104,52,.2));
}
.jlw-single .jlw-pathway__step:last-child::before { display: none; }
.jlw-single .jlw-pathway__marker {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--jlw-primary);
  background: var(--jlw-white); border: 2px solid var(--jlw-primary);
}
.jlw-single .jlw-pathway__step.is-final .jlw-pathway__marker { color: var(--jlw-primary-dark); border-color: var(--jlw-primary-dark); }
.jlw-single .jlw-pathway__step.is-current .jlw-pathway__marker {
  color: var(--jlw-white); background: var(--jlw-primary); border-color: var(--jlw-primary);
  box-shadow: 0 0 0 6px rgba(74,104,52,.15);
}
.jlw-single .jlw-pathway__card {
  padding: 18px 20px; border-radius: 14px;
  background: var(--jlw-white); border: 1px solid rgba(74,104,52,.14); box-shadow: var(--jlw-shadow);
}
.jlw-single .jlw-pathway__step.is-current .jlw-pathway__card {
  border-color: var(--jlw-primary); background: linear-gradient(180deg, #f5f8f2 0%, var(--jlw-white) 100%);
}
.jlw-single .jlw-pathway__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.jlw-single .jlw-pathway__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jlw-text-muted);
}
.jlw-single .jlw-pathway__current {
  padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  color: var(--jlw-white); background: var(--jlw-primary);
}
.jlw-single .jlw-pathway__title { margin: 0 0 6px; font-size: 1.08rem; line-height: 1.35; font-weight: 700; color: var(--jlw-text); }
.jlw-single .jlw-pathway__meta { margin: 0 0 10px; font-size: .82rem; font-weight: 600; color: var(--jlw-primary); }
.jlw-single .jlw-pathway__desc { margin: 0; font-size: .93rem; line-height: 1.7; color: #4b5563; }
.jlw-single .jlw-pathway__outcome {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px;
  font-size: .85rem; font-weight: 600; color: var(--jlw-primary-dark); background: #fbf3ea;
}
@media (max-width: 480px) {
  .jlw-single .jlw-pathway__step { grid-template-columns: 34px 1fr; gap: 12px; }
  .jlw-single .jlw-pathway__marker { width: 34px; height: 34px; font-size: .9rem; }
  .jlw-single .jlw-pathway__step::before { left: 16px; top: 34px; }
  .jlw-single .jlw-pathway__card { padding: 14px 16px; }
}


/* ══════════════════════════════════
   ABOUT THE VENUE (sidebar)
══════════════════════════════════ */
.jlw-single .jlw-sidebar--static { position: static; }
.jlw-single .jlw-venue-card__name { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--jlw-text); line-height: 1.35; }
.jlw-single .jlw-venue-card__address {
  display: flex; gap: 6px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--jlw-primary-light);
  font-size: .85rem; line-height: 1.5; color: var(--jlw-primary); font-weight: 600;
}
.jlw-single .jlw-venue-card__desc { font-size: .9rem; line-height: 1.7; color: #4b5563; }
.jlw-single .jlw-venue-card__desc p { margin: 0 0 8px; }
.jlw-single .jlw-venue-card__desc p:last-child { margin-bottom: 0; }
.jlw-single .jlw-venue-card__desc .jlw-venue-card__subhead {
  margin: 16px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--jlw-text);
}
.jlw-single .jlw-venue-map .jlw-single-map { height: 240px; }
.jlw-single .jlw-venue-map .jlw-map-actions { margin-top: 6px; }


/* ══════════════════════════════════
   WHAT'S INCLUDED + TUITION (sidebar)
══════════════════════════════════ */
.jlw-single .jlw-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jlw-single .jlw-checklist li {
  position: relative; margin: 0; padding-left: 28px; font-size: .88rem; line-height: 1.5; color: var(--jlw-text);
}
.jlw-single .jlw-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--jlw-primary); background: var(--jlw-primary-light);
}
.jlw-single .jlw-price-list { margin: 0 0 14px; }
.jlw-single .jlw-price-list__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--jlw-primary-light);
}
.jlw-single .jlw-price-list__row:first-child { padding-top: 0; }
.jlw-single .jlw-price-list dt { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--jlw-text); }
.jlw-single .jlw-price-list dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--jlw-primary); white-space: nowrap; }
.jlw-single .jlw-tuition-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jlw-single .jlw-tuition-notes li { margin: 0; font-size: .8rem; line-height: 1.55; color: var(--jlw-text-muted); }


/* ══════════════════════════════════
   MIGRATED CONTENT: galleries, buttons, links, enroll card
══════════════════════════════════ */
.jlw-single--immersion .jlw-bio-text { white-space: normal; }
.jlw-single--immersion .jlw-bio-text h3 { margin: 28px 0 12px; font-size: 1.15rem; }
.jlw-single--immersion .jlw-bio-text h4 { margin: 20px 0 8px; font-size: 1rem; }
.jlw-single--immersion .jlw-bio-text ul { margin: 0 0 1em 1.2em; }
.jlw-single--immersion .jlw-bio-text del { opacity: .6; }
.jlw-single .jlw-content-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0 20px;
}
.jlw-single .jlw-content-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin: 0; display: block; }
.jlw-single .jlw-content-btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--jlw-white); background: var(--jlw-primary); text-decoration: none;
}
.jlw-single .jlw-content-btn:hover { background: var(--jlw-primary-dark); color: var(--jlw-white); }
.jlw-single .jlw-pathway__link { margin: 10px 0 0; font-size: .88rem; font-weight: 600; }
.jlw-single .jlw-pathway__link a { color: var(--jlw-primary); text-decoration: none; }
.jlw-single .jlw-pathway__link a:hover { color: var(--jlw-primary-dark); }
.jlw-single .jlw-venue-card__web { margin: -6px 0 14px; font-size: .85rem; font-weight: 600; }
.jlw-single .jlw-venue-card__web a { color: var(--jlw-primary); text-decoration: none; }
.jlw-single .jlw-enroll-card .jlw-booking-btn { margin: 0; }
.jlw-single .jlw-enroll-card__note { margin-top: 14px; font-size: .82rem; line-height: 1.6; color: var(--jlw-text-muted); }
.jlw-single .jlw-enroll-card__note p { margin: 0 0 6px; }
.jlw-single .jlw-enroll-card__note a { color: var(--jlw-primary); font-weight: 600; }


/* ══════════════════════════════════
   EXPIRED PROGRAMS
══════════════════════════════════ */
.jlw-single .jlw-expired-card { background: #f6f7f8; border-color: #e5e7eb; }
.jlw-single .jlw-expired-card .jlw-info-card__title { margin-bottom: 6px; color: #4b5563; }
.jlw-single .jlw-expired-card__text { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--jlw-text-muted); }
.jlw-single .jlw-stat-chip--expired { background: rgba(255,255,255,.92); color: #374151; border-color: rgba(255,255,255,.92); font-weight: 600; }


/* Trainer cards link to the guide's profile */
.jlw-single .jlw-team-card__media-link { display: block; }
.jlw-single .jlw-team-card__media-link img { transition: transform .3s ease; }
.jlw-single .jlw-team-card:hover .jlw-team-card__media-link img { transform: scale(1.03); }
.jlw-single .jlw-team-card__name a { color: inherit; text-decoration: none; }
.jlw-single .jlw-team-card__name a:hover { color: var(--jlw-primary); }
