@charset "UTF-8";
:root {
  --primary-color: #0a529d;
  --secondary-color: #2ecc71;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 500;
  color: #1d1d1d;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

button, a {
  cursor: pointer;
}

/* 7) 애니메이션/스무스 스크롤 접근성 */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 15px;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid #e3e3e3;
  background: #fff;
  line-height: 1;
  color: #374151;
}
.badge--muted {
  color: #848484;
}
.badge--blue {
  border-color: var(--primary-color);
  background: #dcedf4;
  color: var(--primary-color);
}
.badge--warn {
  border-color: #ffe0a6;
  background: #fff7ed;
  color: #f59e0b;
}
.badge--red {
  border-color: #fb5852;
  background: #fee9e9;
  color: #fb5852;
}

.form-group {
  display: flex;
  align-items: center;
}
.form-group.ti-top {
  align-items: flex-start;
}
.form-group.ti-top .form-ti {
  padding-top: 5px;
}
.form-group .form-control {
  flex: 1;
}
.form-group + .form-group {
  margin-top: 10px;
}

.form-ti {
  font-size: 15px;
  color: #1d1d1d;
}
.form-ti.w100 {
  min-width: 100px;
}

.form-control {
  border-radius: 5px;
  padding: 10px;
  border: 1px solid #c6c6c6;
  color: #1d1d1d;
  font-size: 15px;
  background-color: #fff;
}
.form-control:focus {
  border-color: #005bac;
}
.form-control::placeholder {
  font-weight: 300;
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 12px 6px 0;
}

.checkbox__label,
.radio__label {
  font-size: 14px;
  color: #374151;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.checkbox__input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.checkbox__input::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: #fff;
  mask: url("data:image/svg+xml;utf8,      <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'>        <path d='M20.285 6.709a1 1 0 0 1 .006 1.414l-9.2 9.2a1 1 0 0 1-1.414 0l-5.0-5.0a1 1 0 1 1 1.414-1.414l4.293 4.293 8.493-8.493a1 1 0 0 1 1.408 0z'/>      </svg>") center/contain no-repeat;
}
.checkbox__input:hover:not(:disabled) {
  border-color: #94a3b8;
}
.checkbox__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  border-color: #1976d2;
}
.checkbox__input:checked {
  background: #1976d2;
  border-color: #1976d2;
}
.checkbox__input:checked::before {
  transform: scale(1);
}
.checkbox__input:checked:hover {
  background: #1565c0;
  border-color: #1565c0;
}
.checkbox__input:indeterminate {
  background: #1976d2;
  border-color: #1976d2;
}
.checkbox__input:indeterminate::before {
  mask: none;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform: scale(1);
}
.checkbox__input:disabled {
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e5e7eb;
}
.checkbox__input:disabled + .checkbox__label {
  color: #9ca3af;
  cursor: not-allowed;
}

.radio__input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.radio__input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  background: #fff;
}
.radio__input:hover:not(:disabled) {
  border-color: #94a3b8;
}
.radio__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  border-color: #1976d2;
}
.radio__input:checked {
  background: #1976d2;
  border-color: #1976d2;
}
.radio__input:checked::before {
  background: #fff;
  transform: scale(1);
}
.radio__input:checked:hover {
  background: #1565c0;
  border-color: #1565c0;
}
.radio__input:disabled {
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e5e7eb;
}
.radio__input:disabled + .radio__label {
  color: #9ca3af;
  cursor: not-allowed;
}

/* 업로드 영역 */
.upload-inner {
  width: 100%;
}

