/* ==========================================
   Culmap (컬맵) Design System & Stylesheet
   Primary: #E91E63 (Raspberry Pink)
   Secondary: #1A237E (Midnight Navy)
   Base: #FFFFFF (Clean White) & #F8F9FA (Light Neutral)
   Line-art: 2px stroke, minimal rounded aesthetic
========================================== */

:root {
  --primary: #E91E63;
  --primary-hover: #D81B60;
  --primary-light: rgba(233, 30, 99, 0.08);
  --primary-glow: rgba(233, 30, 99, 0.25);
  
  --secondary: #1A237E;
  --secondary-hover: #121858;
  --secondary-light: #283593;
  
  --bg-main: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  
  --border-light: #E2E8F0;
  --border-focus: #E91E63;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 30px rgba(26, 35, 126, 0.15);
  --shadow-pin: 0 6px 16px rgba(233, 30, 99, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-family: 'Noto Sans KR', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* App Container Layout */
#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Header Component ===== */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1500 !important;
  background: #1A237E;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Row 1: 3-column grid — logo | center controls | register btn */
.header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(233, 30, 99, 0.5));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 16px rgba(233, 30, 99, 0.8));
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #E91E63;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}
.brand-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  display: none; /* hide on small screens */
}
@media (min-width: 700px) {
  .brand-tagline { display: inline; }
}


/* Controls: centered in the middle column */
.header-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-controls::-webkit-scrollbar { display: none; }

/* Location pill */
.header-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.header-pill:hover { background: rgba(255,255,255,0.2); }

/* Date filter chips */
.header-date-filters {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.date-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.date-chip:hover { background: rgba(255,255,255,0.2); color: #fff; }
.date-chip.active {
  background: #E91E63;
  border-color: #E91E63;
  color: #fff;
  font-weight: 700;
}

/* Search bar */
.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 12px;
  min-width: 150px;
  max-width: 200px;
  flex-shrink: 1;
}
.header-search svg { stroke: rgba(255,255,255,0.6); flex-shrink: 0; }
.header-search input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.78rem;
  width: 100%;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.45); }

/* Register CTA */
.btn-register-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #E91E63;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(233,30,99,0.35);
  transition: transform 0.15s, background 0.15s;
  text-align: center;
}
.btn-register-cta:hover { background: #D81B60; transform: translateY(-1px); }

/* Row 2: Category filter chips — centered */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #1A237E;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.15s;
  cursor: pointer;
}
.filter-chip:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.filter-chip.active {
  background: #E91E63;
  border-color: #E91E63;
  color: #fff;
  font-weight: 700;
}

.filter-chip-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Map Container */
#map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom Leaflet Pin Styling */
.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}

.culmap-marker-pin {
  width: 42px;
  height: 48px;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-bounce);
  filter: drop-shadow(0 4px 10px rgba(233, 30, 99, 0.4));
}

.culmap-marker-pin:hover,
.culmap-marker-pin.active {
  transform: scale(1.18) translateY(-6px);
  z-index: 999 !important;
}

.culmap-marker-pin svg {
  width: 100%;
  height: 100%;
}

.culmap-marker-pulse {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 6px;
  background: rgba(233, 30, 99, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.6); opacity: 0.2; }
  100% { transform: translateX(-50%) scale(0.8); opacity: 0.8; }
}

/* Top-Left Floating Sheet Component */
.bottom-sheet {
  position: fixed;
  top: 175px !important;
  left: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  z-index: 900 !important;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(233, 30, 99, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  transition: height 0.3s cubic-bezier(0.4,0,0.2,1), top 0.3s ease;
  overflow: hidden;
}

/* collapsed: 축소 시 타이틀 바만 표시 */
.bottom-sheet.collapsed {
  height: 64px;
}
.bottom-sheet.collapsed .sheet-handle-bar {
  display: flex;
}
.bottom-sheet.collapsed .sheet-content {
  display: none !important;
}

/* expanded: 펼침 시 카드 리스트 수직 확장 */
.bottom-sheet.expanded {
  height: 480px;
  max-height: calc(100vh - 215px);
}

@media (max-width: 640px) {
  .bottom-sheet {
    top: 180px !important;
    left: 12px;
    width: calc(100vw - 24px);
  }
  .bottom-sheet.expanded {
    height: 420px;
    max-height: calc(100vh - 210px);
  }
}
.bottom-sheet.expanded .sheet-content {
  display: flex !important;
}

.sheet-handle-bar {
  padding: 10px 0 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.sheet-handle-pill {
  width: 44px;
  height: 5px;
  background: var(--border-light);
  border-radius: var(--radius-full);
}

.sheet-header {
  padding: 8px 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.sheet-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

.sheet-count-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-sheet-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.sheet-content {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;        /* 남은 공간 전부 차지 */
  min-height: 0;      /* flex 자식 overflow 버그 방지 */
}

/* Event List Card Component */
.event-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233, 30, 99, 0.3);
}

.event-card.active-highlight {
  border: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.25);
  background: #FFFDFE;
}

