:root {
  --graphite: #1a1a1a;
  --taupe: #b09b87;
  --cream: #faf8f5;
  --white: #fcfcfc;
  --teal: #55ffe1;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --submit-bar-h: 7.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--graphite);
  font-size: 17px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

#app {
  max-width: 32rem;
  margin: 0 auto;
  padding-bottom: calc(var(--submit-bar-h) + env(safe-area-inset-bottom, 0px) + 1rem);
}

.header {
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(176, 155, 135, 0.25);
  background: var(--white);
}

.kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.header h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.deck {
  font-size: 1rem;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
  max-width: 22rem;
  margin: 0 auto 0.75rem;
}

.map-link {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 155, 135, 0.5);
}

.section {
  padding: 1.1rem 1rem;
}

.contact-section {
  background: var(--white);
  border-bottom: 1px solid rgba(176, 155, 135, 0.2);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 0.15rem;
}

.section-deck {
  font-size: 0.88rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a4038;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(120, 100, 85, 0.55);
  border-radius: 3px;
  background: var(--white);
  color: #111;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--taupe);
}

textarea { resize: vertical; min-height: 3.5rem; }

.hint {
  font-size: 0.88rem;
  color: #333;
  font-weight: 500;
  margin-top: -0.25rem;
}

.spot-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.play-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.category-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a4038;
  font-weight: 600;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(176, 155, 135, 0.25);
}

.spot-desc-line {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #333;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.2rem;
}

.spot-tile {
  position: relative;
  min-height: 6rem;
  padding: 0.75rem 2.5rem 0.75rem 0.85rem;
  border: 2px solid rgba(176, 155, 135, 0.35);
  border-radius: 4px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.spot-tile.selected {
  border-color: #0a6b5c;
  background: rgba(85, 255, 225, 0.12);
}

.spot-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  line-height: 1.28;
  display: block;
  margin-bottom: 0.2rem;
}

.spot-addr {
  font-size: 0.82rem;
  color: #333;
  font-weight: 500;
  line-height: 1.35;
  display: block;
}

.spot-check {
  position: absolute;
  top: 0.35rem;
  right: 2rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(176, 155, 135, 0.5);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
}

.spot-tile.selected .spot-check {
  border-color: #0a6b5c;
  background: #0a6b5c;
  color: var(--white);
}

.spot-info-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: none;
  background: #0a6b5c;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.spot-info-btn:hover,
.spot-info-btn:focus {
  background: #085a4e;
  outline: none;
}

body.sheet-open {
  overflow: hidden;
}

.spot-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 2000;
}

.spot-detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 2001;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.spot-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.spot-detail-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  flex: 1;
}

.spot-detail-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--graphite);
  cursor: pointer;
}

.spot-detail-soon {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.spot-detail-addr {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.spot-detail-desc,
.spot-detail-extra {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 0.65rem;
}

.spot-detail-extra {
  color: #555;
  font-size: 0.85rem;
}

.spot-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.35rem;
}

.spot-detail-link {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #0a6b5c;
  text-decoration: none;
}

.spot-detail-link:hover {
  text-decoration: underline;
}

.priority-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.priority-option {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 2px solid rgba(176, 155, 135, 0.35);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.priority-option.selected {
  border-color: #0a6b5c;
  background: rgba(85, 255, 225, 0.12);
}

.priority-option:active {
  border-color: var(--taupe);
}

.optional-section {
  padding-bottom: calc(var(--submit-bar-h) + env(safe-area-inset-bottom, 0px) + 1.5rem);
}

.form-error {
  margin: 0 1rem 1rem;
  padding: 0.65rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
  border-radius: 3px;
}

.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(252, 252, 252, 0.95);
  border-top: 1px solid rgba(176, 155, 135, 0.3);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.submit-btn {
  display: block;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.submit-btn:not(:disabled):active {
  background: var(--taupe);
  color: var(--graphite);
}

.hosts-note {
  max-width: 32rem;
  margin: 0.55rem auto 0;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
  color: #444;
  text-align: center;
}

.app-version {
  max-width: 32rem;
  margin: 0.35rem auto 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  font-weight: 600;
}

.success-view {
  padding: 2rem 1.25rem;
  text-align: center;
}

.success-view h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.success-deck {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 1rem;
}

.success-picks {
  list-style: none;
  text-align: left;
  max-width: 18rem;
  margin: 0 auto 1.5rem;
}

.success-picks li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(176, 155, 135, 0.2);
  font-size: 1rem;
  font-weight: 500;
  color: #111;
}

.success-picks .num {
  font-family: var(--font-serif);
  color: var(--taupe);
  font-weight: 600;
  margin-right: 0.35rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.button-primary {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  background: var(--graphite);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  width: 100%;
  max-width: 18rem;
}

.button-primary:active {
  background: var(--taupe);
  color: var(--graphite);
}

.button-secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--graphite);
  border: 1px solid var(--taupe);
  border-radius: 3px;
  text-decoration: none;
  width: 100%;
  max-width: 18rem;
  text-align: center;
}

.submit-bar.hidden { display: none; }
