/* ============================================================
   Muslim Directory SA — shared theme
   ============================================================ */

:root {
  --bg: #fbfaf6;
  --bg-raised: #ffffff;
  --bg-soft: #f2eee2;
  --border: rgba(21, 37, 30, 0.12);
  --border-strong: rgba(21, 37, 30, 0.24);
  --text: #15251e;
  --text-muted: #56625b;
  --green: #0f5e46;
  --green-dark: #0a4636;
  --green-deep: #0b3b2d;
  --gold: #c9a24a;
  --gold-light: #e6c77d;
  --gold-text: #86621a;
  --whatsapp: #25d366;
  --silver: #a9adb3;
  /* area accent colours, cycled per province */
  --a1: #0f5e46; --a2: #86621a; --a3: #1d6f80; --a4: #3a5596;
  --a5: #7a4c9b; --a6: #9b2d4c; --a7: #57702a; --a8: #b0532a;
  --radius: 14px;
  --header-h: 72px;
  --shadow: 0 10px 28px rgba(11, 59, 45, 0.09);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e6c77d' stroke-opacity='0.13'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 0l8 8M64 0l-8 8M0 64l8-8M64 64l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.md-no-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.md-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-skip { position: absolute; left: -9999px; top: 12px; z-index: 999; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; }
.md-skip:focus { left: 16px; }
.md-center { text-align: center; margin-top: 8px; }

/* ============================================================
   Header
   ============================================================ */
.md-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.md-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.md-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.md-brand img { width: 40px; height: 40px; }
.md-brand-text strong { display: block; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.22rem; line-height: 1.1; }
.md-brand-text span { display: block; font-size: 0.66rem; color: var(--gold-text); font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; }

.md-nav { display: flex; align-items: center; gap: 2px; }
.md-nav > a, .md-dropdown-toggle {
  padding: 9px 12px; text-decoration: none; color: var(--text-muted);
  font-weight: 600; font-size: 0.9rem; border-radius: 8px; white-space: nowrap;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.md-nav > a:hover, .md-dropdown-toggle:hover { color: var(--green); background: var(--bg-soft); }
.md-nav > a.is-active { color: var(--green); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.md-nav > a.md-nav-cta { margin-left: 10px; background: var(--green); color: #fff; box-shadow: none; border-radius: 999px; padding: 9px 16px; }
.md-nav > a.md-nav-cta:hover { background: var(--green-dark); color: #fff; }

.md-dropdown { position: relative; }
.md-dropdown-toggle { color: var(--green); }
.md-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; display: none; box-shadow: var(--shadow); z-index: 70;
}
.md-dropdown.is-open .md-dropdown-menu { display: block; }
.md-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-decoration: none; }
.md-dropdown-menu a:hover { background: var(--bg-soft); color: var(--text); }
.md-dropdown-menu a.is-current { color: var(--green); background: var(--bg-soft); }

.md-burger {
  display: none; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border); background: var(--bg-raised);
  border-radius: 10px; cursor: pointer; flex-shrink: 0;
}
.md-burger span { width: 18px; height: 2px; background: var(--text); display: block; border-radius: 2px; transition: transform .2s, opacity .2s; }
.md-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.md-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.md-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Mobile menu
   ============================================================ */
.md-mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 55; display: none; overflow-y: auto; padding: 18px 24px 40px;
}
.md-mobile-menu.is-open { display: block; }
.md-mm-section { margin-bottom: 26px; }
.md-mm-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-text); margin-bottom: 8px; font-weight: 800; }
.md-mm-section > a:not(.md-btn) { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 600; }
.md-mm-section > a.is-current { color: var(--green); }
.md-mm-actions { display: grid; gap: 10px; }
.md-mm-actions .md-btn { justify-content: center; padding: 13px 18px; }

.md-mm-shopcat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.md-mm-shopcat-grid a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.md-mm-shopcat-grid img { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; }

/* ============================================================
   Hero
   ============================================================ */
