:root {
  --bg: #ffffff;
  --ink: #111418;
  --muted: #667085;
  --border: #e6e7ea;
  --green: #1b4332;
  --green-weak: #e8f1ed;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- NAV ---------- */
a {
  color: var(--green);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.nav .spacer {
  flex: 1;
}

.nav a {
  color: #2a2f36;
}

/* ---------- LAYOUT ---------- */
main {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 18px 64px;
}

.center {
  text-align: center;
}

.center-col {
  max-width: 560px;
  margin: 0 auto;
}

h1 {
  font-size: 36px;
  margin: 10px 0 20px;
  font-weight: 900;
}

h2 {
  font-size: 22px;
  margin: 0 0 10px;
}

.kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-weight: 800;
  font-size: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

label {
  color: var(--muted);
  font-size: 14px;
}

input, select, textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

/* ---------- BUTTONS ---------- */
.btn {
  border: none;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn.accent {
  background: var(--green);
  color: #ffffff; 
}
.btn.accent:hover {
  opacity: 0.9;
}

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

.btn.block {
  width: 100%;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ---------- LISTS / CARDS ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--green-weak);
}

.helper, small.muted {
  color: var(--muted);
}

/* ---------- FLASH / TOAST ---------- */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
}

.flash.success {
  border-color: #bfe5bf;
  background: #f1fff1;
}

.flash.error {
  border-color: #f3b8c0;
  background: #fff2f4;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  padding: 24px 18px;
  border-top: 1px solid var(--border);
}

/* ---------- FRIENDS / AVATARS ---------- */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-weak);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.friend-row {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.badge {
  background: var(--green-weak);
  color: var(--green);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
}

/* ---------- LIST CLEANUP ---------- */
ul.clean {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.clean li {
  padding: 6px 0;
}
/* ---------- LOCATION AUTOCOMPLETE DROPDOWN ---------- */
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;             /* places list right below input */
  margin-top: 4px;
  list-style: none;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--border, #e6e7ea);
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
  z-index: 999;          /* ensures dropdown sits above other elements */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.suggestions li {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestions li:hover {
  background: var(--green-weak, #e8f1ed);
}