/* EIR Image Library on eirimages.com. Portal colours: dark grey ink, plum accent on light, teal on dark, teal buttons.
   Light unless the visitor picks Dark (Wanda, 2026-10-26: Light is the default, whatever the system setting). */
:root {
  --bg: #faf8f5; --surface: #ffffff; --ink: #2b2b2b; --muted: #6b6b6b; --line: #e7e2db;
  --accent: #552d3b; --button: #6ad4cc; --button-ink: #10302d; --chip: #f1ece6; --shade: rgba(20, 16, 18, .55);
  --display: 'Cormorant Garamond', Georgia, serif; --ui: 'Montserrat', system-ui, sans-serif; --row: 220px;
}
:root[data-theme="dark"] {
  --bg: #141414; --surface: #1e1e1e; --ink: #f1f1f1; --muted: #a3a3a3; --line: #2f2f2f;
  --accent: #6ad4cc; --chip: #262626; --shade: rgba(0, 0, 0, .7);
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--ui) }
a { color: inherit }
img { display: block; max-width: 100% }
button, input, select { font: inherit; color: inherit }
.muted { color: var(--muted) }
.loading { padding: 80px 24px; text-align: center; color: var(--muted) }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line) }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; flex: none }
.brand-small { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted) }
.brand-big { font: 600 25px/1.1 var(--display); color: var(--accent) }
.topsearch { flex: 1; max-width: 520px; margin-left: auto }
/* search fields are white with dark text in Light and Dark alike (Wanda, 2026-10-26) */
.topsearch input, .bigsearch input { width: 100%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: #2b2b2b; color-scheme: light }
.topsearch input::placeholder, .bigsearch input::placeholder { color: #6b6b6b }
.topsearch input:focus, .bigsearch input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px }
.theme { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center }
/* Light mode: a dark grey header, like the Portal's (Wanda, 2026-10-26); Dark mode keeps its own */
:root:not([data-theme="dark"]) .top {
  --bg: #2b2b2b; --surface: #3a3a3a; --ink: #f1f1f1; --muted: #bdbdbd; --line: #4a4a4a; --accent: #6ad4cc;
  color: var(--ink); color-scheme: dark;
}

/* page structure */
.page { max-width: 1440px; margin: 0 auto; padding: 28px 28px 64px }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px }
.crumbs a { text-decoration: none } .crumbs a:hover { color: var(--accent) }
h1 { font: 600 clamp(32px, 4vw, 48px)/1.1 var(--display); margin: 0 0 6px }
h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--display); margin: 40px 0 16px }
.lede { color: var(--muted); margin: 0 0 24px }

/* home hero */
/* a short hero (Wanda, 2026-10-26: the VER pool loungers photo, less tall): the crop keeps the loungers and palms */
.hero { position: relative; min-height: 300px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 74% }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.42), rgba(0,0,0,.12) 70%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.3)) }
.hero h1, .hero p { text-shadow: 0 2px 14px rgba(0,0,0,.45) }
.hero-in { position: relative; z-index: 1; padding: 34px 24px; width: min(880px, 100%) }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); margin-bottom: 4px }
.hero p { margin: 0 0 18px; font-size: 16px; opacity: .92 }
.hero .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: 1 }
.bigsearch input { padding: 15px 22px; font-size: 16px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25) }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px }
.chip { font-size: 13px; padding: 5px 13px; border-radius: 999px; background: var(--chip); text-decoration: none; border: 0; cursor: pointer }
.hero .chip { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px) }
.chip:hover { background: var(--button); color: var(--button-ink) }

/* home page destination buttons, under the hero (Wanda, 2026-10-26) */
.dest { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 -8px }
.dest button { padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; transition: background .15s, border-color .15s }
.dest button:hover { border-color: var(--accent) }
.dest button[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: var(--button-ink) }

/* cards: resorts and galleries */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px }
.card { text-decoration: none; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12) }
.card .pic { aspect-ratio: 3 / 2; background: var(--chip); overflow: hidden }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease }
.card:hover .pic img { transform: scale(1.04) }
.card .txt { padding: 12px 16px 14px }
.card b { display: block; font: 600 21px/1.2 var(--display) }
.card span { font-size: 13px; color: var(--muted) }
.cards.small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.cards.small b { font-size: 18px }

/* a resort's pages: its categories and galleries in a menu on the left, which stays in view (Wanda, 2026-10-26) */
.page.with-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start }
.side { position: sticky; top: 84px; font-size: 13.5px }
.side summary { display: none }
.side nav { position: relative; max-height: calc(100vh - 104px); overflow-y: auto; padding: 0 6px 12px 0; scrollbar-width: thin }
.side ul { list-style: none; margin: 0; padding: 0 }
.side nav > ul > li { margin: 0 0 4px }
.side a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 10px; border-radius: 8px;
  text-decoration: none; font-weight: 600 }
.side li li a { font-weight: 400; padding-left: 22px; color: var(--muted) }
.side a span { flex: none; color: var(--muted); font-weight: 400; font-size: 12px }
.side a:hover { background: var(--chip); color: var(--ink) }
.side a[aria-current] { background: var(--chip); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent) }
.side a.side-resort { display: block; font: 600 22px/1.2 var(--display); padding: 4px 10px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--line);
  border-radius: 0 }