.md-hero {
  position: relative; text-align: center; padding: 58px 0 52px;
  background-color: var(--green-deep); background-image: var(--pattern);
  color: #f6f1e3;
}
.md-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.md-hero--home { padding: 90px 0 78px; }
.md-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); color: #fbf7ea; }
.md-hero--home h1 { font-size: clamp(2.5rem, 6.5vw, 4.3rem); }
.md-hero-sub { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 800; margin: 12px 0 0; }
.md-hero-tagline { margin: 14px auto 0; max-width: 640px; color: rgba(246, 241, 227, 0.84); font-size: 1rem; }
.md-hero-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.md-crumbs { font-size: 0.8rem; color: rgba(246, 241, 227, 0.66); margin-bottom: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.md-crumbs a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.md-crumbs a:hover { text-decoration: underline; }
.md-hero-search { display: flex; gap: 8px; max-width: 620px; margin: 30px auto 0; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); }
.md-hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; font-size: 0.98rem; color: var(--text); }
.md-hero-search input:focus { outline: none; }
.md-hero-search:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 14px 34px rgba(0, 0, 0, 0.22); }
.md-filter { max-width: 520px; margin: 24px auto 0; }
.md-filter input { width: 100%; border: 0; border-radius: 999px; padding: 13px 20px; font: inherit; color: var(--text); background: #fff; }

/* ============================================================
   Stats strip
   ============================================================ */
.md-stats { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.md-stats .container { display: flex; justify-content: center; gap: clamp(24px, 7vw, 90px); padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.md-stats div { display: flex; align-items: baseline; gap: 8px; }
.md-stats strong { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.9rem; color: var(--green); line-height: 1; }
.md-stats span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   Sections
   ============================================================ */
.md-section { padding: 64px 0 8px; scroll-margin-top: var(--header-h); }
.md-section-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.md-section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-top: 6px; }
.md-section-head p { color: var(--text-muted); margin: 10px 0 0; }
.md-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }

.md-divider { display: flex; align-items: center; gap: 14px; margin: 40px 0 20px; }
.md-divider::before, .md-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.md-divider span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 800; white-space: nowrap; }

/* ============================================================
   Category directory (sectors)
   ============================================================ */
.md-sector { margin-bottom: 38px; }
.md-sector-title { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.md-sector-title span { font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 800; color: var(--gold-text); background: var(--bg-soft); border-radius: 999px; padding: 2px 9px; }
.md-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.md-cat-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.md-cat-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.md-cat-mark { position: relative; width: 24px; height: 24px; margin-bottom: 6px; }
.md-cat-mark::before, .md-cat-mark::after { content: ""; position: absolute; inset: 4px; background: var(--silver); border-radius: 2px; transition: background .15s; }
.md-cat-mark::after { transform: rotate(45deg); }
.md-cat-card:hover .md-cat-mark::before, .md-cat-card:hover .md-cat-mark::after { background: var(--green); }
.md-cat-name { font-weight: 700; font-size: 0.97rem; color: var(--text); line-height: 1.3; }
.md-cat-blurb { font-size: 0.84rem; color: var(--text-muted); line-height: 1.45; }
.md-cat-count { position: absolute; top: 14px; right: 16px; font-size: 0.68rem; font-weight: 800; color: var(--gold-text); background: var(--bg-soft); border-radius: 999px; padding: 2px 8px; }
.md-cat-card { position: relative; }

/* Shop category grid (ecommerce-style tiles with icons) */
.md-shopcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.md-shopcat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.md-shopcat-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.md-shopcat-img { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-soft); }
.md-shopcat-card h3 { font-size: 1rem; margin: 0; color: var(--text); line-height: 1.3; }
.md-shopcat-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
.md-no-results { text-align: center; color: var(--text-muted); padding: 24px; margin: 0; }
.md-no-results a { color: var(--green); font-weight: 700; }

.md-tag-list { list-style: none; padding: 0; margin: 0 auto 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; }
.md-tag-list li, .md-tag-list a { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; text-decoration: none; }
.md-tag-list a:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   Province grid
   ============================================================ */
.md-province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin: 10px 0 28px; }
.md-province-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; display: block; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.md-province-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow); }
.md-province-card img { width: 100%; height: 130px; object-fit: cover; }
.md-province-card h3 { padding: 12px 14px 0; font-size: 1.15rem; text-align: center; }
.md-province-meta { display: block; text-align: center; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; padding: 2px 14px 12px; }
.md-province-card h3:last-child { padding-bottom: 14px; }

