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

.is-hidden {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --panel: #ffffff;
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --line: #e6e1da;
  --accent: #ef5a29;
  --accent-dark: #c9461d;
  --chip: #f1ece5;
  --shadow: 0 12px 30px rgba(22, 18, 12, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  width: 250px;
  padding: 24px 18px;
  background: var(--panel);
  border-right: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-status {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.auth-status.is-hidden {
  display: none;
}

.auth-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.auth-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1ec;
  color: var(--accent-dark);
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 16px rgba(239, 90, 41, 0.25);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

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

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav-item .icon {
  width: 18px;
  text-align: center;
}

.nav-item.active {
  color: var(--accent);
  background: #fff5f1;
}

.nav-group {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main.docs-active .top-bar,
.main.docs-active .filters,
.main.docs-active .map-area {
  display: none;
}

.main.profile-active .top-bar,
.main.profile-active .filters,
.main.profile-active .map-area,
.main.profile-active .docs-container {
  display: none;
}

.main.trips-active .top-bar,
.main.trips-active .filters,
.main.trips-active .map-area,
.main.trips-active .docs-container,
.main.trips-active .profile-panel {
  display: none;
}

.main.places-active .top-bar,
.main.places-active .filters,
.main.places-active .map-area,
.main.places-active .docs-container,
.main.places-active .profile-panel,
.main.places-active .trips-panel {
  display: none;
}

.main.add-place-active .top-bar,
.main.add-place-active .filters,
.main.add-place-active .docs-container,
.main.add-place-active .profile-panel,
.main.add-place-active .trips-panel,
.main.add-place-active .places-panel,
.main.add-place-active .dashboard-panel {
  display: none;
}

.main.add-place-active .detail-panel,
.main.add-place-active .map-controls {
  display: none;
}

.main.dashboard-active .top-bar,
.main.dashboard-active .filters,
.main.dashboard-active .map-area,
.main.dashboard-active .docs-container,
.main.dashboard-active .profile-panel,
.main.dashboard-active .trips-panel,
.main.dashboard-active .places-panel {
  display: none;
}

.main.admin-queue-active .top-bar,
.main.admin-queue-active .filters,
.main.admin-queue-active .map-area,
.main.admin-queue-active .docs-container,
.main.admin-queue-active .profile-panel,
.main.admin-queue-active .trips-panel,
.main.admin-queue-active .places-panel,
.main.admin-queue-active .dashboard-panel {
  display: none;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 0;
}

.menu-btn {
  display: none;
  border: none;
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.ghost-btn {
  border: none;
  background: #fff;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 2px solid var(--line);
  background: var(--panel);
}

.filter-group {
  position: relative;
}

.filter-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-weight: 600;
  color: #4a4a4a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip-value {
  color: var(--text);
  font-weight: 700;
}

.filter-chip-caret {
  font-size: 12px;
  color: var(--muted);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  z-index: 20;
}

.filter-group.is-open .filter-menu {
  display: block;
}

.filter-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}

.filter-reset {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.filter-menu-options {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.filter-option input {
  accent-color: #e06a32;
}

.map-area {
  position: relative;
  flex: 1;
  margin: 14px 20px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at 25% 20%, #fef4e9, #f3f0ea 55%, #ece9e3 100%);
  border: 1px solid #e2dbd3;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8f8b85;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: radial-gradient(circle at 25% 20%, #fef4e9, #f3f0ea 55%, #ece9e3 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.map-placeholder.is-hidden {
  opacity: 0;
}

.rv-mark {
  font-size: 32px;
}

.rv-text {
  margin-top: 10px;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  max-height: 280px;
  overflow: auto;
  z-index: 20;
}

.search-results.is-open {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.search-result:hover {
  background: #f4f1ec;
}

.search-result span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 12px;
}

.camp-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--marker-bg, #e06a32);
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  --marker-bg: #e06a32;
  --marker-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20L12 6L20 20H16.5L12 12.5L7.5 20H4Z'/></svg>");
}

.camp-marker::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  mask-image: var(--marker-icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: var(--marker-icon);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.camp-marker[data-type="facility"] {
  --marker-bg: #4f8c6a;
  --marker-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 20V9L12 4L19 9V20H14V14H10V20H5Z'/></svg>");
}

.camp-marker[data-type="visitor-center"] {
  --marker-bg: #2c74b3;
  --marker-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4a8 8 0 1 0 0 16a8 8 0 0 0 0-16zm0 4.5a1 1 0 1 1 0 2a1 1 0 0 1 0-2zm-1.5 4h3v6h-3z'/></svg>");
}

.camp-marker[data-type="permit"] {
  --marker-bg: #a84c8f;
  --marker-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 8L9 3H15L21 8V16L15 21H9L3 16V8ZM8 9V15H16V9H8Z'/></svg>");
}

.camp-marker.is-selected {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px #f2a04b, 0 10px 18px rgba(0, 0, 0, 0.24);
}

.map-controls {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 10px;
  z-index: 12;
}

.round-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 16px;
}

.zoom-group {
  display: grid;
  gap: 8px;
}

.layers-panel {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
}

.map-controls.is-open .layers-panel {
  display: grid;
  gap: 14px;
}

.layers-panel-section {
  display: grid;
  gap: 8px;
}

.layers-panel-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.layers-panel-options {
  display: grid;
  gap: 8px;
}

.layers-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.layers-option input {
  accent-color: var(--accent);
}

.detail-panel {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 340px;
  max-height: calc(100% - 36px);
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.add-place-panel {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: 360px;
  max-width: calc(100% - 36px);
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 12;
}

.main.add-place-active .add-place-panel {
  display: flex;
}

.add-place-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff8f2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.add-place-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.add-place-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.add-place-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 16px;
  overflow-y: auto;
}

.add-place-signed-out {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.add-place-form {
  display: grid;
  gap: 12px;
}

.add-place-location {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.add-place-location-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.add-place-location-value {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  color: var(--text);
}

.add-place-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.add-place-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.add-place-status {
  min-height: 18px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 13px;
}

.add-place-thanks {
  text-align: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
}

.add-place-thanks h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.add-place-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2c74b3;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
}

.add-place-marker::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.docs-container {
  display: none;
  flex: 1;
  padding: 20px 24px 32px;
}

.main.docs-active .docs-container {
  display: block;
}

.docs-container .doc-shell {
  min-height: calc(100vh - 120px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-panel[data-state="collapsed"] {
  display: none;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff8f2;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-save {
  padding: 6px 12px;
  font-size: 12px;
}

.detail-save[data-state="saved"] {
  background: #fff1ec;
  border-color: #f0c7b7;
  color: var(--accent-dark);
}

.detail-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.detail-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.detail-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-close {
  border: none;
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.detail-body {
  padding: 14px 18px 18px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3ea;
  border: 1px solid #f1d5c1;
  font-size: 12px;
  font-weight: 600;
  color: #a1461f;
}

.detail-stats {
  display: grid;
  gap: 8px;
}

.detail-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #514a44;
}

.detail-stat span {
  color: var(--muted);
}

.detail-section {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #3b3530;
}

.detail-section h2,
.detail-section h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.detail-section p,
.detail-section ul {
  margin: 0;
  line-height: 1.5;
}

.detail-section ul {
  padding-left: 18px;
}

.detail-section.is-empty {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 12, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.auth-modal[data-state="open"] {
  display: flex;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: var(--chip);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-title {
  margin: 0 0 6px;
  font-size: 22px;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form.is-hidden {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
}

.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.field textarea,
.field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

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

.auth-message {
  min-height: 18px;
  margin-top: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

.profile-panel {
  display: none;
  padding: 24px;
}

.main.profile-active .profile-panel {
  display: block;
}

.profile-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-header h2 {
  margin: 0;
  font-size: 22px;
}

.profile-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.profile-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1ec;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.profile-body {
  display: grid;
  gap: 16px;
}

.profile-actions {
  display: flex;
  justify-content: flex-start;
}

.profile-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.profile-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.profile-message {
  min-height: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0;
}

.trips-panel {
  display: none;
  padding: 24px;
}

.main.trips-active .trips-panel {
  display: block;
}

.trips-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.trips-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-radius: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trips-body {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2fr);
  gap: 16px;
}

.trips-list,
.trips-editor {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}

.trips-list-empty {
  color: var(--muted);
  font-weight: 600;
}

.trips-list-items {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.trip-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  background: #fff;
}

.trip-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(239, 90, 41, 0.2);
}

.trip-card-title {
  font-weight: 700;
}

.trip-card-meta {
  font-size: 12px;
  color: var(--muted);
}

.trips-form,
.trips-stop-form {
  display: grid;
  gap: 12px;
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.trips-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.trips-message {
  min-height: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0;
}

.trips-stops {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.trips-stops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trips-stops-header h3 {
  margin: 0;
}

.trips-stops-list {
  display: grid;
  gap: 8px;
}

.trip-stop-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.trip-stop-card.is-active {
  border-color: var(--accent);
}

.trip-stop-meta {
  font-size: 12px;
  color: var(--muted);
}

.stop-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.stop-suggestions.is-hidden {
  display: none;
}

.stop-suggestion {
  padding: 8px 10px;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.stop-suggestion:hover {
  background: #fff5f1;
}

.stop-suggestion-title {
  font-weight: 600;
}

.stop-suggestion-meta {
  font-size: 12px;
  color: var(--muted);
}

.trips-signed-out {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.places-panel {
  display: none;
  padding: 24px;
}

.main.places-active .places-panel {
  display: block;
}

.places-shell {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.places-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-radius: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.places-body {
  display: grid;
  gap: 16px;
}

.places-list {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}

.places-list-empty {
  color: var(--muted);
  font-weight: 600;
}

.places-list-items {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.place-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fff;
}

.place-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.place-card-title {
  font-weight: 700;
  font-size: 16px;
}

.place-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.place-card-actions {
  display: flex;
  gap: 8px;
}

.place-card-notes textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.place-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.place-note-status {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-panel {
  display: none;
  padding: 24px;
}

.main.dashboard-active .dashboard-panel {
  display: block;
}

.admin-queue-panel {
  display: none;
  padding: 24px;
}

.main.admin-queue-active .admin-queue-panel {
  display: block;
}

.dashboard-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border-radius: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-header h2 {
  margin: 0;
  font-size: 24px;
}

.dashboard-location {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.dashboard-card {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.weather-body {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.weather-temp {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 34px;
  font-weight: 700;
}

.weather-details {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.weather-line {
  font-size: 14px;
}

.weather-alerts {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.weather-forecast {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
}

.weather-forecast-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.weather-forecast-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.weather-forecast-day {
  font-weight: 700;
  color: var(--text);
}

.weather-forecast-temp {
  font-weight: 600;
  color: var(--text);
}

.weather-forecast-precip {
  color: var(--muted);
}

.weather-alerts-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.weather-alerts-list {
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.weather-alerts-list ul {
  margin: 0;
  padding-left: 18px;
}

.card-status {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-places {
  display: grid;
  gap: 12px;
}

.dashboard-places-empty {
  color: var(--muted);
  font-weight: 600;
}

.dashboard-place {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fff;
}

.dashboard-place-title {
  font-weight: 700;
  font-size: 16px;
}

.dashboard-place-meta {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-place-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .trips-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .side-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 20;
  }

  .side-nav[data-state="open"] {
    transform: translateX(0);
  }

  .menu-btn {
    display: inline-flex;
  }

  .map-area {
    margin: 12px;
  }

  .detail-panel {
    width: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: 55%;
  }
}
