
/* ============================================================
   CANNAN LODGE — SHARED STYLES
   ============================================================ */

:root {
  --ink: #211b16;
  --ink-soft: #4e443a;
  --paper: #f5efe5;
  --paper-deep: #ebe0d0;
  --cream: #fffaf2;
  --brown: #6a432c;
  --brown-dark: #422719;
  --terracotta: #9b553d;
  --gold: #c99b49;
  --green: #405b44;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(34, 25, 18, .13);
  --shadow-soft: 0 8px 25px rgba(34, 25, 18, .08);
  --radius: 18px;
  --max-width: 1180px;
  --header-height: 78px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lato", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea { font: inherit; }

button { cursor: pointer; }

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Typography ---- */

h1,
h2,
h3,
h4,
.site-title,
.eyebrow {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.15;
}

h1, h2, h3, h4, p { margin-top: 0; }

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: .85rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: .55rem;
}

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  color: var(--terracotta);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: 1.12rem;
  max-width: 740px;
}

/* ---- Layout ---- */

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5.2rem 0;
}

.section--tight { padding: 3.6rem 0; }

.section--dark {
  background: var(--brown-dark);
  color: var(--white);
}

.section--dark p,
.section--dark .eyebrow { color: rgba(255,255,255,.78); }

.section-heading {
  max-width: 800px;
  margin-bottom: 2.6rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

/* ---- Header ---- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(33, 27, 22, .88);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
}

.site-title {
  font-size: 1.2rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  padding: 1rem;
  background: rgba(33, 27, 22, .98);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transform: translateY(-120%);
  transition: transform .35s var(--ease);
}

.site-nav.is-open { transform: translateY(0); }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.nav-link {
  position: relative;
  display: block;
  padding: .85rem .7rem;
  border-radius: 10px;
  color: rgba(255,255,255,.76);
  font-size: .96rem;
  font-weight: 700;
  transition: .25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .38rem;
  height: 2px;
  background: var(--gold);
}

@media (min-width: 850px) {
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: .25rem;
  }

  .nav-link { padding: .5rem .7rem; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(26,20,16,.42), rgba(26,20,16,.72)),
    url("../images/cannan.jpg")
    center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(17,13,10,.78));
  z-index: -1;
}

.hero-content {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 8rem 0 5.5rem;
}

.hero .eyebrow { color: rgba(255,255,255,.8); }

.hero h1 {
  max-width: 800px;
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 12vw, 7rem);
  letter-spacing: -.035em;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-tagline {
  max-width: 650px;
  color: rgba(255,255,255,.84);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

.scroll-cue {
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.62);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

@media (min-width: 800px) {
  .hero-content { padding-bottom: 8rem; }
  .scroll-cue { display: flex; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover { background: #d9ad5b; }

.btn-outline {
  border-color: rgba(255,255,255,.45);
  color: var(--white);
  background: rgba(255,255,255,.04);
}

.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-dark {
  background: var(--brown-dark);
  color: var(--white);
}

.btn-light {
  background: var(--cream);
  color: var(--brown-dark);
}

/* ---- Cards ---- */

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 680px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(66,39,25,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.link-card {
  padding: 1.6rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.link-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(201,155,73,.5);
}

.icon-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--paper-deep);
  color: var(--brown);
  font-size: 1.3rem;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brown);
  font-weight: 800;
}

/* ---- Split blocks ---- */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 850px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  pointer-events: none;
}

.quote-block {
  margin: 1.6rem 0 0;
  padding: 1rem 0 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  color: var(--ink);
}

.dark-panel {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--brown-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.dark-panel p { color: rgba(255,255,255,.72); }

/* ---- Stats / facts ---- */

.fact-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(66,39,25,.14);
  border: 1px solid rgba(66,39,25,.12);
}

.fact {
  padding: 1.4rem;
  background: var(--cream);
}

.fact strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--brown-dark);
  font-size: 2rem;
}