/* ============================================================
   Layout: sidebar + content
   ============================================================ */
.md-layout { display: flex; align-items: flex-start; gap: 36px; padding-top: 34px; }
.md-sidebar { width: 250px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.md-sidebar h2 { font-family: 'Manrope', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; font-weight: 800; }
.md-area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.md-area-pill {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--text-muted); font-size: 0.86rem; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.md-area-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--area-clr, var(--green)); flex-shrink: 0; }
.md-area-pill .count { margin-left: auto; font-size: 0.72rem; font-weight: 800; color: var(--text-muted); background: var(--bg-soft); border-radius: 999px; padding: 1px 8px; }
.md-area-pill:hover { border-color: var(--area-clr, var(--green)); color: var(--text); }
.md-area-pill.is-current { border-color: var(--area-clr, var(--green)); color: var(--green); font-weight: 800; }
.md-area-pill.search-all { border-style: dashed; border-color: var(--gold); color: var(--gold-text); }
.md-area-pill.action { background: var(--green); border-color: var(--green); color: #fff; justify-content: center; }
.md-area-pill.action:hover { background: var(--green-dark); color: #fff; }
.md-content { flex: 1; min-width: 0; }
.md-area-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.md-area-section .md-divider span { color: var(--area-clr, var(--green)); }
.md-area-section .md-card { border-left-color: var(--area-clr, var(--green)); }
.md-content > .md-divider:first-child, .md-content > .md-area-section:first-child .md-divider { margin-top: 0; }

/* ============================================================
   Cards (listings / events / ads)
   ============================================================ */
.md-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-raised); border: 1px solid var(--border); border-left: 5px solid var(--green);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 20px);
}
.md-card-img { flex-shrink: 0; width: 180px; }
.md-card-img img { width: 100%; height: 130px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); cursor: zoom-in; }
.md-card-img--poster img { height: 220px; object-fit: cover; }
.md-card-mono {
  height: 130px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background-color: var(--green-deep); background-image: var(--pattern);
  color: var(--gold-light); font-family: 'DM Serif Display', Georgia, serif; font-size: 2.2rem;
}
.md-card-body { flex: 1; min-width: 0; }
.md-card h3 { font-size: 1.35rem; color: var(--text); }
.md-card-note { font-size: 0.85rem; color: var(--gold-text); margin-top: 4px; font-weight: 700; }
.md-card-addr { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.md-card-text { color: var(--text-muted); font-size: 0.92rem; margin: 10px 0 0; white-space: pre-line; }
.md-card.is-featured { border-left-color: var(--gold); border-left-width: 5px; }

.md-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.md-badge { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); background: rgba(15, 94, 70, 0.09); border-radius: 999px; padding: 3px 9px; }
.md-badge-gold { color: var(--gold-text); background: rgba(201, 162, 74, 0.18); margin-bottom: 6px; }
.md-badge-soft { color: var(--text-muted); background: var(--bg-soft); }
.md-badge-past { display: none; color: var(--text-muted); background: var(--bg-soft); margin-bottom: 6px; }
.md-event.is-past { opacity: 0.72; }
.md-event.is-past .md-badge-past { display: inline-flex; }
.md-price { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.35rem; color: var(--green); margin-top: 2px; }

.md-fact-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.md-fact-list li { background: var(--bg-soft); border-radius: 8px; padding: 7px 12px; }
.md-fact-list .fact-label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-text); font-weight: 800; }
.md-fact-list .fact-value { font-size: 0.9rem; color: var(--text); }

