@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0&display=block');

/* ============================================
   KAMAYA AGENCY — Website styles
   Palette: Atlantic teal + Moroccan sunset + sand
   ============================================ */

:root {
  --primary: #0E5C63;
  --primary-dark: #0A444A;
  --primary-light: #3B8790;
  --accent: #E87B3A;
  --accent-dark: #C9641F;
  --sand: #F3E9D7;
  --cream: #FAF6EF;
  --dark: #1A2A31;
  --text: #2C3942;
  --muted: #6B7A82;
  --white: #ffffff;
  --border: #E4DDD0;
  --shadow-sm: 0 2px 8px rgba(26,42,49,.06);
  --shadow-md: 0 8px 24px rgba(26,42,49,.10);
  --shadow-lg: 0 16px 48px rgba(26,42,49,.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --container: 1200px;
  --max-read: 720px;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* SEO-only: visually hidden but crawlable (Googlebot reads it).
   Used for internal-linking sections that we want to keep in the DOM for
   topical authority / AEO / GEO but don't want to display visually. */
.seo-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-lg { padding: 120px 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
/* Higher-contrast eyebrow variant when placed on dark / image backgrounds */
.eyebrow-on-dark,
.hero .eyebrow,
.page-hero .eyebrow,
.services .eyebrow,
.cta-strip .eyebrow,
.usp-strip .eyebrow,
.footer .eyebrow {
  color: #F9C89E;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-ghost { color: var(--primary); }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* Header / Navigation */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(250,246,239,0);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(250,246,239,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  transition: var(--transition);
}
.logo span { color: var(--accent); }
.header.scrolled .logo { color: var(--dark); }
.logo-dark { color: var(--dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--white);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header.scrolled .nav-link { color: var(--text); }
.nav-link-dark { color: var(--text); }

/* Header nav CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}
.btn-nav-primary {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
  font-family: inherit;
}
.btn-nav-primary:hover { background: var(--primary-dark, #0a4a50); }
.btn-nav-accent {
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
  font-family: inherit;
}
.btn-nav-accent:hover { background: #d06830; }
@media (max-width: 820px) {
  .nav-ctas { display: none; }
}

/* Language dropdown */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.header.scrolled .lang-btn { border-color: var(--border); color: var(--text); }
.lang-btn-dark { border-color: var(--border); color: var(--text); }
.lang-btn:hover { background: rgba(255,255,255,.12); }
.lang-btn .flag { font-size: 1.1rem; line-height: 1; }
.lang-btn .chev { transition: var(--transition); }
.lang-switcher.open .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1001;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.lang-option:hover { background: var(--sand); }
.lang-option.active { background: var(--primary); color: var(--white); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.header.scrolled .menu-toggle span, .menu-toggle.dark span { background: var(--dark); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,92,99,.55) 0%, rgba(26,42,49,.35) 40%, rgba(26,42,49,.75) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat;
  z-index: -1;
  transform: scale(1.05);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 120px 24px 60px;
}
.hero h1 {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 640px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,.92);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: .04em;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
  animation: bounce 2.5s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Page header (non-home pages) */
.page-hero {
  position: relative;
  padding: 110px 0 60px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,92,99,.75), rgba(26,42,49,.85)),
    linear-gradient(135deg, #0E5C63, #1A2A31);
  z-index: -1;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead { color: rgba(255,255,255,.88); margin: 0 auto; }

/* USP strip */
.usp-strip {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.usp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.usp-item .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 500;
}
.usp-item .label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
}

/* How it works — editorial steps */
.how-it-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  position: relative;
  padding: 36px 28px 28px;
  background: var(--white);
  border: 1px solid rgba(14, 92, 99, 0.08);
  border-radius: 16px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(14, 92, 99, 0.22);
  border-color: var(--accent);
}
.step-card .step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
  line-height: 1.25;
}
.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .how-it-works .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .step-card { padding: 28px 22px 22px; }
}
@media (max-width: 480px) {
  .how-it-works .steps-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Section headers */
.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
}
.section-head h2 { margin-bottom: 16px; }

/* Property cards */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.property-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand) center/cover no-repeat;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.property-card:hover .property-media { transform: scale(1.06); }
.property-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(26,42,49,.18) 100%);
  z-index: 0;
  pointer-events: none;
}
.property-rating {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,.97);
  color: var(--dark);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.property-rating .star { color: var(--accent); }
.property-rating small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.property-desc {
  font-size: .9rem;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.property-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  z-index: 2;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.property-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.property-type {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
}
.property-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: 500;
}
.property-loc {
  font-size: .9rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.property-specs {
  display: flex;
  gap: 14px;
  font-size: .85rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.property-specs span { display: inline-flex; align-items: center; gap: 4px; }
.property-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
}
.property-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  font-weight: 500;
}
.property-price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.property-cta {
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.property-card:hover .property-cta { color: var(--accent); gap: 8px; }

/* Filter bar */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.filter-group select, .filter-group input {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: var(--transition);
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--primary); background: var(--white); }

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--accent);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
}
.why-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.why-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Services strip (what we arrange) */
.services {
  background:
    linear-gradient(135deg, rgba(14,92,99,.95), rgba(26,42,49,.98)),
    url("../images/services.jpg") center/cover;
  color: var(--white);
}
.services h2 { color: var(--white); }
.services .lead { color: rgba(255,255,255,.85); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-chip {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.service-chip:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.service-chip .icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.service-chip h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.service-chip p { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  transition: var(--transition);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-featured-media {
  min-height: 360px;
  background: var(--sand) center/cover no-repeat;
  position: relative;
}
.blog-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,42,49,.35) 100%);
}
.blog-featured-media .featured-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 2;
}
.blog-featured-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-body .blog-cat { margin-bottom: 14px; }
.blog-featured-body h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 14px;
  line-height: 1.2;
}
.blog-featured-body p { color: var(--muted); margin-bottom: 18px; line-height: 1.65; }
.blog-featured-body .blog-meta { border-top: 0; margin-top: 0; padding-top: 0; }
@media (max-width: 820px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 240px; }
  .blog-featured-body { padding: 28px 24px; }
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card .blog-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 2;
}
/* Why: align card thumb ratio with native 16:9 sources — uniform cover, no extra crop. */
.blog-media {
  aspect-ratio: 16/9;
  background: var(--sand) center/cover no-repeat;
  position: relative;
  transition: transform .5s ease;
}
.blog-card:hover .blog-media { transform: scale(1.04); }
.blog-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-cat {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.blog-card h3 { font-size: 1.25rem; color: var(--dark); }
.blog-card p { font-size: .95rem; color: var(--muted); margin: 0; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: .8rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Blog post */
.post-header {
  position: relative;
  text-align: center;
  padding: 110px 24px 60px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--post-hero, linear-gradient(135deg, #0E5C63, #1A2A31));
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
}
.post-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,92,99,.55) 0%, rgba(26,42,49,.82) 100%);
  z-index: -1;
}
.post-header h1 { color: var(--white); max-width: 880px; margin: 0 auto 16px; font-size: clamp(1.9rem, 4vw, 3rem); }
.post-header .meta { opacity: .92; font-size: .92rem; display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.post-header .meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-content {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 60px 24px 80px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content h2 { margin: 40px 0 16px; font-size: 1.8rem; }
.post-content h3 { margin: 32px 0 14px; font-size: 1.35rem; }
.post-content p { margin-bottom: 1.2rem; color: var(--text); }
.post-content ul, .post-content ol { margin: 0 0 1.2rem 1.4rem; }
.post-content li { margin-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 0 12px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}
.post-content a { color: var(--primary); border-bottom: 1px solid var(--primary-light); }
.post-content a:hover { color: var(--accent); }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .92rem;
}
.post-content th, .post-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-content th {
  background: var(--sand);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-content tr:nth-child(even) td { background: var(--cream); }

/* About page */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.35), rgba(232,123,58,.20)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-info {
  background: var(--dark);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
}
.contact-info h3 { color: var(--white); margin-bottom: 8px; }
.contact-info p { color: rgba(255,255,255,.75); }
.contact-info ul { margin-top: 28px; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.contact-info li:last-child { border: 0; }
.contact-info .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-form {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

/* Listing detail */
.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 110px;
}
.listing-gallery > div {
  background: var(--sand) center/cover no-repeat;
  position: relative;
  transition: transform .5s ease;
  cursor: zoom-in;
}
.listing-gallery > div:hover { transform: scale(1.02); }
.listing-gallery .g-main { grid-row: span 2; }
.listing-gallery .g-1, .listing-gallery .g-2, .listing-gallery .g-3, .listing-gallery .g-4 {}
.listing-head { padding: 40px 0 24px; }
.listing-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.listing-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.listing-meta span { display: inline-flex; align-items: center; gap: 6px; }

.listing-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  padding-bottom: 80px;
}
.listing-main > section { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.listing-main > section:last-child { border: 0; }
.listing-main h2 { font-size: 1.5rem; margin-bottom: 16px; }
.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: .95rem;
  color: var(--text);
}
.amenities li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}
.amenities li.has-icon::before { display: none; }
.amenity-icon { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; }

