/* ============================================================
   MASON ESCAPES — worldwide luxury hotels, villas & destinations
   Loaded after styles.css. Quiet-luxury / editorial aesthetic.
   ============================================================ */

/* RELIABILITY: Escapes content is always visible, even if JS / the
   scroll-reveal observer is slow or blocked. The fade-up animation is a
   pure enhancement and must never leave the page blank. */
.fade-up { opacity: 1 !important; transform: none !important; }

/* ── Section sub-navigation (sticky, under the main nav) ─── */
.esc-subnav {
  position: sticky; top: var(--nav-h); z-index: 60;
  background: rgba(250,248,245,0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.esc-subnav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 44px);
  padding: 16px 20px;
}
.esc-subnav a {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal-mid); text-decoration: none; position: relative; padding: 2px 0;
  transition: color 0.3s;
}
.esc-subnav a:hover { color: var(--navy); }
.esc-subnav a.active { color: var(--navy); }
.esc-subnav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold);
}

/* ── Image placeholder (fallback only) ─────────────────── */
.esc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: linear-gradient(135deg, #0E1B2C 0%, #17293f 60%, #203a57 100%); }
.esc-ph span { font-family: var(--font-serif); color: rgba(255,255,255,0.9); font-size: 1.1rem; letter-spacing: 0.16em; text-transform: uppercase; }
.esc-ph::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(197,165,114,0.3); }

/* ── Hero ─────────────────────────────────────────────── */
.esc-hero { position: relative; min-height: clamp(420px, 66vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.esc-hero--tall { min-height: clamp(480px, 82vh, 760px); }
.esc-hero__img, .esc-hero .esc-ph { position: absolute; inset: 0; }
.esc-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.esc-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,27,44,0.78) 0%, rgba(14,27,44,0.18) 50%, rgba(14,27,44,0.42) 100%); }
.esc-hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: clamp(40px,6vw,88px) clamp(20px,4vw,48px); color: #fff; }
.esc-hero__content .overline { color: var(--gold-light); }
.esc-hero__content h1 {
  color: #fff; margin: 18px 0 14px;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.esc-hero__content p { color: rgba(255,255,255,0.88); max-width: 600px; font-size: 1.04rem; line-height: 1.8; font-weight: 300; }
.esc-hero__meta { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); }

/* ── Tracked-caps section titles ──────────────────────── */
.esc-title, .esc-strip-head h2, .esc-section-title {
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 400; line-height: 1.25; margin: 0;
}
.esc-intro { text-align: center; max-width: 720px; margin: 0 auto; }
.esc-intro p { font-size: 1.12rem; line-height: 1.95; color: var(--charcoal); font-weight: 300; }

.esc-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px,3.5vw,44px); flex-wrap: wrap; }
.esc-strip-head .overline { color: var(--gold); display:block; margin-bottom: 10px; }
.esc-strip-head a { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-decoration: none; }
.esc-strip-head a:hover { color: var(--navy); }

/* ── Property / card grid (editorial) ─────────────────── */
.esc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(22px, 2.6vw, 44px); }
.esc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.esc-card { display: block; text-decoration: none; color: inherit; }
.esc-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy); }
.esc-card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); transition: transform 1.1s var(--ease), filter 0.6s var(--ease); }
.esc-card:hover .esc-card__img img { transform: scale(1.05); filter: saturate(1.02); }
.esc-card__badge { position: absolute; top: 14px; left: 14px; z-index: 3; background: rgba(250,248,245,0.92); color: var(--navy); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 11px; }
.esc-card__body { padding: 18px 2px 0; }
.esc-card__loc { display: block; color: var(--gold); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 9px; }
.esc-card__name { font-size: 1.32rem; color: var(--navy); margin: 0 0 7px; line-height: 1.22; font-weight: 400; }
.esc-card__brand { font-size: 0.8rem; color: var(--charcoal-mid); letter-spacing: 0.02em; }