.event-card-poster {
  width: 105px;
  height: 125px;
  object-fit: cover;
  flex-shrink: 0;
  background: #E2E8F0;
}

.event-card-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-width: 0;
}

.event-category-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.event-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-card-meta-item svg {
  stroke: var(--text-muted);
  flex-shrink: 0;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-light);
}

.event-card-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--secondary);
}

.event-card-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Modals System (Detail Modal & Registration Form Modal) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.94);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  background: var(--secondary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-close {
  color: rgba(255, 255, 255, 0.8);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.btn-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Event Detail Specifics */
.detail-poster-container {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #1E293B;
}

.detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.detail-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.detail-info-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-main);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-info-icon {
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-info-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.detail-info-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.btn-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pin);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-action-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--secondary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-action-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

/* Registration Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label-required {
  color: var(--primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preset-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.preset-chip {
  font-size: 0.76rem;
  padding: 4px 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pin);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--secondary);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-slide 0.3s ease forwards;
}

.toast svg {
  stroke: var(--primary);
}

@keyframes toast-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.empty-state {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state svg {
  stroke: var(--text-muted);
}

/* Utility Line-Art Icons styling helper */
.line-icon {
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Brand Slogan Banner */
.slogan-banner {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.06), rgba(136, 51, 255, 0.08));
  border: 1px solid rgba(233, 30, 99, 0.15);
  border-radius: 10px;
  padding: 6px 12px;
  margin: 4px 12px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.slogan-main-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.slogan-sub-text {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Target Audience Filter Chips Bar (도보 / 유휴시간 / 동선) */
.target-chips-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 6px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.target-chips-bar::-webkit-scrollbar {
  display: none;
}

.target-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.target-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.25);
}

/* Bottom Quick Nav Bar */
.quick-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.quick-nav-bar .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
  transition: var(--transition-fast);
}

.quick-nav-bar .nav-item.active {
  color: var(--primary);
}

.quick-nav-bar .nav-item svg {
  transition: transform 0.2s ease;
}

.quick-nav-bar .nav-item.active svg {
  transform: scale(1.15);
}

/* User GPS Current Location Pin (Leaflet) */
.user-gps-marker {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-gps-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.25);
  animation: gps-pulse-anim 2s infinite ease-out;
}

.user-gps-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #ffffff;
  box-shadow: 0 0 12px rgba(233, 30, 99, 0.6);
  z-index: 2;
}

