/* Santa Sleigh Tracker plugin, dressed in the theme (plugin markup: .sst, .sst-public, .sst-phone).
   Selectors are doubled with .sst so they win over the plugin's own tracker.css without !important. */

/* ---------- Track Santa: live map ---------- */
.trk-live { padding-block: 8px 32px; display: flex; flex-direction: column; gap: 16px; }
.trk-live[hidden] { display: none; }
.trk-live__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.trk-live__h { display: flex; align-items: center; gap: 12px; font-size: var(--scs-h3); line-height: 1.1; }
.trk-live__note { font-size: 15px; color: var(--scs-ink-soft); max-width: 520px; }
.trk-live .trk-dot { background: #A9A397; }
.trk-live.is-on .trk-dot { background: #3FBF7F; box-shadow: 0 0 0 3px rgba(63, 191, 127, .3); }

/* Off mode: unlit Christmas lights where the map will appear. */
.trk-live__off {
	min-height: clamp(220px, 26vw, 300px); padding: 28px 20px; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
	border: 3px dashed var(--scs-rule); border-radius: 18px; background: var(--scs-paper);
}
.trk-live__off[hidden] { display: none; }
.trk-live__lights { width: min(100%, 460px); height: auto; margin-bottom: 6px; }
.trk-live__off-h { font-family: var(--scs-font-display); font-weight: 600; font-size: clamp(22px, 1.2rem + 1vw, 28px); line-height: 1.2; max-width: 520px; }
.trk-live__off-sub { font-size: 16px; color: var(--scs-ink-soft); }
/* While off, the plugin's own status line repeats what the placeholder says. */
.trk-live:not(.is-on) .sst.sst-public .sst-message { display: none; }

.sst.sst-public { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 12px; }
.sst.sst-public > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sst.sst-public .sst-message { order: 2; font-size: 17px; font-weight: 700; }
.sst.sst-public .sst-map { order: 1; height: clamp(320px, 48vw, 540px); border: var(--scs-border); border-radius: 18px; overflow: hidden; background: #E4EEE7; }
.sst.sst-public .sst-map-error { order: 3; font-size: 15px; color: var(--scs-red-text); }
.sst.sst-public .sst-map-error:empty { display: none; }
.sst.sst-public .sst-follow {
	order: 4; align-self: flex-start;
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
	border-radius: var(--scs-pill); border: var(--scs-border); background: var(--scs-paper); color: var(--scs-ink);
	font-family: var(--scs-font-display); font-weight: 600; font-size: 16px; box-shadow: var(--scs-shadow-sm);
}

/* The theme's cut-paper sleigh replaces the plugin's emoji marker. */
.sst-sleigh {
	width: 72px; height: 46px; font-size: 0; color: transparent;
	background: url("../../images/sleigh-marker.svg") center / contain no-repeat;
	filter: drop-shadow(0 3px 3px rgba(32, 60, 59, .45));
}

/* ---------- Sleigh Phone page (organizers) ---------- */
.sst.sst-phone {
	max-width: 560px; margin: 0 auto; padding: 28px; box-sizing: border-box;
	background: var(--scs-paper); border: var(--scs-border); border-radius: 18px; box-shadow: 4px 6px 0 var(--scs-ink);
}
.sst.sst-phone h2 { font-size: var(--scs-h3); line-height: 1.1; margin-bottom: 8px; }
.sst.sst-phone > p { font-size: 17px; line-height: 1.55; }
.sst.sst-phone label { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; font-weight: 700; font-size: 17px; }
.sst.sst-phone input, .sst.sst-phone select {
	min-height: 54px; max-width: none; padding: 0 16px; box-sizing: border-box; width: 100%;
	border-radius: var(--scs-radius); border: var(--scs-border); background: var(--scs-cream);
	font: inherit; font-weight: 400; font-size: 17px; color: var(--scs-ink);
}
.sst.sst-phone input:focus, .sst.sst-phone select:focus { outline: 3px solid var(--scs-teal); outline-offset: 2px; }
.sst.sst-phone p:has(> button) { display: flex; flex-wrap: wrap; gap: 14px; }
.sst.sst-phone button {
	flex: 1 1 180px; min-height: 54px; padding: 0 22px; border-radius: var(--scs-pill); border: var(--scs-border);
	font-family: var(--scs-font-display); font-weight: 600; font-size: 18px; box-shadow: var(--scs-shadow-sm); cursor: pointer;
}
.sst.sst-phone .sst-start { background: var(--scs-red); color: var(--scs-on-dark); }
.sst.sst-phone .sst-stop { background: var(--scs-paper); color: var(--scs-ink); }
.sst.sst-phone button:disabled { opacity: .45; cursor: default; box-shadow: none; }
.sst.sst-phone .sst-message { margin-top: 18px; padding: 14px 16px; border-radius: var(--scs-radius); background: var(--scs-cream); border: 2px dashed var(--scs-rule); font-weight: 700; }

@media (max-width: 640px) {
	.trk-live { padding-bottom: 24px; }
	.sst.sst-public .sst-map { border-radius: 14px; }
	.sst.sst-phone { padding: 20px 16px; box-shadow: 3px 4px 0 var(--scs-ink); }
	.sst-sleigh { width: 60px; height: 38px; }
}
