/* ══ AANHPI Vegas Passport — passport app styles ══ */

:root {
  --bur:   #4A0E1F;
  --bur2:  #3A0818;
  --bur3:  #5C1530;
  --gold:  #C9A84C;
  --glt:   #E8CB7A;
  --gdim:  rgba(201,168,76,0.22);
  --wh:    #FFFFFF;
  --ow:    #F5EFE2;
  --ow2:   rgba(245,239,226,0.7);
  --ow3:   rgba(245,239,226,0.38);
  --nav-h: 56px;
  --bot-h: 64px;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

/* Hide body until JS marks it ready — prevents FOUC */
body.p-loading { visibility: hidden; }

body {
  font-family: 'Barlow Condensed', sans-serif;
  background: var(--bur);
  color: var(--ow);
  overflow-x: hidden;
  /* bottom padding so content clears mobile nav */
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--gold); text-decoration: none; }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes spin   { to   { transform:rotate(360deg); } }
@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:.15} }

/* ══ TOP NAV (desktop) ══ */
.p-topnav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(74,14,31,4A0E1F0.95);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  backdrop-filter: blur(10px);
  display: flex; align-items: center;
  padding: 0 20px; gap: 20px;
}
.p-topnav-logo { height: 38px; width: auto; }
.p-topnav-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ow);
}
.p-topnav-links { display: flex; gap: 4px; margin-left: auto; }
.p-topnav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ow2);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color .15s, background .15s;
  display: flex; align-items: center; gap: 6px;
}
.p-topnav-links a:hover,
.p-topnav-links a.active { color: var(--gold); background: rgba(201,168,76,0.08); }
.p-topnav-links a.active { color: var(--glt); }

/* ══ BOTTOM NAV (mobile) ══ */
.p-botnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--bot-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bur);
  border-top: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  display: none; /* shown on mobile only */
}
.p-botnav-inner {
  height: var(--bot-h);
  display: flex;
}
.p-botnav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--ow3);
  text-decoration: none;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.p-botnav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.p-botnav-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.p-botnav-item.active,
.p-botnav-item:hover { color: var(--glt); }

