/* ============================================
   💩 PoopMap - 拉屎地图 主题样式
   ============================================ */

:root {
  --c-bg: #fdf6e3;
  --c-bg-2: #f5ead0;
  --c-surface: #ffffff;
  --c-surface-2: #faf3e3;
  --c-primary: #8b5a2b;
  --c-primary-dark: #6b4520;
  --c-primary-light: #d4a373;
  --c-accent: #e76f51;
  --c-accent-dark: #c75a3f;
  --c-success: #588157;
  --c-warning: #f4a261;
  --c-danger: #e63946;
  --c-text: #3d2b1f;
  --c-text-2: #7a6049;
  --c-text-3: #a89888;
  --c-border: #e6d7b8;
  --c-star: #f4a261;
  --c-star-empty: #d8c9a3;
  --shadow-sm: 0 1px 3px rgba(139, 90, 43, 0.12);
  --shadow-md: 0 4px 12px rgba(139, 90, 43, 0.15);
  --shadow-lg: 0 10px 30px rgba(139, 90, 43, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --t-fast: 0.15s ease;
  --t-mid: 0.25s ease;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a {
  color: var(--c-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-primary-light);
}

/* ============================================
   顶部导航
   ============================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--c-surface);
  border-bottom: 2px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
  height: 72px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(139, 90, 43, 0.2));
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

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

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.4);
}

.btn-ghost {
  background: var(--c-surface-2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn-ghost:hover {
  background: var(--c-bg-2);
  border-color: var(--c-primary-light);
}

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

.btn-danger:hover {
  background: #d62828;
}

.btn-text {
  background: transparent;
  color: var(--c-text-2);
  padding: 4px 8px;
  font-size: 13px;
}

.btn-text:hover {
  background: var(--c-bg-2);
  color: var(--c-text);
}

.btn-label {
  font-weight: 500;
}

/* ============================================
   主体布局
   ============================================ */
.main {
  display: flex;
  height: calc(100vh - 72px);
  width: 100%;
}

.sidebar {
  width: 360px;
  flex-shrink: 0;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform var(--t-mid);
  box-shadow: var(--shadow-lg);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.4);
  z-index: 40;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sidebar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sidebar-close {
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: var(--c-text-2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: var(--c-surface-2);
  transition: all var(--t-fast);
}

.sidebar-close:hover {
  background: var(--c-accent);
  color: white;
}

.sidebar-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.sidebar-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--c-text-2);
}

.sidebar-stats b {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 800;
}

.sidebar-filters {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--c-border);
}

.sidebar-filters input,
.sidebar-filters select {
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  font-size: 13px;
  outline: none;
  transition: all var(--t-fast);
}

.sidebar-filters input {
  flex: 1;
}

.sidebar-filters select {
  width: 100px;
}

.sidebar-filters input:focus,
.sidebar-filters select:focus {
  border-color: var(--c-primary-light);
  background: white;
}

.checkin-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.checkin-card {
  padding: 14px;
  margin: 6px 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}

.checkin-card:hover {
  background: var(--c-bg-2);
  border-color: var(--c-primary-light);
  transform: translateX(2px);
}

.checkin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.checkin-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-card-score {
  background: var(--c-accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.checkin-card-ratings {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--c-text-2);
  margin-bottom: 6px;
}

.checkin-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.checkin-card-comment {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.checkin-card-time {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--c-text-3);
}

.empty-state .empty-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
  justify-content: space-around;
}

/* ============================================
   地图区
   ============================================ */
.map-wrap {
  flex: 1;
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--c-bg-2);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  padding: 20px;
  z-index: 10;
}

/* 修复 hidden 属性被 display: flex 覆盖的 bug */
.map-placeholder[hidden] {
  display: none !important;
}

.placeholder-inner {
  text-align: center;
  max-width: 480px;
  background: var(--c-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.placeholder-emoji {
  font-size: 64px;
  margin-bottom: 16px;
}

.placeholder-inner h3 {
  font-size: 20px;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.placeholder-inner p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}

.placeholder-tip {
  font-size: 12px !important;
  color: var(--c-text-3) !important;
  margin: 16px 0 !important;
}

/* ============================================
   浮动按钮
   ============================================ */
.fab {
  position: fixed;
  border-radius: 50%;
  color: white;
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-mid);
  border: 4px solid white;
  cursor: pointer;
}

.fab-list {
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  font-size: 24px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

.fab-list:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(139, 90, 43, 0.5);
}

.fab-list:active {
  transform: scale(0.95);
}

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--c-accent);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.fab-checkin {
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  font-size: 32px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
}

.fab-checkin:hover {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 8px 24px rgba(231, 111, 81, 0.5);
}

.fab-checkin:active {
  transform: scale(0.95);
}

/* ============================================
   模态框
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 43, 31, 0.5);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

.modal-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: var(--c-text-2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--c-bg-2);
  color: var(--c-text);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

/* ============================================
   表单
   ============================================ */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface-2);
  font-size: 14px;
  outline: none;
  transition: all var(--t-fast);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--c-primary-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-hint,
.hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--c-text-3);
  margin-left: 4px;
}

.form-hint {
  display: block;
  margin: 8px 0 0;
  line-height: 1.5;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 4px;
}

/* 评分控件 */
.form-ratings {
  background: var(--c-surface-2);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--c-border);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-border);
}

.rating-row:last-child {
  border-bottom: none;
}

