/* truly mockups — shared visual system */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --ink: #0e1a1f;
  --ink-soft: #24343c;
  --fog: #e6eef0;
  --mist: #c5d5d9;
  --sea: #1a6b6e;
  --sea-deep: #0f4548;
  --citrus: #e8a317;
  --citrus-deep: #c4840a;
  --coral: #d45a3a;
  --paper: #f3f7f8;
  --white: #ffffff;
  --line: rgba(14, 26, 31, 0.12);
  --shadow-soft: 0 12px 40px rgba(14, 26, 31, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Figtree", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.brand span {
  color: var(--sea);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--citrus);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--citrus-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-sea {
  background: var(--sea);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.rating .star {
  color: var(--citrus);
  font-size: 0.95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(26, 107, 110, 0.1);
  color: var(--sea-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip-warm {
  background: rgba(232, 163, 23, 0.18);
  color: #7a5200;
}

.map-canvas {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(26, 107, 110, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(232, 163, 23, 0.12), transparent 45%),
    linear-gradient(160deg, #b8cfd4 0%, #9bb8bf 40%, #87a8b0 70%, #6f949e 100%);
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 26, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 26, 31, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* stylized "river" / canals for SPB feel */
.map-water {
  position: absolute;
  background: rgba(15, 69, 72, 0.35);
  border-radius: 40px;
  pointer-events: none;
}

.pin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--sea);
  border: 2px solid var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 26, 31, 0.25);
  transition: transform 0.2s ease;
}

.pin:hover,
.pin.active {
  transform: rotate(-45deg) scale(1.12);
  background: var(--coral);
  z-index: 2;
}

.pin i {
  transform: rotate(45deg);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: var(--white);
  color: var(--ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), var(--sea-deep));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}

.muted {
  color: var(--ink-soft);
  opacity: 0.75;
  font-size: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

/* index page */
.index-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(26, 107, 110, 0.2), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(232, 163, 23, 0.15), transparent 45%),
    linear-gradient(180deg, #0e1a1f 0%, #1a3338 55%, #0f4548 100%);
  color: var(--fog);
  padding: 3rem 1.5rem 4rem;
}

.index-page .brand {
  font-size: 3rem;
  color: var(--white);
}

.index-page .brand span {
  color: var(--citrus);
}

.index-hero {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.index-hero p {
  font-size: 1.15rem;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 36ch;
}

.index-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
}

.index-col h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--citrus);
}

.index-col a {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.index-col a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.index-col a strong {
  display: block;
  margin-bottom: 0.15rem;
}

.index-col a span {
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Shared interactive bits (web + mobile) */
.org-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0.75rem 0;
}

.slots {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.slot-bar {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.slot-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.slot-bar span {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.participant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.participant-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.badge-wait {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a5200;
  background: rgba(232, 163, 23, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.toggle {
  width: 44px;
  height: 24px;
  background: var(--mist);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle.on {
  background: var(--sea);
}

.toggle::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: left 0.15s ease;
}

.toggle.on::after {
  left: 23px;
}

.star {
  color: var(--citrus);
}
