:root {
  --gold-1: #d4af37;
  --gold-2: #ffd700;
  --gold-3: #ffec8b;
  --bg-overlay: rgba(0,0,0,0.45);
  --card-bg: rgba(255,255,255,0.92);
  --accent: #a67c00;
  --muted: #7b7b7b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #222;
  min-height: 100%;
  position: relative;
  background: linear-gradient(180deg, #fff, #f4f4f4);
}

/* Background video */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
}

/* Page container */
.page-wrap {
  max-width: 760px;
  margin: 24px auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

/* Header */
.top { text-align: center; margin-bottom: 12px; }
.logo { width: 120px; margin: 9px auto; display: block; }
.top h1 { font-weight: 600; color: #444; margin: 6px 0 4px; font-size: 18px; }

/* Locations grid */
.locations-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 8px;
}
.location-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  background: linear-gradient(45deg, var(--gold-1), var(--gold-2), var(--gold-3));
  background-size: 300% 300%;
  animation: shine 6s linear infinite;
  border: 2px solid rgba(166,124,0,0.85);
  box-shadow: 0 3px 0 rgba(0,0,0,0.12), inset 0 -6px 10px rgba(255,255,255,0.12);
  font-weight: 700;
  font-size: 13px;
  transition: transform .12s ease, box-shadow .12s;
}
.location-btn:hover { box-shadow: 0 6px 14px rgba(0,0,0,0.14); }
.location-btn:active { transform: translateY(2px); }

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  padding: 12px;
  justify-items: center;
}

/* Card styles */
.card {
  width: 100%;
  max-width: 140px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
}

/* Thumbnail with shimmer */
.card .thumb {
  position: relative;
  background: linear-gradient(180deg, #f0f0f0, #ddd);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card .thumb::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-25deg);
}
.card:hover .thumb::after {
  animation: shimmerSweep 1.5s forwards;
}
@keyframes shimmerSweep {
  100% { left: 125%; }
}

/* Hover glow */
.card:hover {
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 20px rgba(212,175,55,0.6);
  transform: translateY(-4px);
}

/* Active pulsing glow */
.card.active {
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 25px rgba(212,175,55,0.9);
  animation: glowPulse 1.5s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { box-shadow: 0 0 12px rgba(212,175,55,0.5); }
  to   { box-shadow: 0 0 28px rgba(212,175,55,1); }
}

/* Card text */
.card-text {
  padding: 10px;
  background: linear-gradient(180deg, #f5eef8, #efe7f2);
  font-size: 12px;
  color: #333;
}
.card-text .fullname {
  font-weight: 700;
  line-height: 1.2;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-text .type {
  font-size: 11px;
  color: #6d4b77;
  margin-top: 4px;
  font-weight: 600;
}

/* Submit button */
.submit-row { text-align: center; padding: 14px; }
.submit-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  background: linear-gradient(45deg, var(--gold-1), var(--gold-2), var(--gold-3));
  background-size: 300% 300%;
  animation: shine 6s linear infinite;
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(212,175,55,0.8);
}

/* Shine animation */
@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  z-index: 999;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 92%; max-height: 80%;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  background: transparent; color: #fff;
  border: 0; font-size: 20px; cursor: pointer;
}
.lb-caption { color: #fff; margin-top: 12px; text-align: center; }

/* No results */
.no-results { padding: 24px; text-align: center; color: var(--muted); }

/* Responsive */
@media(min-width:560px) {
  .page-wrap { max-width: 560px; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { gap: 14px; justify-content: center; }
}
@media(min-width:900px) {
  .page-wrap { max-width: 760px; }
  .locations-grid { grid-template-columns: repeat(3,1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Audio toggle */
#audio-toggle {
  position: fixed; bottom: 14px; right: 14px;
  z-index: 1000;
  background: var(--gold-2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-weight: 700;
}
