/* ============================================================
   WINTERFEST APP — STYLES
   Brand: blue #0f3f63, yellow/gold #E6C717, typeface Lora.
   ============================================================ */

:root {
  --blue: #0f3f63;
  --gold: #E6C717;
  --border: #eee;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  color: var(--blue);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

/* ---- header ---- */

.header {
  background: var(--blue);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header img { height: 40px; width: auto; display: block; }
.header-text-stack { display: flex; flex-direction: column; }
.header-title { color: var(--gold); font-weight: 700; font-size: 19px; letter-spacing: 0.05em; line-height: 1.1; }
.header-subtitle { color: #fff; font-size: 11px; opacity: 0.8; margin-top: 2px; }

/* ---- day toggle ---- */

.daybar { display: flex; justify-content: center; gap: 8px; padding: 12px 18px 10px; }
.daybtn {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px; font-weight: 600; padding: 6px 16px;
  border-radius: 999px; border: 1.5px solid var(--blue);
  background: #fff; color: var(--blue); cursor: pointer;
}
.daybtn.active { background: var(--gold); border-color: var(--gold); }

/* ---- tabs ---- */

.tabbar { display: flex; border-bottom: 1px solid var(--border); padding: 0 18px; }
.tabbtn {
  flex: 1; padding: 10px 0; text-align: center; cursor: pointer;
  font-family: 'Lora', Georgia, serif; font-size: 13px; font-weight: 600;
  color: #9aa7b0; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none;
}
.tabbtn.active { color: var(--blue); border-bottom-color: var(--gold); }

/* ---- shared content blocks ---- */

.view { padding: 14px 18px 24px; }
.hidden { display: none; }
.label {
  font-size: 11px; font-weight: 700; color: var(--blue); opacity: 0.6;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.row { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.row:last-child { border-bottom: none; }
.row-body { flex: 1; }
.row-top { display: flex; justify-content: space-between; gap: 8px; }
.row-title { font-weight: 600; }
.row-sub { font-size: 12px; opacity: 0.65; }
.row-highlight { background: rgba(230,199,23,0.15); border-radius: 8px; padding: 8px; }
.empty-note { font-size: 13px; opacity: 0.6; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--blue);
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; cursor: pointer;
}
.badge-static { cursor: default; }
.badge-empty { background: #eee; color: #aaa; cursor: default; }

.tag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(15,63,99,0.08); color: var(--blue);
  border: 1px solid rgba(15,63,99,0.2); white-space: nowrap;
}

/* ---- map ---- */

.toolbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; font-weight: 700; border: none;
}
.iconbtn-small { font-size: 13px; }
.zoom-controls { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }

.map-viewport {
  position: relative; width: 100%; overflow: hidden; border-radius: 10px;
  background: #eef3ee; touch-action: none;
}
.map-wrap { position: absolute; top: 0; left: 0; width: 100%; transform-origin: center center; }
.map-wrap img { width: 100%; display: block; }

.pin {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--blue); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%); border: 1.5px solid var(--blue); cursor: pointer;
}
.pin-lit { box-shadow: 0 0 0 5px rgba(230,199,23,0.6); width: 26px; height: 26px; }

.hint { font-size: 12px; opacity: 0.6; margin-top: 8px; }

.panel-inline { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 14px; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
  border-radius: 16px 16px 0 0; padding: 14px 16px 18px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18); max-height: 62%; overflow-y: auto;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.panel-head-left { display: flex; align-items: center; gap: 8px; }
.panel-title { font-weight: 700; font-size: 15px; }
.clearlink { font-size: 11.5px; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; }

.nextcard { background: var(--blue); color: #fff; border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; }
.nextcard-k { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.nextcard-title { font-size: 15px; font-weight: 600; margin-top: 3px; }
.nextcard-time { font-size: 12px; opacity: 0.8; }