.rating-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 110px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}

.rating-icon {
  font-size: 16px;
}

.rating-value {
  margin-left: auto;
  background: var(--c-primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.stars-input {
  display: flex;
  gap: 2px;
}

.stars-input span {
  font-size: 22px;
  color: var(--c-star-empty);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
}

.stars-input span:hover {
  transform: scale(1.2);
}

.stars-input span.active {
  color: var(--c-star);
}

.rating-desc {
  font-size: 12px;
  color: var(--c-text-2);
  min-width: 60px;
  text-align: right;
}

/* 坐标显示 */
.coord-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--c-text-2);
}

/* ============================================
   详情模态框
   ============================================ */
.detail-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--c-bg-2) 0%, var(--c-surface-2) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.detail-overall {
  text-align: center;
}

.detail-score {
  font-size: 42px;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
}

.detail-stars {
  color: var(--c-star);
  font-size: 16px;
  margin-top: 4px;
}

.detail-meta {
  font-size: 11px;
  color: var(--c-text-3);
  margin-top: 4px;
}

.detail-coords {
  text-align: right;
  font-size: 12px;
  color: var(--c-text-2);
}

.detail-coords div {
  margin-bottom: 4px;
}

.detail-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.detail-rating {
  text-align: center;
  padding: 12px;
  background: var(--c-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.detail-rating .rating-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.detail-rating span:not(.rating-icon) {
  font-size: 12px;
  color: var(--c-text-2);
  display: block;
  margin-bottom: 4px;
}

.detail-rating b {
  font-size: 18px;
  color: var(--c-primary);
}

.detail-comment {
  background: var(--c-surface-2);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.detail-comment h3 {
  font-size: 13px;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.detail-comment p {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================
   搜索结果
   ============================================ */
.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--c-surface-2);
}

.search-result-item:hover {
  background: var(--c-bg-2);
  border-color: var(--c-primary-light);
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}

.search-result-addr {
  font-size: 12px;
  color: var(--c-text-2);
}

.empty-tip {
  text-align: center;
  padding: 30px;
  color: var(--c-text-3);
  font-size: 13px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--c-text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all var(--t-mid);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--c-success);
}

.toast.error {
  background: var(--c-danger);
}

/* ============================================
   高德地图自定义元素样式覆盖
   ============================================ */
.poop-marker {
  width: 36px;
  height: 36px;
  background: white;
  border: 3px solid var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(231, 111, 81, 0.4);
  cursor: pointer;
  transition: all var(--t-fast);
}

.poop-marker:hover {
  transform: scale(1.15);
}

.poop-marker.temp {
  background: var(--c-warning);
  border-color: var(--c-accent-dark);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.6); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(244, 162, 97, 0); }
}

.amap-info-window {
  padding: 0 !important;
}

.poop-info {
  padding: 12px 14px;
  min-width: 200px;
  font-family: var(--font-sans);
}

.poop-info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poop-info-score {
  background: var(--c-accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.poop-info-ratings {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--c-text-2);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.poop-info-comment {
  font-size: 12px;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poop-info-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--c-border);
  padding-top: 8px;
}

.poop-info-btn {
  flex: 1;
  padding: 6px 12px;
  background: var(--c-surface-2);
  color: var(--c-text-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.poop-info-btn:hover {
  background: var(--c-primary);
  color: white;
}

/* ============================================
   Leaflet 主题适配
   ============================================ */
.leaflet-container {
  font-family: var(--font-sans);
  background: var(--c-bg-2);
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  color: var(--c-text-2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 2px 8px !important;
}

.leaflet-control-attribution a {
  color: var(--c-primary) !important;
}

.leaflet-bar {
  border: 2px solid var(--c-primary-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background: white !important;
  color: var(--c-primary) !important;
  border-bottom: 1px solid var(--c-border) !important;
}

.leaflet-bar a:hover {
  background: var(--c-bg-2) !important;
}

.leaflet-control-layers {
  border: 2px solid var(--c-primary-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.leaflet-control-layers-expanded {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 8px 12px !important;
}

.leaflet-control-layers label {
  font-size: 13px !important;
  color: var(--c-text) !important;
}

.poop-icon-wrapper {
  background: transparent !important;
  border: none !important;
}

.poop-icon-wrapper .poop-marker {
  /* Leaflet 自己的 marker，box-shadow 已经被全局控制 */
}

/* 确保 💩 marker 永远在最上层 */
.poop-marker {
  z-index: 1000;
}

@media (max-width: 900px) {
  .topbar {
    padding: 10px 14px;
    height: 60px;
  }
  .brand-text h1 {
    font-size: 16px;
  }
  .brand-sub {
    display: none;
  }
  .btn-label {
    display: none;
  }
  .btn {
    padding: 8px 12px;
  }
  .main {
    height: calc(100vh - 60px);
    flex-direction: column;
  }
  .sidebar {
    width: 85%;
    max-width: 360px;
    height: 100%;
    border-right: none;
    border-bottom: none;
  }
  .map-wrap {
    flex: 1;
  }
  .fab-list {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 16px;
    left: 16px;
  }
  .fab-checkin {
    width: 56px;
    height: 56px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }
  .placeholder-inner {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .topbar-actions {
    gap: 4px;
  }
  .modal-card {
    width: 95%;
    max-height: 95vh;
  }
  .modal-body {
    padding: 16px;
  }
}