@media (max-width: 768px) {
  :root { --foot-h: 56px; }
  .p-topnav-links { display: none; }
  .p-botnav {
    display: block;
    bottom: calc(var(--foot-h) + env(safe-area-inset-bottom));
    height: var(--bot-h);
    padding-bottom: 0;
  }
  body { padding-bottom: calc(var(--bot-h) + var(--foot-h) + 24px + env(safe-area-inset-bottom)); }
  .p-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 199;
    background: var(--bur);
    border-top: none;
    height: calc(var(--foot-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .p-footer-copy {
    display: block;
    font-size: 9px;
    letter-spacing: .05em;
    color: var(--ow3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .p-footer-links {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .dir-page { height: calc(100vh - var(--nav-h) - var(--bot-h) - var(--foot-h)); }
}

/* ══ PAGE WRAPPER ══ */
.p-page { min-height: 100vh; animation: fadeIn .35s ease; }

/* ══ SHARED INPUTS / BUTTONS ══ */
.p-input {
  width: 100%;
  background: rgba(245,239,226,0.06);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 14px 16px;
  color: var(--wh);
  font-size: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.p-input::placeholder { color: rgba(245,239,226,0.2); }
.p-input:focus { border-color: var(--gold); background: rgba(201,168,76,0.07); }

.p-btn {
  width: 100%;
  background: var(--gold);
  border: none;
  padding: 15px 20px;
  color: var(--bur2);
  font-size: 15px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.p-btn:hover  { background: var(--glt); }
.p-btn:active { transform: scale(.98); }
.p-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.p-btn-ghost {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 14px 20px;
  color: var(--ow2);
  font-size: 14px; font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.p-btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); }

.p-error {
  font-size: 14px; color: #e07070;
  margin-top: 8px; display: none;
  font-family: 'Barlow Condensed', sans-serif;
}

/* ══ LOGIN / AUTH FLOW ══ */
.auth-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px 60px;
  background: transparent;
}
.auth-logo-wrap { width: 180px; margin: 0 auto 28px; }
.auth-logo { width: 100%; height: auto; display: block; }
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 28px 24px;
}
.auth-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--wh);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 15px; color: var(--ow2); line-height: 1.5;
  letter-spacing: .02em; margin-bottom: 22px;
}
.auth-step { display: none; }
.auth-step.active { display: block; animation: fadeUp .3s ease; }

.otp-inputs {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.otp-digit {
  flex: 1; min-width: 0;
  background: rgba(245,239,226,0.06);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 14px 0;
  color: var(--wh);
  font-size: 24px; font-weight: 700;
  font-family: 'Schibsted Grotesk', sans-serif;
  text-align: center; outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.otp-digit:focus { border-color: var(--gold); background: rgba(201,168,76,0.09); }

.auth-link {
  font-size: 13px; color: var(--gold);
  cursor: pointer; text-decoration: underline;
  background: none; border: none;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .04em;
}

/* ══ REMEMBER ME PROMPT ══ */
.remember-wrap {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 8px;
}
.remember-opt {
  border: 1px solid rgba(201,168,76,0.22);
  padding: 16px;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.remember-opt:hover { border-color: var(--gold); background: rgba(201,168,76,0.07); }
.remember-opt-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.remember-opt-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--wh); margin-bottom: 3px;
}
.remember-opt-desc { font-size: 13px; color: var(--ow3); line-height: 1.5; }

/* ══ TERMS PREVIEW ══ */
.terms-preview {
  background: rgba(245,239,226,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 14px 16px;
  font-size: 13px; color: var(--ow2);
  line-height: 1.7; max-height: 160px; overflow-y: auto;
  margin-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--gdim) transparent;
}
.terms-links { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.terms-links a { font-size: 13px; color: var(--gold); text-decoration: underline; }

/* ══ SMS OPT-IN ══ */
.sms-opt-label {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 10px;
  cursor: pointer;
  font-size: 14px; color: var(--ow2); line-height: 1.4;
}
.sms-opt-label input[type="checkbox"] {
  flex-shrink: 0; margin-top: 2px;
  width: 17px; height: 17px; accent-color: var(--gold);
  cursor: pointer;
}
.sms-disclaimer {
  font-size: 11px; color: var(--ow3); line-height: 1.6;
  border-left: 2px solid rgba(201,168,76,0.25);
  padding-left: 10px;
}
.sms-disclaimer a { color: var(--gold); text-decoration: underline; }

/* ══ PASSPORT TYPE OPTIONS ══ */
.pt-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pt-option {
  border: 1px solid rgba(201,168,76,0.22);
  padding: 16px;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.pt-option:hover { border-color: var(--gold); background: rgba(201,168,76,0.07); }
.pt-option-icon { font-size: 30px; flex-shrink: 0; }
.pt-option-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--wh); margin-bottom: 3px;
}
.pt-option-desc { font-size: 13px; color: var(--ow3); line-height: 1.5; }

/* ══ HOME PAGE ══ */
.home-hero {
  background: #4A0E1F;
  padding: 10px 16px 10px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.hero-col-info {
  flex: 1; min-width: 0;
}
.hero-col-countdown {
  flex-shrink: 0;
}
.draw-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2px; font-weight: 600;
}
.draw-label {
  font-size: clamp(14px, 3.5vw, 18px);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 700; letter-spacing: .03em;
  color: var(--wh); margin-bottom: 2px; line-height: 1.2;
}
.draw-prize {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(13px, 3vw, 16px); font-weight: 600; color: var(--glt);
  line-height: 1.3;
}
#draw-detail { font-size: 11px; color: var(--ow3); margin-top: 2px; line-height: 1.4; }

.countdown-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 4px; margin: 0;
}
.cd-sep {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(18px, 4vw, 26px); font-weight: 700; color: var(--gdim);
  line-height: 38px; padding-bottom: 14px;
}
.cd-block { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cd-num {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(18px, 4vw, 26px); font-weight: 700; color: var(--glt);
  background: rgba(201,168,76,0.07); border: 1px solid var(--gdim);
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
}
.cd-label {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ow3); font-weight: 500;
}
@media (max-width: 380px) {
  .cd-num { font-size: 16px; width: 34px; height: 34px; }
}

/* ══ FEATURED PARTNERS CAROUSEL ══ */
/* ══ ANNOUNCEMENTS CAROUSEL ══ */
.ann-section {
  padding: 28px 0 24px;
  background: var(--bur2);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.ann-header {
  padding: 0 20px;
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.ann-eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.ann-pager { font-size: 13px; color: var(--ow3); letter-spacing: .05em; }

.ann-track-wrap { overflow: hidden; }
.ann-track {
  display: flex; transition: transform .4s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}
.ann-slide {
  flex-shrink: 0; width: 100%;
  padding: 0 20px;
}

/* Individual announcement card */
.ann-card {
  background: rgba(245,239,226,0.04);
  border: 1px solid rgba(201,168,76,0.22);
  border-top: 3px solid var(--gold);
  overflow: hidden;
}
.ann-card-img {
  width: 100%; max-height: 180px;
  object-fit: cover; display: block;
}
.ann-card-body { padding: 18px 18px 16px; }
.ann-card-date {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.ann-card-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--wh);
  line-height: 1.25; margin-bottom: 10px;
}
.ann-card-text {
  font-size: 14px; color: var(--ow2); line-height: 1.6;
}
.ann-card-link {
  display: inline-block; margin-top: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--glt); border-bottom: 1px solid rgba(232,203,122,0.4);
  padding-bottom: 1px; transition: border-color .15s;
}
.ann-card-link:hover { border-color: var(--glt); }

.ann-empty {
  padding: 32px 20px; text-align: center;
  color: var(--ow3); font-size: 14px; line-height: 1.6;
}

.ann-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 16px 0 4px;
}
.ann-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gdim); cursor: pointer; transition: background .2s;
}
.ann-dot.active { background: var(--gold); }

