/* ==========================================================================
   Miti Miwiri – design layer on top of Cassiopeia
   Palette taken from the original site (leaf green, olive ink, ochre)
   and pushed towards a warm, natural "island & sustainability" feel.
   Mobile-first. No external requests: fonts are self-hosted.
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Brand palette */
  --mm-leaf: #6e9a0e;          /* original site green, slightly deepened */
  --mm-leaf-600: #557a08;
  --mm-leaf-100: #eef5dc;
  --mm-forest: #24361a;        /* mangrove green: footer, dark surfaces */
  --mm-forest-2: #2f4723;
  --mm-ink: #2e2d1e;           /* olive ink from original text colour */
  --mm-ink-soft: #5d5c47;
  --mm-ochre: #d39a2b;         /* sun & dhow sails: call-to-action */
  --mm-ochre-600: #ad7a17;
  --mm-sand: #f7f2e7;          /* coral-stone walls / beach */
  --mm-sand-2: #ede4d0;
  --mm-lagoon: #1d8584;        /* turquoise water accent */
  --mm-white: #fff;
  --mm-line: rgba(46, 45, 30, .14);

  /* Type */
  --mm-font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --mm-font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mm-step--1: clamp(.85rem, .82rem + .15vw, .94rem);
  --mm-step-0: clamp(1rem, .96rem + .2vw, 1.075rem);
  --mm-step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --mm-step-2: clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --mm-step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.8rem);
  --mm-step-4: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);

  /* Shape */
  --mm-radius: 14px;
  --mm-radius-lg: 22px;
  --mm-shadow: 0 1px 2px rgba(36, 54, 26, .06), 0 8px 24px rgba(36, 54, 26, .10);
  --mm-shadow-lg: 0 18px 50px rgba(36, 54, 26, .18);
  --mm-container: 1180px;
  --mm-gutter: clamp(1rem, 3.5vw, 2rem);
  --mm-header-h: 72px;

  /* Map Cassiopeia variables so core layouts (forms, alerts, pagination) follow the brand */
  --cassiopeia-color-primary: var(--mm-forest);
  --cassiopeia-color-link: var(--mm-leaf-600);
  --cassiopeia-color-hover: var(--mm-ochre-600);
  --cassiopeia-font-family-body: var(--mm-font-body);
  --cassiopeia-font-family-headings: var(--mm-font-head);
  --link-color: var(--mm-leaf-600);
  --body-bg: var(--mm-sand);
  --body-color: var(--mm-ink);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mm-header-h) + 16px); }
body.site {
  margin: 0; background: var(--mm-sand); color: var(--mm-ink);
  font-family: var(--mm-font-body); font-size: var(--mm-step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--mm-font-head); font-weight: 600; line-height: 1.15; color: var(--mm-forest); letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: var(--mm-step-4); }
h2 { font-size: var(--mm-step-3); }
h3 { font-size: var(--mm-step-2); }
h4 { font-size: var(--mm-step-1); }
p { margin: 0 0 1.1em; }
a { color: var(--mm-leaf-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--mm-ochre-600); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--mm-ochre); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mm-leaf-100); }