/* Featured */
.md-feature-slot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; border: 1px dashed var(--gold); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.12), rgba(201, 162, 74, 0.02));
}
.md-feature-slot h2 { font-size: 1.35rem; margin: 4px 0; }
.md-feature-slot p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.md-featured-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); background: var(--green-deep); background-image: var(--pattern); color: #f6f1e3; margin-bottom: 12px; }
.md-featured-card h3 { font-size: 1.5rem; color: #fbf7ea; }
.md-featured-card p { margin: 4px 0 0; color: rgba(246, 241, 227, 0.82); font-size: 0.9rem; max-width: 60ch; }

/* Empty states */
.md-empty { text-align: center; padding: 44px 22px; background: var(--bg-raised); border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-bottom: 16px; }
.md-empty h3 { font-size: 1.4rem; margin-bottom: 6px; }
.md-empty p { color: var(--text-muted); margin: 0 auto; max-width: 52ch; }
.md-empty .md-btn-row { justify-content: center; }
.md-empty-mark { display: block; width: 34px; height: 34px; margin: 0 auto 12px; object-fit: contain; }
.md-empty-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-muted); font-size: 0.9rem; background: var(--bg-raised); }
.md-empty-inline a { color: var(--green); font-weight: 800; text-decoration: none; white-space: nowrap; }
.md-empty-inline a:hover { text-decoration: underline; }

/* Post band (classifieds) */
.md-post-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: var(--green-deep); background-image: var(--pattern); color: #f6f1e3; }
.md-post-band h2 { font-size: 1.45rem; color: #fbf7ea; }
.md-post-band p { margin: 4px 0 0; color: rgba(246, 241, 227, 0.82); font-size: 0.9rem; }

/* Filter chips */
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.md-chips button { font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.md-chips button:hover { border-color: var(--green); color: var(--green); }
.md-chips button.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ============================================================
   Buttons
   ============================================================ */
.md-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.md-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 17px; border-radius: 999px;
  border: 1px solid transparent; font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer;
  font-family: inherit; background: var(--bg-raised); color: var(--text); line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
}
.md-btn-primary, .md-btn-call { background: var(--green); border-color: var(--green); color: #fff; }
.md-btn-primary:hover, .md-btn-call:hover { background: var(--green-dark); border-color: var(--green-dark); }
.md-btn-gold { background: var(--gold); border-color: var(--gold); color: #ffffff; }
.md-btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.md-btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.md-btn-outline:hover { background: rgba(15, 94, 70, 0.08); }
.md-btn-light { background: transparent; border-color: rgba(246, 241, 227, 0.45); color: #fbf7ea; }
.md-btn-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.md-btn-email { background: transparent; border-color: var(--gold); color: var(--gold-text); }
.md-btn-email:hover { background: rgba(201, 162, 74, 0.12); }
.md-btn-web { background: transparent; border-color: var(--border-strong); color: var(--text-muted); }
.md-btn-web:hover { border-color: var(--text); color: var(--text); }
.md-btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #06301b; }
.md-btn-whatsapp:hover { filter: brightness(1.06); }
.md-btn-gallery { background: transparent; border-color: var(--a5); color: var(--a5); }
.md-btn-gallery:hover { background: rgba(122, 76, 155, 0.1); }
.md-btn-location { background: transparent; border-color: var(--a3); color: var(--a3); }
.md-btn-location:hover { background: rgba(29, 111, 128, 0.1); }
.md-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   Month grid (events)
   ============================================================ */
.md-month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 10px 0 12px; }
.md-month-card {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.md-month-card:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.md-month-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.3rem; }
.md-month-count { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.md-month-card.has-events .md-month-count { color: var(--green); font-weight: 800; }
.md-month-card.is-now { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.md-month-card.is-now .md-month-name::after { content: " ·  this month"; font-family: 'Manrope', sans-serif; font-size: 0.7rem; font-weight: 800; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   Search table
   ============================================================ */
.md-search-box { margin: 36px 0 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.md-search-box h2 { font-size: 1.35rem; margin-bottom: 12px; }
.md-search-input { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-raised); font: inherit; font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.md-search-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 94, 70, 0.15); }
.md-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.md-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.md-table th, .md-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.md-table th { color: var(--gold-text); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg-soft); font-weight: 800; }
.md-table tr:last-child td { border-bottom: none; }
.md-table a { color: var(--green); font-weight: 700; text-decoration: none; }

/* ============================================================
   Advertise band + offers
   ============================================================ */
.md-band { margin-top: 64px; padding: 62px 0; background-color: var(--green-deep); background-image: var(--pattern); color: #f6f1e3; }
.md-band .md-section-head h2 { color: #fbf7ea; }
.md-band .md-eyebrow { color: var(--gold-light); }
.md-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.md-offer { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(230, 199, 125, 0.25); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.md-offer h3 { font-size: 1.45rem; color: #fbf7ea; }
.md-offer p { color: rgba(246, 241, 227, 0.8); font-size: 0.92rem; margin: 0 0 8px; flex: 1; }

.md-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.md-steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--text-muted); font-size: 0.92rem; }
.md-steps li strong { display: block; color: var(--text); }
.md-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--green); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.md-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.md-step-grid .md-steps li { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 60px; }
.md-step-grid .md-steps li::before { left: 18px; top: 18px; }

.md-about { max-width: 780px; margin: 0 auto; }
.md-about p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; }

/* ============================================================
   Forms
   ============================================================ */
.md-form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 40px 0 10px; }
.md-panel { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.md-panel h2 { font-size: 1.45rem; margin-bottom: 14px; }
.md-panel h3 { font-family: 'Manrope', sans-serif; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-text); font-weight: 800; margin: 22px 0 8px; }
.md-panel h3:first-child { margin-top: 0; }
.md-panel p { color: var(--text-muted); font-size: 0.92rem; }
.md-panel a { color: var(--green); font-weight: 700; }
.md-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.md-field--full { grid-column: 1 / -1; }
.md-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.md-field .req { color: var(--a6); }
.md-field input, .md-field select, .md-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 11px 13px; font: inherit; font-size: 0.95rem; color: var(--text);
}
.md-field select:disabled { opacity: 0.6; }
.md-field input:focus, .md-field select:focus, .md-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15, 94, 70, 0.15); }
.md-field textarea { resize: vertical; min-height: 130px; }
.md-help { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 0; }
.md-form > .md-help { margin: 16px 0 0; }
.md-submit { margin-top: 18px; padding: 12px 24px; font-size: 0.95rem; }
.md-form-msg { padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 0.9rem; }
.md-form-msg.is-success { background: rgba(15, 94, 70, 0.1); color: var(--green); border: 1px solid var(--green); }
.md-form-msg.is-error { background: rgba(155, 45, 76, 0.08); color: var(--a6); border: 1px solid var(--a6); }