/* ══ KEY RULES SNIPPET ══ */
.rules-section {
  padding: 28px 20px 24px;
  background: var(--bur);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.rules-eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 400px) {
  .rules-grid { grid-template-columns: 1fr; }
}
.rules-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.14);
  padding: 12px;
}
.rules-item-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.rules-item-text {
  font-size: 13px; color: var(--ow2); line-height: 1.5;
}
.rules-item-text strong { color: var(--glt); font-weight: 700; }
.rules-item-text a { color: var(--gold); text-decoration: underline; }

/* ══ PAST WINNERS ══ */
.winners-section {
  background: var(--bur);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 20px;
}
.winners-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  padding: 4px 0;
}
.winners-toggle-label {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--wh);
}
.winners-toggle-icon {
  color: var(--gold); font-size: 20px;
  transition: transform .25s;
}
.winners-toggle.open .winners-toggle-icon { transform: rotate(180deg); }
.winners-body { display: none; padding-top: 16px; }
.winners-body.open { display: block; animation: fadeUp .25s ease; }

.draw-result {
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.04);
  padding: 16px;
  margin-bottom: 10px;
}
.draw-result-num {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 4px;
}
.draw-result-prize {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--wh); margin-bottom: 6px;
}
.draw-result-detail  { font-size: 13px; color: var(--ow2); line-height: 1.5; margin-bottom: 10px; }
.draw-result-items {
  margin: 8px 0 4px 16px; padding: 0;
  font-size: 13px; color: var(--ow2); line-height: 1.7;
}
.draw-result-value {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); margin-top: 8px; margin-bottom: 4px;
}
.draw-result-pending { font-size: 14px; color: var(--ow3); font-style: italic; }
.draw-result-winner  { font-size: 14px; color: var(--glt); }

/* ══ DIRECTORY ══ */
.dir-page {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h));
}
@media (max-width: 768px) {
  .dir-page { height: calc(100vh - var(--nav-h) - var(--bot-h)); }
}

.dir-toolbar {
  flex-shrink: 0;
  background: var(--bur2);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dir-search-wrap {
  flex: 1; min-width: 180px;
  position: relative; display: flex;
}
.dir-search {
  flex: 1;
  background: rgba(245,239,226,0.06);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 10px 36px 10px 12px;
  color: var(--wh); font-size: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.dir-search::placeholder { color: var(--ow3); }
.dir-search:focus { border-color: var(--gold); }
.dir-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--ow3); background: none; border: none; cursor: pointer;
  font-size: 18px; display: none;
}

.dir-view-toggle {
  display: flex; gap: 0;
}
.dir-vbtn {
  background: rgba(245,239,226,0.05);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 9px 12px; cursor: pointer;
  color: var(--ow3); font-size: 13px;
  transition: background .2s, color .2s;
  display: flex; align-items: center; gap: 5px;
}
.dir-vbtn:first-child { border-right: none; }
.dir-vbtn.active { background: rgba(201,168,76,0.15); color: var(--gold); }

