/* MailMe brand restyling for Hi.Events event pages.
   Layered on top of /assets/index-*.css.
   Iterate via /docker/hi-events/mlf-overrides.css (volume-mounted, no rebuild needed).
*/

/* ---------- 1. Hide Hi.Events branding ---------- */
[class*="poweredBy"],
[class*="_poweredBy"],
[class*="PoweredBy"],
[class*="powered-by"] { display: none !important; }
a[href*="hi.events"] { display: none !important; }

/* When the WhiteCard custom hero is injected, hide the native hero/header/meta
   (the new hero contains all that info in a better layout). */
body[data-page-enhanced="true"] [class*="_heroSection_"],
body[data-page-enhanced="true"] [class*="_eventHeader_"],
body[data-page-enhanced="true"] [class*="_eventMeta_"] {
  display: none !important;
}

/* Generic hide utility — used by JS to mark elements that should be hidden
   (description's H2, lede paragraph, sections we replaced, etc.) */
.mlf-hidden { display: none !important; }

html { scroll-behavior: smooth; }

/* Wider page on desktop — Hi.Events default wrapper is 920px max which is too
   narrow for our 2-column hero. Just bump max-width; the native rule already has
   margin: 0 auto so it stays centered. */
[class*="_wrapper_"] {
  max-width: 1180px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* ---------- 2. MailMe palette ----------
   Warm earth tones pulled from MailMe brand assets:
   - bg:        #F2EFEC (warm cream)
   - card:      #FFFFFF
   - border:    #EDE5D8 (cream border)
   - text:      #382D26 (warm brown-black)
   - text2:     #5C433A (warm gray)
   - accent:    #A15533 (terracotta)
   - accent2:   #A37B45 (warm tan)
   - accent-bg: #F4ECDD (cream-tan tint)
*/

/* ---------- 3. Background ---------- */
[class*="_background_"] {
  background: linear-gradient(180deg, #F2EFEC 0%, #E8E2D8 100%) !important;
}
[class*="_backgroundOverlay_"] {
  background: transparent !important;
}

/* ---------- 4. Main card ---------- */
[class*="_mainCard_"] {
  background: #FFFFFF !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 32px rgba(56, 45, 38, 0.08), 0 2px 8px rgba(56, 45, 38, 0.04) !important;
  overflow: hidden !important;
}

/* ---------- 5. Hero ---------- */
[class*="_coverImage_"] {
  filter: saturate(1.05);
}
[class*="_heroGradient_"] {
  background: linear-gradient(180deg, transparent 0%, rgba(27, 23, 26, 0.55) 100%) !important;
}

/* ---------- 6. Status badges (top-right of hero) ---------- */
[class*="_statusBadge_"] {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #382D26 !important;
  border: 1px solid rgba(237, 229, 216, 0.8) !important;
  font-weight: 600 !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(8px);
}

/* ---------- 7. Event title ---------- */
[class*="_eventTitle_"] {
  color: #382D26 !important;
  font-weight: 800 !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* ---------- 8. Organizer pill (under title) ---------- */
[class*="_organizerPill_"] {
  background: #F4ECDD !important;
  border: 1px solid #EDE5D8 !important;
  color: #382D26 !important;
  border-radius: 999px !important;
}
[class*="_organizerPillName_"] {
  color: #382D26 !important;
  font-weight: 600 !important;
}

/* ---------- 9. Action buttons (share, etc.) ---------- */
[class*="_actionButton_"] {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #382D26 !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 12px !important;
}
[class*="_actionButton_"]:hover {
  background: #F4ECDD !important;
  border-color: #D0C4AF !important;
}

/* ---------- 10. Meta items (date, location) ---------- */
[class*="_metaIconBox_"] {
  background: #F4ECDD !important;
  color: #A15533 !important;
  border-radius: 12px !important;
  border: 1px solid #EDE5D8 !important;
}
[class*="_metaPrimary_"] {
  color: #382D26 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}
[class*="_metaSecondary_"] {
  color: #5C433A !important;
}
[class*="_metaLink_"] {
  color: #A15533 !important;
  font-weight: 500 !important;
}

/* Add-to-calendar button (next to date) */
[class*="_addToCalendarButton_"] {
  color: #A15533 !important;
  background: transparent !important;
  border: 1px solid #D0C4AF !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
}
[class*="_addToCalendarButton_"]:hover {
  background: #F4ECDD !important;
  color: #8B4527 !important;
}

/* Directions link */
[class*="_directionsLink_"] {
  color: #A15533 !important;
  font-weight: 500 !important;
}

/* ---------- 11. Section titles ("About", "Tickets", "Location") ---------- */
[class*="_sectionTitle_"] {
  color: #382D26 !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  letter-spacing: -0.015em !important;
}
[class*="_sectionHeader_"] {
  border-bottom: 1px solid #EDE5D8 !important;
  padding-bottom: 12px !important;
  margin-bottom: 24px !important;
}

/* ---------- 12. Description body ---------- */
[class*="_description_"] {
  color: #44403c !important;
  font-size: 1.04rem !important;
  line-height: 1.7 !important;
}
[class*="_description_"] h2 {
  color: #382D26 !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-top: 1.6em !important;
  margin-bottom: 0.4em !important;
  letter-spacing: -0.015em !important;
}
[class*="_description_"] h3 {
  color: #382D26 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-top: 1.4em !important;
  margin-bottom: 0.4em !important;
}
[class*="_description_"] strong {
  color: #1B171A !important;
  font-weight: 700 !important;
}
[class*="_description_"] a {
  color: #A15533 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  text-decoration-thickness: 1.5px !important;
}
[class*="_description_"] a:hover {
  color: #8B4527 !important;
}
[class*="_description_"] blockquote {
  background: #FFF8EC !important;
  border-left: 4px solid #A15533 !important;
  padding: 16px 20px !important;
  margin: 1.5em 0 !important;
  border-radius: 0 8px 8px 0 !important;
  color: #382D26 !important;
}
[class*="_description_"] ul,
[class*="_description_"] ol {
  padding-left: 1.4em !important;
}
[class*="_description_"] li {
  margin-bottom: 0.4em !important;
}

/* ---------- 13. Tickets section ---------- */
.hi-product-category-rows {
  gap: 12px !important;
}
.hi-product-row {
  background: #FAFAF7 !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  transition: border-color 0.2s ease;
}
.hi-product-row:hover {
  border-color: #D0C4AF !important;
}
.hi-product-title {
  color: #382D26 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}
.hi-product-description-row {
  color: #5C433A !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}
.hi-price-tier-price-amount,
.hi-price-tier-price {
  color: #1B171A !important;
  font-weight: 700 !important;
}
.hi-price-tier-label {
  color: #5C433A !important;
}

/* Quantity selector */
.hi-product-quantity-selector .mantine-Input-input,
.hi-product-quantity-selector [class*="_input_"] {
  background: #FFFFFF !important;
  border: 1px solid #D0C4AF !important;
  color: #382D26 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
.hi-product-quantity-selector [class*="_control_"] {
  color: #A15533 !important;
}

/* Continue / Buy button */
.hi-continue-button {
  background: #A15533 !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 14px 24px !important;
  letter-spacing: 0.01em !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(161, 85, 51, 0.28) !important;
  color: #FFFFFF !important;
}
.hi-continue-button:hover {
  background: #8B4527 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(161, 85, 51, 0.38) !important;
}
.hi-continue-button:active {
  transform: translateY(0) !important;
}

/* Promo code link */
.hi-have-a-promo-code-link {
  color: #A15533 !important;
  font-weight: 500 !important;
  text-underline-offset: 2px !important;
}

/* ---------- 14. Map ---------- */
[class*="_mapContainer_"] {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #EDE5D8 !important;
}
[class*="_mapOverlay_"] {
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
[class*="_mapOverlayLabel_"] {
  color: #382D26 !important;
  font-weight: 600 !important;
}

/* Venue text */
[class*="_venueName_"] {
  color: #382D26 !important;
  font-weight: 700 !important;
}
[class*="_venueAddress_"] {
  color: #5C433A !important;
}

/* ---------- 15. Organizer card (bottom) ---------- */
[class*="_organizerCard_"] {
  background: #F2EFEC !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 14px !important;
  padding: 28px !important;
}
[class*="_organizerHeader_"] {
  align-items: center !important;
}
[class*="_organizerName_"] {
  color: #382D26 !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}
[class*="_organizerBio_"] {
  color: #5C433A !important;
  line-height: 1.6 !important;
}
[class*="_contactButton_"] {
  background: #A15533 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
}
[class*="_contactButton_"]:hover {
  background: #8B4527 !important;
}
[class*="_socialLink_"] {
  color: #A15533 !important;
}

/* ---------- 16. Footer (links above the powered-by) ---------- */
[class*="_footerSection_"] {
  border-top: 1px solid #EDE5D8 !important;
  padding-top: 20px !important;
}
[class*="_footerLink_"] {
  color: #5C433A !important;
}
[class*="_footerLink_"]:hover {
  color: #A15533 !important;
}

/* ---------- 17. Form inputs (general) ---------- */
.mantine-Input-input {
  border-color: #D0C4AF !important;
  color: #382D26 !important;
}
.mantine-Input-input:focus {
  border-color: #A15533 !important;
}

/* ============================================================
   DIRECTION C — WhiteCard page restyle
   Sections injected by mlf-enhance.js for events whose title
   matches /white\s*card/i. Components below.
   ============================================================ */

/* ---------- D1. Custom split hero ---------- */
.mlf-custom-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  background: #FFFFFF;
  border-bottom: 1px solid #EDE5D8;
  align-items: center;
}
@media (max-width: 820px) {
  .mlf-custom-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}
.mlf-hero-image {
  aspect-ratio: 1/1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #D0C4AF;
  box-shadow: 0 8px 28px rgba(56, 45, 38, 0.12);
}
.mlf-hero-content {
  display: flex;
  flex-direction: column;
}
.mlf-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #A15533;
  margin-bottom: 14px;
}
.mlf-hero-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #382D26;
  margin: 0 0 14px 0;
}
.mlf-hero-subtitle {
  font-size: 16px;
  color: #5C433A;
  margin: 0 0 22px 0;
  line-height: 1.55;
}
/* Inline price line: "A$110 · 4 hours · 20 max" */
.mlf-hero-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mlf-hero-price {
  font-size: 32px;
  font-weight: 800;
  color: #382D26;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mlf-hero-price-meta {
  font-size: 14px;
  color: #5C433A;
  font-weight: 500;
}

/* Upcoming sessions list — clickable cards, jump to that session in modal */
.mlf-hero-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.mlf-hero-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.mlf-hero-session:hover:not(:disabled) {
  border-color: #A15533;
  background: #F4ECDD;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(161, 85, 51, 0.12);
}
.mlf-hero-session-date {
  font-weight: 700;
  color: #382D26;
  font-size: 14px;
}
.mlf-hero-session-spots {
  color: #5C433A;
  font-size: 13px;
  font-weight: 500;
}
.mlf-hero-session--soldout {
  opacity: 0.55;
  cursor: default;
}
.mlf-hero-session--soldout .mlf-hero-session-date { text-decoration: line-through; }
.mlf-hero-sessions-loading,
.mlf-hero-sessions-empty,
.mlf-hero-sessions-error {
  color: #5C433A;
  font-size: 13px;
  font-style: italic;
  padding: 8px 0;
}
.mlf-hero-cta {
  display: inline-block;
  background: #A15533;
  color: #FFFFFF !important;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 4px 16px rgba(161, 85, 51, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.mlf-hero-cta:hover {
  background: #8B4527;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(161, 85, 51, 0.4);
}
.mlf-hero-footnote {
  font-size: 12.5px;
  color: #5C433A;
  margin-top: 14px;
  text-align: center;
}

/* ---------- D2. Stats strip ---------- */
.mlf-stats-strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  background: #F4ECDD;
  padding: 18px 40px;
  border-bottom: 1px solid #EDE5D8;
}
.mlf-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #382D26;
  font-size: 13.5px;
  font-weight: 500;
}
.mlf-check {
  color: #A15533;
  font-weight: 800;
  font-size: 14px;
}

/* ---------- D3. Instructor block ---------- */
.mlf-instructor {
  background: #F4ECDD;
  border: 1px solid #EDE5D8;
  border-radius: 14px;
  padding: 28px;
  margin: 32px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
/* When the instructor is moved INSIDE the description body (after swap), the
   description section already provides horizontal padding. Reset our margin. */
[class*="_description_"] .mlf-instructor {
  margin: 32px 0;
}
@media (max-width: 820px) {
  [class*="_description_"] .mlf-instructor { margin: 20px 0; }
}
@media (max-width: 820px) {
  .mlf-instructor {
    flex-direction: column;
    margin: 20px 24px;
    padding: 20px;
    align-items: center;
    text-align: center;
  }
}
.mlf-instructor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C4995E 0%, #A15533 100%);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(161, 85, 51, 0.25);
}
.mlf-instructor-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
}
.mlf-instructor-content {
  flex: 1;
}
.mlf-instructor-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #A15533;
  margin-bottom: 8px;
}
.mlf-instructor-name {
  font-weight: 700;
  font-size: 17px;
  color: #382D26;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.mlf-instructor-bio {
  color: #44403c;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- D3b. Course description blurb (below instructor) ---------- */
.mlf-course-blurb {
  margin: 24px 40px;
  padding: 0 4px;
}
@media (max-width: 820px) {
  .mlf-course-blurb { margin: 20px 16px; padding: 0; }
}
.mlf-course-blurb-eyebrow {
  font-size: 22px;
  font-weight: 700;
  color: #382D26;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mlf-course-blurb p {
  color: #382D26;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.mlf-course-blurb p strong {
  color: #1B171A;
  font-weight: 700;
}

/* ---------- D4. Checklist card (transformed "À apporter") ---------- */
.mlf-checklist-card {
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(56, 45, 38, 0.04);
}
/* When the checklist is at top-level (sibling of mainCard's children, after the swap),
   it needs horizontal margin so it doesn't touch the white card's edges. */
[class*="_mainCard_"] > .mlf-checklist-card {
  margin: 24px 40px;
}
@media (max-width: 820px) {
  .mlf-checklist-card { margin: 20px 0; padding: 20px 22px; }
  [class*="_mainCard_"] > .mlf-checklist-card { margin: 20px 16px; }
}
.mlf-checklist-title {
  font-size: 22px;
  font-weight: 700;
  color: #382D26;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mlf-checklist-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.mlf-checklist-card li {
  margin-bottom: 12px !important;
  color: #382D26 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  padding-left: 30px !important;
  position: relative !important;
}
.mlf-checklist-card li:last-of-type { margin-bottom: 0 !important; }
.mlf-checklist-card li > p { margin: 0 !important; }

/* Custom checklist bullets — replace ✅ and ❌ emojis */
.mlf-checklist-card li.mlf-li-yes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #A15533;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 L4.8 8.5 L9.5 3.8' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
.mlf-checklist-card li.mlf-li-no::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border: 1.5px solid #D0C4AF;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 3 L9 9 M9 3 L3 9' stroke='%235C433A' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  box-sizing: border-box;
}

.mlf-checklist-card blockquote {
  background: #FFF1E5 !important;
  border-left: 4px solid #A15533 !important;
  margin: 18px 0 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 0 8px 8px 0 !important;
}
.mlf-checklist-card blockquote p { margin: 0 !important; color: #382D26 !important; }

/* ---------- D5. Timeline (transformed "Au programme" ul) ---------- */
.mlf-timeline {
  position: relative;
  padding-left: 40px;
  margin: 24px 0;
}
.mlf-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #D0C4AF;
}
.mlf-timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.mlf-timeline-item:last-child { padding-bottom: 0; }
.mlf-timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #A15533;
}
.mlf-timeline-time {
  font-weight: 800;
  color: #382D26;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.mlf-timeline-text {
  color: #5C433A;
  font-size: 14.5px;
  line-height: 1.55;
}
.mlf-timeline-text p { margin: 0 !important; }
.mlf-timeline-text strong { color: #382D26; }

/* ---------- D6b. Booking widget — give it a soft accent so it stands out as the conversion point ---------- */
[class*="_section_"][class*="_ticketsSection_"] {
  background: #FFFFFF !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 24px 40px !important;
  box-shadow: 0 4px 20px rgba(56, 45, 38, 0.05) !important;
}
@media (max-width: 820px) {
  [class*="_section_"][class*="_ticketsSection_"] {
    margin: 20px 16px !important;
    padding: 20px !important;
  }
}

/* Native section margin reset for tickets/location sections so they line up with our injected blocks */
[class*="_mainCard_"] > [class*="_section_"]:not([class*="_ticketsSection_"]) {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
@media (max-width: 820px) {
  [class*="_mainCard_"] > [class*="_section_"]:not([class*="_ticketsSection_"]) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Organizer card hidden — info is already covered by the RTO footer */
body[data-page-enhanced="true"] [class*="_organizerCard_"] {
  display: none !important;
}

/* ---------- D6c. Custom location card (replaces native location section body) ---------- */
.mlf-location-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(56, 45, 38, 0.05);
  margin-top: 8px;
  min-height: 360px;
}
@media (max-width: 820px) {
  .mlf-location-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.mlf-location-info {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}
.mlf-location-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #A15533;
  margin-bottom: 10px;
}
.mlf-location-name {
  font-size: 24px;
  font-weight: 800;
  color: #382D26 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.mlf-location-address {
  font-size: 15px;
  color: #5C433A;
  margin: 0 0 22px 0;
  line-height: 1.5;
}
.mlf-location-transport {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mlf-location-transport li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #382D26;
  line-height: 1.45;
  margin: 0 !important;
}
.mlf-location-transport-icon {
  font-size: 17px;
  line-height: 1.2;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.mlf-location-transport strong {
  color: #382D26;
  font-weight: 700;
}
.mlf-location-directions {
  display: inline-flex;
  align-self: flex-start;
  background: #A15533;
  color: #FFFFFF !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(161, 85, 51, 0.25);
  margin-top: auto;
  letter-spacing: 0.01em;
}
.mlf-location-directions:hover {
  background: #8B4527;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(161, 85, 51, 0.35);
}

.mlf-location-map {
  background: #F4ECDD;
  position: relative;
  min-height: 320px;
}
.mlf-location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  inset: 0;
}
@media (max-width: 820px) {
  .mlf-location-map { min-height: 240px; position: relative; }
  .mlf-location-map iframe { position: absolute; }
  .mlf-location-info { padding: 24px; }
  .mlf-location-name { font-size: 22px; }
}

/* ---------- D6. RTO / legal footer ---------- */
.mlf-rto-footer {
  background: #FAFAF7;
  border-top: 1px solid #EDE5D8;
  padding: 28px 40px;
  text-align: center;
}
.mlf-rto-row {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mlf-rto-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mlf-rto-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C433A;
  font-weight: 600;
}
.mlf-rto-value {
  font-size: 14px;
  font-weight: 700;
  color: #382D26;
}
.mlf-rto-fineprint {
  font-size: 12px;
  color: #5C433A;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.mlf-rto-fineprint a {
  color: #A15533;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- D7. Mobile breakpoint refinements ---------- */
@media (max-width: 820px) {
  .mlf-custom-hero {
    padding: 32px 20px;
    gap: 20px;
  }
  .mlf-hero-title {
    font-size: 26px;
  }
  .mlf-hero-subtitle {
    font-size: 15px;
  }
  .mlf-stats-strip {
    padding: 14px 20px;
    gap: 16px;
    font-size: 12px;
  }
  .mlf-stat {
    font-size: 12.5px;
  }
  .mlf-rto-footer {
    padding: 20px 20px;
  }
  .mlf-rto-row {
    gap: 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mlf-rto-row > div {
    align-items: center;
  }
}

/* ============================================================
   D8. BOOKING CALENDAR WIDGET — replaces native Hi.Events booking widget
   on WhiteCard pages. Calendar + time slots + tickets + buy → opens
   Hi.Events checkout in iframe modal.
   ============================================================ */

/* Hide the entire native tickets section on enhanced WhiteCard pages —
   booking is now in a modal triggered by CTAs. */
body[data-page-enhanced="true"] [class*="_ticketsSection_"] {
  display: none !important;
}

.wc-cal-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-cal-step {
  background: #FAFAF7;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.wc-cal-step[data-active="true"] {
  background: #FFFFFF;
  border-color: #D0C4AF;
  box-shadow: 0 2px 12px rgba(56, 45, 38, 0.05);
}

/* Header — clickable, shows step number, label, summary */
.wc-cal-step-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.wc-cal-step-header:hover { background: rgba(244, 236, 221, 0.5); }
.wc-cal-step[data-active="true"] .wc-cal-step-header { cursor: default; }
.wc-cal-step[data-active="true"] .wc-cal-step-header:hover { background: transparent; }

/* Disabled-state header (step not yet unlocked) */
.wc-cal-step:not([data-active="true"]):not(.wc-cal-step--unlocked) .wc-cal-step-header {
  cursor: not-allowed;
  opacity: 0.6;
}

.wc-cal-step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #EDE5D8;
  color: #5C433A;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-cal-step[data-active="true"] .wc-cal-step-number {
  background: #A15533;
  color: #FFFFFF;
  transform: scale(1.1);
}
.wc-cal-step-label {
  font-size: 14px;
  font-weight: 700;
  color: #382D26;
  letter-spacing: -0.01em;
}
.wc-cal-step-summary {
  font-size: 13px;
  color: #A15533;
  font-weight: 600;
  margin-left: auto;
}
.wc-cal-step[data-active="true"] .wc-cal-step-summary { display: none; }

.wc-cal-step-chevron {
  font-size: 18px;
  color: #5C433A;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  margin-left: 6px;
  display: inline-block;
  line-height: 1;
}
.wc-cal-step[data-active="true"] .wc-cal-step-chevron {
  transform: rotate(90deg);
  color: #A15533;
}

/* Body — uses the grid-template-rows trick to animate height: auto smoothly. */
.wc-cal-step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-cal-step[data-active="true"] .wc-cal-step-body {
  grid-template-rows: 1fr;
}
.wc-cal-step-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease 0.05s, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-cal-step[data-active="true"] .wc-cal-step-body-inner {
  padding: 0 16px 16px;
  opacity: 1;
  transform: translateY(0);
}

.wc-cal-placeholder {
  font-size: 13px;
  color: #5C433A;
  padding: 12px 0;
  text-align: center;
  font-style: italic;
}

/* --- Calendar grid --- */
.wc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wc-cal-month-label {
  font-size: 16px;
  font-weight: 700;
  color: #382D26;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}
.wc-cal-nav {
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #5C433A;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
}
.wc-cal-nav:hover { background: #F4ECDD; border-color: #D0C4AF; color: #A15533; }

.wc-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5C433A;
  font-weight: 600;
  text-align: center;
}

.wc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.wc-cal-day {
  height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #382D26;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  position: relative;
  padding: 0;
}
.wc-cal-day--other { color: #C9C0AF; }
.wc-cal-day--past { color: #C9C0AF; cursor: default; }
.wc-cal-day:disabled { cursor: default; opacity: 0.45; }
.wc-cal-day--today { font-weight: 700; }
.wc-cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #A15533;
}
.wc-cal-day--available {
  background: #F4ECDD;
  border-color: #E8D9BD;
  color: #382D26;
  font-weight: 700;
  opacity: 1;
}
.wc-cal-day--available:hover {
  background: #A15533;
  color: #FFFFFF;
  border-color: #A15533;
  transform: translateY(-1px);
}
.wc-cal-day--soldout {
  background: #FAFAF7;
  color: #B8AC9A;
  text-decoration: line-through;
}
.wc-cal-day--selected {
  background: #A15533 !important;
  color: #FFFFFF !important;
  border-color: #A15533 !important;
  box-shadow: 0 4px 12px rgba(161, 85, 51, 0.3);
}
.wc-cal-day--selected.wc-cal-day--today::after { background: #FFFFFF; }

.wc-cal-loading,
.wc-cal-empty {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #5C433A;
}

/* --- Time slots --- */
.wc-cal-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wc-cal-time-slot {
  background: #FFFFFF;
  border: 1px solid #D0C4AF;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #382D26;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.wc-cal-time-slot:hover {
  border-color: #A15533;
  background: #F4ECDD;
}
.wc-cal-time-slot--selected {
  background: #A15533;
  color: #FFFFFF;
  border-color: #A15533;
}
.wc-cal-time-slot--soldout {
  background: #FAFAF7;
  color: #B8AC9A;
  text-decoration: line-through;
  cursor: default;
}

/* --- Tickets --- */
.wc-cal-tickets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.wc-cal-ticket {
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wc-cal-ticket--soldout { opacity: 0.5; }
.wc-cal-ticket-title {
  font-weight: 700;
  color: #382D26;
  font-size: 14px;
  margin-bottom: 2px;
}
.wc-cal-ticket-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #5C433A;
}
.wc-cal-ticket-price { color: #1B171A; font-weight: 700; }
.wc-cal-ticket-avail { color: #5C433A; }

.wc-cal-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wc-cal-qty-btn {
  background: #F4ECDD;
  border: 1px solid #EDE5D8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #A15533;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.wc-cal-qty-btn:hover { background: #A15533; color: #FFFFFF; border-color: #A15533; }
.wc-cal-qty-input {
  width: 44px;
  height: 32px;
  text-align: center;
  border: 1px solid #D0C4AF;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #382D26;
  -moz-appearance: textfield;
}
.wc-cal-qty-input::-webkit-outer-spin-button,
.wc-cal-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Promo code field — sits between tickets and total summary in step 3 */
.wc-cal-promo {
  margin-bottom: 14px;
}
.wc-cal-promo-toggle {
  background: transparent;
  border: 0;
  color: #A15533;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.wc-cal-promo-toggle:hover { color: #8B4527; }
.wc-cal-promo-form {
  display: flex;
  gap: 8px;
}
.wc-cal-promo-input {
  flex: 1;
  height: 38px;
  border: 1px solid #D0C4AF;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #382D26;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #FFFFFF;
}
.wc-cal-promo-input:focus {
  outline: none;
  border-color: #A15533;
  box-shadow: 0 0 0 3px rgba(161, 85, 51, 0.12);
}
.wc-cal-promo-input:disabled {
  background: #FAFAF7;
  color: #5C433A;
  border-color: #EDE5D8;
}
.wc-cal-promo-apply {
  height: 38px;
  background: #382D26;
  border: 0;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.wc-cal-promo-apply:hover:not(:disabled) {
  background: #1B171A;
}
.wc-cal-promo-apply:disabled {
  background: #D0C4AF;
  cursor: default;
}
.wc-cal-promo-status {
  font-size: 12.5px;
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.wc-cal-promo-status--ok { color: #2D7A3E; }
.wc-cal-promo-status--err { color: #8B2929; }

.wc-cal-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #F4ECDD;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #382D26;
}
.wc-cal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.wc-cal-summary-subtotal,
.wc-cal-summary-discount {
  font-size: 13px;
}
.wc-cal-summary-subtotal { color: #5C433A; }
.wc-cal-summary-discount { color: #2D7A3E; }
.wc-cal-summary-total-row {
  font-size: 14px;
  padding-top: 6px;
  border-top: 1px solid #E8D9BD;
  margin-top: 2px;
}
/* When no breakdown (no promo applied), the total row is the only row —
   strip its top border + padding so it looks like the original simple row. */
.wc-cal-summary:not(:has([data-discount-row]:not([hidden]))) .wc-cal-summary-total-row {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.wc-cal-total { font-weight: 800; font-size: 17px; }

.wc-cal-buy-btn {
  width: 100%;
  background: #A15533;
  color: #FFFFFF;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(161, 85, 51, 0.28);
  transition: all 0.2s ease;
}
.wc-cal-buy-btn:hover:not(:disabled) {
  background: #8B4527;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(161, 85, 51, 0.38);
}
.wc-cal-buy-btn:disabled {
  background: #D0C4AF;
  cursor: not-allowed;
  box-shadow: none;
}

.wc-cal-buy-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FFE5E5;
  border: 1px solid #F5C6C6;
  border-radius: 8px;
  color: #8B2929;
  font-size: 13px;
}

/* --- Checkout modal --- */
.wc-cal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.wc-cal-modal--open {
  opacity: 1;
  pointer-events: auto;
}
.wc-cal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 26, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wc-cal-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  /* Stable height across all 3 accordion states — modal does NOT resize when
     a step expands/collapses. Sized to fit the calendar (the tallest step). */
  height: min(620px, 88vh);
  margin: 16px;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding-top: 44px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s ease, height 0.3s ease;
}
.wc-cal-modal--open .wc-cal-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Content area fills remaining vertical space, scrolls internally if needed */
.wc-cal-modal-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 20px;
  min-height: 0;
}
.wc-cal-modal-iframe[hidden] { display: none; }
.wc-cal-modal-iframe:not([hidden]) {
  flex: 1;
  border: 0;
  display: block;
  background: #FFFFFF;
}

/* When checkout iframe is showing, widen + heighten the dialog */
.wc-cal-modal-dialog:has(.wc-cal-modal-iframe:not([hidden])) {
  max-width: 720px;
  height: 92vh;
  max-height: 920px;
}
.wc-cal-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E6E6E6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #000;
  padding: 0;
  font-family: inherit;
}
.wc-cal-modal-close:hover { background: #FFFFFF; }
.wc-cal-modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #FFFFFF;
}

@media (max-width: 820px) {
  .wc-cal-step { padding: 16px; }
  .wc-cal-day { font-size: 13px; }
  .wc-cal-time-slot { padding: 10px 14px; }
  .wc-cal-modal-dialog { height: 96vh; margin: 8px; }
}

/* Smooth focus rings for accessibility */
.mlf-hero-cta:focus-visible,
.mlf-hero-meta-item:focus-visible,
.mlf-faq-question:focus-visible,
.mlf-section-summary:focus-visible {
  outline: 2px solid #A15533;
  outline-offset: 2px;
}

/* ---------- 19. FAQ accordion (existing, unchanged) ---------- */
.mlf-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.mlf-faq-item {
  background: #FAFAF7;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mlf-faq-item[open] {
  border-color: #D0C4AF;
  background: #FFFFFF;
}
.mlf-faq-question {
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: #382D26;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: background 0.15s ease;
}
.mlf-faq-question::-webkit-details-marker { display: none; }
.mlf-faq-question::marker { display: none; content: ''; }
.mlf-faq-question::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: #A15533;
  transition: transform 0.25s ease;
  line-height: 1;
}
.mlf-faq-item[open] .mlf-faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}
.mlf-faq-question:hover {
  background: #F4ECDD;
}
.mlf-faq-item[open] .mlf-faq-question:hover {
  background: #FAFAF7;
}
.mlf-faq-answer {
  padding: 0 20px 18px;
  color: #44403c;
  line-height: 1.65;
  font-size: 0.98rem;
}
.mlf-faq-answer p {
  margin: 0 !important;
}
.mlf-faq-answer p + p {
  margin-top: 0.6em !important;
}
.mlf-faq-answer a {
  color: #A15533 !important;
  text-decoration: underline !important;
}