.listing-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--sand);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  border: 1px solid var(--border);
}
.highlight-chip .material-symbols-outlined { font-size: 1rem; color: var(--primary); }

.listing-tag-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.booking-card {
  position: sticky;
  top: 100px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: fit-content;
}
.booking-card .price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark);
}
.booking-card .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 20px 0 16px;
  overflow: hidden;
}
.booking-row > div {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
}
.booking-row > div:last-child { border-right: 0; }
.booking-row label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.booking-row input { border: 0; background: transparent; padding: 4px 0; width: 100%; font-family: inherit; font-size: .9rem; color: var(--text); }
.booking-row input:focus { outline: none; }

/* CTA strip */
.cta-strip {
  background:
    linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-lg);
}
.cta-strip h2 { color: var(--white); margin-bottom: 16px; }
.cta-strip p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 32px; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.7); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(-4px); }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer a:hover { color: var(--accent); }
.social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.social a:hover { background: var(--accent); color: var(--white); }
.footer-bot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
}

/* Reviews / Social proof */
.reviews-section { background: var(--cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white);
  padding: 28px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  border-top: 3px solid var(--accent);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.review-text {
  flex: 1;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-style: italic;
}
.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
}
.review-foot strong { color: var(--dark); display: block; }
.review-foot small { color: var(--muted); font-size: .78rem; }
.review-source {
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.reviews-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.reviews-summary-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.reviews-summary-item:last-child { border-right: 0; }
.reviews-summary-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
}
.reviews-summary-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 600px) {
  .reviews-summary { gap: 16px; }
  .reviews-summary-item { border-right: 0; padding: 12px 0; }
}

/* FAQ */
.faq-section { background: var(--sand); }
.faq-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  align-items: start;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item[open] { border-color: var(--primary); box-shadow: 0 4px 20px rgba(14,92,99,.08); }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
  font-size: .98rem;
  list-style: none;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #f7f9f9; }
.faq-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1.15rem;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-toggle {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 20px;
  color: var(--text);
  line-height: 1.7;
  font-size: .95rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
@media (max-width: 820px) {
  .faq-wrap { grid-template-columns: 1fr; }
}

/* Trust bar */
.trust-bar {
  background: var(--white);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 28px 32px;
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.trust-bar-inner > span {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  min-width: 0;
  text-align: left;
}
.trust-bar-inner > span > span:last-child {
  min-width: 0;
  flex: 1;
}
.trust-bar-inner .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
  }
}
@media (max-width: 560px) {
  .trust-bar {
    padding: 24px 0;
  }
  .trust-bar-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    font-size: 0.92rem;
  }
  .trust-bar-inner > span {
    padding: 4px 0;
  }
}

/* Gallery + Lightbox */
.listing-gallery .gallery-img { cursor: zoom-in; position: relative; }
.gallery-more {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(26,42,49,.85);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 130px;
  animation: fadeIn .25s ease;
}
.lb-img {
  max-width: 95%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: popIn .3s ease;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.lb-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 2rem;
  line-height: 1;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  background: rgba(255,255,255,.12);
  padding: 8px 16px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.lb-thumbs {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 90vw;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 8px;
}
.lb-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .5;
  transition: var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
}
.lb-thumb:hover { opacity: .85; }
.lb-thumb.active { opacity: 1; border-color: var(--accent); }