/* ============================================================
   Modals + lightbox
   ============================================================ */
.md-modal-overlay { position: fixed; inset: 0; background: rgba(8, 26, 20, 0.66); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.md-modal-overlay.is-open { display: flex; }
.md-modal { background: var(--bg); border-radius: var(--radius); padding: 26px; max-width: 660px; width: 100%; max-height: 86vh; overflow-y: auto; position: relative; }
.md-modal-close { position: absolute; top: 12px; right: 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--text-muted); }
.md-modal h4 { font-size: 1.35rem; margin-bottom: 16px; padding-right: 34px; }
.md-modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.md-modal-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.md-modal-map { width: 100%; height: 280px; border: 0; border-radius: 10px; margin-bottom: 12px; }
.md-modal-address { color: var(--text-muted); margin-bottom: 12px; }

.md-lightbox { position: fixed; inset: 0; background: rgba(5, 14, 11, 0.93); display: none; align-items: center; justify-content: center; z-index: 300; }
.md-lightbox.is-open { display: flex; }
.md-lightbox img { max-width: 88vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.md-lightbox-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 2.2rem; background: none; border: 0; cursor: pointer; line-height: 1; }
.md-lightbox-prev, .md-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); border: none; color: #fff; font-size: 1.4rem; padding: 14px 18px; cursor: pointer; border-radius: 8px; }
.md-lightbox-prev:hover, .md-lightbox-next:hover { background: rgba(255, 255, 255, 0.24); }
.md-lightbox-prev { left: 18px; }
.md-lightbox-next { right: 18px; }
.md-lightbox-prev.is-hidden, .md-lightbox-next.is-hidden { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.md-footer { margin-top: 72px; background: var(--green-deep); color: rgba(246, 241, 227, 0.8); padding: 52px 0 24px; }
.md-band + .md-footer { margin-top: 0; }
.md-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.md-footer .md-brand { color: #fbf7ea; margin-bottom: 14px; }
.md-footer .md-brand-text span { color: var(--gold-light); }
.md-footer p { font-size: 0.9rem; max-width: 36ch; margin: 0; }
.md-footer h5 { margin: 0 0 12px; color: var(--gold-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.md-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.md-footer a { color: rgba(246, 241, 227, 0.86); text-decoration: none; font-size: 0.9rem; }
.md-footer a:hover { color: var(--gold-light); }
.md-footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(230, 199, 125, 0.2); font-size: 0.82rem; }

.md-back-to-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); z-index: 50; display: none; align-items: center; justify-content: center; }
.md-back-to-top.is-visible { display: flex; }
.md-back-to-top:hover { background: var(--green-dark); }

/* ============================================================
   Shop
   ============================================================ */
.md-icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.md-btn-icon { gap: 8px; }
.md-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gold); color: var(--green-deep); margin-bottom: 16px; }
.md-hero-icon .md-icon { width: 34px; height: 34px; }
.md-area-pill.shop { border-color: var(--gold); color: var(--gold-text); background: rgba(201, 162, 74, 0.1); font-weight: 700; }
.md-area-pill.shop:hover { background: rgba(201, 162, 74, 0.22); color: var(--text); }