.dir-filter {
  display: flex; gap: 6px;
}
.dir-fbtn {
  background: rgba(245,239,226,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 7px 12px; cursor: pointer;
  color: var(--ow3);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.dir-fbtn.active { background: rgba(201,168,76,0.14); color: var(--glt); border-color: var(--gold); }

/* ══ MAP ══ */
#map-container {
  flex: 1; position: relative; z-index: 0;
}
#map {
  width: 100%; height: 100%;
}

/* Leaflet overrides to match theme */
.leaflet-popup-content-wrapper {
  background: var(--bur2) !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  color: var(--ow) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 0 !important; width: 280px !important;
}
.leaflet-popup-tip { background: var(--bur2) !important; }
.leaflet-popup-close-button {
  color: var(--ow3) !important; font-size: 18px !important; padding: 8px 10px !important;
}

.map-locate-btn {
  position: absolute; bottom: 20px; right: 12px; z-index: 500;
  background: var(--bur2);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,0.5);
  transition: background .15s;
}
.map-locate-btn:hover { background: rgba(201,168,76,0.12); }

/* ══ POPUP CONTENT ══ */
.popup-inner {
  padding: 14px;
  position: relative; overflow: hidden; isolation: isolate;
}
.popup-stamp-bg {
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 110px; height: 110px;
  pointer-events: none;
  z-index: -1; opacity: 0.28;
}
.popup-stamp-bg img { width: 100%; height: 100%; object-fit: contain; }
.popup-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 8px; margin-bottom: 8px;
}
.popup-badge.partner     { background: rgba(201,168,76,0.18); color: var(--gold); }
.popup-badge.non-partner { background: rgba(245,239,226,0.08); color: var(--ow3); }
.popup-name {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--wh); margin-bottom: 3px;
}
.popup-detail  { font-size: 13px; color: var(--ow3); margin-bottom: 4px; }
.popup-address { font-size: 13px; color: var(--ow2); margin-bottom: 4px; }
.popup-directions {
  display: inline-block;
  font-size: 12px; color: var(--gold) !important;
  text-decoration: none; margin-bottom: 10px;
}
.popup-directions:hover { text-decoration: underline; color: var(--glt) !important; }
.popup-desc    { font-size: 13px; color: var(--ow2); line-height: 1.5; margin-bottom: 8px; }
.popup-promo {
  font-size: 13px; color: var(--glt); line-height: 1.5;
  background: rgba(201,168,76,0.07);
  padding: 8px 10px; margin-bottom: 10px;
}
.popup-disclaimer {
  font-size: 11px; color: var(--ow3); font-style: italic; line-height: 1.5;
  margin-bottom: 10px;
  border-top: 1px solid rgba(201,168,76,0.1); padding-top: 8px;
}
.popup-checkin-btn {
  width: 100%;
  background: var(--gold); border: none; padding: 12px;
  color: var(--bur2); font-size: 14px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .15s, color .15s;
  border-radius: 3px;
}
.popup-checkin-btn:hover    { background: var(--glt); color: var(--bur2); }
.popup-checkin-btn:disabled { opacity: .45; cursor: not-allowed; }
.popup-qr-note {
  font-size: 11px; color: var(--ow3); font-style: italic;
  text-align: center; margin-top: 6px;
}
.popup-checkin-done {
  width: 100%; padding: 12px; text-align: center;
  font-size: 13px; color: var(--gold); font-style: italic;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.popup-entry-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: rgba(201,168,76,0.25); color: #fff;
  padding: 3px 8px; letter-spacing: .08em; margin-left: 6px;
}

/* ══ LIST VIEW ══ */
#list-view {
  display: none; flex: 1; overflow-y: auto;
  background: var(--bur);
}
.list-item {
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 16px 20px;
  cursor: pointer;
  display: flex; align-items: stretch; gap: 14px;
  transition: background .15s;
  position: relative; overflow: hidden; isolation: isolate;
}
.list-item:hover { background: rgba(201,168,76,0.04); }
.list-item-border {
  width: 3px; flex-shrink: 0; border-radius: 2px;
  background: var(--gold); /* partner */
}
.list-item-border.grey { background: rgba(245,239,226,0.18); }
.list-item-body { flex: 1; min-width: 0; }
.list-item-name {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--wh); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-item-meta {
  font-size: 13px; color: var(--ow3); margin-bottom: 5px;
}
.list-item-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 7px;
}
.list-item-badge.partner     { background: rgba(201,168,76,0.18); color: var(--gold); }
.list-item-badge.non-partner { background: rgba(245,239,226,0.07); color: var(--ow3); }
.list-item-entries {
  font-size: 12px; font-weight: 700;
  color: var(--glt); letter-spacing: .06em;
  flex-shrink: 0; align-self: center;
}