/* Listing short description above body */
.listing-short {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.55;
  margin-bottom: 20px !important;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

/* Vibe filter bar */
.vibe-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.vibe-bar::-webkit-scrollbar { display: none; }
.vibe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.vibe-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.vibe-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.vibe-icon { font-size: 1.15rem; }
.material-symbols-outlined {
  font-size: 1.1em;
  vertical-align: -0.18em;
  line-height: 1;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.vibe-btn .material-symbols-outlined { font-size: 1.25rem; vertical-align: -0.2em; }
.vibe-reset {
  width: 40px;
  padding: 10px 0;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  width: 0;
  z-index: 1001;
  transition: width .1s linear;
  box-shadow: 0 1px 4px rgba(232,123,58,.4);
}

/* 3D tilt on property cards (CSS-only subtle version) */
.property-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.property-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
}

/* Sticky mobile book CTA on listing detail */
.sticky-book {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 998;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.sticky-book .sb-price { font-family: var(--font-heading); font-size: 1.1rem; color: var(--dark); font-weight: 500; }
.sticky-book .sb-price small { color: var(--muted); font-weight: 400; font-size: .8rem; }
@media (max-width: 960px) {
  .sticky-book { display: flex; }
  body { padding-bottom: 80px; }
  .wa-float { bottom: 90px; }
}

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,42,49,.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  animation: fadeIn .3s ease;
}
.popup-overlay.show { display: flex; }
.popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
  animation: popIn .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.2rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.popup-close:hover { background: var(--accent); color: var(--white); }
.popup .emoji { font-size: 3rem; display: block; margin-bottom: 8px; }
.popup h3 { margin-bottom: 8px; }
.popup p { color: var(--muted); margin-bottom: 24px; }
.popup form { display: flex; flex-direction: column; gap: 12px; }
.popup input { padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; font-size: .95rem; }
.popup input:focus { outline: none; border-color: var(--primary); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .about-split { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .listing-body { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .listing-gallery { height: 320px; grid-template-columns: 2fr 1fr; }
  .listing-gallery .g-3, .listing-gallery .g-4 { display: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .hero-inner { padding: 100px 20px 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .menu-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-list.open { display: flex; }
  .nav-list .nav-link { color: var(--text); padding: 12px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 32px 24px; }
}

/* ============================================
   A11Y / UX FIXES — contrast, typography, responsive
   ============================================ */

/* --- SVG icon styling --- */
.wa-icon {
  color: #fff;
  display: block;
  transition: transform var(--transition);
}
.wa-float:hover .wa-icon { transform: scale(1.05); }

.social-icon {
  color: inherit;
  display: block;
  transition: transform var(--transition), color var(--transition);
}
.social a:hover .social-icon { color: var(--white); transform: scale(1.08); }

.popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  color: var(--primary);
  background: var(--sand);
  border-radius: 50%;
}

/* --- TASK 2: contrast fixes for muted on sand backgrounds --- */
.bg-sand,
section[style*="background:var(--sand)"],
section[style*="background: var(--sand)"] {
  /* container itself no change */
}
section[style*="background:var(--sand)"] .muted,
section[style*="background: var(--sand)"] .muted,
section[style*="background:var(--sand)"] .lead,
section[style*="background: var(--sand)"] .lead,
section[style*="background:var(--sand)"] .blog-card p,
section[style*="background: var(--sand)"] .blog-card p,
section[style*="background:var(--sand)"] .property-desc,
section[style*="background: var(--sand)"] .property-desc,
section[style*="background:var(--sand)"] .property-loc,
section[style*="background: var(--sand)"] .property-loc,
section[style*="background:var(--sand)"] .why-card p,
section[style*="background: var(--sand)"] .why-card p {
  color: #4a5761;
}
/* Lead paragraph (muted fallback) baseline boost anywhere it sits on sand */
.section[style*="var(--sand)"] .lead { color: #4a5761; }

/* FAQ answers on sand section — keep readable */
.section[style*="var(--sand)"] .faq-answer { color: var(--text); }

/* --- TASK 3: widow/orphan prevention + hyphenation fallback --- */
h1, h2, h3, h4 { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
p, li { text-wrap: pretty; }

/* --- TASK 6: touch targets --- */
.btn { min-height: 48px; }
.nav-link { padding: 10px 4px; }
.lang-btn { min-height: 44px; }
.wa-float { width: 60px; height: 60px; }
.lang-option { min-height: 44px; }

/* Blog responsive */
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
@media (max-width: 900px) {
  .blog-featured { grid-template-columns: 1fr; gap: 0; }
  .blog-featured-media { min-height: 280px; }
  .blog-featured-body { padding: 24px; }
  .blog-grid { gap: 20px; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-body { padding: 16px 18px 20px; }
  .blog-card h3 { font-size: 1.15rem; }
  .blog-card p { font-size: .9rem; }
  .blog-featured-body { padding: 20px 18px; }
  .blog-featured-body h2 { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .blog-media { aspect-ratio: 16/9; } /* Why: keep ratio consistent on mobile, source is 16:9 native. */
  .blog-card h3 { font-size: 1.3rem; }
  .blog-card p { font-size: 14px; }
}

/* ============================================
   HAMMAM MINAÏA feature section
   ============================================ */
.hammam-feature {
  background: linear-gradient(135deg, #f7ede0 0%, #efd9b8 100%);
  position: relative;
  overflow: hidden;
}
.hammam-feature::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,123,58,.18), transparent 70%);
  pointer-events: none;
}
.hammam-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hammam-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}
.hammam-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .4s ease;
}
.hammam-main img:hover { transform: scale(1.01); }
.hammam-thumbs {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}
.hammam-thumbs img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-sm);
}
.hammam-thumbs img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.hammam-content .eyebrow {
  color: var(--primary);
  letter-spacing: .14em;
}
.hammam-content h2 {
  margin: 12px 0 16px;
  color: var(--primary-dark);
}
.hammam-content .lead {
  color: var(--text);
  margin-bottom: 8px;
}
.hammam-rituals {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.hammam-rituals li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(14, 92, 99, 0.15);
  line-height: 1.6;
}
.hammam-rituals li:last-child { border-bottom: none; }
.hammam-rituals strong {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  letter-spacing: .01em;
}
.hammam-rituals .muted {
  color: var(--muted);
  font-size: .92rem;
}
.hammam-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.hammam-footer .small { font-size: .9rem; }
@media (max-width: 900px) {
  .hammam-grid { grid-template-columns: 1fr; gap: 32px; }
  .hammam-main img { height: 340px; }
  .hammam-thumbs img { height: 80px; }
}
@media (max-width: 560px) {
  .hammam-gallery { grid-template-columns: 1fr; }
  .hammam-thumbs {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
    gap: 8px;
  }
  .hammam-thumbs img { height: 74px; }
  .hammam-footer { flex-direction: column; align-items: stretch; }
  .hammam-footer .btn { justify-content: center; }
}

/* ============================================
   BLOG POST — enhanced layout (inline figures + gallery)
   ============================================ */
.post-content figure {
  margin: 40px -40px;
}
.post-content figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: block;
}
.post-content figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}
.post-content figure.pull-left,
.post-content figure.pull-right {
  margin: 24px 0;
  max-width: 48%;
}
.post-content figure.pull-left { float: left; margin-right: 28px; }
.post-content figure.pull-right { float: right; margin-left: 28px; }
/* Why: AI inline figures are 16:9 (1024×576) — match container ratio to avoid heavy crop. */
.post-content figure.pull-left img,
.post-content figure.pull-right img {
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
}
.post-content::after {
  content: "";
  display: block;
  clear: both;
}
.blog-post-gallery {
  max-width: 1080px;
  margin: 24px auto 80px;
  padding: 0 24px;
}
.blog-post-gallery .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.blog-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* Why: gallery sources are 16:9 — force 16:9 cells to avoid top/bottom crop on horizons & faces. */
.blog-gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: var(--shadow-sm);
}
.blog-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {
  .post-content figure { margin: 28px 0; }
  .post-content figure.pull-left,
  .post-content figure.pull-right {
    float: none;
    max-width: 100%;
    margin: 28px 0;
  }
  .blog-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .blog-post-gallery { padding: 0 16px; margin-bottom: 48px; }
}
@media (max-width: 480px) {
  .blog-gallery { grid-template-columns: 1fr 1fr; }
}

/* --- TASK 5: Mobile <480px coverage --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .hero { padding: 80px 0 60px; min-height: 80vh; }
  .hero-inner { padding: 80px 16px 40px; }
  .hero-sub, .hero .lead { font-size: 1rem; }
  .btn { min-height: 48px; min-width: 48px; padding: 14px 22px; }
  .btn-lg { padding: 16px 26px; }
  .nav-list { gap: 12px; }
  .lang-menu { right: 0; max-width: calc(100vw - 32px); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; gap: 16px; font-size: 0.8rem; }
  .trust-bar-inner > span { padding: 8px 4px; }
  .services-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; gap: 20px; }
  .filter-bar { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .listing-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
    height: auto;
  }
  .listing-gallery .g-main { grid-column: 1 / -1; grid-row: span 1; height: 240px; }
  .listing-gallery .g-3, .listing-gallery .g-4 { display: block; }
  .usp-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .reviews-summary { gap: 12px; }
  .page-hero { padding: 100px 0 50px; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
  .cta-strip { padding: 56px 20px; }
  .about-split { gap: 32px; }
  .about-media { aspect-ratio: 4/3; }
  .contact-info, .contact-form { padding: 24px 18px; }
  .booking-card { padding: 20px; }
  .popup { padding: 36px 22px 28px; }
  .wa-float { bottom: 20px; right: 20px; }
}

/* ============ LISTING MAP SECTION ============ */
.listing-map-section { margin: 60px 0; }
.listing-map-section h2 { margin-bottom: 8px; }
.listing-map-section .muted { color: var(--muted); }
#listing-map { margin-top: 24px; z-index: 1; overflow: hidden; }
.map-context { font-size: 0.95rem; }
.map-context strong { color: var(--primary); }

