/* Web layout extensions */
.web-shell {
  display: grid;
  grid-template-rows: 56px 1fr;
  height: 100vh;
  overflow: hidden;
}

.web-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.web-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.web-nav a {
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.7;
}

.web-nav a.active,
.web-nav a:hover {
  opacity: 1;
  color: var(--sea);
}

.web-map-layout {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  min-height: 0;
}

.web-filters {
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 1.25rem;
  overflow-y: auto;
}

.web-filters h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.filter-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-opts button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
}

.filter-opts button.on {
  background: var(--sea);
  color: var(--white);
  border-color: var(--sea);
}

.web-map-area {
  position: relative;
  min-height: 0;
}

.web-map-area .map-canvas {
  width: 100%;
  height: 100%;
}

.map-brand-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  pointer-events: none;
}

.map-brand-overlay .brand {
  font-size: 2.5rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.map-brand-overlay p {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--ink-soft);
  max-width: 22ch;
}

.web-preview {
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.preview-cover {
  height: 140px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(14, 26, 31, 0.45), rgba(26, 107, 110, 0.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='40' fill='none' stroke='%23fff' stroke-opacity='0.15' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #2a7a6e, #1a4a52);
  background-size: cover, 60px, cover;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
}

.preview-cover .chip {
  background: rgba(255, 255, 255, 0.92);
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.preview-meta h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.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);
}

.preview-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Create page */
.web-form-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(26, 107, 110, 0.12), transparent 40%),
    radial-gradient(ellipse at 90% 100%, rgba(232, 163, 23, 0.1), transparent 40%),
    var(--paper);
}

.web-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.web-form-wrap h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.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;
}

.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;
}

.map-pick {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Event detail */
.web-event-page {
  min-height: 100vh;
  background: var(--paper);
}

.event-hero {
  height: 280px;
  position: relative;
  background:
    linear-gradient(180deg, transparent 30%, rgba(14, 26, 31, 0.75)),
    linear-gradient(135deg, #1a6b6e 0%, #0e1a1f 100%);
}

.event-hero-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  color: var(--white);
}

.event-hero-inner h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0;
  letter-spacing: -0.04em;
}

.event-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.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;
}

.side-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
}

/* Profile */
.profile-hero {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(26, 107, 110, 0.25), transparent 50%),
    linear-gradient(160deg, #0e1a1f, #1a4548);
  color: var(--white);
  padding: 2.5rem 1.25rem 2rem;
}

.profile-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.profile-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
}

.rating-cards {
  max-width: 800px;
  margin: -1.5rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.rating-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.rating-card .big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.04em;
}

.history {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

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

@media (max-width: 960px) {
  .web-map-layout {
    grid-template-columns: 260px 1fr;
  }
  .web-preview {
    display: none;
  }
  .event-body {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