@media (min-width: 650px) {
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Timeline ---- */

.timeline {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: var(--paper-deep);
  }
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown-dark);
  border: 4px solid var(--paper);
  font-weight: 900;
  font-size: .75rem;
}

.timeline-body {
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,.67);
  border: 1px solid rgba(66,39,25,.1);
  border-radius: 16px;
}

/* ---- People ---- */

.people-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.05);
}

.person strong {
  display: block;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
}

.person span {
  color: rgba(255,255,255,.65);
  font-size: .87rem;
}

/* ---- Page hero ---- */

.page-hero {
  min-height: 46vh;
  display: grid;
  align-items: end;
  padding: 9rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(35,24,16,.5), rgba(35,24,16,.86)),
    url("../images/history.jpg")
    center / cover no-repeat;
  color: var(--white);
}

.page-hero p { color: rgba(255,255,255,.78); }

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin-bottom: .8rem;
}

/* ---- Gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.gallery-item {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 14px;
  border: 0;
  padding: 0;
  background: var(--paper-deep);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .45s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.045);
  filter: brightness(.88);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem .9rem .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: var(--white);
  text-align: left;
  font-size: .87rem;
}

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) { grid-column: span 2; }
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(4) img { min-height: 300px; }
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 12, 9, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: min(1100px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .7rem;
}

.lightbox-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: var(--white);
}

.lightbox-caption {
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: .95rem;
}

/* ---- Visit / map ---- */

.visit-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .visit-grid { grid-template-columns: .9fr 1.1fr; }
}

.info-list {
  display: grid;
  gap: .75rem;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(66,39,25,.09);
}

.info-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--brown);
}

.info-row strong { display: block; color: var(--ink); }
.info-row span { color: var(--ink-soft); }

#lodge-map {
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(66,39,25,.12);
}

/* ---- Notice ---- */

.notice {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(201,155,73,.12);
}

.notice p { margin: 0; font-size: .95rem; }

/* ---- Contact form ---- */

.form-card {
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid rgba(66,39,25,.1);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(66,39,25,.18);
  border-radius: 12px;
  background: white;
  padding: .85rem 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,155,73,.12);
  outline: none;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field-error {
  display: block;
  min-height: 1.3em;
  margin-top: .25rem;
  color: #9d3028;
  font-size: .85rem;
}

.form-status {
  min-height: 1.5em;
  margin-top: .85rem;
  font-weight: 700;
}

/* ---- Footer ---- */

.site-footer {
  padding: 3.5rem 0 1.2rem;
  background: #1d1814;
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
}

.site-footer p,
.site-footer a,
.site-footer small { color: rgba(255,255,255,.62); }

.footer-links {
  display: grid;
  gap: .35rem;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}

/* ---- Entry animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ---- Utilities ---- */

.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.chip {
  display: inline-flex;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--brown-dark);
  font-size: .83rem;
  font-weight: 800;
}