/* ============ BOOKING-REQUEST MODAL (in-site, no Hostaway redirect) ============ */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.booking-modal.open { display: flex; animation: bmFade .25s ease; }
.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.booking-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  animation: bmSlideUp .25s cubic-bezier(.4, 0, .2, 1);
}
.booking-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--sand, #f5f1ea);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--dark, #1a2a31);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.booking-modal-close:hover { background: var(--accent, #E87B3A); color: #fff; }
.booking-modal-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading, 'Fraunces', serif);
  font-size: 1.5rem;
}
.booking-modal-card .muted { color: var(--muted, #6b7a80); margin: 0 0 20px; font-size: .95rem; }
.booking-modal-form { display: flex; flex-direction: column; gap: 12px; }
.booking-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-modal-full { display: block; }
.booking-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .82rem;
  color: var(--muted, #6b7a80);
  font-weight: 500;
}
.booking-modal-form input,
.booking-modal-form textarea {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e2ddd3);
  font-family: inherit;
  font-size: .95rem;
  color: var(--dark, #1a2a31);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.booking-modal-form input:focus,
.booking-modal-form textarea:focus {
  outline: none;
  border-color: var(--primary, #0E5C63);
  box-shadow: 0 0 0 3px rgba(14, 92, 99, .12);
}
.booking-modal-form input[readonly] { background: var(--sand, #f5f1ea); color: var(--dark, #1a2a31); }
.booking-modal-form textarea { resize: vertical; min-height: 70px; }
.booking-modal-est {
  background: var(--sand, #f5f1ea);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .9rem;
  text-align: center;
  color: var(--dark, #1a2a31);
}
.booking-modal-submit { width: 100%; justify-content: center; margin-top: 6px; }
.booking-modal-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.booking-modal-hint { font-size: .78rem; margin-top: 6px; text-align: center; }
.booking-modal-fallback { font-size: .78rem; margin-top: 4px; text-align: center; }
.booking-modal-fallback a { color: var(--accent); font-weight: 500; text-decoration: none; }
.booking-modal-fallback a:hover { text-decoration: underline; }
.booking-modal-error {
  background: #fff3ed;
  border: 1px solid #f2b896;
  color: #8a3c10;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .9rem;
}
.booking-modal-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  padding: 4px 0;
  justify-content: center;
  width: 100%;
}
.booking-modal-loading .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(14, 92, 99, 0.22);
  border-top-color: var(--primary, #0E5C63);
  border-radius: 50%;
  animation: bmSpin 0.7s linear infinite;
  display: inline-block;
}
@keyframes bmSpin { to { transform: rotate(360deg); } }

/* Booking result pages */
.booking-result { padding: 80px 0; }
.booking-result-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #2a7f6a;
  color: #fff;
  font-size: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px -10px rgba(42, 127, 106, 0.35);
}
.booking-result-icon-cancel { background: #e8a94a; box-shadow: 0 12px 30px -10px rgba(232, 169, 74, 0.35); }
.booking-result-box {
  background: var(--sand);
  border-radius: 14px;
  padding: 24px;
  margin: 32px auto 0;
  max-width: 520px;
}
.booking-modal-success {
  text-align: center;
  padding: 24px 8px 8px;
}
.booking-modal-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a7f6a;
  color: #fff;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.booking-modal-success p { font-size: 1rem; color: var(--dark, #1a2a31); }

@keyframes bmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .booking-modal { padding: 12px; }
  .booking-modal-card { padding: 28px 20px 22px; }
  .booking-modal-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   Flatpickr overrides — Kamaya brand-aligned availability calendar.
   Shown in the booking card on listing.html and in the booking modal.
   ===================================================================== */
.booking-card-row {
  margin: 12px 0 4px;
}
.booking-card-full {
  display: block;
  width: 100%;
}
.booking-card-full span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.booking-card-full input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.booking-card-legend {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.booking-card-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.booking-card-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.booking-modal-legend { margin: -4px 0 10px; }
.dot-avail { background: var(--primary); }
.dot-booked { background: #c9c2b9; }
.dot-selected { background: var(--accent); }
.booking-card-loading .spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: bcSpin 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
@keyframes bcSpin { to { transform: rotate(360deg); } }

.flatpickr-calendar {
  font-family: var(--font-body);
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.18) !important;
  border: none !important;
  padding: 6px 6px 8px;
}
.flatpickr-months { padding: 12px 0 4px; }
.flatpickr-month { height: 40px; }
.flatpickr-current-month { font-size: 1rem !important; font-weight: 600 !important; padding: 0 !important; }
.flatpickr-day {
  border-radius: 8px !important;
  height: 48px !important;
  line-height: 36px !important;
  font-size: .82rem !important;
  font-weight: 500;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 4px;
}
.flatpickr-day .fp-price {
  font-size: .6rem !important;
  color: var(--muted);
  line-height: 1 !important;
  margin-top: 1px;
  font-weight: 500;
  pointer-events: none;
}
.flatpickr-day.selected .fp-price,
.flatpickr-day.startRange .fp-price,
.flatpickr-day.endRange .fp-price { color: rgba(255,255,255,.8); }
.flatpickr-day.inRange .fp-price { color: var(--primary); }
.flatpickr-day.flatpickr-disabled .fp-price { color: #c9c2b9; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.flatpickr-day.inRange {
  background: rgba(14,92,99,.12) !important;
  border-color: transparent !important;
  box-shadow: -5px 0 0 rgba(14,92,99,.12), 5px 0 0 rgba(14,92,99,.12);
  color: var(--dark) !important;
}
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) {
  background: rgba(14,92,99,.1) !important;
  border-color: transparent !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  text-decoration: line-through;
  opacity: .3;
  color: #c9c2b9;
  background: #f8f6f2;
  cursor: not-allowed;
  border-color: transparent;
}
.flatpickr-day.today {
  border-color: var(--accent);
  color: var(--accent);
}
.flatpickr-day.today.selected,
.flatpickr-day.today.startRange,
.flatpickr-day.today.endRange { color: #fff; }
/* check-on-arrival / check-on-departure indicators */
.fp-coa::before {
  content: "↓";
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: .55rem;
  color: var(--accent);
  line-height: 1;
}
.fp-cod::after {
  content: "↑";
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: .55rem;
  color: var(--accent);
  line-height: 1;
}
/* Visual-only grey for dates within minStay window — not disabled, just styled */
.flatpickr-day.fp-minstay {
  color: #b8b0a8;
  opacity: .55;
  cursor: default;
}
.flatpickr-day.fp-minstay .fp-price { color: #c9c2b9; }
.flatpickr-weekdays { padding: 8px 0 4px; }
.flatpickr-weekday { font-weight: 600 !important; font-size: .75rem; color: var(--muted); }
/* Booking-card inline full-width input alignment with the modal */
.booking-modal-full .flatpickr-input[readonly] { cursor: pointer; }
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday { background: transparent; color: var(--text, #1a2a31); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { color: var(--text, #1a2a31); }
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month { color: var(--primary); fill: var(--primary); }
/* Calendar summary bar */
.cal-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14,92,99,.06);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: -2px;
  font-size: .85rem;
  flex-wrap: wrap;
}
.cal-summary-hint { color: var(--muted); font-style: italic; }
.cal-summary-range { font-weight: 600; color: var(--primary); }
.cal-summary-nights { color: var(--muted); }
.cal-summary-total { font-weight: 700; color: var(--dark); margin-left: auto; }

/* Step indicator for 2-step date selection */
.cal-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.cal-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  flex: 1;
  min-width: 110px;
}
.cal-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.cal-step-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cal-step-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.cal-step-val {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}
.cal-step-active {
  border-color: var(--primary);
  background: rgba(14,92,99,.05);
}
.cal-step-active .cal-step-num {
  background: var(--primary);
  color: #fff;
}
.cal-step-active .cal-step-label { color: var(--primary); }
.cal-step-done .cal-step-num {
  background: var(--accent);
  color: #fff;
}
.cal-step-done .cal-step-label { color: var(--accent); }
.cal-step-sep {
  color: var(--muted);
  font-size: .9rem;
  flex-shrink: 0;
}
.cal-step-result {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.cal-step-nights {
  font-size: .82rem;
  color: var(--muted);
}
.cal-step-total {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
}

/* =====================================================================
   BLOG — editorial redesign (list page, filters, pagination, post page).
   All .blog-* and .post-* rules below. Owns .pagination-* too.
   ===================================================================== */

/* ----- Blog list page ----- */
.blog-page-hero { padding-bottom: 40px; }
.section-featured { padding-top: 24px; padding-bottom: 16px; }
.section-filters { padding-top: 8px; padding-bottom: 8px; }
.section-grid { padding-top: 24px; padding-bottom: 72px; }

.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 14px 0 6px;
}
.blog-filter-pill {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.blog-filter-pill:hover {
  background: var(--sand);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.blog-filter-pill.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.blog-filter-pill.is-active:hover { background: var(--primary-dark); }
.blog-results-count {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 56px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.pagination:empty { display: none; }
.pagination-nums {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-num,
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.pagination-num:hover,
.pagination-arrow:hover {
  background: var(--sand);
  border-color: var(--border);
  transform: translateY(-1px);
}
.pagination-num.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px -2px rgba(232, 123, 58, 0.35);
}
.pagination-num.is-active:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.pagination-arrow {
  color: var(--muted);
  font-weight: 500;
}
.pagination-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination-label { font-size: 0.88rem; }
.pagination-compact { display: none; font-weight: 500; color: var(--muted); font-size: 0.9rem; padding: 0 12px; }

/* ----- Featured card small polish (keeps existing .blog-featured rules) ----- */
.section-featured .blog-featured { margin-bottom: 0; }

/* ----- Blog post — HERO ----- */
.post-hero {
  position: relative;
  min-height: clamp(380px, 55vh, 540px);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 52px 0 0;
  background-color: #1A2A31;
  background-image: var(--post-hero);
  background-size: cover;
  background-position: center;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14,42,52,0.45) 0%,
      rgba(14,42,52,0.15) 35%,
      rgba(14,42,52,0.75) 100%);
  z-index: 0;
}
.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 48px;
  width: 100%;
  text-align: center;
}
.post-back {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 0;
  white-space: nowrap;
}
.post-back:hover { color: var(--accent); }
.post-cat-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.post-hero h1 {
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.post-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}
.post-hero-meta .sep { color: rgba(255,255,255,0.5); }
.post-author-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* ----- Post body layout — main + optional sticky TOC ----- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  gap: 48px;
}
@media (min-width: 1100px) {
  .post-layout {
    grid-template-columns: 220px minmax(0, 720px) 1fr;
    gap: 48px;
    padding: 72px 40px 56px;
    justify-content: center;
  }
  .post-layout .post-toc { grid-column: 1; grid-row: 1; }
  .post-layout .post-body { grid-column: 2; grid-row: 1; }
}

.post-body { max-width: 720px; margin: 0 auto; width: 100%; }

.post-lede {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--dark);
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Body content — Inter 18px, generous line-height, longer measure */
.post-content {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  max-width: none;
  margin: 0;
  padding: 0;
}
.post-content p { margin: 0 0 1.3rem; }
.post-content p + p { margin-top: 0; }
.post-content h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 56px 0 18px;
  color: var(--dark);
  scroll-margin-top: 90px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin: 40px 0 14px;
}
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.2rem; padding: 0; }
.post-content li { margin-bottom: 0.5rem; line-height: 1.65; }
.post-content a {
  color: var(--primary);
  border-bottom: 1px solid var(--primary-light);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-content a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.94rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  overflow-x: auto;
}
.post-content th, .post-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.post-content th {
  background: var(--sand);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}
.post-content tr:last-child td { border-bottom: 0; }
.post-content tr:nth-child(even) td { background: var(--cream); }

/* Why: tighter rhythm — 36px keeps figures attached to surrounding paragraphs, less floaty. */
.post-content figure {
  margin: 36px calc(50% - 50vw);
  max-width: 100vw;
}
/* On desktop with sidebar TOC: contain figures within the body column (no left bleed into TOC) */
@media (min-width: 1100px) {
  .post-content figure {
    margin: 36px 0;
    max-width: 100%;
  }
}
/* Why: lock 16:9 ratio so all inline figures render uniformly, no letterbox, no jumpy heights. */
.post-content figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 64vh;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}
/* Why: tighter gap + left-align caption with body column for visual continuity. */
.post-content figcaption {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 24px;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.post-content::after { content: ""; display: block; clear: both; }

/* Pull quote (blockquote.post-pullquote) */
.post-content blockquote,
.post-content .post-pullquote {
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--dark);
}
.post-content .post-pullquote::before {
  content: "“";
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  line-height: 0.6;
  color: var(--accent);
  margin-right: 6px;
  vertical-align: -12px;
}

/* Optional callout box (used in future articles via <aside class="post-callout">) */
.post-content .post-callout {
  background: var(--sand);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.post-content .post-callout strong { color: var(--primary-dark); }

/* ----- Sticky TOC (desktop only) ----- */
.post-toc { display: none; }
@media (min-width: 1100px) {
  .post-toc {
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .post-toc-inner {
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
  .post-toc-title {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 14px;
  }
  .post-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .post-toc-list a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding: 4px 0 4px 8px;
    margin-left: -10px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .post-toc-list a:hover { color: var(--dark); }
  .post-toc-list a.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
  }
  .toc-num {
    font-family: "Fraunces", serif;
    font-feature-settings: "tnum";
    font-size: 0.78rem;
    color: var(--accent);
    min-width: 22px;
  }
  .toc-text { flex: 1; }
}

/* ----- End-of-article CTA ----- */
.post-end-cta {
  margin: 72px 0 48px;
}
.post-end-cta-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px -12px rgba(14, 92, 99, 0.35);
}
.post-end-cta-inner h3 {
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 12px;
}
.post-end-cta-inner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.post-end-cta-inner .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.post-end-cta-inner .btn-primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary-dark);
}

/* ----- Share row ----- */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 48px 0 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-share-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.post-share-btn:hover {
  background: var(--sand);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.post-share-btn svg { flex-shrink: 0; }
.post-share-wa:hover { background: #25D366; border-color: #25D366; color: var(--white); }
.post-share-copy.is-done {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ----- Author bio mini ----- */
.post-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--cream);
  border-radius: 16px;
  margin: 0 0 32px;
}
.post-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.post-author-avatar span { color: var(--accent); }
.post-author-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}
.post-author-avatar.sm span { color: var(--accent); }
.post-author-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
}
.post-author-body p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ----- Post gallery section (positioned outside post-layout, full-width) ----- */
.post-gallery-section {
  background: var(--sand);
  padding: 64px 0;
  margin: 0;
}
.post-gallery-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-gallery-wrap .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 24px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* Why: align in-post gallery grid to native 16:9 sources — uniform crop, no letterbox. */
.post-gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.post-gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ----- Related articles ----- */
.post-related {
  background: var(--cream);
  padding: 72px 0 96px;
}
.post-related .section-head {
  text-align: center;
  margin-bottom: 32px;
}
.post-related .eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.blog-grid-related {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  grid-template-columns: repeat(3, 1fr);
}

/* ----- Sticky mobile CTA (post page only) ----- */
.post-sticky-cta {
  display: none;
}
@media (max-width: 720px) {
  .post-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px -8px rgba(0,0,0,0.12);
  }
  .post-sticky-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
    line-height: 1.25;
  }
  .post-sticky-cta .btn {
    padding: 10px 18px;
    flex-shrink: 0;
    font-size: 0.88rem;
    min-height: 40px;
  }
  /* Push WhatsApp float up so it doesn't sit under the sticky CTA */
  .wa-float { bottom: 84px; }
  /* Add breathing room at bottom so last content isn't hidden */
  .post-related { padding-bottom: 120px; }
}