.upload-box {
  border: 1px dashed #c6c6c6;
  background: #f9fafb;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}
.upload-box p {
  font-weight: 300;
  color: #9c9b9b;
}
.upload-box .btn-upload {
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 14px;
  color: #fff;
  background: #999999;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.upload-box .btn-upload:hover {
  background: #555555;
}

/* 파일 리스트 */
.file-list .file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.file-list .file-item .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-list .file-item .file-info .file-icon img {
  vertical-align: middle;
}
.file-list .file-item .file-info .file-name {
  font-weight: 300;
  color: #111827;
}
.file-list .file-item .file-info .file-ext {
  color: #6b7280;
  font-size: 13px;
}
.file-list .file-item .btn-download {
  background: none;
  border: none;
  cursor: pointer;
}
.file-list .file-item .btn-download img {
  vertical-align: middle;
}

.form--tbl__header {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.form--tbl__header select {
  width: 150px;
  height: 48px;
}
.form--tbl__util {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.form--tbl__util select {
  width: 150px;
  height: 48px;
}
.form--tbl__util .total {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form--tbl__util .total span {
  display: inline-block;
  margin: 0 2px;
  color: #047bb6;
  font-weight: bold;
}
.form--tbl__util .util-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  width: 400px; /* 원하는 너비 */
  border: 1px solid #c6c6c6;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.search-box input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 14px;
}
.search-box .search-btn {
  padding: 0 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
}
.search-box .search-btn:hover {
  color: #000;
}

/* ========== Map - 전체 화면, 우측 툴  ========== */
.Map {
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 100%;
}
.Map.nav-open .map--side {
  left: 0;
}
.Map--mode {
  border: 1px solid #b9b9b9;
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .Map--mode {
    display: none;
  }
}
.Map--mode__top {
  position: absolute;
  top: 16px;
  right: 16px;
}
.Map--mode__bottom {
  position: absolute;
  bottom: 16px;
  right: 16px;
}
.Map--mode.zoom .btn--mode + .btn--mode {
  position: relative;
}
.Map--mode.zoom .btn--mode + .btn--mode:after {
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  display: block;
  content: "";
  width: calc(100% + 8px);
  height: 1px;
  border-top: 1px solid #D8D8D8;
}
.Map--mode + .Map--mode {
  margin-top: 12px;
}

.btn--mode {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-weight: 300;
  font-size: 15px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: none;
}
.btn--mode.active {
  background: var(--primary-color);
  color: #fff;
}

.map--side {
  position: absolute;
  z-index: 100;
  left: -314px;
  width: 270px;
  transition: all 0.3s;
}

.dimmed {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dimmed.show {
  opacity: 1;
}

/* ========== panel - header  죄측 1뎁스 패널 리스트 ========== */
.panel--wrap {
  z-index: 100;
  position: relative;
  width: 400px;
  height: 100%;
  background: #f6f7fb;
  border-radius: 0 50px 0 0;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
@media (max-width: 1024px) {
  .panel--wrap {
    width: 100%;
    background: transparent;
  }
}

.panel--header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 20px;
  transition: all 0.3s;
}
@media (max-width: 1024px) {
  .panel--header {
    gap: 10px;
    padding: 10px;
  }
}
@media (max-width: 1024px) {
  .panel--header {
    position: fixed;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    background: #f6f7fb;
    border-radius: 20px;
  }
}
.panel--header .panel--search {
  display: flex;
  width: 100%;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 20px 10px 10px 10px;
  height: 48px;
}
@media (max-width: 1024px) {
  .panel--header .panel--search {
    height: 40px;
  }
}
.panel--header .panel--search .search--input {
  padding: 8px 15px;
  border: none;
  background: #f9f9f9;
  flex: 1;
  border-radius: 20px 0 0 10px;
}
.panel--header .panel--search .search--input::placeholder {
  font-size: 15px;
  color: #8e8e8e;
}
.panel--header .panel--search .search--button {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  background: #f9f9f9;
  border-radius: 0 10px 10px 0;
}

/* ========== panel - 날씨  죄측 1뎁스 패널 ========== */
.panel--wheather {
  display: flex;
  align-content: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 20px;
  /* 미세먼지 그래프 */
}
@media (max-width: 1024px) {
  .panel--wheather {
    display: none;
  }
}
.panel--wheather__today {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 15px;
  flex: 1;
}
.panel--wheather__today .wheather-img {
  display: inline-block;
}
.panel--wheather__today .wheather-value {
  text-align: center;
}
.panel--wheather__today .wheather-value > strong {
  font-size: 30px;
  font-weight: bold;
}
.panel--wheather__today .wheather-value p {
  font-size: 13px;
}
.panel--wheather__today .wheather-value p strong {
  font-size: 15px;
  font-weight: bold;
}
.panel--wheather__wGrInfo {
  flex: 1;
}
.panel--wheather__wGrInfo .wGraphWrap {
  display: flex;
  justify-content: space-around;
  height: 68px;
  margin-bottom: 20px;
}
.panel--wheather__wGrInfo .wGraphWrap .GaugeMeter {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.panel--wheather__wGrInfo .wGraphWrap .chartBox {
  position: relative;
  width: 55px;
  text-align: center;
  gap: 12px;
}
.panel--wheather__wGrInfo .wGraphWrap .chartBox .txtInfo {
  position: relative;
  top: -16px;
}
.panel--wheather__wGrInfo .wGraphWrap .chartBox .txtInfo p {
  color: #333;
}
.panel--wheather__wGrInfo .wGraphWrap .chartBox .txtInfo p:nth-child(1) {
  font-size: 13px;
  margin-bottom: 3px;
}
.panel--wheather__wGrInfo .wGraphWrap .chartBox .txtInfo p:nth-child(2) {
  font-size: 13px;
  color: #555555;
}
.panel--wheather__wGrInfo .wGraphWrap output {
  color: #000 !important;
  font-size: 0.8125rem;
  font-weight: bold;
}
.panel--wheather__wGrInfo .wGraphWrap span, .panel--wheather__wGrInfo .wGraphWrap B {
  margin: 0 23%;
  width: 55%;
  position: absolute;
  top: -5px;
  text-align: center;
  display: inline-block;
  color: RGBa(0, 0, 0, 0.8);
  font-weight: 100;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.panel--wheather__wGrInfo .wGraphWrap [data-style=Semi] B {
  Margin: 0 10%;
  Width: 80%;
}
.panel--wheather__wGrInfo .wGraphWrap S, .panel--wheather__wGrInfo .wGraphWrap U {
  font-Size: 0.4em;
  Opacity: 1;
}
.panel--wheather__wGrInfo .wGraphWrap B {
  color: #444444;
  font-Weight: 300;
  font-size: 4px;
}
.panel--wheather__wGrInfo .exTxt {
  display: block;
  background: #deecf8;
  text-align: center;
  border-radius: 11px;
  font-size: 13px;
  padding: 5px;
  line-height: 1;
  font-weight: bold;
}

/* ========== panel - list  죄측 1뎁스 패널 ========== */
@media (max-width: 1024px) {
  .panel--list {
    background: #fff;
  }
}
.panel--list .tab--btn__nav {
  margin: 20px;
}
.panel--list .tab--panel {
  padding: 0 20px 20px;
  height: calc(100% - 175px - 75px - 145px);
}
@media (max-width: 1024px) {
  .panel--list .tab--panel {
    height: calc(100% - 115px);
  }
}
.panel--list .panel--item {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s;
}
.panel--list .panel--item:last-child {
  margin-bottom: 0;
}
.panel--list .panel--item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel--list .panel--item__header .panel--item__number {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: bold;
}
.panel--list .panel--item__header .panel--item__number::before {
  display: block;
  content: "";
  width: 46px;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #deecf8;
  background-image: url("../images/blue-bus19@21.png");
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s;
}
.panel--list .panel--item__header .panel--item__station {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: bold;
}
.panel--list .panel--item__header .panel--item__station::before {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background-color: #deecf8;
  background-image: url("../images/blue-station.png");
  background-position: bottom;
  background-repeat: no-repeat;
  transition: all 0.3s;
}
.panel--list .panel--item__header .panel--item__plate {
  font-size: 17px;
}
.panel--list .panel--item__destination {
  display: flex;
  align-items: center;
}
.panel--list .panel--item__destination span {
  font-size: 15px;
  color: #555555;
}
.panel--list .panel--item__destination .address {
  position: relative;
  margin-right: 10px;
  padding-right: 10px;
}
.panel--list .panel--item__destination .address:after {
  position: absolute;
  right: 0;
  top: 3px;
  display: block;
  content: "";
  width: 1px;
  height: 12px;
  background: #d8d8d8;
}
.panel--list .panel--item__destination .arw {
  display: block;
  width: 16px;
  height: 6px;
  margin: 0 10px;
  background-image: url("../images/ico-address-arw.png");
}
.panel--list .panel--item .station-info dl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel--list .panel--item .station-info dl + dl {
  margin-top: 10px;
}
.panel--list .panel--item .station-info dl dt {
  color: #555555;
  font-size: 15px;
  font-weight: 600;
}
.panel--list .panel--item .station-info dl dd {
  color: #717171;
  font-size: 15px;
}
.panel--list .panel--item .station-info dl dd .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.panel--list .panel--item.is-active, .panel--list .panel--item:hover {
  border: 1px solid #0a529d;
  background: #e8f2fa;
}
.panel--list .panel--item.is-active .panel--item__header .panel--item__number::before, .panel--list .panel--item:hover .panel--item__header .panel--item__number::before {
  background-color: var(--primary-color);
  background-image: url("../images/white-bus19@21.png");
}
.panel--list .panel--item.is-active .panel--item__header .panel--item__station::before, .panel--list .panel--item:hover .panel--item__header .panel--item__station::before {
  background-color: var(--primary-color);
  background-image: url("../images/white-station.png");
}

/* ========== panel - expand  공통========== */
.panel--expand {
  position: absolute;
  z-index: 101;
  left: 420px;
  height: calc(100% - 40px);
  top: 20px;
  background: #f6f7fb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
  overflow: hidden;
  transition: all 0.3s;
}
@media (max-width: 1024px) {
  .panel--expand {
    position: absolute;
    height: auto;
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
  }
}
.panel--expand__top {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
}
@media (max-width: 1024px) {
  .panel--expand__top {
    padding: 10px;
  }
}
.panel--expand__head {
  color: #fff;
  align-items: center;
  font-size: 19px;
  font-weight: 300;
}
.panel--expand__head .back {
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 9px;
  height: 16px;
  background-repeat: no-repeat;
}
.panel--expand__head .close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-image: url("../images/modal-close.png");
}
.panel--expand__head .bus-type-inner {
  padding: 0 30px 10px;
}
.panel--expand__head .bus-type {
  display: inline-flex;
  align-items: center;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}
.panel--expand__head .bus-type .bus-type-badge {
  padding: 5px 25px;
  border-radius: 5px;
  background: #047bb6;
  color: #fff;
}
@media (max-width: 1024px) {
  .panel--expand__head .bus-type .bus-type-badge {
    padding: 5px 15px;
    font-size: 15px;
  }
}
.panel--expand__head .bus-type .bus-type-label {
  font-size: 30px;
  font-weight: bold;
}
@media (max-width: 1024px) {
  .panel--expand__head .bus-type .bus-type-label {
    font-size: 25px;
  }
}
.panel--expand__content {
  height: 100%;
}
.panel--expand__content .bus-info-inner {
  padding: 0 20px 30px 20px;
}
.panel--expand__content .bus-info {
  height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #d8d8d8;
  padding: 20px;
  border-radius: 10px;
}
.panel--expand__content .bus-info dl {
  display: flex;
  font-size: 15px;
  line-height: 1.2;
}
.panel--expand__content .bus-info dl dt {
  position: relative;
  width: 80px;
  padding-left: 10px;
  color: #1d1d1d;
}
.panel--expand__content .bus-info dl dt:after {
  position: absolute;
  left: 0;
  top: 6px;
  display: block;
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
}
.panel--expand__content .bus-info dl dd {
  color: #717171;
}
.panel--expand__content .section--meta {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  background-color: #fff;
  background: #fff;
}
@media (max-width: 1024px) {
  .panel--expand__content .section--meta {
    margin-top: -1px;
    top: -1px;
  }
}
.panel--expand__content .section--meta__title {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}
.panel--expand__content .section--meta__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 15px;
}
.panel--expand__content .section--meta__status {
  font-weight: 600;
  color: #555555;
}
.panel--expand__content .section--meta__timestamp {
  font-size: 13px;
  color: #999999;
}
.panel--expand__content .section--meta__refresh {
  background: none;
  border: none;
  width: 12px;
  height: 12px;
  background-image: url("../images/ico-refresh.png");
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: transform 0.2s ease;
}
.panel--expand__content .section--meta__refresh:hover {
  color: #000;
  transform: rotate(90deg);
}
.panel--expand__content .section--meta__refresh:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ========== panel - sheet  드래그 기능 패널 공통 ========== */
.Map.is-sheet-open .panel--header {
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  background: #e8f2fa;
}
.Map.is-sheet-open .panel--expand {
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 0;
  background: #e8f2fa;
}

@media (max-width: 1024px) {
  .sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 1000;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 100svh;
    max-height: calc(100svh - 125px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    /* 여기! 100vh → var(--max-h) 로 교체 */
    transform: translateY(calc(100svh - 200px));
    will-change: transform;
    touch-action: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet--anim {
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .sheet-handle {
    padding: 15px 0 15px;
    display: grid;
    place-items: center;
    cursor: grab;
    border-bottom: 1px solid #d8d8d8;
  }
  .sheet-handle .grip {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d1d5db;
  }
}

/* ========== 타임라인 - 버스 위치 ========== */
.timelin-inner {
  position: relative;
  padding-top: 10px;
  height: calc(100% - 130px);
}
@media (max-width: 1024px) {
  .timelin-inner {
    height: calc(100% - 35px);
  }
}

.route-timeline-inner {
  padding: 20px;
}

.route-timeline {
  position: relative;
  padding-left: 90px;
  /* 정류장 목록 */
}
.route-timeline .stops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.route-timeline .stops .stop {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #d8d8d8;
}
.route-timeline .stops .stop:first-child {
  border-top: none;
}
.route-timeline .stops .stop::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -1px;
  bottom: 0;
  width: 10px;
  background: #d4d4d5;
}
.route-timeline .stops .stop:first-child::before {
  border-radius: 10px 10px 0 0;
}
.route-timeline .stops .stop:last-child::before {
  border-radius: 0 0 10px 10px;
}
.route-timeline .stops .stop .stop-marker {
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
}
.route-timeline .stops .stop .stop-info .stop-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.route-timeline .stops .stop .stop-info .stop-code {
  font-size: 15px;
  color: #555555;
  margin-top: 2px;
}
.route-timeline .stops .stop .stop-info .stop-status {
  font-size: 15px;
  color: #999999;
  margin-top: 2px;
}
.route-timeline .stops .stop .stop-info .stop-status.arrival {
  color: #ef363d;
}
.route-timeline .buses {
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 0;
}
.route-timeline .buses .bus {
  position: absolute;
  display: block;
  width: 25px;
  height: 24px;
  z-index: 10;
  left: 80px;
  transform: translateX(-50%);
  cursor: default;
  /* 툴팁 */
}
.route-timeline .buses .bus .tooltip {
  position: absolute;
  right: 30px;
  /* 기본은 오른쪽 */
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #cecfd3;
  border-radius: 6px;
  padding: 5px;
  text-align: center;
  font-size: 11px;
  color: #111827;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.route-timeline .buses .bus .tooltip::after, .route-timeline .buses .bus .tooltip::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.route-timeline .buses .bus .tooltip::before {
  right: -5px;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent #cecfd3;
}
.route-timeline .buses .bus .tooltip::after {
  right: -3px;
  border-style: solid;
  border-width: 4px 0 4px 4px;
  border-color: transparent transparent transparent #fff;
}
.route-timeline .buses .bus .tooltip .green {
  color: #0fc04a;
}
.route-timeline .buses .bus .tooltip .red {
  color: #fc413a;
}
.route-timeline .buses .bus.tooltip-left::after {
  left: auto;
  right: 30px;
}

.station-inner {
  height: 100%;
}

.station-list {
  height: 100%;
}
.station-list .tab--panel {
  padding: 0 20px 20px;
  height: calc(100% - 205px);
}
@media (max-width: 1024px) {
  .station-list .tab--panel {
    height: calc(100% - 112px);
  }
}

/* ========== 리스트 - 확장형 ========== */
.rc-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  color: #111827;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.rc-card + .rc-card {
  margin-top: 10px;
}
.rc-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rc-card__route {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.rc-card__star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d1d5db;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  width: 15px;
  height: 14px;
  background-image: url("../images/ico-starline.png");
  transition: all 0.3s;
}
.rc-card__star.active, .rc-card__star:hover {
  transform: scale(1.05);
  background-image: url("../images/ico-star.png");
}
.rc-card .rc-badges {
  display: flex;
  gap: 6px;
}
.rc-card .rc-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.rc-card .rc-status .rc-status__soon {
  color: #ef363d;
}
.rc-card .rc-status .rc-status__sep {
  color: #d8d8d8;
}
.rc-card .rc-status .rc-status__eta {
  color: #000;
}
.rc-card .rc-track {
  position: relative;
  margin-top: 16px;
  padding: 28px 0 34px;
}
.rc-card .rc-track__line {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
}
.rc-card .rc-vehicle {
  position: absolute;
  top: 0px;
  left: 0%;
  transform: translateX(-50%);
  aspect-ratio: 42/24;
}
.rc-card .rc-stops {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rc-card .rc-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.rc-card .rc-stop__dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
  margin-top: -16px;
  aspect-ratio: 1/1;
}
.rc-card .rc-stop__dot--ring {
  position: relative;
  border-color: #047bb6;
}
.rc-card .rc-stop__dot--ring:after {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: block;
  width: 8px;
  height: 8px;
  background: #047bb6;
}
.rc-card .rc-stop__label {
  margin-top: 6px;
  max-width: 120px;
  text-align: center;
  color: #6b7280;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rc-card .rc-stop--current .rc-stop__label {
  color: #111827;
}
.rc-card .rc-chip {
  position: relative;
  background: #047bb6;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
}
.rc-card .rc-chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 3px solid #047bb6;
}

/* ========== 리스트 - 카드형 ========== */
.bus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .bus-grid {
    grid-template-columns: 1fr;
  }
}
.bus-grid .bus-card {
  position: relative;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  transition: 0.15s ease;
}
.bus-grid .bus-card:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}
.bus-grid .bus-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bus-grid .bus-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: #deecf8;
  background-image: url("../images/station-bus.png");
  background-repeat: no-repeat;
  background-position: center;
  display: grid;
  place-items: center;
  color: #2563eb;
  font-size: 20px;
}
.bus-grid .bus-card__route {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #111827;
}
.bus-grid .bus-card__star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d1d5db;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  width: 15px;
  height: 14px;
  background-image: url("../images/ico-starline.png");
  transition: all 0.3s;
}
.bus-grid .bus-card__star.active, .bus-grid .bus-card__star:hover {
  transform: scale(1.05);
  background-image: url("../images/ico-star.png");
}
.bus-grid .bus-card__badges {
  display: flex;
  gap: 6px;
  margin: 4px 0 8px;
}
.bus-grid .bus-card__alert {
  margin: 6px 0 4px;
  color: #ef4444;
  font-weight: 800;
  font-size: 13px;
}
.bus-grid .bus-card__time {
  margin: 0;
  color: #111827;
  font-weight: 600;
  font-size: 13px;
}
.bus-grid .bus-card__time .sub {
  color: #6b7280;
  font-weight: 500;
}