.surface { background: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Minimal Leaflet structure needed by the dynamically loaded map.
   This keeps the project to one authored CSS file. */
.leaflet-container {
  position: relative;
  overflow: hidden;
  font: 12px/1.5 "Lato", system-ui, sans-serif;
  background: #ddd;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-map-pane svg,
.leaflet-map-pane canvas,
.leaflet-zoom-box {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-container img { max-width: none !important; }
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow { user-select: none; }
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-right { right: 0; }
.leaflet-top .leaflet-control,
.leaflet-bottom .leaflet-control { pointer-events: auto; }
.leaflet-control-zoom {
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.18);
}
.leaflet-control-zoom a {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  background: #fff;
  color: #3b2b20;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  font-size: 20px;
}
.leaflet-control-zoom a:last-child { border-bottom: 0; }
.leaflet-control-attribution {
  padding: 2px 7px;
  background: rgba(255,255,255,.82);
  color: #555;
  font-size: 10px;
}
.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  padding: 1px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.45;
}
.leaflet-popup-tip {
  width: 12px;
  height: 12px;
  margin: -6px auto 0;
  transform: rotate(45deg);
  background: white;
}
.leaflet-control-container { position: absolute; inset: 0; pointer-events: none; }
.leaflet-top, .leaflet-bottom { pointer-events: none; }
.leaflet-control { pointer-events: auto; }

/* ============================================================
   CANAAN LODGE — APPENDED STYLES (new pages)
   Events · Collections · Blog · Shop · Cart · Checkout ·
   Support · Contact · Cart offcanvas · Newsletter · More menu
   ============================================================ */

/* ---- More dropdown (desktop + mobile) ---- */
.more-menu { position: relative; }

.more-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .7rem;
  border-radius: 10px;
  color: rgba(255,255,255,.76);
  font-weight: 700;
  font-size: .96rem;
  transition: .25s var(--ease);
}
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary:hover,
.more-menu[open] > summary {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.more-menu .more-panel {
  display: grid;
  gap: .25rem;
  padding: .4rem;
  background: rgba(33,27,22,.98);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
@media (min-width: 850px) {
  .more-menu .more-panel {
    position: absolute;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 190px;
    box-shadow: var(--shadow);
  }
}

/* ---- Cart button + badge in header ---- */
.cart-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: var(--white);
  transition: background .25s var(--ease);
}
.cart-btn:hover { background: rgba(255,255,255,.08); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

/* ---- Cart offcanvas ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(16,12,9,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1600;
  width: min(420px, 92vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--cream);
  box-shadow: -20px 0 60px rgba(16,12,9,.35);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(66,39,25,.1);
}
.cart-drawer-head h2 {
  font-size: 1.15rem;
  margin: 0;
}
.cart-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(66,39,25,.15);
  background: transparent;
  color: var(--brown-dark);
}

.cart-items {
  overflow-y: auto;
  padding: .5rem 1.2rem 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .8rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(66,39,25,.08);
}
.cart-item:last-child { border-bottom: 0; }
.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a432c, #c99b49);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.25rem;
}
.cart-item-name { font-weight: 800; color: var(--ink); font-size: .95rem; }
.cart-item-meta { font-size: .82rem; color: var(--ink-soft); }
.cart-item-price { font-weight: 800; color: var(--brown-dark); white-space: nowrap; }

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
}
.qty-control button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(66,39,25,.2);
  background: #fff;
  color: var(--brown-dark);
  font-weight: 900;
}
.qty-control [data-qty-value] {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  font-size: .9rem;
}
.cart-remove {
  align-self: start;
  border: 0;
  background: transparent;
  color: #9d3028;
  font-size: .9rem;
  padding: .2rem;
}

.cart-drawer-foot {
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid rgba(66,39,25,.1);
  background: var(--paper-deep);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: .8rem;
}
.cart-drawer-foot .btn { width: 100%; }
.cart-drawer-foot .btn + .btn { margin-top: .5rem; }
.cart-empty { padding: 2rem 1rem; text-align: center; color: var(--ink-soft); }

/* ---- Placeholder tile (no external images) ---- */
.ph-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #422719, #9b553d 60%, #c99b49);
  box-shadow: var(--shadow-soft);
}
.ph-tile.tile--green { background: linear-gradient(135deg, #26331f, #405b44 60%, #7fa183); }
.ph-tile.tile--gold  { background: linear-gradient(135deg, #6a432c, #c99b49 70%, #ecd39d); }
.ph-tile .ph-inner {
  display: grid;
  place-items: center;
  gap: .55rem;
  padding: 1rem;
  text-align: center;
}
.ph-tile .ph-inner i { font-size: 2rem; opacity: .9; }
.ph-tile .ph-inner span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
}
.ph-tile::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  pointer-events: none;
}

/* ---- Generic listing card (events / blog / shop) ---- */
.listing-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(66,39,25,.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.listing-body { padding: 1.2rem 1.2rem 1.3rem; display: grid; gap: .55rem; }
.listing-body h3 { margin: 0; }
.listing-body p { margin: 0; }
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.listing-actions { margin-top: .6rem; display: flex; gap: .6rem; flex-wrap: wrap; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(201,155,73,.18);
  color: var(--brown-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-soft.badge--warn { background: rgba(157,48,40,.14); color: #9d3028; }

/* ---- Filters ---- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.filter-row button {
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(66,39,25,.15);
  background: var(--cream);
  color: var(--brown-dark);
  font-weight: 800;
  font-size: .85rem;
}
.filter-row button.is-active {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

/* ---- Generic modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16,12,9,.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.8rem;
  position: relative;
}
.modal-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(66,39,25,.2);
  background: #fff;
  color: var(--brown-dark);
  display: grid;
  place-items: center;
}
.modal-box h2 { margin-top: .3rem; }

/* ---- Product / event detail layout ---- */
.detail-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 880px) {
  .detail-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
.detail-price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: var(--brown-dark);
  margin: .4rem 0 1rem;
}
.spec-list {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(66,39,25,.08);
  font-size: .93rem;
}
.spec-list li strong { color: var(--brown-dark); }
.spec-list li span { color: var(--ink-soft); text-align: right; }

/* ---- Checkout / cart page ---- */
.cart-page-grid,
.checkout-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .cart-page-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .checkout-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
.summary-card {
  background: var(--cream);
  border: 1px solid rgba(66,39,25,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.5rem;
}
.summary-card h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.summary-row.total {
  border-top: 1px solid rgba(66,39,25,.12);
  margin-top: .5rem;
  padding-top: .9rem;
  font-weight: 900;
  color: var(--brown-dark);
  font-size: 1.1rem;
}

.pay-group { display: grid; gap: .6rem; }
.pay-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(66,39,25,.14);
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pay-option:hover { border-color: var(--gold); }
.pay-option input { accent-color: var(--gold); width: 18px; height: 18px; }
.pay-option strong { display: block; color: var(--ink); font-size: .95rem; }
.pay-option small { color: var(--ink-soft); }

/* ---- Donation ---- */
.donate-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0 1.3rem;
}
@media (min-width: 600px) {
  .donate-tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.tier {
  padding: .8rem .6rem;
  border-radius: 12px;
  border: 1px solid rgba(66,39,25,.14);
  background: #fff;
  text-align: center;
  cursor: pointer;
}
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier span { display: block; font-weight: 800; color: var(--brown-dark); }
.tier small { color: var(--ink-soft); font-size: .75rem; }
.tier:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,155,73,.12);
  box-shadow: 0 0 0 3px rgba(201,155,73,.15);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
@media (min-width: 700px) {
  .impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.impact {
  padding: 1rem;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(66,39,25,.08);
  border-radius: 14px;
  text-align: center;
}
.impact strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--brown-dark);
  font-size: 1.5rem;
}

/* ---- Newsletter in footer ---- */
.footer-newsletter {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 800px) {
  .footer-newsletter {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}
.footer-newsletter h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 .3rem;
}
.footer-newsletter p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: .92rem;
}
.footer-newsletter form {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .footer-newsletter form {
    grid-template-columns: 1fr 1fr auto;
  }
}
.footer-newsletter input {
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.footer-newsletter button {
  padding: .7rem 1.1rem;
  border-radius: 10px;
  border: 0;
  background: var(--gold);
  color: var(--brown-dark);
  font-weight: 900;
  font-size: .9rem;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---- Timeline for event detail ---- */
.schedule-list {
  display: grid;
  gap: .8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.schedule-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px dashed rgba(66,39,25,.15);
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list time { font-weight: 900; color: var(--brown-dark); }

/* ---- Misc ---- */
.stack-sm > * + * { margin-top: .6rem; }
.stack-md > * + * { margin-top: 1rem; }