/* ═══════════════════════════════════════════
   ANVIR SAFARIS — ACCOMMODATIONS PAGE
   Loaded only on page-accommodations.php (see functions.php)
═══════════════════════════════════════════ */

.acc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.acc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── HERO ── */
.acc-hero {
  position: relative; min-height: 64vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--green-deep);
}
.acc-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; transform: scale(1.03); }
.acc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,24,16,.62) 0%, rgba(27,58,45,.45) 45%, rgba(18,36,27,.92) 100%);
}
.acc-hero-content { position: relative; z-index: 2; max-width: 760px; padding: 140px 32px 80px; }
.acc-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.acc-hero-title {
  font-family: var(--serif); font-weight: 300; color: var(--white);
  font-size: clamp(44px, 7vw, 82px); line-height: 1.06; margin-bottom: 22px;
}
.acc-hero-title em, .acc-title em, .acc-cta-quote em { font-style: italic; color: var(--gold); }
.acc-hero-sub {
  font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.85;
  color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto;
}

/* ── LIBRARY SECTION ── */
.acc-library { background: #13261d; color: var(--cream); padding: 88px 0 110px; }

.acc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.acc-title {
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; margin-bottom: 16px;
}
.acc-intro { font-family: var(--sans); font-size: 16px; font-weight: 300; color: rgba(248,244,238,.72); max-width: 560px; margin: 0; }

.acc-sort { position: relative; flex-shrink: 0; }
.acc-sort select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: var(--cream);
  border: none; border-bottom: 1px solid rgba(248,244,238,.35);
  font-family: var(--sans); font-size: 15px; padding: 10px 34px 10px 2px; min-width: 200px; cursor: pointer;
}
.acc-sort select:focus { outline: none; border-bottom-color: var(--gold); }
.acc-sort select option { color: #111; }
.acc-sort i { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; color: rgba(248,244,238,.6); pointer-events: none; }

/* Filters */
.acc-filters { display: grid; gap: 18px; margin-bottom: 40px; }
.acc-filter-row { display: grid; grid-template-columns: 130px 1fr; align-items: start; gap: 16px; }
.acc-filter-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(248,244,238,.5); padding-top: 13px;
}
.acc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-chip {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); background: transparent;
  border: 1px solid rgba(248,244,238,.28); border-radius: 0;
  padding: 11px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
  white-space: nowrap;
}
.acc-chip:hover { border-color: var(--gold); color: var(--white); }
.acc-chip.is-active { background: var(--cream); color: var(--green-deep); border-color: var(--cream); }
.acc-chip.is-empty { opacity: .35; }
.acc-chip:focus-visible, .acc-btn-ghost:focus-visible, .acc-card-media:focus-visible, .acc-card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.acc-chip-n { opacity: .55; margin-left: 6px; font-weight: 400; letter-spacing: 0; }

/* Summary */
.acc-summary {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px;
  padding: 26px 0; margin-bottom: 44px;
  border-top: 1px solid rgba(248,244,238,.1); border-bottom: 1px solid rgba(248,244,238,.1);
}
.acc-summary-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(248,244,238,.5); }
.acc-summary-count { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--white); }
.acc-summary-pills { display: contents; }
.acc-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--white);
  background: transparent; border: 1px solid rgba(248,244,238,.3); padding: 8px 14px; cursor: pointer;
}
.acc-pill:hover { border-color: var(--gold); }
.acc-pill i { font-size: 13px; opacity: .7; }

/* Grid + cards */
.acc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.acc-card { display: flex; flex-direction: column; animation: accIn .45s ease both; }
.acc-card[hidden] { display: none; }
@keyframes accIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.acc-card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; background: #0d1a14;
}
.acc-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.acc-card-media:hover img { transform: scale(1.045); filter: brightness(.92); }
.acc-card-zoom {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); background: rgba(13,26,20,.72); backdrop-filter: blur(4px);
  padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px;
}
.acc-card-flag {
  position: absolute; left: 14px; top: 14px;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-deep); background: var(--gold-light, #f5edd8); padding: 6px 10px;
}
.acc-card-media--empty {
  cursor: default; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, #1f3a2d, #0f2018); border: 1px solid rgba(248,244,238,.08);
}
.acc-card-media--empty span { font-family: var(--serif); font-style: italic; font-size: 26px; color: rgba(248,244,238,.35); padding: 0 24px; }