/* ----- Responsive: tablet / mobile tweaks ----- */
@media (max-width: 1099px) {
  .post-toc { display: none; }
  .post-layout { padding: 48px 24px 32px; }
}
@media (max-width: 820px) {
  .blog-grid-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .post-hero { min-height: 380px; padding-top: 52px; }
  .post-hero-inner { padding-bottom: 48px; }
  .post-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 20px; }
  .post-hero-meta { font-size: 0.84rem; gap: 8px; }
  .post-content { font-size: 17px; line-height: 1.7; }
  .post-content h2 { font-size: 1.5rem; margin: 44px 0 14px; }
  .post-content h3 { font-size: 1.15rem; }
  .post-content figure { margin: 32px calc(50% - 50vw); }
  .post-content figure img { max-height: 60vh; }
  .post-content .post-pullquote { font-size: 1.15rem; padding-left: 20px; }
  .post-layout { padding: 40px 20px 24px; gap: 32px; }
  .post-lede { font-size: 1.1rem; margin-bottom: 28px; padding-bottom: 20px; }
  .post-end-cta-inner { padding: 36px 24px; }
  .post-share { gap: 8px; padding: 20px 0; margin: 36px 0 28px; }
  .post-share-label { flex-basis: 100%; margin-bottom: 6px; }
  .post-share-btn { padding: 9px 14px; font-size: 0.84rem; }
  .post-gallery-section { padding: 44px 0; }
  .post-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-related { padding: 48px 0 72px; }

  /* Pagination: swap numbered list for compact label */
  .pagination-nums { display: none; }
  .pagination-compact { display: inline-flex; }
  .pagination { gap: 12px; margin-top: 40px; padding: 20px 0; }
  .pagination-arrow { padding: 0 12px; min-width: 40px; }
  .pagination-label { display: none; }

  /* Filter bar: horizontal scroll on very small screens */
  .blog-filter-bar { gap: 8px; padding: 10px 4px 4px; }
  .blog-filter-pill { padding: 8px 16px; font-size: 0.84rem; }
}
@media (max-width: 560px) {
  .post-hero { min-height: 340px; }
  .post-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .post-cat-badge { padding: 5px 12px; font-size: 0.66rem; }
  .post-hero-meta .sep:nth-of-type(1) { display: none; }
  .post-hero-meta { flex-direction: column; gap: 4px; }
  .post-author { flex-direction: column; gap: 12px; padding: 20px; text-align: center; align-items: center; }
  .blog-grid-related { grid-template-columns: 1fr; }
  .post-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .post-content figure { margin: 24px -20px; }
  .post-content figcaption { padding: 0 20px; font-size: 0.82rem; }
  .post-content .post-pullquote { font-size: 1.05rem; padding-left: 16px; }
  .post-gallery-grid { gap: 8px; }
  .blog-filter-pill { padding: 7px 14px; font-size: 0.8rem; }
  .pagination-arrow { padding: 0 10px; min-width: 36px; height: 40px; }
  .pagination-compact { font-size: 0.84rem; padding: 0 6px; }
  .post-end-cta-inner { padding: 28px 20px; border-radius: 16px; }
  .post-sticky-label { font-size: 0.82rem; }
}