.md-shop-feature {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px;
  padding: 30px 34px; border-radius: 20px; text-decoration: none;
  background-color: var(--green-deep); background-image: var(--pattern); color: #f6f1e3;
  transition: transform .15s, box-shadow .15s;
}
.md-shop-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 59, 45, 0.25); }
.md-shop-feature-icon { width: 92px; height: 92px; border-radius: 24px; background: var(--gold); color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.md-shop-feature-icon .md-icon { width: 50px; height: 50px; }
.md-shop-feature-text > span { display: block; }
.md-shop-feature .md-eyebrow { color: var(--gold-light); }
.md-shop-feature-text strong { display: block; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: #fbf7ea; margin: 4px 0 6px; }
.md-shop-feature-text > span:last-child { color: rgba(246, 241, 227, 0.82); font-size: 0.95rem; }

.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.md-product { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.md-product:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.md-product-img img, .md-product-img .md-card-mono { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.md-product-img img { cursor: zoom-in; }
.md-card-mono .md-icon { width: 52px; height: 52px; }
.md-product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1; }
.md-product-body h3 { font-size: 1.25rem; margin-top: 6px; }
.md-product .md-btn-row { margin-top: auto; padding-top: 14px; }

@media (max-width: 700px) {
  .md-shop-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .md-nav { display: none; }
  .md-burger { display: flex; }
}

@media (max-width: 900px) {
  .md-layout { flex-direction: column; align-items: stretch; padding-top: 0; gap: 0; }
  .md-sidebar {
    position: sticky; top: var(--header-h); width: auto; z-index: 40;
    background: var(--bg); border-bottom: 1px solid var(--border);
    margin: 0 -24px 22px; padding: 12px 24px;
  }
  .md-sidebar h2 { display: none; }
  .md-area-list { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .md-area-list::-webkit-scrollbar { display: none; }
  .md-area-pill { white-space: nowrap; flex-shrink: 0; }
  .md-area-pill .count { margin-left: 4px; }
  .md-area-section, .md-card, .md-search-box { scroll-margin-top: calc(var(--header-h) + 80px); }

  .md-card { flex-direction: column; }
  .md-card-img { width: 100%; }
  .md-card-img img, .md-card-mono { height: 180px; }
  .md-card-img--poster img { height: 260px; }

  .md-form-layout { grid-template-columns: 1fr; }
  .md-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .md-sidebar { margin: 0 -16px 20px; padding: 10px 16px; }
  .md-brand-text span { display: none; }
  .md-hero { padding: 44px 0 40px; }
  .md-hero--home { padding: 60px 0 54px; }
  .md-hero-search { flex-direction: column; border-radius: 18px; }
  .md-hero-search .md-btn { justify-content: center; }
  .md-form-grid { grid-template-columns: 1fr; }
  .md-panel { padding: 20px; }
  .md-footer-grid { grid-template-columns: 1fr; }
  .md-btn { padding: 8px 14px; font-size: 0.82rem; }
}
