/* ============================================================
   CINEMATIC STAYS — STYLES
   ============================================================
   You generally shouldn't need to edit this file to add content —
   see data.js for that. Edit this file only if you want to change
   colors, fonts, spacing, or layout.
   ============================================================ */

:root {
  --ink: #12121a;
  --muted: #6b6b78;
  --line: #ecebf3;
  --paper: #fbfaff;
  --card-bg: #ffffff;
  --grad-1: #ff5f6d;
  --grad-2: #7b2ff7;
  --grad-3: #00c2ff;
  --pill-bg: #f3f2fa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
h1, h2, h3, .logo { font-family: 'Space Grotesk', 'Inter', sans-serif; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6vw;
  position: sticky;
  top: 0;
  background: #fbfaff;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.logo {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--ink);
}
.logo .grad {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 30px;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav a:hover { opacity: 0.6; }
nav a.active {
  border-bottom: 2px solid var(--grad-2);
}
.footer-links {
  margin-top: 10px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 70px 6vw 40px;
  max-width: 820px;
  position: relative;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: var(--pill-bg);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2) 60%, var(--grad-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

/* Filters */
.filter-bar {
  margin: 30px 6vw 10px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(20,10,60,0.04);
}
.search-row {
  display: flex;
  align-items: center;
  background: var(--pill-bg);
  border-radius: 14px;
  padding: 12px 16px;
  gap: 10px;
  margin-bottom: 18px;
}
.search-row input {
  border: none;
  background: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  flex: 1;
  color: var(--ink);
}
.filter-group {
  margin-bottom: 14px;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-group .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 10px;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line);
  background: var(--pill-bg);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}
.pill:hover { border-color: #d8d5ea; }
.pill.active {
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  color: white;
  border-color: transparent;
}
.filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.clear-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--grad-2);
  background: none;
  border: none;
  cursor: pointer;
}
.clear-btn:hover { text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  padding: 30px 6vw 100px;
}

/* "By Movie" page groups */
.movie-groups {
  padding: 10px 6vw 40px;
}
.movie-group { margin-bottom: 20px; }
.movie-group-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.movie-group-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.movie-group-header .movie-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.movie-grid {
  padding: 20px 0 10px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20,10,60,0.1);
}
.card .photo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
/* Real hotel photo — sits above the gradient/fallback text.
   If the image 404s, script.js removes it and the gradient +
   fallback text underneath show through automatically. */
.card .photo .photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.card .photo .photo-fallback-text {
  position: relative;
  z-index: 0;
}
/* Badges always float above the photo so it's unmistakable
   which movie this is AND that it's a real, bookable hotel. */
.card .photo .movie-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .photo .era-badge {
  position: absolute;
  top: 52px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.card .photo .hotel-badge {
  position: absolute;
  bottom: 32px;
  left: 14px;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
/* Full-width scrim strip along the very bottom edge, separate
   from the hotel-badge above it, so the credit text never
   overlaps another badge regardless of card width or credit length. */
.card .photo .photo-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 12px 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.65) 75%);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  text-align: right;
  white-space: normal;
}
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card .movie-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--grad-2);
  font-weight: 700;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.card .location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card .scene {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 18px;
}
.card .story {
  margin: -8px 0 16px;
  font-size: 13.5px;
  color: var(--ink);
}
.card .story summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent, #6d4cff);
}
.card .story p { margin: 8px 0 0; line-height: 1.5; }
.card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  padding: 11px 18px;
  border-radius: 100px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
.card .cta:hover { opacity: 0.9; }

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state .emoji { font-size: 40px; margin-bottom: 12px; }

.data-error-banner {
  display: none;
  margin: 20px 6vw;
  padding: 16px 20px;
  background: #fff4f2;
  border: 1px solid #ffd6cf;
  border-radius: 14px;
  color: #a83b26;
  font-size: 14px;
}

footer {
  padding: 40px 6vw;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* About page */
.about-content {
  padding: 10px 6vw 80px;
  max-width: 760px;
}
.about-block {
  margin-bottom: 40px;
}
.about-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.about-block p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

/* ---- Mobile header: one tidy row, solid, pinned to the top ---- */
@media (max-width: 640px) {
  header {
    position: sticky;
    top: 0;
    padding: 12px 5vw;
    gap: 10px;
    flex-wrap: nowrap;
    background: #fbfaff;
  }
  .logo { font-size: 18px; }
  nav { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
  nav a { margin-left: 0; font-size: 13px; }
}