/* ============ HAMMAM MODAL ============ */
.hammam-modal {
  position: fixed; inset: 0; z-index: 9100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hammam-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 26, 32, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.hammam-modal-card {
  position: relative; z-index: 1;
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-lg);
}
.hammam-modal-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 1.6rem; color: var(--muted);
  line-height: 1; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: var(--transition);
}
.hammam-modal-close:hover { background: var(--border); color: var(--dark); }
.hammam-modal-header { margin-bottom: 28px; }
.hammam-modal-eyebrow {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.hammam-modal-header h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}
.hammam-modal-form { display: flex; flex-direction: column; gap: 18px; }
.hammam-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hammam-modal-field { display: flex; flex-direction: column; gap: 6px; }
.hammam-modal-field span { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hammam-modal-field input,
.hammam-modal-field select {
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--dark);
  transition: border-color var(--transition);
}
.hammam-modal-field input:focus,
.hammam-modal-field select:focus {
  outline: none; border-color: var(--primary);
}

/* Ritual cards */
.hammam-ritual-group { border: none; padding: 0; }
.hammam-ritual-group legend {
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 10px; display: block;
}
.hammam-ritual-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
  margin-bottom: 8px;
}
.hammam-ritual-card:last-child { margin-bottom: 0; }
.hammam-ritual-card input[type="radio"] {
  margin-top: 3px; accent-color: var(--primary); flex-shrink: 0;
  width: 17px; height: 17px;
}
.hammam-ritual-card:has(input:checked) {
  border-color: var(--primary); background: rgba(14, 92, 99, 0.04);
}
.hammam-ritual-body { display: flex; flex-direction: column; gap: 3px; }
.hammam-ritual-name { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.hammam-ritual-desc { font-size: 0.83rem; color: var(--muted); }
.hammam-ritual-price { font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-top: 2px; }

/* Massage add-on */
.hammam-addon {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.hammam-addon input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; width: 17px; height: 17px; }
.hammam-addon:has(input:checked) { border-color: var(--primary); background: rgba(14, 92, 99, 0.04); }
.hammam-addon-text { display: flex; flex-direction: column; gap: 2px; }
.hammam-addon-text strong { font-size: 0.93rem; }

/* Total line */
.hammam-total-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--muted);
}
.hammam-total-line strong { font-size: 1.1rem; color: var(--primary); }