/* ── Filter bar ───────────────────────────────────────── */
.esc-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.esc-filters input, .esc-filters select { width: 100%; padding: 13px 15px; font-size: 0.82rem; letter-spacing: 0.02em; border: 1px solid var(--border); background: var(--white); color: var(--navy); font-family: var(--font-sans); }
.esc-filters select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23C5A572' stroke-width='1.3'/></svg>"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 34px; }
.esc-filters input:focus, .esc-filters select:focus { outline: none; border-color: var(--gold); }
.esc-tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.esc-tag { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 15px; border: 1px solid var(--border); background: transparent; color: var(--charcoal-mid); cursor: pointer; transition: all 0.25s; }
.esc-tag:hover { border-color: var(--gold); color: var(--navy); }
.esc-tag.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.esc-bar-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(30px,4vw,48px); flex-wrap: wrap; }
.esc-count { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal-mid); }
.esc-clear { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); background: none; border: none; cursor: pointer; }
.esc-clear:hover { color: var(--navy); }
.esc-empty { text-align: center; padding: 70px 20px; color: var(--charcoal-mid); display: none; }
.esc-empty a { color: var(--gold); }

/* ── Hotel / property page ────────────────────────────── */
.esc-prop__layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(34px, 5vw, 76px); align-items: start; }
.esc-prop__body > p { font-size: 1.1rem; line-height: 1.95; color: var(--charcoal); margin-bottom: 20px; font-weight: 300; }
.esc-prop__body .lead { font-size: 1.22rem; line-height: 1.8; color: var(--navy); font-family: var(--font-serif); margin-bottom: 24px; }
.esc-block { margin-top: 40px; }
.esc-block h2 { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 400; }
.esc-hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.esc-hl li { position: relative; padding-left: 20px; color: var(--charcoal); line-height: 1.6; }
.esc-hl li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.esc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.esc-chip { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 13px; background: #F4F1EC; color: var(--navy); }
.esc-suited { color: var(--charcoal-mid); font-size: 0.95rem; margin-top: 22px; }
.esc-suited strong { color: var(--navy); font-weight: 500; }

/* sticky enquiry / at-a-glance aside */
.esc-aside { position: sticky; top: calc(var(--nav-h) + 70px); }
.esc-glance { border: 1px solid var(--border); padding: 24px; margin-bottom: 18px; }
.esc-glance dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.esc-glance .row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.esc-glance .row:last-child { border-bottom: none; padding-bottom: 0; }
.esc-glance dt { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.esc-glance dd { margin: 0; font-size: 0.92rem; color: var(--navy); text-align: right; }
.esc-glance dd a { color: var(--navy); }
.esc-enquire { background: var(--navy); color: #fff; padding: 26px; }
.esc-enquire h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; font-weight: 400; }
.esc-enquire p { color: rgba(255,255,255,0.7); font-size: 0.86rem; line-height: 1.7; margin-bottom: 18px; }
.esc-enquire .btn { width: 100%; margin-bottom: 10px; text-align: center; justify-content: center; }
.esc-related { margin-top: 20px; font-size: 0.86rem; }
.esc-related .k { display:block; color: var(--gold); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 8px; }
.esc-related a { color: var(--charcoal); display: inline-block; margin: 0 14px 6px 0; }
.esc-related a:hover { color: var(--gold); }
.esc-note { background: #F4F1EC; padding: 18px 20px; font-size: 0.92rem; color: var(--charcoal-mid); line-height: 1.7; border-left: 2px solid var(--gold); margin-top: 32px; }

/* ── Collections (tall editorial tiles) ───────────────── */
.esc-coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: clamp(16px,2vw,28px); }
.esc-coll { position: relative; aspect-ratio: 4 / 3.4; display: flex; align-items: flex-end; overflow: hidden; text-decoration: none; color: #fff; }
.esc-coll__img, .esc-coll .esc-ph { position: absolute; inset: 0; }
.esc-coll__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.esc-coll:hover .esc-coll__img img { transform: scale(1.05); }
.esc-coll__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,27,44,0.82), rgba(14,27,44,0.05) 68%); }
.esc-coll__body { position: relative; z-index: 2; padding: 28px; }
.esc-coll__body .c { display:block; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.esc-coll__body h3 { color: #fff; font-size: 1.4rem; line-height: 1.22; margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Destination directory (region groups) ────────────── */
.esc-region-label { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: clamp(38px,5vw,60px) 0 20px; }
.esc-region-label:first-of-type { margin-top: 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .esc-filters { grid-template-columns: 1fr 1fr; }
  .esc-prop__layout { grid-template-columns: 1fr; }
  .esc-aside { position: static; }
  .esc-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .esc-hl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .esc-filters { grid-template-columns: 1fr; }
  .esc-grid, .esc-grid--3 { grid-template-columns: 1fr; }
  .esc-subnav__inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