.user-gps-label {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #f43f5e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes gps-pulse-anim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Map Bottom-Right Floating Controls */
.map-controls-float {
  position: fixed;
  right: 16px;
  bottom: 80px;   /* 퀵 탐색 바(60px) 위에 배치 */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.btn-map-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 30, 99, 0.35);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-map-control:hover {
  background: rgba(233, 30, 99, 0.9);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

/* 내 위치로 이동 — 핑크 강조 */
#btn-recenter-gps {
  background: linear-gradient(135deg, #e91e63, #f43f5e);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
}

#btn-recenter-gps:hover {
  background: linear-gradient(135deg, #d81b60, #e91e63);
  transform: translateY(-2px) scale(1.05);
}

/* Floating Map Bottom Left Controls (기능추가 요청하기) */
.map-left-bottom-float {
  position: fixed;
  left: 16px;
  bottom: 76px;   /* 퀵 탐색 바(60px) 바로 위 */
  z-index: 9999;
  display: flex;
  align-items: center;
}

.btn-left-feature-req {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E91E63, #F43F5E);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(233, 30, 99, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-left-feature-req:hover {
  background: linear-gradient(135deg, #D81B60, #E91E63);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.55);
}

.btn-left-feature-req svg {
  stroke: #FFD166;
  fill: #FFD166;
}

/* Modal Route Preview Visualizer */
.modal-route-preview {
  margin-top: 14px;
  padding: 12px;
  background: #0f172a;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.route-preview-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #c4b5fd;
}

.route-preview-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
}

.route-preview-canvas {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px stroke rgba(255, 255, 255, 0.05);
}

.route-point {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.route-point.start {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
}

.route-point.end {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.route-line-dashed {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 2px dashed #8b5cf6;
  padding: 0 10px 2px 10px;
}

/* Zigbang-style Cluster Badge (Orange Circle) */
.custom-zigbang-cluster {
  background: none !important;
  border: none !important;
}

.zigbang-cluster-badge {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 124, 0, 0.45);
  transition: transform 0.15s ease-out;
  user-select: none;
}

.zigbang-cluster-badge:hover {
  transform: scale(1.12);
}

/* Modal CTA Group (3 Buttons) */
.detail-cta-group {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.btn-cta-rose, .btn-cta-purple, .btn-cta-slate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cta-rose {
  background: linear-gradient(135deg, #e91e63, #f43f5e);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.btn-cta-purple {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-cta-slate {
  background: #334155;
  color: #f8fafc;
  border: 1px solid #475569;
}

.btn-cta-rose:hover, .btn-cta-purple:hover, .btn-cta-slate:hover {
  transform: translateY(-1px);
}

/* Modal Marketing Banner */
.modal-marketing-banner {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 14px;
  text-align: center;
}

.marketing-copy-text {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}


/* ==========================================================================
   AUTH MODAL (LOGIN / SIGNUP) STYLES (MATCHING DESIGN)
   ========================================================================== */
#auth-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

#auth-modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.auth-modal-card {
  max-width: 400px !important;
  border-radius: 20px !important;
  background: #FFFFFF !important;
  position: relative !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
}

.auth-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #000000;
  color: #FFFFFF;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-modal-close-btn:hover {
  background: #222222;
  transform: scale(1.08);
}

.auth-modal-body {
  padding: 24px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow-y: auto;
}

/* Auth Navigation Tabs */
.auth-nav-tabs {
  display: flex;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 20px;
  margin-top: 4px;
  width: 100%;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #6B7280;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.auth-tab-btn.active {
  color: #111827;
  font-weight: 800;
  border-bottom: 3px solid #382121; /* Dark chocolate/burgundy underline */
}

/* Input Fields */
.input-with-icon {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background: #FFFFFF;
  height: 48px;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-icon:focus-within {
  border-color: #382121;
  box-shadow: 0 0 0 2px rgba(56, 33, 33, 0.12);
}

.input-with-icon .input-icon {
  color: #9CA3AF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-text-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  color: #111827;
  background: transparent;
  padding-left: 10px;
}

.auth-text-input::placeholder {
  color: #9CA3AF;
  font-size: 0.88rem;
}

/* Main Action Button */
.btn-main-auth {
  width: 100%;
  height: 50px;
  background: #382121; /* Dark brown / burgundy button */
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 16px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(56, 33, 33, 0.2);
}

.btn-main-auth:hover {
  background: #281717;
}

.btn-main-auth:active {
  transform: scale(0.99);
}

/* Divider */
.auth-divider {
  border-top: 1px solid #E5E7EB;
  margin: 16px 0;
}

/* Social Buttons Group */
.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social-item {
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-social-item:hover {
  opacity: 0.92;
}

.btn-social-item:active {
  transform: scale(0.99);
}

.btn-social-google {
  background: #FFFFFF;
  color: #1F2937;
  border: 1px solid #D1D5DB;
}

.btn-social-kakao {
  background: #FEE500;
  color: #000000;
}

.btn-social-naver {
  background: #03C75A;
  color: #FFFFFF;
}

/* Terms Checkboxes Section */
.auth-terms-container {
  margin-top: 4px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.terms-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #1F2937;
  cursor: pointer;
  user-select: none;
}

.terms-item.terms-with-btn {
  justify-content: space-between;
}

.terms-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-btns {
  display: flex;
  gap: 4px;
}

.btn-terms-mini {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: #4B5563;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-terms-mini:hover {
  background: #F3F4F6;
}

.terms-text.font-bold {
  font-weight: 700;
}

/* Orange Checkbox styling matching screenshot */
input[type="checkbox"].custom-orange-chk {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background-color: #FFFFFF;
  cursor: pointer;
  position: relative;
  outline: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"].custom-orange-chk:checked {
  background-color: #FF5500;
  border-color: #FF5500;
}

input[type="checkbox"].custom-orange-chk:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}