/* Error / loading */
.hammam-modal-error {
  padding: 10px 14px; background: #fdf0f0; border: 1px solid #f5c6c6;
  border-radius: var(--radius-sm); color: #b91c1c; font-size: 0.88rem;
}
.hammam-modal-loading { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.hammam-modal-submit { width: 100%; margin-top: 4px; }

/* Success state */
.hammam-modal-success {
  text-align: center; padding: 40px 20px;
}

@media (max-width: 520px) {
  .hammam-modal-card { padding: 32px 22px 28px; }
  .hammam-modal-row { grid-template-columns: 1fr; }
}

/* ---- Promo / discount code row (booking modal + hammam modal) ---- */
.promo-row { display: flex; flex-direction: column; gap: 5px; }
.promo-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.promo-input-wrap input[type="text"] {
  flex: 1;
  font-family: "SF Mono", "Fira Mono", monospace;
  letter-spacing: .06em;
  font-size: .9rem;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color .15s;
}
.promo-input-wrap input[type="text"]:focus { border-color: var(--primary); }
.btn-promo-apply {
  flex-shrink: 0;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-promo-apply:hover { background: var(--primary); color: #fff; }
.btn-promo-apply:disabled { opacity: .5; cursor: default; }
.promo-feedback { font-size: .84rem; font-weight: 500; padding: 0 2px; }
.promo-valid   { color: #2d8f5a; }
.promo-invalid { color: #c0392b; }
.promo-checking { color: var(--muted); }

/* ============================================================
   KAMAYA UI AUDIT FIXES — 2026-04-19
   Organized by: General → Header → Cards → Listing → Modal → Footer → Mobile
   ============================================================ */

/* ─── 1. GLOBAL: Section spacing consistency ─── */
/* Remove double-padding from sections that already have .section class padding */
.section + .section { margin-top: 0; }

/* Ensure all sections that carry inline background styles still get proper top body-spacing */
body > section:first-of-type { /* handled by hero full-viewport */ }

/* ─── 2. HEADER: mobile nav z-index & dropdown containment ─── */
.header { z-index: 1000; }
.lang-menu { z-index: 1100; } /* above header */

/* Mobile nav-list must sit below header correctly */
@media (max-width: 720px) {
  .nav-list {
    top: 100%;
    z-index: 1050;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
  }
  .nav-list .nav-link {
    display: block;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .nav-list .nav-link.active {
    color: var(--accent);
    font-weight: 600;
  }
  /* Ensure lang-switcher stays visible in mobile nav area */
  .lang-switcher { flex-shrink: 0; }
  /* Push menu toggle to be always visible */
  .menu-toggle { display: flex; cursor: pointer; }
}

/* Logo colour fix: on dark header (transparent top) text must be white */
.header:not(.scrolled) .logo { color: var(--white); }
/* On inner pages the header starts with .scrolled – already handled */

/* ─── 3. PAGE-HERO: ensure nav doesn't overlap content ─── */
/* The page-hero starts at 180px top padding which is correct for fixed header */
/* But on very short viewports text may crowd — tighten a touch */
@media (max-width: 560px) {
  .page-hero { padding: 90px 0 44px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-hero .lead { font-size: 1rem; }
}

/* ─── 4. PROPERTY CARDS: uniform height + image discipline ─── */
.properties-grid {
  /* Align-items stretch so all cards in a row fill equal height */
  align-items: stretch;
}
.property-card {
  /* Guarantee image never overflows */
  overflow: hidden;
}
.property-media {
  /* Ensure aspect-ratio is respected and image doesn't bleed */
  overflow: hidden;
  flex-shrink: 0;
}
/* The hover scale on .property-media transforms the card itself which clips OK
   because .property-card has overflow:hidden — confirmed fine */

/* Property CTA: make it look like a real link-button, not just plain text */
.property-cta {
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .82rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), gap var(--transition);
}
.property-card:hover .property-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  gap: 6px;
}

/* Price label: clearer hierarchy */
.property-price {
  font-size: 1.3rem;
}
.property-price small {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
}

/* ─── 5. LISTINGS PAGE: filter bar on mobile ─── */
@media (max-width: 720px) {
  .filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  /* Reset button spans full width on mobile */
  .filter-bar .filter-group:last-child {
    grid-column: 1 / -1;
  }
  .filter-bar .filter-group:last-child .btn-ghost {
    width: 100%;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }
}
@media (max-width: 480px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

/* Vibe bar scrollable on small screens */
@media (max-width: 560px) {
  .vibe-bar { padding: 6px 2px 12px; gap: 8px; }
  .vibe-btn { padding: 8px 14px; font-size: .82rem; }
}

/* ─── 6. LISTING DETAIL: gallery polish ─── */
/* Gallery image hover: prevent overflow from scaling outside the grid cell */
.listing-gallery > div {
  overflow: hidden;
}
/* Gallery: on mobile (480px) keep at least 2 images visible */
@media (max-width: 640px) and (min-width: 481px) {
  .listing-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 320px;
  }
  .listing-gallery .g-3,
  .listing-gallery .g-4 { display: none; }
}

/* Booking card: cleaner visual separation and prominent CTA */
.booking-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.booking-card .price {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
/* Book button: always full-width and visually prominent */
.booking-card [data-book] {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  font-size: 1rem;
  padding: 16px 24px;
}

/* Amenities: improve the 2-col grid on narrow listing pages */
@media (max-width: 480px) {
  .amenities {
    grid-template-columns: 1fr;
  }
}

/* Map section: correct height and rounded border */
#listing-map {
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (max-width: 720px) {
  #listing-map { height: 280px; }
}

/* Highlight chips: consistent spacing */
.listing-highlights {
  margin-top: 20px;
  margin-bottom: 4px;
}
.highlight-chip {
  font-size: .8rem;
  padding: 5px 12px;
}

/* ─── 7. BOOKING MODAL: z-index, centering, form polish ─── */
.booking-modal {
  z-index: 3100; /* above lightbox (3000) on listings; fine on detail */
}
/* Ensure overlay covers everything */
.booking-modal-overlay {
  position: fixed; /* was absolute — use fixed so it covers viewport when card scrolls */
}
/* Card: always centered, never taller than viewport */
.booking-modal-card {
  /* scrollbar inside card should be subtle */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.booking-modal-card::-webkit-scrollbar { width: 6px; }
.booking-modal-card::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Form label contrast */
.booking-modal-form label > span {
  color: var(--text);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
}

/* Error state: more visible */
.booking-modal-error {
  border-left: 3px solid #c0392b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Success icon: larger and better contrast */
.booking-modal-success-icon {
  font-size: 2rem;
  font-weight: 700;
}

/* Submit button: consistent width & height */
.booking-modal-submit {
  min-height: 52px;
  font-size: 1rem;
}

/* ─── 8. HAMMAM MODAL: centering fix ─── */
/* The hammam modal uses display:none by default (inline style on the element)
   so we can't use display:flex in the class alone when it's none;
   JS uses element.style.display = 'flex'. That's fine — we reinforce here: */
.hammam-modal[style*="flex"],
.hammam-modal[style*="block"] {
  align-items: center;
  justify-content: center;
}
/* Overlay: must be position:fixed to cover scroll */
.hammam-modal-overlay {
  position: fixed;
}

/* ─── 9. POPUP: centering and backdrop ─── */
.popup-overlay {
  /* Already has position:fixed — good */
  padding: 20px;
}
.popup {
  /* Cap width on very wide screens */
  max-width: 480px;
}
/* Email input in popup */
.popup input[type="email"] {
  width: 100%;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
}
.popup form .btn-primary {
  width: 100%;
  justify-content: center;
  min-height: 50px;
}

/* ─── 10. TRUST BAR: icon alignment on all viewports ─── */
@media (max-width: 360px) {
  .trust-bar-inner {
    grid-template-columns: 1fr;
  }
}

/* ─── 11. USP STRIP: number sizing ─── */
@media (max-width: 480px) {
  .usp-item .num { font-size: 1.6rem; }
  .usp-item .label { font-size: .78rem; }
}

/* ─── 12. WHY GRID: consistent card heights ─── */
.why-grid {
  align-items: stretch;
}
.why-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ─── 13. SERVICES GRID: icon size consistency ─── */
.service-chip .icon { font-size: 1.8rem; line-height: 1.2; }

/* ─── 14. CTA STRIP: button layout on mobile ─── */
@media (max-width: 480px) {
  .cta-strip .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-strip .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── 15. FOOTER: consistent spacing and link hover ─── */
.footer {
  /* Guarantee full-width regardless of parent */
  width: 100%;
}
.footer-grid {
  /* On wide screens keep proportions */
  align-items: start;
}
.footer ul li a {
  /* Subtle transition already handled — add padding for touch targets */
  display: inline-block;
  padding: 2px 0;
}
/* Footer bottom on mobile: stack gracefully */
@media (max-width: 560px) {
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-bot { gap: 8px; font-size: .8rem; }
}

/* ─── 16. BLOG CARDS: consistent image height ─── */
.blog-media {
  /* aspect-ratio already set (16/10) — guarantee it on older Safari */
  min-height: 180px;
}
/* Blog featured media: never collapse */
.blog-featured-media { min-height: 320px; }
@media (max-width: 560px) {
  .blog-featured-media { min-height: 200px; }
}

/* ─── 17. ABOUT PAGE: media placeholder while no real image ─── */
.about-media {
  /* Show a brand-gradient placeholder instead of blank box */
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.4), rgba(232,123,58,.25)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* ─── 18. CONTACT PAGE: form field focus ring ─── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(14, 92, 99, .12);
}
/* Contact split: stack gracefully on tablet */
@media (max-width: 820px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── 19. REVIEW CARDS: grid on small mobile ─── */
@media (max-width: 400px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ─── 20. STICKY BOOK (mobile listing bar): avoid overlap with WA float ─── */
@media (max-width: 960px) {
  .sticky-book {
    padding: 10px 16px;
    gap: 12px;
  }
  .sticky-book .btn {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: .9rem;
  }
}

/* ─── 21. SCROLL PROGRESS BAR: above header ─── */
.scroll-progress {
  z-index: 1200; /* above everything */
}

/* ─── 22. LIGHTBOX: prevent content bleed on iOS ─── */
.lightbox {
  /* Safe-area insets for notched phones */
  padding-bottom: max(130px, env(safe-area-inset-bottom, 0px) + 120px);
}

/* ─── 23. MISSING CLASS: .muted utility ─── */
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ─── 24. MISSING CLASS: .booking-card-legend when rendered by JS ─── */
/* Already defined above in flatpickr section — ensure visible */
.booking-card-legend {
  align-items: center;
}

/* ─── 25. HERO: scroll indicator visibility ─── */
.hero-scroll {
  /* Ensure it doesn't overlap the CTA on short screens */
  pointer-events: none;
}
@media (max-height: 600px) {
  .hero-scroll { display: none; }
}

/* ─── 26. GENERAL OVERFLOW SAFETY ─── */
/* Prevent any section or card from causing horizontal scroll */
main, section, article, aside {
  max-width: 100%;
}

/* ─── 27. BUTTON: consistent focus ring for accessibility ─── */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── 28. FONT LOADING: font-display swap fallback ─── */
/* Google Fonts handles display=swap — nothing needed in CSS */

/* ─── 29. PROPERTY CARD: 3D tilt fix — disable rotateX/Y on mobile (causes blur) ─── */
@media (hover: none) {
  .property-card:hover {
    transform: translateY(-4px);
  }
}

/* ─── 30. LANG MENU: prevent cut-off on right edge on narrow screens ─── */
@media (max-width: 400px) {
  .lang-menu {
    right: -8px;
    min-width: 160px;
  }
}

/* ─── 31. SECTION HEAD: consistent bottom spacing ─── */
.section-head { margin-bottom: 48px; }
@media (max-width: 720px) {
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 480px) {
  .section-head { margin-bottom: 28px; }
}

/* ─── 32. FAQ: on small screens remove two-column layout ─── */
@media (max-width: 600px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
}

/* ─── 33. HAMMAM GALLERY: prevent broken layout on narrow screens ─── */
@media (max-width: 480px) {
  .hammam-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hammam-thumbs img { height: 60px; }
}

/* ─── 34. STEP CARDS: ensure number badge is readable ─── */
.step-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(232,123,58,.12);
  display: inline-block;
  margin-bottom: 16px;
}

/* ─── 35. ABOUT SPLIT: direction:rtl workaround on mobile ─── */
@media (max-width: 720px) {
  .about-split[style*="direction:rtl"] {
    direction: ltr !important;
  }
  .about-split[style*="direction:rtl"] > * {
    direction: ltr !important;
  }
}

/* ─── 36. CONTACT INFO ICON: ensure circular wrapper renders ─── */
.contact-info .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── 37. HERO BADGE: prevent text overflow on narrow screens ─── */
@media (max-width: 400px) {
  .hero-badge {
    font-size: .75rem;
    padding: 6px 14px;
    text-align: center;
  }
}

/* ─── 38. GENERAL LINK ACCESSIBILITY: visited colour ─── */
a:visited { color: inherit; }

/* ─── MISSING: standalone .spinner (used in hammam-modal-loading) ─── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(14, 92, 99, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinnerRotate 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* ─── REFINEMENT: page-hero eyebrow on inner pages ─── */
/* The eyebrow inside page-hero has an inline color override but we still need
   the correct colour on dark overlaid backgrounds */
.page-hero .eyebrow[style] {
  /* Keep the inline accent colour but add a subtle shadow for readability */
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ─── REFINEMENT: nav-link active state on scrolled / dark header ─── */
.header.scrolled .nav-link.active { color: var(--primary); font-weight: 600; }
.header.scrolled .nav-link.active::after { width: 100%; background: var(--primary); }

/* ─── MOBILE NAV: smooth open animation ─── */
@media (max-width: 720px) {
  .nav-list {
    /* Animate the nav open/close */
    transform-origin: top center;
  }
  .nav-list.open {
    animation: navSlideDown .2s ease forwards;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ─── PROPERTY CARD: ensure the anchor tag fills the card (clickable area) ─── */
a.property-card {
  text-decoration: none;
  color: inherit;
}
a.property-card:hover { color: inherit; }

/* ─── BLOG CARD: anchor fills card ─── */
a.blog-card {
  text-decoration: none;
  color: inherit;
}

/* ─── LISTING GALLERY: 'show all photos' overlay polish ─── */
.gallery-more {
  cursor: pointer;
  transition: background var(--transition);
}
.gallery-more:hover {
  background: rgba(26,42,49,.95);
}

/* ─── BOOKING CARD: guests row inline inputs ─── */
.booking-row input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.booking-row input[type="number"]::-webkit-outer-spin-button,
.booking-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ─── PAGE HERO: text shadow for readability across all backgrounds ─── */
.page-hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.page-hero .lead {
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* ─── SECTION BACKGROUND SAND: prevent filter-bar from losing border ─── */
section[style*="background:var(--sand)"] .filter-bar,
section[style*="background: var(--sand)"] .filter-bar {
  box-shadow: var(--shadow-md);
}

/* ─── FOOTER: ensure logo colour is always white in dark footer ─── */
.footer .footer-brand .logo {
  color: var(--white) !important;
}
.footer .footer-brand .logo span {
  color: var(--accent);
}

/* ─── ABOUT PAGE: distinct image per section ─── */
/* AI-generated dedicated images for /about (photorealistic editorial). */
.about-media-1 {
  /* Story p1 — How it started: village + ocean */
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.18), rgba(232,123,58,.10)),
    url("../images/about/tamraght-village.webp");
}
.about-media-2 {
  /* Story p2 — Daily work: morning check-in details */
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.18), rgba(232,123,58,.10)),
    url("../images/about/morning-checkin.webp");
}
.about-media-3 {
  /* Story p3 — Five languages: multilingual notebook + WhatsApp */
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.18), rgba(232,123,58,.10)),
    url("../images/about/team-multilingual.webp");
}
.about-media-4 {
  /* Story p4 — Quality standards: restored riad interior */
  background-image:
    linear-gradient(135deg, rgba(14,92,99,.18), rgba(232,123,58,.10)),
    url("../images/about/riad-interior.webp");
}

/* ─── COOKIE BANNER ─── */
/* === GDPR Cookie Banner v2 (on-brand cream + accent) === */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2000;
  background: #FFF8F0;
  color: var(--text);
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 14px 40px rgba(26,42,49,.18);
  animation: cookieSlideUp .35s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 600;
}
.cookie-banner p {
  margin: 0;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
}
.cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn-cookie-accept {
  background: var(--accent);
  color: var(--white);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-cookie-accept:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-cookie-accept:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-cookie-decline {
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-cookie-decline:hover { border-color: var(--text); background: rgba(0,0,0,.02); }
.btn-cookie-decline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-cookie-link {
  background: transparent;
  color: var(--muted);
  padding: 10px 6px;
  font-size: .85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-cookie-link:hover { color: var(--text); }
.btn-cookie-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 720px) {
  .cookie-banner {
    bottom: 0; left: 0; right: 0;
    border-radius: 0;
    border-left: none; border-right: none; border-bottom: none;
    padding: 16px 18px;
    gap: 14px;
  }
  .cookie-banner-actions { width: 100%; justify-content: stretch; }
  .cookie-banner-actions .btn-cookie-accept,
  .cookie-banner-actions .btn-cookie-decline { flex: 1; text-align: center; }
  .cookie-banner-actions .btn-cookie-link { flex-basis: 100%; text-align: center; order: -1; }
}

/* === GDPR Cookie Modal === */
.cookie-backdrop {
  position: fixed; inset: 0;
  z-index: 2100;
  background: rgba(26,42,49,.55);
  backdrop-filter: blur(2px);
  animation: cookieFade .2s ease both;
}
.cookie-modal {
  position: fixed;
  z-index: 2101;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #FFF8F0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(26,42,49,.35);
  padding: 28px 28px 24px;
  animation: cookieZoomIn .25s cubic-bezier(.22,1,.36,1) both;
  outline: none;
}
@keyframes cookieFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieZoomIn {
  from { opacity: 0; transform: translate(-50%,-50%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-modal-head h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0;
  font-weight: 600;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.cookie-modal-close:hover { background: rgba(0,0,0,.05); color: var(--text); }
.cookie-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-modal-intro {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.cookie-rows {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.cookie-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
}
.cookie-row-head {
  display: flex; align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-row-head strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}
.cookie-row-desc {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Toggle switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-switch-track {
  position: absolute;
  inset: 0;
  background: #d8d2c4;
  border-radius: 999px;
  transition: background .25s;
}
.cookie-switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: transform .25s;
}
.cookie-switch input:checked + .cookie-switch-track {
  background: var(--accent);
}
.cookie-switch input:checked + .cookie-switch-track .cookie-switch-thumb {
  transform: translateX(18px);
}
.cookie-switch input:disabled + .cookie-switch-track {
  background: var(--accent-dark);
  opacity: .6;
  cursor: not-allowed;
}
.cookie-switch input:focus-visible + .cookie-switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cookie-modal-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cookie-modal {
    width: 100%; max-width: 100%;
    height: 100vh; max-height: 100vh;
    top: 0; left: 0;
    transform: none;
    border-radius: 0;
    padding: 22px 20px;
  }
  @keyframes cookieZoomIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .cookie-modal-actions { justify-content: stretch; }
  .cookie-modal-actions .btn-cookie-accept,
  .cookie-modal-actions .btn-cookie-decline { flex: 1; text-align: center; }
}

/* === Form privacy consent (newsletter popup + contact form) === */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { color: var(--accent-dark); }
.form-consent.invalid {
  color: #b94a3a;
}
.form-consent.invalid input[type="checkbox"] {
  outline: 2px solid #b94a3a;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Rating badge inside blog post headings */
.post-rating {
  font-size: .7em;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-body);
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0;
}

/* ─── ANIMATIONS ─── */

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Page-hero content entrance */
.page-hero .eyebrow {
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .05s;
}
.page-hero h1 {
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .15s;
}
.page-hero .lead {
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .25s;
}
.page-hero .hero-cta,
.page-hero .hero-badge {
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .35s;
}

/* [data-reveal] — JS adds .revealed class on IntersectionObserver */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside the same parent */
[data-reveal]:nth-child(2) { transition-delay: .12s; }
[data-reveal]:nth-child(3) { transition-delay: .22s; }
[data-reveal]:nth-child(4) { transition-delay: .32s; }

/* Card hover lift */
.prop-card,
.blog-card,
.step-card,
.usp-item {
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1);
}
.prop-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(14,92,99,.14);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14,92,99,.10);
}

/* About-media scale on hover */
.about-media {
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.about-media:hover {
  transform: scale(1.02);
}

/* Button press feedback */
.btn {
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active {
  transform: scale(.97);
}

/* Nav link underline animate */
.nav-link::after {
  transition: width .25s cubic-bezier(.22,1,.36,1);
}

/* Trust bar / USP items stagger */
.usp-grid .usp-item:nth-child(1) { transition-delay: 0s; }
.usp-grid .usp-item:nth-child(2) { transition-delay: .08s; }
.usp-grid .usp-item:nth-child(3) { transition-delay: .16s; }
.usp-grid .usp-item:nth-child(4) { transition-delay: .24s; }

/* Footer fade-in */
.footer {
  animation: fadeIn .5s ease both;
}

/* Smooth image reveal inside about-media */
.about-media {
  animation: scaleIn .7s cubic-bezier(.22,1,.36,1) both;
  animation-play-state: paused;
}
.about-media.in {
  animation-play-state: running;
}

/* Visually hidden but readable by Google/LLM crawlers + screen readers.
   Used for AEO definition blocks we want crawled but not surfaced visually. */
.aeo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
