:root {
  --red:   #E1002D;
  --black: #000000;
  --white: #ffffff;
  --grey:  #757575;
  --light: #EEEEEE;
  --pad:   80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  overflow-x: hidden;
}

/* ─── HEADER ─── */
header {
  padding: 52px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-bottom: 1px solid var(--light);
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-left { display: flex; flex-direction: column; gap: 6px; }

.label-small {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.header-lovesong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-right { text-align: right; }

.tour-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.tour-year {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  line-height: 1;
}

/* ─── RED ACCENT LINE ─── */
.accent-line {
  height: 3px;
  background: var(--red);
  width: 100%;
}

/* ─── INTRO ─── */
.intro {
  padding: 64px var(--pad) 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}

.intro-text { max-width: 540px; }

.intro-text h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  margin-bottom: 14px;
  line-height: 1.2;
}

.intro-text p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.intro-meta {
  text-align: right;
  flex-shrink: 0;
}

.map-stats .stat {
  margin-bottom: 0;
}

.map-stats .stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--red);
  line-height: 1;
}

.map-stats .stat-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

/* ─── MAP WRAPPER & STATS ─── */
.map-wrapper {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
}

.map-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px 48px;
  border-left: 1px solid var(--light);
  min-width: 220px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── TOUR STOP FILTER ─── */
#intro-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stop-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.stop-filter-label {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.stop-filter-select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--light);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 8px 28px 8px 10px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E1002D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.stop-filter-select:hover,
.stop-filter-select:focus { border-color: var(--red); }

.stop-filter-link {
  display: none;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.stop-filter-link:hover { opacity: 0.7; }

.filter-opt-country { font-weight: 700; }

/* ─── MAP SECTION ─── */
.map-section {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--white);
  overflow: hidden;
}

.map-container {
  position: relative;
  width: 100%;
  line-height: 0;
}

#world-map {
  display: block;
  width: 100%;
}

/* BTS logo overlay — sits ON TOP of the SVG map but pointer-events: none */
.logo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.logo-overlay svg {
  position: absolute;
  width: 86%;
  height: auto;
  opacity: 0.13;
  left: 52%;
  top: -10%;
  transform: translateX(-50%);
}

.pin-group {
  transition: opacity 0.3s ease;
}