/* Expanded list-item detail */
.list-detail {
  display: none; padding: 12px 16px 16px; margin: 0 20px 10px;
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  animation: fadeUp .2s ease;
  position: relative; overflow: hidden; isolation: isolate;
}
.list-detail.open { display: block; }

/* ══ PASSPORT PAGE ══ */
.passport-page { padding: 20px; max-width: 500px; margin: 0 auto; }
.passport-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.passport-greeting {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--wh);
}
.passport-greeting-sub { font-size: 14px; color: var(--ow3); margin-top: 3px; }

.pt-switch-btn {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 7px 12px; cursor: pointer;
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .15s;
  white-space: nowrap;
}
.pt-switch-btn:hover { background: rgba(201,168,76,0.18); }

/* ══ PASSPORT BOOKLET ══ */
.booklet-wrap {
  position: relative;
  background: #1E0F06;
  border: 1px solid rgba(201,168,76,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  overflow: hidden;
  margin-bottom: 24px;
}
.booklet-header {
  background: #1E0F06;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  display: flex; align-items: center; gap: 10px;
}
.booklet-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--glt);
}
.booklet-pages-indicator {
  margin-left: auto;
  font-size: 11px; color: rgba(232,203,122,0.45);
  letter-spacing: .08em;
}

/* Two-page spread */
.booklet-spread {
  display: flex;
  min-height: 260px;
  animation: fadeIn .25s ease;
}
.booklet-page-left {
  flex: 1;
  background: #EDE5CE;
  padding: 18px 12px 22px 16px;
  box-shadow: inset -8px 0 14px rgba(0,0,0,0.07);
  position: relative;
}
.booklet-page-right {
  flex: 1;
  background: #F4EDD8;
  padding: 18px 16px 22px 12px;
  position: relative;
}
/* Page number watermarks */
.booklet-page-left::after,
.booklet-page-right::after {
  position: absolute;
  bottom: 7px;
  font-size: 9px;
  color: rgba(80,46,14,0.28);
  letter-spacing: .12em;
  font-family: 'Barlow Condensed', sans-serif;
}
.booklet-page-left::after  { content: attr(data-pg); left: 14px; }
.booklet-page-right::after { content: attr(data-pg); right: 14px; }

/* Center spine / binding */
.booklet-binding {
  width: 16px;
  flex-shrink: 0;
  background: linear-gradient(to right,
    #B89A60 0%, #D4BC86 30%, #EAD49A 50%, #D4BC86 70%, #B89A60 100%);
  position: relative;
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.15), inset -2px 0 4px rgba(0,0,0,0.15);
}
.booklet-binding::after {
  content: '';
  position: absolute;
  left: 50%; top: 8%; bottom: 8%;
  width: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(80,46,14,0.3) 0px, rgba(80,46,14,0.3) 4px,
    transparent 4px, transparent 9px
  );
}

/* Stamps on each half-page */
.booklet-page-stamps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* Individual stamp */
.stamp-cell {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  animation: fadeUp .4s ease;
}
.stamp-frame {
  width: 76px; height: 76px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.stamp-frame-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: hue-rotate(var(--stamp-hue, 0deg)) saturate(1.25) brightness(0.93);
  display: block;
}
.stamp-frame-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--stamp-bg, rgba(201,168,76,0.15));
  border: 2px dashed var(--stamp-fg, rgba(201,168,76,0.55));
  border-radius: 50%;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 19px; font-weight: 700;
  color: var(--stamp-fg, var(--glt));
}
.stamp-cell-name {
  font-size: 9px; font-weight: 700;
  color: #3A2010; text-align: center;
  line-height: 1.3; max-width: 82px;
  letter-spacing: .05em; text-transform: uppercase;
}
.stamp-cell-date {
  font-size: 8px; color: rgba(80,46,14,0.5);
  letter-spacing: .07em;
}
.stamp-cell-value {
  font-size: 8px; font-weight: 700;
  background: rgba(80,46,14,0.09);
  color: #7A4E18;
  padding: 1px 5px; letter-spacing: .1em;
}