.mm-container { width: min(100% - 2 * var(--mm-gutter), var(--mm-container)); margin-inline: auto; }
.mm-skip { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--mm-forest); color: #fff; padding: .6rem 1rem; }
.mm-skip:focus { left: 1rem; top: 1rem; color: #fff; }
.mm-ico { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.mm-ico--lg { width: 1.6rem; height: 1.6rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.mm-btn, .btn-primary, .btn.btn-primary, button.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .78em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--mm-leaf); color: #fff; font-weight: 600; font-family: var(--mm-font-body);
  text-decoration: none; line-height: 1.1; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.mm-btn:hover, .btn-primary:hover, .mm-btn:focus-visible { background: var(--mm-leaf-600); color: #fff; transform: translateY(-1px); box-shadow: var(--mm-shadow); }
.mm-btn--accent { background: var(--mm-ochre); color: #1f1a0b; }
.mm-btn--accent:hover, .mm-btn--accent:focus-visible { background: var(--mm-ochre-600); color: #fff; }
.mm-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.mm-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: inherit; }
.mm-btn--light { background: #fff; color: var(--mm-forest); }
.mm-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.mm-link-arrow::after { content: "→"; transition: transform .2s; }
.mm-link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.mm-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 231, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--mm-line); transition: background-color .3s, box-shadow .3s, transform .3s; }
.mm-header--overlay { position: fixed; inset: 0 0 auto 0; background: linear-gradient(to bottom, rgba(10, 18, 6, .55), rgba(10, 18, 6, 0)); border-bottom-color: transparent; backdrop-filter: none; color: #fff; }
/* Home page: no line under the logo and menu (the gradient must not repeat into the bottom border) */
.mm-header--overlay:not(.is-scrolled) { border-bottom-width: 0; background-repeat: no-repeat; background-origin: border-box; }
.mm-header.is-scrolled { background: rgba(247, 242, 231, .97); color: var(--mm-ink); box-shadow: 0 4px 20px rgba(36, 54, 26, .12); backdrop-filter: saturate(1.4) blur(10px); border-bottom-color: var(--mm-line); }
/* Phone menu fix: a blur (backdrop-filter) on the header itself traps the fixed menu panel inside the header's
   120 px, so only the first item showed. The blur now sits on a background layer behind the header content. */
.mm-header, .mm-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
.mm-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.mm-header--overlay:not(.is-scrolled)::before { display: none; }
/* Phone menu fix: the shading behind the open menu was drawn above the menu panel (the panel lives inside the
   header, z-index 50), so every tap closed the menu. The shading now sits just under the header. */
.mm-nav-backdrop { z-index: 45; }
.mm-header:has(.mm-nav.is-open) { z-index: 70; }
body:has(.mm-nav.is-open) .mm-chat__fab, body:has(.mm-nav.is-open) .mm-chat__panel { visibility: hidden; }
.mm-topbar { font-size: var(--mm-step--1); border-bottom: 1px solid var(--mm-line); }
.mm-header--overlay:not(.is-scrolled) .mm-topbar { border-bottom-color: rgba(255, 255, 255, .18); }
.mm-header.is-scrolled .mm-topbar { display: none; }
.mm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.mm-topbar__contact { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; }
.mm-topbar__contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; opacity: .9; }
.mm-topbar__contact a:hover { opacity: 1; color: inherit; text-decoration: underline; }
@media (max-width: 640px) { .mm-topbar__contact a:last-child { display: none; } }

.mm-header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--mm-header-h); }
.mm-brand { display: block; flex: none; margin-right: auto; line-height: 0; }
.mm-brand img { width: clamp(170px, 30vw, 230px); height: auto; }
.mm-brand__light { display: none; }
.mm-header--overlay:not(.is-scrolled) .mm-brand__dark { display: none; }
.mm-header--overlay:not(.is-scrolled) .mm-brand__light { display: block; }
.mm-header__book { padding: .62em 1.15em; font-size: .95rem; }

/* Mobile navigation drawer */
.mm-burger { order: 3; display: inline-flex; background: transparent; border: 0; color: inherit; padding: .4rem; border-radius: 8px; cursor: pointer; }
/* The closed mobile menu sits off-screen: never let it widen the page */
html, body { overflow-x: clip; }
/* Grid and flex children may shrink below their content width (long words, wide forms) */
.mm-page__component, .mm-page__main, .mm-main > * { min-width: 0; }
.mm-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); background: var(--mm-forest); color: #fff; padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); overflow-y: auto; z-index: 60; box-shadow: var(--mm-shadow-lg); visibility: hidden; }
.mm-nav.is-open { transform: none; visibility: visible; }
.mm-nav-backdrop { position: fixed; inset: 0; background: rgba(10, 18, 6, .5); z-index: 55; opacity: 0; transition: opacity .3s; pointer-events: none; }
.mm-nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mm-burger[aria-expanded="true"] { position: relative; z-index: 70; color: #fff; }

.mm-menu, .mm-menu ul { list-style: none; margin: 0; padding: 0; }
.mm-menu > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mm-menu a, .mm-menu .mm-menu__heading { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .85rem 0; color: #fff; text-decoration: none; font-weight: 600; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.mm-menu a:hover, .mm-menu .current > a { color: var(--mm-ochre); }
.mm-menu__sub { display: none; padding: 0 0 .8rem .8rem !important; }
.mm-menu__sub a { font-weight: 400; padding: .5rem 0; opacity: .92; }
.mm-menu li.is-open > .mm-menu__sub { display: block; }
.mm-menu__chev { transition: transform .25s; }
.mm-menu li.is-open > .mm-menu__heading .mm-menu__chev { transform: rotate(180deg); }

@media (min-width: 1080px) {
  .mm-burger { display: none; }
  .mm-nav { position: static; transform: none; visibility: visible; width: auto; background: none; color: inherit; padding: 0; overflow: visible; box-shadow: none; }
  .mm-menu { display: flex; gap: .2rem; align-items: center; }
  .mm-menu > li { border: 0; position: relative; }
  .mm-menu > li > a, .mm-menu > li > .mm-menu__heading { color: inherit; padding: .55rem .75rem; border-radius: 999px; font-size: .97rem; width: auto; gap: .3rem; }
  .mm-menu > li > a:hover, .mm-menu > li > .mm-menu__heading:hover, .mm-menu > li.active > a, .mm-menu > li.active > .mm-menu__heading { color: inherit; background: rgba(110, 154, 14, .14); }
  .mm-header--overlay:not(.is-scrolled) .mm-menu > li > a:hover, .mm-header--overlay:not(.is-scrolled) .mm-menu > li > .mm-menu__heading:hover { background: rgba(255, 255, 255, .16); }
  .mm-menu__sub { display: block; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; color: var(--mm-ink); border-radius: var(--mm-radius); box-shadow: var(--mm-shadow-lg); padding: .5rem !important; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .mm-menu__sub::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
  .mm-menu > li:hover > .mm-menu__sub, .mm-menu > li:focus-within > .mm-menu__sub, .mm-menu > li.is-open > .mm-menu__sub { opacity: 1; visibility: visible; transform: none; }
  .mm-menu__sub a { color: var(--mm-ink); padding: .55rem .8rem; border-radius: 10px; }
  .mm-menu__sub a:hover, .mm-menu__sub .current > a { background: var(--mm-leaf-100); color: var(--mm-forest); }
}

/* Language switcher (topbar) */
.mm-langs { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.mm-langs a { display: inline-block; padding: .15rem .45rem; border-radius: 6px; color: inherit; text-decoration: none; font-weight: 600; font-size: .8rem; letter-spacing: .06em; opacity: .75; }
.mm-langs a:hover, .mm-langs .lang-active a { opacity: 1; background: rgba(110, 154, 14, .18); color: inherit; }
.mm-header--overlay:not(.is-scrolled) .mm-langs a:hover, .mm-header--overlay:not(.is-scrolled) .mm-langs .lang-active a { background: rgba(255, 255, 255, .2); }

/* ---------- Hero (home) ---------- */
.mm-hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--mm-forest); isolation: isolate; }
.mm-hero__slides, .mm-hero__slide, .mm-hero__shade { position: absolute; inset: 0; }
.mm-hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.mm-hero__slide.is-active { opacity: 1; }
.mm-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.mm-hero__slide.is-active img { animation: mm-kenburns 14s ease-out forwards; }
@keyframes mm-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.mm-hero__shade { background: linear-gradient(180deg, rgba(10, 18, 6, .35) 0%, rgba(10, 18, 6, .05) 35%, rgba(10, 18, 6, .65) 100%); z-index: 1; }
.mm-hero__content { position: relative; z-index: 2; padding-block: 8rem 6.5rem; }
.mm-hero__content h1, .mm-hero__content h2 { color: #fff; font-size: var(--mm-step-4); max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); margin-bottom: .3em; }
.mm-hero__eyebrow { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .16em; font-size: var(--mm-step--1); font-weight: 600; color: #f3e2b5; margin-bottom: 1rem; }
.mm-hero__lead { font-size: var(--mm-step-1); max-width: 40ch; opacity: .95; }
.mm-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.mm-hero__dots { position: absolute; z-index: 3; right: var(--mm-gutter); bottom: 2rem; display: flex; gap: .5rem; }
.mm-hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; opacity: .8; }
.mm-hero__dots button[aria-selected="true"] { background: #fff; opacity: 1; }
.mm-hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 1.4rem; transform: translateX(-50%); color: #fff; animation: mm-bob 2.4s ease-in-out infinite; }
@keyframes mm-bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections & cards ---------- */
.mm-main { display: block; outline: none; }
.mm-section { padding-block: clamp(3rem, 7vw, 6rem); }
.mm-section--home-b { background: #fff; }
.mm-section--home-c { background: var(--mm-forest); color: #e9efe1; }
.mm-section--home-c h2, .mm-section--home-c h3 { color: #fff; }
.mm-section--home-c a:not(.mm-btn) { color: #f3e2b5; }
.mm-eyebrow { display: inline-flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .16em; font-size: var(--mm-step--1); font-weight: 600; color: var(--mm-leaf-600); margin-bottom: .6rem; }
.mm-section--home-c .mm-eyebrow { color: #b9d77a; }
.mm-lead { font-size: var(--mm-step-1); color: var(--mm-ink-soft); max-width: 60ch; }
.mm-section--home-c .mm-lead { color: #d3dccb; }

.mm-split { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .mm-split { grid-template-columns: 1.05fr 1fr; } .mm-split--rev > :first-child { order: 2; } }
.mm-split__media { position: relative; }
.mm-split__media img { border-radius: var(--mm-radius-lg); box-shadow: var(--mm-shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mm-split__media .mm-split__inset { position: absolute; width: 42%; right: -4%; bottom: -10%; border: 6px solid var(--mm-sand); aspect-ratio: 1; }
@media (max-width: 899px) { .mm-split__media .mm-split__inset { display: none; } }

.mm-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 2rem; }
.mm-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--mm-radius-lg); overflow: hidden; box-shadow: var(--mm-shadow); color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.mm-card:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lg); color: inherit; }
.mm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.mm-card:hover img { transform: scale(1.04); }
.mm-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.mm-card__body h3 { font-size: var(--mm-step-1); margin-bottom: .35rem; }
.mm-card__body p { color: var(--mm-ink-soft); margin: 0; font-size: .97rem; }
.mm-card__tag { position: absolute; top: .9rem; left: .9rem; background: rgba(247, 242, 231, .95); color: var(--mm-forest); font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }

.mm-pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 2rem; }
.mm-pillar { padding: 1.4rem; border-radius: var(--mm-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.mm-pillar svg { width: 2rem; height: 2rem; color: #b9d77a; margin-bottom: .6rem; }
.mm-pillar h3 { font-size: var(--mm-step-1); }
.mm-pillar p { margin: 0; color: #d3dccb; font-size: .97rem; }

.mm-cta-band { display: grid; gap: 1rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--mm-radius-lg); background: linear-gradient(120deg, var(--mm-leaf) 0%, var(--mm-leaf-600) 60%, #3f5d07 100%); color: #fff; box-shadow: var(--mm-shadow-lg); }
.mm-cta-band h2, .mm-cta-band h3 { color: #fff; margin: 0; }
.mm-cta-band p { margin: .3rem 0 0; opacity: .92; }
@media (min-width: 800px) { .mm-cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Inner pages ---------- */
.mm-page { width: min(100% - 2 * var(--mm-gutter), var(--mm-container)); margin-inline: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.mm-page--home { padding-block: 0; }
.mm-page__grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .has-sidebar-right .mm-page__grid { grid-template-columns: minmax(0, 1fr) 320px; } }

.mm-pagehead { position: relative; margin: calc(-1 * clamp(2rem, 5vw, 4rem)) calc(50% - 50vw) clamp(2rem, 4vw, 3rem); min-height: clamp(260px, 42vw, 440px); display: grid; align-items: end; color: #fff; background: var(--mm-forest); overflow: hidden; }
.mm-pagehead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 6, .1), rgba(10, 18, 6, .7)); }
.mm-pagehead__inner { position: relative; z-index: 1; width: min(100% - 2 * var(--mm-gutter), var(--mm-container)); margin-inline: auto; padding-block: 2.2rem; }
.mm-pagehead h1 { color: #fff; margin: 0; max-width: 20ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.mm-pagehead--plain { min-height: 0; background: var(--mm-sand-2); color: var(--mm-forest); }
.mm-pagehead--plain::after { display: none; }
.mm-pagehead--plain h1 { color: var(--mm-forest); text-shadow: none; }

.mm-article { max-width: 74ch; margin-inline: auto; }
.mm-article--wide { max-width: none; }
.mm-article h2 { font-size: var(--mm-step-2); margin-top: 1.8em; }
.mm-article h3 { font-size: var(--mm-step-1); margin-top: 1.5em; }
.mm-article ul { padding-left: 1.2em; }
.mm-article li { margin-bottom: .35em; }
.mm-article li::marker { color: var(--mm-leaf); }
.mm-article figure { margin: 2rem 0; }
.mm-article figure img { border-radius: var(--mm-radius); width: 100%; }
.mm-article figcaption { font-size: var(--mm-step--1); color: var(--mm-ink-soft); margin-top: .5rem; }
.mm-article blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--mm-ochre); background: #fff; border-radius: 0 var(--mm-radius) var(--mm-radius) 0; font-family: var(--mm-font-head); font-style: italic; font-size: var(--mm-step-1); color: var(--mm-forest); }
.mm-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #fff; border-radius: var(--mm-radius); overflow: hidden; box-shadow: var(--mm-shadow); font-size: .97rem; }
.mm-article th, .mm-article td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--mm-line); }
.mm-article th { background: var(--mm-leaf-100); color: var(--mm-forest); font-weight: 600; }
.mm-note { padding: 1rem 1.2rem; border-radius: var(--mm-radius); background: var(--mm-leaf-100); border: 1px solid rgba(110, 154, 14, .25); font-size: .97rem; }
.mm-note--warn { background: #fbf0d9; border-color: rgba(211, 154, 43, .4); }
.mm-facts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.mm-facts li { background: #fff; border-radius: var(--mm-radius); padding: 1rem 1.1rem; box-shadow: var(--mm-shadow); margin: 0; }
.mm-facts strong { display: block; font-family: var(--mm-font-head); font-size: var(--mm-step-1); color: var(--mm-forest); }
.mm-figs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 2rem 0; }
.mm-figs img { border-radius: var(--mm-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mm-prices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; }
.mm-prices li { background: #fff; border-radius: var(--mm-radius); padding: 1.2rem; box-shadow: var(--mm-shadow); text-align: center; margin: 0; }
.mm-prices .mm-price { display: block; font-family: var(--mm-font-head); font-size: var(--mm-step-3); color: var(--mm-leaf-600); line-height: 1.1; margin: .3rem 0; }
.mm-prices small { color: var(--mm-ink-soft); }

/* Blog / category lists (offers) */
.com-content-category-blog__items, .blog-items { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.blog-item { background: #fff; border-radius: var(--mm-radius-lg); box-shadow: var(--mm-shadow); overflow: hidden; display: flex; flex-direction: column; }
.blog-item .item-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-item .item-content { padding: 1.2rem 1.4rem 1.5rem; }
.blog-item .item-title, .blog-item h2 { font-size: var(--mm-step-1); }
.page-header h1 { font-size: var(--mm-step-3); }

/* Forms (contact, booking) */
.mm-main input[type=text], .mm-main input[type=email], .mm-main input[type=tel], .mm-main input[type=date], .mm-main input[type=number], .mm-main select, .mm-main textarea, .form-control, .form-select {
  border-radius: 10px; border: 1px solid #cfc6b0; background: #fff; padding: .65rem .8rem; font: inherit; color: var(--mm-ink); width: 100%; max-width: 100%;
}
.mm-main input:focus, .mm-main select:focus, .mm-main textarea:focus, .form-control:focus { border-color: var(--mm-leaf); box-shadow: 0 0 0 3px rgba(110, 154, 14, .2); outline: none; }
label, .form-label { font-weight: 600; font-size: .95rem; }

/* Gallery (plg_content_mmgallery) */
.mm-gallery { margin: 1.5rem 0 3rem; }
.mm-gallery__grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.mm-gallery__item { display: block; border-radius: 10px; overflow: hidden; background: var(--mm-sand-2); aspect-ratio: 1; border: 0; padding: 0; cursor: zoom-in; }
.mm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.mm-gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.mm-gallery__credit { font-size: var(--mm-step--1); color: var(--mm-ink-soft); margin-top: .6rem; }
.mm-albums-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.mm-albums-nav a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: #fff; box-shadow: var(--mm-shadow); text-decoration: none; color: var(--mm-forest); font-weight: 600; font-size: .92rem; }
.mm-albums-nav a:hover { background: var(--mm-leaf); color: #fff; }
.mm-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.mm-lightbox::backdrop { background: rgba(8, 12, 5, .92); }
.mm-lightbox__fig { margin: 0; height: 100%; display: grid; place-items: center; padding: 3.5rem 1rem 4rem; }
.mm-lightbox__fig img { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.mm-lightbox__fig figcaption { color: #eee; margin-top: .8rem; text-align: center; font-size: .95rem; }
.mm-lightbox__btn { position: fixed; z-index: 2; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.mm-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.mm-lightbox__close { top: 1rem; right: 1rem; }
.mm-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.mm-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.mm-footer { position: relative; background: var(--mm-forest); color: #d3dccb; margin-top: 4rem; font-size: .96rem; }
.mm-footer__wave { position: absolute; top: -38px; left: 0; right: 0; height: 40px; background: var(--mm-forest); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 2 450 16s300 22 450 6 225-20 300-12v28z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C150 2 300 2 450 16s300 22 450 6 225-20 300-12v28z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.mm-footer a { color: #fff; text-decoration: none; }
.mm-footer a:hover { color: #f3e2b5; text-decoration: underline; }
.mm-footer h3, .mm-footer .mm-footer__title { font-family: var(--mm-font-head); color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.mm-footer__grid { display: grid; gap: 2rem; padding-block: 3.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.mm-footer__brand img { width: 200px; margin-bottom: 1rem; }
.mm-footer ul { list-style: none; padding: 0; margin: 0; }
.mm-footer li { margin-bottom: .45rem; }
.mm-footer__social { display: flex; gap: 1rem; }
.mm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #aab7a0; }
.mm-footer__bottom p { margin: 0; }
.mm-footer__bottom ul { display: flex; gap: 1.2rem; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.mm-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.mm-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mm-js [data-reveal] { opacity: 1; transform: none; }
}

/* Cassiopeia leftovers we do not use */
.container-header, .footer.full-width { display: none; }
.alert { border-radius: var(--mm-radius); }
.pagination .page-link { border-radius: 8px; }

/* Print */
@media print { .mm-header, .mm-footer, .mm-hero, [class*="mmchat"] { display: none !important; } body.site { background: #fff; } }

/* ---------- Activities page ---------- */
.mm-acts { margin: 1.5rem 0 3rem; }
.mm-acts__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; position: sticky; top: calc(var(--mm-header-h) + .5rem); z-index: 5; }
.mm-acts__filters button { border: 1px solid rgba(110, 154, 14, .35); background: rgba(255, 255, 255, .92); color: var(--mm-forest); border-radius: 999px; padding: .5rem 1.05rem; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; backdrop-filter: blur(6px); }
.mm-acts__filters button:hover { background: var(--mm-leaf-100); }
.mm-acts__filters button.is-active { background: var(--mm-leaf); border-color: var(--mm-leaf); color: #fff; box-shadow: var(--mm-shadow); }
.mm-acts__grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mm-act { display: flex; flex-direction: column; background: #fff; border-radius: var(--mm-radius-lg); overflow: hidden; box-shadow: var(--mm-shadow); transition: transform .3s, box-shadow .3s; }
.mm-act:hover { transform: translateY(-4px); box-shadow: var(--mm-shadow-lg); }
.mm-act[hidden] { display: none; }
.mm-act__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mm-sand-2); }
.mm-act__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mm-act:hover .mm-act__media img { transform: scale(1.06); }
.mm-act__tag { position: absolute; left: .8rem; top: .8rem; background: rgba(36, 54, 26, .82); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.mm-act[data-cat="water"] .mm-act__tag { background: rgba(29, 133, 132, .9); }
.mm-act[data-cat="islands"] .mm-act__tag { background: rgba(173, 122, 23, .92); }
.mm-act[data-cat="slow"] .mm-act__tag { background: rgba(93, 92, 71, .88); }
.mm-act__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.mm-act__body h3 { font-size: var(--mm-step-1); margin: 0 0 .4rem; }
.mm-act__body p { color: var(--mm-ink-soft); font-size: .97rem; margin-bottom: 1rem; }
.mm-act__facts { list-style: none; margin: auto 0 0; padding: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; border-top: 1px dashed var(--mm-line); font-size: .85rem; color: var(--mm-forest); font-weight: 600; }
.mm-act__facts li { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.mm-act__facts li::marker { content: none; }
.mm-act__facts svg { width: 1rem; height: 1rem; color: var(--mm-leaf); flex: none; }
.mm-tide { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: linear-gradient(135deg, #e3f1ef, #f3f8ea); border: 1px solid rgba(29, 133, 132, .2); border-radius: var(--mm-radius-lg); padding: clamp(1.2rem, 3vw, 2rem); margin: 2.5rem 0; }
.mm-tide__icon { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--mm-lagoon); color: #fff; display: grid; place-items: center; }
.mm-tide__icon svg { width: 1.8rem; height: 1.8rem; }
.mm-tide h2 { font-size: var(--mm-step-2); margin: 0 0 .4rem; }
.mm-tide p { margin: 0; }
.mm-day { list-style: none; padding: 0; margin: 1.2rem 0 2.5rem; display: grid; gap: 0; counter-reset: day; position: relative; }
.mm-day li { position: relative; padding: 0 0 1.4rem 2.6rem; margin: 0; display: grid; gap: .2rem; }
.mm-day li::before { content: ""; position: absolute; left: .55rem; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--mm-ochre); box-shadow: 0 0 0 4px rgba(211, 154, 43, .2); }
.mm-day li::after { content: ""; position: absolute; left: .98rem; top: 1.4rem; bottom: .1rem; width: 2px; background: rgba(211, 154, 43, .35); }
.mm-day li:last-child::after { display: none; }
.mm-day strong { font-family: var(--mm-font-head); font-size: var(--mm-step-1); color: var(--mm-forest); }
.mm-day span { color: var(--mm-ink-soft); }
@media (min-width: 900px) {
  .mm-day { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .mm-day li { padding: 2.2rem 0 0; }
  .mm-day li::before { left: 0; top: 0; }
  .mm-day li::after { left: 1.2rem; right: -1rem; top: .4rem; bottom: auto; width: auto; height: 2px; }
}
.mm-acts__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; padding: 1.5rem; background: #fff; border-radius: var(--mm-radius-lg); box-shadow: var(--mm-shadow); font-size: var(--mm-step-1); }

/* Icons as CSS masks (survive the WYSIWYG editor, unlike inline SVG) */
.mm-i { display: inline-block; width: 1.05em; height: 1.05em; flex: none; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.mm-i--user { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3C/svg%3E"); }
.mm-i--clock { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M12%207v5l3%202%22/%3E%3C/svg%3E"); }
.mm-i--wave { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M2%2012c2-2%204-2%206%200s4%202%206%200%204-2%206%200M2%2017c2-2%204-2%206%200s4%202%206%200%204-2%206%200M2%207c2-2%204-2%206%200s4%202%206%200%204-2%206%200%22/%3E%3C/svg%3E"); }
.mm-i--sun { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22/%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M12%202v2M12%2020v2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M2%2012h2M20%2012h2M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4%22/%3E%3C/svg%3E"); }
.mm-i--leaf { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M11%2020A7%207%200%200%201%209.8%206.1C15.5%205%2017%204.5%2019%202c1%202%202%204.2%202%208%200%205.5-4.8%2010-10%2010zM2%2021c0-3%201.9-5.4%205.1-6%22/%3E%3C/svg%3E"); }
.mm-act__facts .mm-i { color: var(--mm-leaf); }
.mm-tide__icon .mm-i { width: 1.8rem; height: 1.8rem; }
.mm-pillar .mm-i { width: 2rem; height: 2rem; color: #b9d77a; margin-bottom: .6rem; display: block; }
/* Error page (404…) */
.mm-error { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0; max-width: 40rem; margin: 0 auto; }
.mm-error .mm-eyebrow { font-size: 1rem; }
.mm-error h1 { font-family: var(--mm-font-head); color: var(--mm-forest); margin: 0 0 .75rem; }
.mm-error p { margin: 0 0 1.5rem; }
