/* Zouheir & Pepita — shared styles
   Palette from the approved mockup. Change the four colours below and the whole site follows. */
:root {
  --green: #1E3A2F;
  --green-2: #2A4A3C;
  --gold: #C9A24D;
  --cream: #F6F1E8;
  --cream-2: #EFEBE3;
  --paper: #FFFFFF;
  --line: #E3DCCE;
  --line-2: #EEE8DB;
  --ink: #1E3A2F;
  --ink-2: #4A4942;
  --muted: #6B6A63;
  --border: #C9C3B5;
  --danger: #A63D2F;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", "Geeza Pro", "Tahoma", serif;
  --radius: 4px;
  --max: 480px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-ar, [dir="rtl"] { font-family: var(--arabic), var(--sans); }
body.is-ar .serif, body.is-ar h1, body.is-ar h2, body.is-ar h3 { font-family: var(--arabic); }
body.is-ar { font-size: 16px; }
body.is-ar .eyebrow { letter-spacing: 0; }

a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.page { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; min-height: 100vh; }
.wrap { padding: 0 20px; }

/* Top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.topbar a { font-weight: 600; text-decoration: none; }
.lang { display: flex; gap: 6px; }
.lang button {
  padding: 6px 10px; min-height: 32px; border: 1px solid var(--green); border-radius: 999px;
  background: transparent; color: var(--green); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.lang button.active { background: var(--green); color: var(--cream); font-weight: 700; }
.lang button.ar { font-family: var(--arabic); text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Typography */
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); }
h1 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.05; }
h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.lead { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.small { font-size: 12px; color: var(--muted); }
.page-head { padding: 18px 24px 6px; display: flex; flex-direction: column; gap: 8px; }

/* Cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.card.pad { padding: 16px; }
.card-dark { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 20px; }
.card-dark .eyebrow { color: var(--gold); }
.list { padding: 4px 16px; }
.list > div { padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.5; }
.list > div:first-child { border-top: 0; }
.section { margin: 22px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title svg { flex: none; }
.section-title h2 { font-size: 24px; }

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--green);
  background: var(--green); color: var(--cream); font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; width: 100%;
}
body.is-ar .btn { letter-spacing: 0; text-transform: none; font-size: 16px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost.on-dark { color: var(--gold); border-color: var(--gold); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 12px; width: auto; }
.btn:disabled { opacity: .5; cursor: default; }
.pill {
  padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--paper); color: var(--ink-2); font-size: 13px;
}
.pill.active { background: var(--green); color: var(--cream); border-color: var(--green); font-weight: 700; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }

/* Nav tiles */
.tiles { margin: 10px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 44px;
}
.tile svg { flex: none; }
.tile b { display: block; font-size: 15px; }
.tile span { display: block; font-size: 12px; color: var(--muted); }
.tiles-grid { margin: 20px 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles-grid a {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 44px;
}
.tiles-grid .eyebrow { font-size: 11px; letter-spacing: .12em; }
.tiles-grid b { font-size: 14px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%; min-width: 0;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.error { color: var(--danger); font-size: 13px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; min-height: 40px; border: 1px solid var(--border); background: var(--paper); color: var(--ink-2); border-radius: var(--radius); font-size: 13px; }
.seg button.active { background: var(--green); color: var(--cream); border-color: var(--green); font-weight: 700; }

/* Footer */
.footer { padding: 28px 24px 32px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: auto; }
.footer .ar { font-family: var(--arabic); font-size: 15px; color: var(--ink); display: block; margin-top: 4px; }
.footer a { color: var(--ink); }

/* Timeline */
.timeline { padding: 6px 16px; }
.timeline > div { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.timeline > div:first-child { border-top: 0; }
.timeline .t { width: 60px; flex: none; font-weight: 700; color: var(--gold); }

/* Countdown */
.countdown {
  margin: 16px 20px 0; padding: 18px; background: var(--green); color: var(--cream); border-radius: var(--radius);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center;
}
.countdown div { display: flex; flex-direction: column; gap: 2px; }
.countdown b { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold); line-height: 1; }
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
body.is-ar .countdown b { font-family: var(--serif); }

/* Hero */
.hero {
  margin: 8px 20px 0; min-height: 260px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--green-2) 0%, var(--green) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: var(--cream); gap: 6px;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,58,47,0) 30%, rgba(30,58,47,.85) 100%); }
.hero > * { position: relative; z-index: 1; }
.hero .names { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 500; }
.hero .when { font-family: var(--serif); font-size: 19px; }

/* Chips row */
.chips { margin: 14px 20px 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; font-size: 12px; font-weight: 600; padding: 9px 14px; min-height: 36px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chips a.active { background: var(--green); color: var(--cream); border-color: var(--green); font-weight: 700; }

/* Grid of place cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid2 > div, .grid2 > a { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.grid2 b { font-size: 15px; }
.grid2 span { font-size: 12px; color: var(--ink-2); }

/* Hotel rows */
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 44px; }
.row-link b { display: block; font-size: 15px; }
.row-link span { display: block; font-size: 12px; color: var(--muted); }
.row-link .right { flex: none; font-size: 12px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* Steps on dark */
.steps { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(255,255,255,.08); border-radius: var(--radius); font-size: 13px; line-height: 1.5; }
.steps div { display: flex; gap: 10px; }
.steps b.n { color: var(--gold); width: 16px; flex: none; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Loading */
.loading { padding: 60px 24px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* WhatsApp buttons under "message us" */
.wa-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.wa-row .pill { display: inline-flex; align-items: center; gap: 6px; }
.wa-row .pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #25D366; }