.no-data {
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #8e8e8e;
}
.no-data img {
  display: block;
}
@media (max-width: 1024px) {
  .no-data img {
    width: 50%;
  }
}

.Mac-container {
  overflow: hidden;
  padding: 0px !important;
}

/* ========== Tab - 공통  ========== */
.tab--btn__nav {
  display: flex;
  justify-content: space-around;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
}
.tab--btn__nav .tab--item {
  flex: 1;
  padding: 10px;
  border: none;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
  border-left: 1px solid #d8d8d8;
  font-weight: 500;
  line-height: 1;
}
.tab--btn__nav .tab--item:first-child {
  border-radius: 5px 0 0 5px;
  border-left: none;
}
.tab--btn__nav .tab--item:last-child {
  border-radius: 0 5px 5px 0;
}
.tab--btn__nav .tab--item.active {
  background: var(--primary-color);
  color: #fff;
  border-left: none;
}

.tab--type__nav {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding: 10px 20px;
}
.tab--type__nav .tab--item {
  border: none;
  width: 19px;
  height: 14px;
}
.tab--type__nav .tab--item .ico {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
}
.tab--type__nav .tab--item .ico.list {
  width: 19px;
  height: 14px;
  background-image: url("../images/tab-list.png");
}
.tab--type__nav .tab--item .ico.card {
  width: 14px;
  height: 14px;
  background-image: url("../images/tab-card.png");
}
.tab--type__nav .tab--item.active .list {
  background-image: url("../images/tab-list-on.png");
}
.tab--type__nav .tab--item.active .card {
  background-image: url("../images/tab-card-on.png");
}

.tab--container {
  height: 100%;
}

.panel--list {
  height: 100%;
}

.tab--content {
  height: 100%;
}
.tab--content .tab--panel {
  display: none;
}
.tab--content .tab--panel.active {
  display: block;
}

/* ====== Design tokens ====== */
html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  font-family: "Freesentation", Segoe UI, Roboto, Noto Sans KR, Apple SD Gothic Neo, "Malgun Gothic", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.a11y-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

:root {
  --max-h: 100svh;
  --min-peek: 80px;
  --radius: 16px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}