/* ─── MAP LEGEND ─── */
.map-legend {
  position: absolute;
  bottom: 18px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  pointer-events: none;
  max-width: 60%;
  flex-shrink: 1;
  word-break: break-word;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ─── POPUP ─── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.popup-overlay.active { display: flex; }

.popup {
  background: var(--white);
  width: 620px;
  max-width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.popup-header {
  background: var(--black);
  color: var(--white);
  padding: 36px 44px 32px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.popup-eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.popup-city {
  font-family: 'DM Serif Display', serif;
  font-size: 46px;
  line-height: 1;
}

.popup-country {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.popup-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.popup-body { padding: 36px 44px; }

.section-eyebrow {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 600;
}

.popup-dates-block {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--light);
}

.popup-venue {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.date-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.date-tag {
  background: var(--black);
  color: var(--white);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.museums-list { display: flex; flex-direction: column; gap: 16px; }

.museum-card {
  position: relative;
  border: 1px solid var(--light);
  padding: 22px 24px;
  transition: border-color 0.2s;
  cursor: default;
  overflow: visible;
}

.museum-card:hover { border-color: var(--red); }

/* ARMY recommended sticker — swap data/army-recommended.svg to change design.
   To hide all stickers (keeping sort order), set SHOW_FAN_STICKER=false in the script
   or add  .fan-sticker { display: none; }  to your custom CSS. */
.fan-sticker {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  -webkit-user-select: none; /* Safari 3+, iOS Safari 3+ */
  user-select: none;
}

.museum-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 7px;
  padding-right: 50px; /* reserve space for .fan-sticker */
}

.museum-distance {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.museum-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 12px;
}

.museum-link {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.museum-link:hover { text-decoration: underline; }

/* Museum empty state */
.museum-empty {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── FOOTER TEXT ─── */
.footer-info {
  padding: 72px var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  border-bottom: 1px solid var(--light);
}

.footer-col h2 {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
}

/* ─── BOTTOM BAR ─── */
.bottom-bar {
  padding: 22px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-bar p {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bottom-bar span { color: var(--red); }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(18, 18, 18, 0.97);
  color: #ccc;
  font-size: 12px;
  line-height: 1.6;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9000;
  border-top: 1px solid #333;
}
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner a { color: var(--red); text-decoration: underline; cursor: pointer; }
#cookie-banner .cookie-impressum-link { background: none; border: none; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font-size: inherit; font-family: inherit; }
#cookie-banner button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
#cookie-banner.hidden { display: none; }

/* ─── IMPRESSUM POPUP ─── */
.impressum-inner { max-width: 580px; }

.impressum-section { margin-bottom: 28px; }
.impressum-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--light);
}
.impressum-para-gap { margin-top: 12px !important; }

.impressum-section p, .impressum-section address {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  font-style: normal;
  margin: 0;
}
.impressum-section ul {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin: 0;
  padding-left: 18px;
}
.impressum-section li { margin-bottom: 4px; }
.impressum-section a { color: var(--red); }
.impressum-notice {
  background: #fafafa;
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-top: 8px;
}

.bottom-bar button.impressum-link {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.bottom-bar button.impressum-link:hover { color: var(--red); }

/* ─── LOVESONG HEADINGS ─── */
.lovesong-heading {
  padding: 52px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--light);
}

.lovesong-heading--below {
  border-top: none;
  border-bottom: 1px solid var(--light);
}

.love-block {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5.5vw, 70px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  padding: 10px 28px 14px;
  display: inline-block;
  letter-spacing: -0.5px;
}

.love-block--red {
  background: var(--red);
  color: var(--white);
}

.love-block--white {
  background: var(--white);
  color: var(--red);
  box-shadow: inset 0 0 0 2.5px var(--red);
}

/* ─── LOVESONG HEADING ROTATIONS ─── */
.header-lovesong .love-block:nth-child(1) { transform: rotate(-2deg); }
.header-lovesong .love-block:nth-child(2) { transform: rotate(1.5deg); }
.header-lovesong .love-block:nth-child(3) { transform: rotate(-1deg); }

.lovesong-heading--below .love-block:nth-child(1) { transform: rotate(1.8deg); }
.lovesong-heading--below .love-block:nth-child(2) { transform: rotate(-1.5deg); }
.lovesong-heading--below .love-block:nth-child(3) { transform: rotate(1deg); }

/* ─── PIN ANIMATIONS ─── */
@keyframes pinAppear {
  from { opacity: 0; transform: scale(0) translate(-50%, -50%); }
  to   { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}

@keyframes pulseRing {
  0%   { opacity: 0.5; r: 7; }
  100% { opacity: 0;   r: 22; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --pad: 32px; }
  .tour-year { font-size: 30px; }
  .map-wrapper { flex-direction: column; }
  .map-stats { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; border-left: none; border-top: 1px solid var(--light); padding: 24px var(--pad); gap: 32px; text-align: left; }
  #intro-stats { flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .stop-filter-wrapper { min-width: 200px; max-width: 280px; }
  .footer-info { grid-template-columns: 1fr; gap: 40px; }
  .popup-header { padding: 28px 28px 24px; }
  .popup-city { font-size: 36px; }
  .popup-body { padding: 28px; }
  #world-map { cursor: zoom-in; }
  #world-map.is-zoomed { cursor: zoom-out; }
}

@media (max-width: 560px) {
  .header-top-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-right { text-align: left; }
  .map-legend { display: none; }
  .map-stats { gap: 24px; padding: 20px var(--pad); }
  .stop-filter-wrapper { max-width: 100%; width: 100%; }
  .lovesong-heading { padding: 36px var(--pad); }
  .love-block { padding: 8px 16px 10px; }
  .bottom-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .popup-city { font-size: 28px; }
}
