* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  min-height: -webkit-fill-available;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: #eef4ff;
  color: #111827;
  overflow: hidden;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100vw;
  height: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 상단 영역 */
.top-area {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 430px);
  z-index: 20;
  pointer-events: none;
}

.top-area>* {
  pointer-events: auto;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.access-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006fff, #845cff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.app-header h1 {
  flex: 1;
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  color: #071542;
  letter-spacing: -0.8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-location-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  color: #071542;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-card {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 35px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.search-row {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.search-row:first-child {
  border-radius: 18px 18px 0 0;
}

.search-row:nth-child(2) {
  border-top: none;
}

.search-row:nth-child(3) {
  border-top: none;
  border-radius: 0 0 18px 18px;
}

.row-icon {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 21px;
  font-weight: 900;
  flex-shrink: 0;
}

.blue-icon {
  background: linear-gradient(135deg, #006fff, #4f8dff);
}

.purple-icon {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.orange-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.input-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-info span {
  font-size: 14px;
  font-weight: 800;
  color: #6b7280;
}

.input-info input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.user-type-select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
  cursor: pointer;
  appearance: none;
}

.route-btn {
  width: 100%;
  height: 58px;
  margin-top: 14px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #006fff 0%, #075deb 48%, #8b5cf6 100%);
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.route-icon {
  margin-right: 8px;
  font-size: 25px;
}

.compact-route-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.compact-route-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.compact-route-text span {
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-route-text strong {
  color: #006fff;
}

.compact-route-bar,
.compact-route-text,
#compactStartText,
#compactEndText {
  cursor: pointer;
}

.edit-route-btn {
  width: 52px;
  height: 40px;
  border: none;
  border-radius: 14px;
  background: #eef4ff;
  color: #075deb;
  font-size: 19px;
  font-weight: 900;
}

.app-shell.route-active .app-header,
.app-shell.route-active .search-card {
  display: none;
}

.app-shell.route-active .compact-route-bar {
  display: flex;
}

.route-mode-panel {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.route-mode-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.route-mode-btn.active {
  background: linear-gradient(135deg, #006fff, #1769ff);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.28);
}

.app-shell.route-active .route-mode-panel,
.app-shell.route-active .facility-filter-panel {
  display: flex;
}

/* 편의시설 버튼 / 필터 */
.facility-filter-panel {
  margin-top: 10px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
}

.facility-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-main-btn {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #006fff, #1769ff);
  color: white;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.weather-chip {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff7cc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.weather-chip-icon {
  font-size: 24px;
}

.weather-rain {
  background: #dbeafe;
}

.weather-snow {
  background: #eef2ff;
}

.weather-error,
.weather-loading {
  background: #fef3c7;
}

.facility-filter-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.filter-chip {
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.filter-chip.active {
  border-color: #006fff;
  background: linear-gradient(135deg, #006fff, #1769ff);
  color: white;
}

/* 하단 결과 카드 */
.bottom-sheet {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(94vw, 440px);
  z-index: 24;
  max-height: min(calc(var(--vh, 1vh) * 75), 600px);
  overflow: hidden;
  padding: 12px 14px calc(22px + env(safe-area-inset-bottom, 0px)) 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(129, 140, 248, 0.22);
  backdrop-filter: blur(14px);
}

.sheet-handle-btn {
  width: 100%;
  height: 18px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 0 8px 0;
}

.sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
  display: block;
}

.walk-result-body,
.transit-result-body {
  display: block;
  max-height: calc(var(--vh, 1vh) * 75 - 60px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

.route-options {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 8px 12px 8px;
  flex-wrap: nowrap;
}

.route-options::-webkit-scrollbar {
  display: none;
}

.route-option-btn {
  flex: 1;
  min-width: 95px;
  padding: 10px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #f8fbff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.route-option-btn strong {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 950;
}

.route-option-btn.active {
  border-color: #006fff;
  background: #006fff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 111, 255, 0.3);
}

.navigation-actions {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
}

.start-navi-btn,
.feedback-route-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.start-navi-btn {
  padding: 14px;
  background: #006fff;
  color: white;
  font-size: 16px;
}

.feedback-route-btn {
  padding: 12px;
  background: #111827;
  color: white;
  font-size: 15px;
}

.result-top {
  display: grid;
  grid-template-columns: 92px 1fr 1.2fr 1.3fr;
  gap: 10px;
  align-items: stretch;
}

.score-badge {
  min-height: 82px;
  border-radius: 22px;
  background: linear-gradient(145deg, #006fff, #8b5cf6);
  color: white;
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-badge span {
  font-size: 15px;
  font-weight: 800;
}

.score-badge strong {
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
}

.metric {
  min-height: 82px;
  padding: 10px 6px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #edf2f7;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric span {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #4b5563;
}

.metric strong {
  font-size: 22px;
  font-weight: 950;
  color: #075deb;
  letter-spacing: -0.4px;
}

/* 결과 카드 접힘 */
.bottom-sheet.collapsed {
  width: min(92vw, 430px);
  padding: 7px 10px 9px 10px;
  border-radius: 22px;
  max-height: 120px;
}

.bottom-sheet.collapsed .sheet-handle-btn {
  height: 11px;
  margin: 0 0 5px 0;
}

.bottom-sheet.collapsed .sheet-handle {
  width: 42px;
  height: 4px;
}

.bottom-sheet.collapsed .route-options {
  margin-bottom: 0;
  padding-bottom: 0;
  gap: 6px;
}

.bottom-sheet.collapsed .navigation-actions,
.bottom-sheet.collapsed .result-top {
  display: none !important;
}

/* 대중교통 */
.bottom-sheet.transit-mode {
  max-height: min(70vh, 620px);
  overflow: hidden;
  padding: 12px;
  border-radius: 24px;
}

.transit-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.transit-filter-tabs {
  display: flex;
  gap: 14px;
  padding: 2px 4px 10px 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.transit-filter-tab {
  border: none;
  background: transparent;
  color: #374151;
  font-size: 15px;
  font-weight: 850;
  padding: 4px 0 8px 0;
}

.transit-filter-tab.active {
  color: #111827;
  border-bottom: 2px solid #111827;
}

.transit-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 14px;
  color: #4b5563;
}

.transit-time-row strong {
  flex: 1;
  color: #006fff;
  font-size: 15px;
}

.transit-live-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #006fff;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.transit-sort-controls {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 2px 2px;
}

.transit-sort-chip {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fbff;
  color: #4b5563;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.transit-sort-chip.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.transit-route-list {
  display: grid;
  gap: 10px;
  max-height: calc(min(70vh, 620px) - 160px);
  overflow-y: auto;
  padding: 10px 2px 2px 2px;
}

.transit-card {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.transit-card.selected {
  border: 4px solid #006fff;
  box-shadow: 0 10px 28px rgba(0, 111, 255, 0.22);
}

.transit-selected-label {
  display: none;
  position: absolute;
  right: 12px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #006fff;
  color: white;
  font-size: 11px;
  font-weight: 950;
}

.transit-card.selected .transit-selected-label {
  display: inline-flex;
}

.transit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.transit-label {
  display: block;
  margin-bottom: 2px;
  color: #006fff;
  font-size: 15px;
  font-weight: 950;
}

.transit-total-time {
  display: block;
  color: #111827;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.8px;
}

.transit-arrive {
  display: block;
  margin-top: 5px;
  color: #374151;
  font-size: 14px;
  font-weight: 750;
}

.transit-score-pill {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(145deg, #006fff, #8b5cf6);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.transit-score-pill span {
  display: block;
  font-size: 11px;
  font-weight: 850;
}

.transit-score-pill strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.transit-bar {
  display: flex;
  overflow: hidden;
  min-height: 24px;
  margin: 13px 0 8px 0;
  border-radius: 999px;
  background: #e5e7eb;
}

.transit-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.transit-segment.walk {
  color: #334155;
}

.transit-segment-info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px 0;
}

.transit-segment-info-item {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.transit-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.transit-summary-line strong {
  color: #111827;
}

.transit-detail-toggle {
  width: 100%;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: #eef4ff;
  color: #075deb;
  font-weight: 900;
}

.transit-steps {
  display: none;
  gap: 8px;
  padding-top: 9px;
  margin-top: 9px;
  border-top: 1px solid #eef2f7;
}

.transit-card.expanded .transit-steps {
  display: grid;
}

.transit-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
}

.transit-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.transit-step strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
}

.transit-step p {
  margin: 3px 0 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.3;
}

.transit-empty {
  padding: 24px 12px;
  border-radius: 16px;
  text-align: center;
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
}

.transit-collapsed-summary {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #eef4ff;
  padding: 10px 12px;
  text-align: left;
  color: #111827;
}

.transit-collapsed-mode {
  display: block;
  font-size: 12px;
  color: #006fff;
  font-weight: 900;
}

.transit-collapsed-summary strong {
  display: block;
  font-size: 16px;
  font-weight: 950;
}

.transit-collapsed-summary span:last-child {
  font-size: 12px;
  color: #64748b;
}

.bottom-sheet.transit-mode.collapsed {
  max-height: 96px;
}

.bottom-sheet.transit-mode.collapsed .transit-sticky-controls,
.bottom-sheet.transit-mode.collapsed .transit-route-list {
  display: none !important;
}

.bottom-sheet.transit-mode.collapsed .transit-collapsed-summary {
  display: block !important;
}

.walk-dot {
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 2px white;
}

/* 시설 마커 */
.facility-marker {
  width: 36px;
  height: 36px;
  border: 3px solid #006fff;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.28);
}

.facility-marker.elevators {
  border-color: #006fff;
}

.facility-marker.lifts {
  border-color: #7c3aed;
}

.facility-marker.bus_stops {
  border-color: #16a34a;
}

.facility-marker.subway_stations,
.facility-marker.subway_exits {
  border-color: #8b5cf6;
}

/* 평가 모달 */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-box {
  width: min(92vw, 420px);
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.feedback-box h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 900;
}

.feedback-box p {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.rating-buttons {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.rating-buttons button {
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.rating-buttons button.selected {
  border-color: #006fff;
  background: #006fff;
  color: white;
}

#feedbackText {
  width: 100%;
  height: 96px;
  padding: 12px;
  resize: none;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
}

#feedbackText:focus {
  border-color: #006fff;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cancel-btn,
.save-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 900;
}

.cancel-btn {
  background: #e5e7eb;
  color: #111827;
}

/* Map Context Menu */
.map-context-menu {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 6px;
  min-width: 130px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-context-menu .context-btn {
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: left;
  border-radius: 8px;
  transition: background 0.2s;
}

.map-context-menu .context-btn:hover {
  background: #f1f5f9;
}

.map-context-menu .start-btn {
  color: #2563eb;
}

.map-context-menu .end-btn {
  color: #ea580c;
}

@media (max-width: 520px) {
  .top-area {
    top: 12px;
    width: calc(100vw - 22px);
  }

  .app-header h1 {
    font-size: 22px;
  }

  .access-icon,
  .header-location-btn {
    width: 40px;
    height: 40px;
  }

  .search-card {
    padding: 12px;
    border-radius: 22px;
  }

  .search-row {
    min-height: 62px;
  }

  .input-info input {
    font-size: 24px;
  }

  .route-btn {
    height: 52px;
    font-size: 19px;
  }

  .compact-route-text {
    font-size: 16px;
  }

  .route-mode-panel {
    gap: 6px;
    padding: 5px;
  }

  .route-mode-btn {
    height: 39px;
    font-size: 14px;
  }

  .facility-main-btn {
    height: 40px;
    font-size: 15px;
  }

  .bottom-sheet {
    width: calc(100vw - 20px);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-height: 58vh;
  }

  .bottom-sheet.transit-mode {
    width: calc(100vw - 20px);
    max-height: 62vh;
  }

  .transit-route-list {
    max-height: calc(62vh - 160px);
  }

  .result-top {
    grid-template-columns: 78px 0.8fr 1fr 1.4fr;
    gap: 6px;
  }

  .score-badge {
    min-height: 76px;
  }

  .score-badge strong {
    font-size: 24px;
  }

  .metric {
    min-height: 76px;
    padding: 8px 2px;
  }

  .metric span {
    font-size: 10px;
  }

  .metric strong {
    font-size: 15px;
    white-space: nowrap;
    letter-spacing: -0.5px;
  }

  #difficultyText {
    font-size: 14px;
    letter-spacing: -0.8px;
  }

  .route-options {
    gap: 5px;
    margin-bottom: 10px;
    padding: 4px 6px 10px 6px;
  }

  .route-option-btn {
    min-width: 0;
    flex: 1;
    padding: 9px 4px;
    font-size: 11px;
  }

  .transit-total-time {
    font-size: 28px;
  }

  .transit-score-pill {
    min-width: 58px;
  }
}

@media (max-height: 740px) {
  .bottom-sheet {
    max-height: 52vh;
  }

  .bottom-sheet.transit-mode {
    max-height: 58vh;
  }

  .transit-route-list {
    max-height: calc(58vh - 150px);
  }
}

/* =========================================================
   실시간 내비게이션 버튼 - UI 개선 버전
   ========================================================= */

.result-action-row {
  width: 100%;
  margin: 12px 0 12px 0;
}

.navi-start-btn {
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 20px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(135deg, #006fff 0%, #1677ff 48%, #7c3aed 100%);
  color: #ffffff;
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.navi-start-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.navi-start-btn:active {
  transform: translateY(0);
  opacity: 0.92;
}

.navi-btn-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.navi-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
  min-width: 0;
}

.navi-btn-text strong {
  font-size: 17px;
  font-weight: 950;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.navi-btn-text small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

/* 접힌 상태에서는 내비게이션 버튼 숨김: 경로 선택 칩만 남기기 */
.bottom-sheet.collapsed .result-action-row {
  display: none;
}

/* 모바일에서 버튼이 너무 커지지 않게 */
@media (max-width: 520px) {
  .result-action-row {
    margin: 10px 0 10px 0;
  }

  .navi-start-btn {
    min-height: 58px;
    border-radius: 18px;
    padding: 11px 14px;
    gap: 11px;
  }

  .navi-btn-icon {
    width: 39px;
    height: 39px;
    min-width: 39px;
    border-radius: 14px;
    font-size: 19px;
  }

  .navi-btn-text strong {
    font-size: 15px;
  }

  .navi-btn-text small {
    font-size: 11px;
  }
}

/* =========================================================
   실시간 내비게이션 버튼 - 최종 정리 버전
   ========================================================= */

.result-action-row {
  width: 100%;
  margin: 8px 0 16px 0;
}

.navi-start-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 16px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #006fff 0%, #1677ff 55%, #6d5dfc 100%);
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(37, 99, 235, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.25px;
  cursor: pointer;
}

.navi-start-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(37, 99, 235, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.navi-start-btn:active {
  transform: translateY(0);
  opacity: 0.94;
}

.navi-btn-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.navi-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

/* 버튼과 아래 점수/거리/경사도 칸 사이 간격 */
.result-action-row+.result-top {
  margin-top: 2px;
}

/* 접힌 상태에서는 버튼 숨김: 경로 선택 칩만 남김 */
.bottom-sheet.collapsed .result-action-row {
  display: none;
}

@media (max-width: 520px) {
  .result-action-row {
    margin: 7px 0 14px 0;
  }

  .navi-start-btn {
    min-height: 44px;
    border-radius: 15px;
    padding: 0 15px;
    font-size: 15px;
  }

  .navi-btn-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 9px;
    font-size: 14px;
  }

  .navi-btn-label {
    font-size: 15px;
  }
}

/* 실시간 내비게이션 버튼 - 간단 정리 */
.result-action-row {
  width: 100%;
  margin: 8px 0 16px 0;
}

.navi-start-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 16px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #006fff 0%, #1677ff 55%, #6d5dfc 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.25px;
}

.navi-btn-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.navi-btn-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.bottom-sheet.collapsed .result-action-row {
  display: none;
}

.result-action-row+.result-top {
  margin-top: 2px;
}

/* =========================================================
   실시간 내비게이션 버튼
   - 첫 번째 캡쳐 디자인
   - 두 번째 캡쳐 버튼 크기
   ========================================================= */

.result-action-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 22px 0;
  /* 위로 살짝 정리 + 아래 점수칸과 간격 확보 */
}

.navi-start-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 48%;
  min-width: 320px;
  max-width: 860px;
  min-height: 76px;
  border-radius: 24px;
  border: 2px solid #9fd0ff;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 8px 22px rgba(52, 130, 246, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 26px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.navi-start-btn:hover {
  transform: translateY(-1px);
  border-color: #7fbfff;
  box-shadow:
    0 10px 26px rgba(52, 130, 246, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.navi-start-btn:active {
  transform: translateY(0);
  opacity: 0.97;
}

.navi-btn-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 999px;
  border: 2px solid #2f80ff;
  background: #ffffff;
  color: #2f80ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  box-shadow: 0 4px 10px rgba(47, 128, 255, 0.10);
}

.navi-btn-label {
  color: #1677ff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.25px;
  line-height: 1.2;
}

/* 버튼과 아래 점수 박스 사이 조금 더 띄우기 */
.result-action-row+.result-top {
  margin-top: 6px;
}

/* 접힌 상태에서는 숨김 */
.bottom-sheet.collapsed .result-action-row {
  display: none;
}

/* 모바일에서는 폭을 꽉 차게 */
@media (max-width: 900px) {
  .navi-start-btn {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    border-radius: 20px;
    padding: 0 20px;
    gap: 14px;
  }

  .navi-btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
  }

  .navi-btn-label {
    font-size: 16px;
  }

  .result-action-row {
    margin: 10px 0 18px 0;
  }
}

/* =========================================================
   실시간 내비게이션 버튼 최종 강제 적용
   - 디자인: 첫 번째 캡쳐
   - 크기: 두 번째 캡쳐
   ========================================================= */

#startNaviBtn,
#addStairPhotoBtn,
.navi-start-btn,
.start-navi-btn,
.navi-feedback-btn {
  appearance: none !important;
  -webkit-appearance: none !important;

  min-width: 0 !important;
  max-width: 360px !important;
  height: 44px !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  padding: 0 16px !important;
  margin: 0 !important;

  border: 2px solid #9fd0ff !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
  color: #1677ff !important;

  box-shadow:
    0 6px 14px rgba(52, 130, 246, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9) !important;

  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
  line-height: 1 !important;

  cursor: pointer !important;
}

#startNaviBtn:hover,
#addStairPhotoBtn:hover,
.navi-start-btn:hover,
.start-navi-btn:hover,
.navi-feedback-btn:hover {
  transform: translateY(-1px);
  border-color: #73b8ff !important;
  box-shadow:
    0 8px 18px rgba(52, 130, 246, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95) !important;
}

#startNaviBtn:active,
#addStairPhotoBtn:active,
.navi-start-btn:active,
.start-navi-btn:active,
.navi-feedback-btn:active {
  transform: translateY(0);
  opacity: 0.96;
}

/* 버튼을 담는 줄: 버튼을 살짝 위로, 아래 점수 박스와 간격 확보 */
.result-action-row,
.navigation-actions {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin: 8px 0 16px 0 !important;
  padding: 0 !important;
}

#startNaviBtn {
  flex: 1.8 !important;
}

#addStairPhotoBtn {
  flex: 1 !important;
}

/* 버튼 안에 span 구조가 있을 때 */
#startNaviBtn .navi-btn-icon,
#addStairPhotoBtn .navi-btn-icon,
.navi-start-btn .navi-btn-icon,
.start-navi-btn .navi-btn-icon,
.navi-feedback-btn .navi-btn-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 999px !important;
  border: 2px solid #2f80ff !important;
  background: #ffffff !important;
  color: #2f80ff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 3px 8px rgba(47, 128, 255, 0.10) !important;
}

#startNaviBtn .navi-btn-label,
#addStairPhotoBtn .navi-btn-label,
.navi-start-btn .navi-btn-label,
.start-navi-btn .navi-btn-label,
.navi-feedback-btn .navi-btn-label {
  color: #1677ff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 버튼이 텍스트만 있는 예전 구조일 때도 자연스럽게 */
#startNaviBtn:not(:has(.navi-btn-label)) {
  justify-content: center !important;
}

/* 아래 점수/거리 카드와 간격 */
.result-action-row+.result-top,
.navigation-actions+.result-top {
  margin-top: 4px !important;
}

/* 접힌 상태에서는 버튼 숨김 */
.bottom-sheet.collapsed #startNaviBtn,
.bottom-sheet.collapsed .result-action-row,
.bottom-sheet.collapsed .navigation-actions {
  display: none !important;
}

@media (max-width: 520px) {

  #startNaviBtn,
  .navi-start-btn,
  .start-navi-btn {
    flex: 1.8 !important;
    max-width: 230px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 9px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 13px !important;
  }

  #addStairPhotoBtn {
    flex: 1 !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  #startNaviBtn .navi-btn-icon,
  .navi-start-btn .navi-btn-icon,
  .start-navi-btn .navi-btn-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 11px !important;
    border-width: 1.5px !important;
  }

  #startNaviBtn .navi-btn-label,
  .navi-start-btn .navi-btn-label,
  .start-navi-btn .navi-btn-label {
    font-size: 13px !important;
  }

  .result-action-row,
  .navigation-actions {
    margin: 6px 0 12px 0 !important;
  }
}

/* =========================================================
   대중교통 카드 UI 긴급 수정
   - 시간 게이지를 전체 너비 기준 시간 비율대로 표시
   - 현재 표시 중 배지가 점수 배지를 가리지 않게 이동
   ========================================================= */

.transit-card {
  position: relative;
}

.transit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.transit-card-head>div:first-child {
  min-width: 0;
  padding-right: 6px;
}

.transit-bar {
  display: flex;
  width: 100%;
  height: 30px;
  min-height: 30px;
  overflow: hidden;
  margin: 13px 0 8px 0;
  border-radius: 999px;
  background: #e5e7eb;
}

.transit-segment {
  min-width: 0 !important;
  height: 30px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.transit-segment.walk {
  color: #334155;
}

.transit-selected-label {
  display: none;
  position: absolute;
  top: 14px;
  right: 88px;
  z-index: 5;
  padding: 5px 9px;
  border-radius: 999px;
  background: #006fff;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 111, 255, 0.22);
}

.transit-card.selected .transit-selected-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.transit-score-pill {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .transit-selected-label {
    right: 80px;
    font-size: 10px;
    padding: 5px 7px;
  }

  .transit-segment {
    font-size: 11px;
    padding: 0 3px;
  }
}

/* =========================================================
   FINAL PATCH - 대중교통 게이지/현재 표시 배지 수정
   ========================================================= */

.transit-card {
  position: relative !important;
}

.transit-card-head {
  align-items: flex-start !important;
}

.transit-score-pill {
  position: relative !important;
  z-index: 4 !important;
  min-width: 76px !important;
}

.transit-selected-label {
  display: none !important;
  position: absolute !important;
  top: 18px !important;
  right: 96px !important;
  z-index: 5 !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: #006fff !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 14px rgba(0, 111, 255, 0.24) !important;
}

.transit-card.selected .transit-selected-label {
  display: inline-flex !important;
}

.transit-bar {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden !important;
  margin: 13px 0 8px 0 !important;
  border-radius: 999px !important;
  background: #e5e7eb !important;
}

.transit-bar>.transit-segment {
  flex: var(--seg-flex, 1) 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 30px !important;
  padding: 0 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.transit-bar>.transit-segment.walk {
  color: #334155 !important;
}

@media (max-width: 390px) {
  .transit-selected-label {
    right: 88px !important;
    font-size: 10px !important;
    padding: 5px 8px !important;
  }

  .transit-score-pill {
    min-width: 70px !important;
  }

  .transit-bar>.transit-segment {
    font-size: 11px !important;
    padding: 0 2px !important;
  }
}

/* =========================================================
   FINAL PATCH - PC 웹에서 실시간 내비게이션 버튼 한 줄 고정
   ========================================================= */

@media (min-width: 901px) {

  .result-action-row,
  .navigation-actions {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  #startNaviBtn,
  .navi-start-btn,
  .start-navi-btn {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 340px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    gap: 10px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  #startNaviBtn .navi-btn-icon,
  .navi-start-btn .navi-btn-icon,
  .start-navi-btn .navi-btn-icon {
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 15px !important;
  }

  #startNaviBtn .navi-btn-label,
  .navi-start-btn .navi-btn-label,
  .start-navi-btn .navi-btn-label,
  #startNaviBtn .navi-btn-text,
  .navi-start-btn .navi-btn-text,
  .start-navi-btn .navi-btn-text,
  #startNaviBtn strong,
  .navi-start-btn strong,
  .start-navi-btn strong {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }
}

/* 피드백 버튼 스타일 추가 */
.navi-feedback-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 1 !important;
  max-width: 130px !important;
  height: 44px !important;
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 15px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.navi-feedback-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.navi-feedback-btn .navi-btn-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 999px !important;
  border: 1.5px solid #64748b !important;
  background: #ffffff !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
}

.navi-feedback-btn .navi-btn-label {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 520px) {
  .navi-feedback-btn {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 9px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    font-size: 12px !important;
  }

  .navi-feedback-btn .navi-btn-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 10px !important;
  }

  .navi-feedback-btn .navi-btn-label {
    font-size: 12px !important;
  }
}

/* =========================================================
   연관검색어 자동완성 드롭다운
   ========================================================= */

.autocomplete-wrap {
  position: relative;
  width: 100%;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  margin: 4px 0 0 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  max-height: 280px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.autocomplete-item:hover {
  background: #f0f6ff;
}

.ac-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.ac-addr {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

/* 에임(십자선) 아이콘 버튼 */
.header-location-btn svg {
  display: block;
  color: #1677ff;
}

/* 입력 글자 일치 부분 하이라이트 */
.ac-highlight {
  color: #1677ff;
  font-weight: 900;
}

.facility-marker.stairs {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}

.facility-marker.stairs {
  background: #fff7ed;
  border: 1.5px solid #fb923c;
  color: #9a3412;
}

.stair-step-icon {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.stair-step-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: currentColor;
  clip-path: polygon(0 100%,
      0 78%,
      24% 78%,
      24% 56%,
      48% 56%,
      48% 34%,
      72% 34%,
      72% 12%,
      100% 12%,
      100% 100%);
}

.stair-step-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.stair-step-icon.small {
  width: 16px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

.stair-step-icon.marker {
  width: 21px;
  height: 18px;
}

/* =========================
   계단 필터 버튼 아이콘
   ========================= */
.stair-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stair-chip-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* =========================
   계단 지도 마커
   ========================= */
.facility-marker.stairs {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.98);
  border: 2px solid #f97316;
  color: #9a3412;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.facility-marker.stairs .stair-svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   계단 버튼/마커 통일 스타일
   ========================= */

/* 계단 필터 버튼: 글자 안 잘리게 넓게 */
.filter-chip.stair-chip {
  min-width: 86px !important;
  width: auto !important;
  padding: 8px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* 계단 버튼이 선택됐을 때도 파란색 말고 계단 색으로 통일 */
.filter-chip.stair-chip.active {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-color: #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.22) !important;
}

/* 버튼 안 작은 계단 아이콘 박스 */
.stair-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff7ed;
  border: 2px solid #f97316;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* 계단 SVG 선 */
.stair-svg {
  width: 17px;
  height: 17px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 지도 위 계단 마커 */
.facility-marker.stairs {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #fff7ed !important;
  border: 2px solid #f97316 !important;
  color: #ea580c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 9px rgba(249, 115, 22, 0.32) !important;
  box-sizing: border-box !important;
}

/* 지도 마커 안에서는 내부 박스 테두리 제거: 바깥 마커 자체가 아이콘 박스 역할 */
.facility-marker.stairs .stair-icon-box {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #ea580c;
}

.facility-marker.stairs .stair-svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.7;
}

/* =====================================================
   Stair UI final override
   - 계단은 전체 편의시설과 분리
   - 버튼/지도 마커를 같은 주황색 계단 스타일로 통일
   ===================================================== */

/* 계단 버튼 크기 확장 */
#facilityFilterMenu .filter-chip.stair-chip,
#facilityFilterMenu .filter-chip.stair-filter-chip {
  min-width: 96px !important;
  width: auto !important;
  height: 42px !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

/* 계단 버튼 기본 상태 */
#facilityFilterMenu .filter-chip.stair-chip,
#facilityFilterMenu .filter-chip.stair-filter-chip {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 1.5px solid #fed7aa !important;
}

/* 계단 버튼 선택 상태: 파란색 금지, 주황색으로 통일 */
#facilityFilterMenu .filter-chip.stair-chip.active,
#facilityFilterMenu .filter-chip.stair-filter-chip.active {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.24) !important;
}

/* 계단 버튼 안 아이콘 박스 */
#facilityFilterMenu .stair-filter-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: #fff7ed !important;
  border: 2px solid #f97316 !important;
  color: #ea580c !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

/* 계단 버튼 SVG */
#facilityFilterMenu .stair-filter-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

/* 계단 버튼 글자 */
#facilityFilterMenu .stair-filter-label {
  display: inline-block !important;
  color: inherit !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* 지도 위 계단 마커: 기존 facility-marker 스타일과 완전히 분리 */
.stair-marker-overlay {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 247, 237, 0.94) !important;
  border: 1.7px solid #f97316 !important;
  color: #ea580c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.22) !important;
  box-sizing: border-box !important;
}

/* 지도 위 계단 SVG */
.stair-marker-overlay .stair-marker-svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

/* 혹시 예전 CSS가 남아 있어도 기존 계단 마커는 숨기듯 정리 */
.facility-marker.stairs {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 247, 237, 0.94) !important;
  border: 1.7px solid #f97316 !important;
  color: #ea580c !important;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.22) !important;
}

/* =====================================================
   Stair UI final override
   계단은 전체 편의시설과 분리하고, 작게 표시한다.
   이 코드는 frontend/style.css 맨 아래에 붙여넣기.
   ===================================================== */

/* 계단 버튼 크기 확장 */
#facilityFilterMenu .filter-chip.stair-chip,
#facilityFilterMenu .filter-chip.stair-filter-chip {
  min-width: 96px !important;
  width: auto !important;
  height: 42px !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

/* 계단 버튼 기본 상태 */
#facilityFilterMenu .filter-chip.stair-chip,
#facilityFilterMenu .filter-chip.stair-filter-chip {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 1.5px solid #fed7aa !important;
}

/* 계단 버튼 선택 상태: 파란색 대신 주황색 */
#facilityFilterMenu .filter-chip.stair-chip.active,
#facilityFilterMenu .filter-chip.stair-filter-chip.active {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-color: #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.24) !important;
}

/* 계단 버튼 안 아이콘 박스 */
#facilityFilterMenu .stair-filter-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  background: #fff7ed !important;
  border: 2px solid #f97316 !important;
  color: #ea580c !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

/* 계단 버튼 SVG */
#facilityFilterMenu .stair-filter-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

/* 계단 버튼 글자 */
#facilityFilterMenu .stair-filter-label {
  display: inline-block !important;
  color: inherit !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* 지도 위 계단 마커: 기존 facility-marker 스타일과 분리 */
.stair-marker-overlay {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 247, 237, 0.94) !important;
  border: 1.7px solid #f97316 !important;
  color: #ea580c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.22) !important;
  box-sizing: border-box !important;
}

/* 지도 위 계단 SVG */
.stair-marker-overlay .stair-marker-svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  display: block !important;
}

/* 예전 계단 마커 CSS가 남아 있을 때도 덮어쓰기 */
.facility-marker.stairs {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(255, 247, 237, 0.94) !important;
  border: 1.7px solid #f97316 !important;
  color: #ea580c !important;
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.22) !important;
}

/* =====================================================
   계단 등록 (사진 첨부) UI
   ===================================================== */
.stair-report-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.stair-report-btn {
  appearance: none;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #ea580c;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.stair-report-btn:hover {
  background: #ffedd5;
  border-color: #f97316;
}

#stairPreviewContainer {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 100%;
}

#stairPreview {
  display: block;
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
}

#removeStairPhotoBtn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#removeStairPhotoBtn:hover {
  background: rgba(0, 0, 0, 0.8);
}