.side a.side-resort span { display: block; font: 400 12px var(--ui); margin-top: 2px }
.side a.side-resort[aria-current] { box-shadow: none; background: none }

/* justified photo grid: tiles grow with their aspect ratio, so every row is one height */
.jgrid { display: flex; flex-wrap: wrap; gap: 8px }
.jgrid::after { content: ''; flex-grow: 999999999 }
.tile { position: relative; flex-grow: calc(var(--a) * 100); flex-basis: calc(var(--a) * var(--row)); border-radius: 8px; overflow: hidden;
  background: var(--chip); cursor: zoom-in; border: 0; padding: 0 }
.tile i { display: block; padding-bottom: calc(100% / var(--a)) }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s }
.tile:hover img { transform: scale(1.03) }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .2s }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1 }
/* the resort code on search results: small, in a white circle, the same in Light and Dark */
.tile .code { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #2b2b2b; font: 700 10px/1 var(--ui); letter-spacing: .04em; box-shadow: 0 1px 6px rgba(0,0,0,.28); pointer-events: none }

/* gallery title row, with its "Download all" buttons on the right (under the title on phones) */
.ghead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 28px; margin: 0 0 24px }
.ghead .lede { margin: 0 }
.getall { display: flex; flex-wrap: wrap; gap: 10px }
.getall .btn { width: auto; margin: 0; padding: 10px 20px; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center;
  justify-content: center; text-align: left }
.getall .btn svg { grid-row: span 2 }
.getall .btn small { grid-column: 2 }
.getall .btn.ghost { grid-template-columns: auto }
.getall .btn.ghost small { grid-column: 1 }
.getall .btn:hover { filter: brightness(.96) }
.getall .btn.ghost:hover { border-color: var(--accent); filter: none }
.tile.alpha, .card .pic.alpha, .viewer .stage.alpha img { background: repeating-conic-gradient(#8f8f8f 0 25%, #a9a9a9 0 50%) 50% / 20px 20px }
.tile.alpha img, .card .pic.alpha img { object-fit: contain; padding: 10px }
.more { height: 1px }
.count { color: var(--muted); font-size: 14px; margin: 0 0 14px }

/* search filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px }
.filters select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) }
.filters .clear { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer }
.empty { padding: 40px 0; color: var(--muted) }

/* photo viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(12, 12, 12, .95); display: grid;
  grid-template-columns: 1fr 380px }
.viewer .stage { position: relative; display: grid; place-items: center; padding: 28px 64px; min-height: 0 }
.viewer .stage img { max-width: 100%; max-height: calc(100vh - 56px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.4) }
.viewer .stage.alpha img { padding: 20px }
.viewer aside { position: relative; background: var(--surface); padding: 58px 24px 32px; overflow-y: auto; border-left: 1px solid var(--line) }
.viewer aside h2 { margin: 0 0 8px; font-size: 28px }
.viewer .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); color: #2b2b2b; font-size: 26px; line-height: 1; cursor: pointer }
.viewer .prev { left: 10px } .viewer .next { right: 10px }
.viewer .close { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer }
.btn { display: block; text-align: center; text-decoration: none; padding: 11px 16px; border-radius: 10px; font-weight: 600; margin: 0 0 10px;
  background: var(--button); color: var(--button-ink); border: 0; cursor: pointer; width: 100% }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500 }
.btn small { display: block; font-weight: 400; font-size: 12px; opacity: .8 }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 18px 0 }
dl.facts dt { color: var(--muted) } dl.facts dd { margin: 0; word-break: break-word }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 }
.tags a { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--chip); text-decoration: none }
.tags a:hover { background: var(--button); color: var(--button-ink) }
.note { font-size: 12px; color: var(--muted); margin: 6px 0 0 }

.foot { border-top: 1px solid var(--line); padding: 28px; text-align: center; font-size: 13px }
.foot p { margin: 2px 0 }

@media (max-width: 900px) {
  :root { --row: 150px }
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap }
  .topsearch { order: 3; flex-basis: 100%; max-width: none }
  .theme { margin-left: auto }
  .page { padding: 20px 16px 48px }
  .hero { min-height: 240px }
  .hero-in { padding: 26px 16px }
  .viewer { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto }
  .viewer .stage { padding: 56px 12px 12px }
  .viewer .stage img { max-height: 60vh }
  .viewer aside { border-left: 0; border-top: 1px solid var(--line) }
  .viewer .nav { width: 38px; height: 38px; font-size: 22px }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px }
  .card b { font-size: 18px }
  .dest { gap: 6px }
  .dest button { padding: 9px 14px; font-size: 13px; letter-spacing: 0 }
  .page.with-side { grid-template-columns: minmax(0, 1fr); gap: 0 }
  .side { position: static; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
  .side summary { display: list-item; padding: 12px 16px; font-weight: 600; cursor: pointer }
  .side nav { max-height: 60vh; padding: 0 8px 10px }
  .getall { width: 100% }
  .getall .btn { flex: 1 1 200px }
  .tile .code { top: 6px; left: 6px; width: 30px; height: 30px; font-size: 9px }
}