.acc-card-body { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.acc-card-meta {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(248,244,238,.55); margin-bottom: 10px; line-height: 1.7;
}
.acc-card-meta span + span::before { content: '·'; margin: 0 10px; color: rgba(248,244,238,.35); }
.acc-card-tier { color: var(--gold); }
/* .acc-library prefix beats main.css's global `section h3` (uppercase, green, letter-spaced) */
.acc-library .acc-card-name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15;
  color: var(--white); margin: 0 0 8px; text-transform: none; letter-spacing: 0;
}
.acc-card-stars { color: var(--gold); font-size: 11px; letter-spacing: 3px; margin-bottom: 12px; }
.acc-card-text {
  font-family: var(--sans); font-size: 14.5px; font-weight: 300; line-height: 1.8; color: rgba(248,244,238,.72);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px;
}
.acc-card-link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 4px; border-bottom: 1px solid rgba(184,137,58,.4); transition: border-color .2s, color .2s;
}
.acc-card-link i { margin-left: 8px; transition: transform .2s; }
.acc-card-link:hover { color: #d9ab5c; border-color: #d9ab5c; }
.acc-card-link:hover i { transform: translateX(4px); }

/* Empty + more */
.acc-empty { text-align: center; padding: 56px 20px; color: rgba(248,244,238,.75); font-family: var(--sans); }
.acc-empty p { margin-bottom: 20px; }
.acc-empty a { color: var(--gold); border-bottom: 1px solid currentColor; }
.acc-empty--error { border: 1px solid rgba(248,244,238,.12); }
.acc-admin-note { font-size: 13px; color: #f3c98b; margin-top: 18px; }
.acc-admin-note code { background: rgba(0,0,0,.3); padding: 1px 6px; }
.acc-more-wrap { text-align: center; margin-top: 64px; }
.acc-btn-ghost {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); background: transparent; border: 1px solid rgba(248,244,238,.4);
  padding: 16px 34px; cursor: pointer; transition: background .2s, color .2s;
}
.acc-btn-ghost:hover { background: var(--cream); color: var(--green-deep); }
.acc-btn-ghost[hidden] { display: none; }

/* ── CTA ── */
.acc-cta { background: var(--cream); text-align: center; padding: 96px 0; }
.acc-cta-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; color: var(--text-dark); margin-bottom: 34px; }

/* ── SLIDESHOW ── */
.acc-lb {
  position: fixed; inset: 0; z-index: 10000; background: #12100d;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); color: var(--white);
  animation: accFade .25s ease;
}
.acc-lb[hidden] { display: none; }
@keyframes accFade { from { opacity: 0; } to { opacity: 1; } }
body.acc-lb-open { overflow: hidden; }

.acc-lb-top { display: flex; align-items: center; gap: 20px; padding: 18px 24px; min-width: 0; }
.acc-lb-count { font-family: var(--sans); font-size: 14px; letter-spacing: .12em; color: rgba(255,255,255,.75); min-width: 64px; }
.acc-lb-title { flex: 1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(255,255,255,.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acc-lb-close { flex-shrink: 0; background: none; border: 0; color: var(--white); font-size: 26px; width: 48px; height: 48px; cursor: pointer; opacity: .85; }
.acc-lb-close:hover { opacity: 1; color: var(--gold); }

.acc-lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; padding: 0 96px; touch-action: pan-y; }
.acc-lb-figure { margin: 0; height: 100%; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.acc-lb-figure img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; user-select: none; transition: opacity .25s; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.acc-lb-figure img.is-loading { opacity: 0; }
.acc-lb-figure figcaption { font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,.7); padding-top: 14px; min-height: 30px; text-align: center; }
.acc-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  background: rgba(0,0,0,.25); color: var(--white); font-size: 20px; cursor: pointer; transition: background .2s, border-color .2s;
}
.acc-lb-nav:hover { background: var(--gold); border-color: var(--gold); }
.acc-lb-prev { left: 24px; }
.acc-lb-next { right: 24px; }
.acc-lb-nav[hidden] { display: none; }

.acc-lb-thumbs { display: flex; justify-content: center; gap: 10px; padding: 16px 24px 22px; overflow-x: auto; scrollbar-width: thin; }
.acc-lb-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.acc-lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-lb-thumbs button:hover { opacity: .85; }
.acc-lb-thumbs button.is-active { opacity: 1; border-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1099px) {
  .acc-wrap { padding: 0 28px; }
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 26px; }
}
@media (max-width: 767px) {
  .acc-wrap { padding: 0 20px; }
  .acc-hero { min-height: 56vh; }
  .acc-hero-content { padding: 72px 22px 56px; }
  .acc-hero-sub { font-size: 15px; }
  .acc-library { padding: 60px 0 80px; }
  .acc-head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 30px; }
  .acc-sort select { width: 100%; }
  .acc-filter-row { grid-template-columns: 1fr; gap: 10px; }
  .acc-filter-label { padding-top: 0; }
  /* chips scroll sideways instead of stacking into a tall wall */
  .acc-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .acc-chips::-webkit-scrollbar { display: none; }
  .acc-chip { padding: 10px 15px; font-size: 11px; }
  .acc-summary { justify-content: flex-start; padding: 18px 0; margin-bottom: 32px; }
  .acc-summary-count { font-size: 24px; }
  .acc-grid { grid-template-columns: 1fr; gap: 44px; }
  .acc-lb-top { padding: 10px 12px; }
  .acc-lb-title { font-size: 17px; }
  .acc-lb-stage { padding: 0 8px; }
  .acc-lb-nav { width: 44px; height: 44px; font-size: 16px; background: rgba(0,0,0,.45); }
  .acc-lb-prev { left: 10px; }
  .acc-lb-next { right: 10px; }
  .acc-lb-thumbs { justify-content: flex-start; }
  .acc-lb-thumbs button { width: 64px; height: 46px; }
  .acc-cta { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-card, .acc-lb { animation: none; }
  .acc-card-media img { transition: none; }
}