.booklet-empty {
  flex: 1; text-align: center;
  padding: 40px 20px;
  background: #F4EDD8;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.booklet-empty-icon { font-size: 38px; margin-bottom: 12px; opacity: .45; }
.booklet-empty-text { font-size: 13px; line-height: 1.6; color: rgba(80,46,14,0.55); }
.booklet-empty-text a { color: #7A4E18; text-decoration: underline; }

.booklet-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px 10px;
  background: #1E0F06;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.booklet-nav-btn {
  background: none; border: 1px solid rgba(201,168,76,0.25);
  color: var(--ow2); padding: 5px 12px; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; letter-spacing: .08em;
  transition: border-color .15s, color .15s;
}
.booklet-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.booklet-nav-btn:disabled { opacity: .25; cursor: not-allowed; }

/* ══ ENTRIES SUMMARY ══ */
.entries-card {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.entries-label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ow3); margin-bottom: 6px;
}
.entries-num {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 48px; font-weight: 700; color: var(--glt);
  line-height: 1;
}
.entries-sub { font-size: 14px; color: var(--ow2); margin-top: 6px; }

/* ══ WINS ══ */
.wins-section { margin-bottom: 20px; }
.wins-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--wh); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.win-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
  border: 1px solid rgba(201,168,76,0.4);
  padding: 16px;
  margin-bottom: 10px;
}
.win-card-prize {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--glt); margin-bottom: 4px;
}
.win-card-draw  { font-size: 13px; color: var(--gold); }
.win-card-date  { font-size: 12px; color: var(--ow3); margin-top: 4px; }

/* ══ PASSPORT TYPE MODAL ══ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(3px);
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal-sheet {
  width: 100%; max-width: 480px;
  background: var(--bur2);
  border-top: 1px solid rgba(201,168,76,0.3);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: slideUp .3s cubic-bezier(.25,.8,.25,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 19px; font-weight: 700; color: var(--wh);
  margin-bottom: 6px;
}
.modal-sub { font-size: 14px; color: var(--ow2); margin-bottom: 18px; line-height: 1.5; }
.modal-close {
  float: right; background: none; border: none;
  color: var(--ow3); font-size: 22px; cursor: pointer;
  margin-top: -4px;
}

/* ══ LOCATION / QR CHECK-IN ══ */
.loc-shell {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .loc-shell { min-height: calc(100vh - var(--nav-h) - var(--bot-h) - var(--foot-h)); }
}
.loc-status-icon { font-size: 56px; margin-bottom: 16px; }
.loc-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--wh);
  margin-bottom: 8px;
}
.loc-sub { font-size: 15px; color: var(--ow2); line-height: 1.6; max-width: 340px; margin-bottom: 24px; }

.stamp-reveal {
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  animation: fadeUp .5s ease;
}
.stamp-reveal-img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.stamp-reveal-initials {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 36px; font-weight: 700; color: var(--glt);
}
.stamp-reveal-value {
  font-size: 15px; font-weight: 700;
  color: var(--glt);
  letter-spacing: .06em;
  text-align: center;
  margin-bottom: 6px;
}

.loc-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }

/* ══ RULES LINK (outside grid) ══ */
.rules-link {
  margin-top: 16px;
  text-align: center;
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
}
.rules-link a { color: var(--gold); text-decoration: underline; }
.rules-link a:hover { color: var(--glt); }

/* ══ CONTACT / COMMUNITY SECTION ══ */
.contact-section {
  padding: 28px 20px 24px;
  background: var(--bur2);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.contact-section-eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.contact-section-body {
  font-size: 14px; color: var(--ow2); line-height: 1.7;
  margin-bottom: 10px;
}
.contact-section-body:last-child { margin-bottom: 0; }
.contact-section-body a { color: var(--gold); text-decoration: underline; }
.contact-section-body a:hover { color: var(--glt); }

/* ══ LOADER SPINNER ══ */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

/* ══ FOOTER ══ */
.p-footer {
  background: var(--bur);
  padding: 18px 20px;
  text-align: center;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ow3);
}
.p-footer-links {
  margin-top: 8px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.p-footer-links a {
  color: var(--ow3); text-decoration: none;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(245,239,226,0.2);
}
.p-footer-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ══ SIGN OUT BUTTON ══ */
.signout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(245,239,226,0.12);
  padding: 14px;
  color: var(--ow3);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; margin-top: 8px;
  transition: border-color .2s, color .2s;
}
.signout-btn:hover { border-color: rgba(245,239,226,0.3); color: var(--ow2); }
