
/* 검색창(form) 한 블록처럼 붙이기 및 반응형 */
.search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="text"] {
  flex: 1;
  border-radius: 20px 0 0 20px;
  border: none;
  padding: 0 16px;
  font-size: 1rem;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
}

.search-form button {
  border-radius: 0 20px 20px 0;
  border: none;
  background: #222;
  color: #fff;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: background 0.2s;
}
.search-form button:hover {
  background: #444;
}

@media (max-width: 500px) {
  .search-form {
    max-width: 100%;
  }
}
/* 다크 테마, 라운드, 반투명, 반응형, 3분할 레이아웃 스타일 */
body {
  margin: 0;
  padding: 0;
  background: #18191c;
  font-family: 'Pretendard', 'NanumSquareRound', 'Apple SD Gothic Neo', Arial, sans-serif;
  color: #fff;
}
.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  min-height: 600px;
  background: transparent;
}
.left-panel {
  width: 40vw;
  min-width: 280px;
  max-width: 600px;
  background: rgba(20,20,22,0.97);
  border-radius: 32px 0 0 32px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 32px 24px 24px 32px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.right-panel {
  flex: 1 1 0%;
  min-width: 0;
  background: #23242a;
  border-radius: 0 32px 32px 0;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
#map {
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  border-radius: 0 32px 32px 0;
  min-height: 400px;
}
.search-bar-container {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  background: #23242a;
  border-radius: 999px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 0 0 0 0;
}
.search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  background: #23242a;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px 0 0 999px;
  font-size: 1em;
  outline: none;
  box-shadow: none;
  ime-mode: disabled;
  line-height: 1.2;
  transition: background 0.2s;
}
.search-form input[type="text"]::placeholder {
  color: #aaa;
  opacity: 1;
}
.search-form button[type="submit"] {
  background: #e23d3d;
  color: #fff;
  border: none;
  padding: 0 18px;
  height: 38px;
  border-radius: 0 999px 999px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
  margin-left: -2px;
}
.search-form button[type="submit"]:hover {
  background: #ff4d4d;
}
hr {
  border: none;
  border-top: 1px solid #333;
  margin: 16px 0;
}
h2, h3, h4 {
  color: #fff;
  margin: 0 0 8px 0;
}
ul, li {
  color: #fff;
}
table {
  width: 100%;
  background: rgba(30,30,32,0.98);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 8px;
  font-size: 0.98em;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
table th, table td {
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a2a;
}
table th {
  background: #23242a;
  color: #e23d3d;
  font-weight: 600;
}
table tr:last-child td {
  border-bottom: none;
}
.footer-panel {
  width: 100%;
  background: rgba(20,20,22,0.97);
  border-radius: 20px 20px 32px 32px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 18px 32px 16px 32px;
  color: #fff;
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  justify-content: space-between;
}
.status-badge {
  display: inline-block;
  background: #e23d3d;
  color: #fff;
  border-radius: 999px;
  padding: 2px 16px;
  font-size: 0.98em;
  font-weight: 600;
  margin-left: 8px;
}
@media (max-width: 1100px) {
  .container {
    flex-direction: column;
  }
  .left-panel, .right-panel {
    width: 100%;
    min-width: 0;
    border-radius: 0;
    max-width: 100vw;
  }
  .left-panel {
    border-radius: 0 0 32px 32px;
    padding: 24px 12px 16px 12px;
  }
  .right-panel {
    border-radius: 32px 32px 0 0;
    min-height: 320px;
  }
  #map {
    border-radius: 32px 32px 0 0;
    min-height: 320px;
  }
  .footer-panel {
    border-radius: 0 0 32px 32px;
    padding: 12px 16px 10px 16px;
    font-size: 1em;
  }
}


/* 지도 float 배경 */
.map-float-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
}
/* 검색바 float */
.search-float-bar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-width: 90vw;
  background: rgba(30,30,32,0.98);
  border-radius: 999px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0;
}
.search-float-bar .search-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border-radius: 999px;
  box-shadow: none;
  padding: 0;
  margin-right: 0;
}
.search-float-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px 0 0 999px;
  font-size: 1.08em;
  outline: none;
  box-shadow: none;
  ime-mode: disabled;
  line-height: 1.2;
  transition: background 0.2s;
}
.search-float-bar input[type="text"]::placeholder {
  color: #aaa;
  opacity: 1;
}
.search-float-bar button[type="submit"] {
  background: #e23d3d;
  color: #fff;
  border: none;
  padding: 0 18px;
  height: 45px;
  border-radius: 0 999px 999px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
  margin-left: -2px;
}
.search-float-bar button[type="submit"]:hover {
  background: #ff4d4d;
}
/* 배송 정보 float 패널 */
.info-float-panel {
  position: fixed;
  top: 100px;
  left: 24px;
  width: 510px;
  max-width: 95vw;
  height: 80vh;
  max-height: 80vh;
  background: rgba(20,20,22,0.97);
  border-radius: 28px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 40px 32px 32px 40px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-title {
  font-size: 1.55em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.info-blno {
  font-size: 1.18em;
  color: #e23d3d;
  margin-bottom: 8px;
  display: none;
}

/* 1800px 이하에서 info-float-panel의 송장번호(블번호) 숨김 */
@media (max-width: 1800px) {
  .info-float-panel .info-blno {
    display: none;
  }
}

/* 700px 이하에서는 다시 노출 */
@media (max-width: 700px) {
  .info-float-panel .info-blno {
    display: block;
  }
  .info-blno {
    display: block;
  }
}
.info-error {
  color: #ff4d4d;
  font-weight: 600;
  margin-bottom: 8px;
}
.info-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.18em;
  margin-bottom: 6px;
}
.info-status-label {
  color: #aaa;
  font-weight: 500;
}
.info-status-value {
  color: #fff;
  font-weight: 600;
}
.info-timeline-title {
  color: #e23d3d;
  font-size: 1.18em;
  font-weight: 600;
  margin: 12px 0 4px 0;
}
.info-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 48vh;
  min-height: 120px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.info-timeline-item {
  display: flex;
  flex-direction: column;
  background: #23242a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.98em;
  color: #fff;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.08);
}
.info-timeline-dt {
  color: #aaa;
  font-size: 0.96em;
  margin-bottom: 2px;
}
.info-timeline-status {
  color: #e23d3d;
  font-weight: 600;
  margin-bottom: 1px;
}
.info-timeline-area {
  color: #fff;
  font-size: 0.98em;
  margin-bottom: 1px;
}
.info-timeline-desc {
  color: #fff;
  font-size: 0.97em;
}
/* 하단 하이라이트 패널 float */
/* 하단 플로팅 패널 2단 구조 */
.footer-panel-float {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 600px;
  max-width: 96vw;
  background: rgba(20,20,22,0.97);
  border-radius: 20px 20px 32px 32px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  padding: 24px 40px 22px 40px;
  color: #fff;
  font-size: 1.08em;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 20;
}
.footer-panel-sections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-panel-top {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.12em;
  font-weight: 600;
}
.footer-label {
  color: #fff;
  font-size: 1.08em;
  margin-right: 6px;
}
.footer-blno-value {
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 12px;
}
.footer-status-badge-wrap {
  display: flex;
  align-items: center;
}
.footer-status-badge {
  background: #e23d3d;
  color: #fff;
  border-radius: 999px;
  padding: 4px 22px;
  font-size: 1.08em;
  font-weight: 700;
  margin-left: 10px;
  display: inline-block;
}
.footer-panel-bottom {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-meta-row {
  display: flex;
  gap: 60px;
  color: #aaa;
  font-size: 0.98em;
  font-weight: 400;
  margin-bottom: 2px;
}
.footer-meta-label {
  min-width: 80px;
  text-align: left;
}
.footer-meta-value-row {
  display: flex;
  gap: 60px;
  color: #fff;
  font-size: 1.22em;
  font-weight: 700;
}
.footer-meta-value {
  min-width: 80px;
  text-align: left;
}
.footer-blno {
  font-size: 1.08em;
  color: #fff;
}
.footer-status .status-badge {
  background: #e23d3d;
  color: #fff;
  border-radius: 999px;
  padding: 2px 16px;
  font-size: 0.98em;
  font-weight: 600;
  margin-left: 8px;
}
.footer-fromto, .footer-updated {
  color: #aaa;
  font-size: 0.98em;
}
@media (max-width: 700px) {
  .search-float-bar {
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 18px auto;
    padding: 0 0 0 0;
    display: flex;
  }
  .search-float-bar .search-form {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
  }
  .search-float-bar input[type="text"] {
    font-size: 1.2em;
    height: 34px;
    padding: 0 16px;
    border-radius: 11px 0 0 11px;
  }
  .search-float-bar button[type="submit"] {
    height: 34px;
    font-size: 1em;
    border-radius: 0 11px 11px 0;
    padding: 0 16px;
  }
  .info-float-panel {
    font-size: 1.2em;
    line-height: 1.4;
    padding: 20px 1.5vw 20px 1.5vw;
  }
  .info-title, .info-blno, .info-status-label, .info-status-value, .info-timeline-title, .info-timeline-item, .info-error {
    font-size: 1.2em;
  }
  .footer-panel-float {
    display: none;
  }
  .footer-panel-top, .footer-panel-bottom, .footer-label, .footer-blno-value, .footer-status-badge, .footer-meta-row, .footer-meta-value-row, .footer-meta-label, .footer-meta-value, .footer-fromto, .footer-updated {
    font-size: 0.78em;
  }
  .footer-status-badge, .footer-status .status-badge {
    font-size: 0.78em;
    padding: 4px 16px;
  }
  .footer-blno-value {
    font-size: 0.91em;
  }
  .footer-panel-sections {
    gap: 9px;
  }
  .info-timeline-list {
    max-height: none;
    min-height: 0;
    overflow-y: visible;
  }
}

@media (max-width: 1100px) {
  .search-float-bar {
    top: 12px;
    width: 98vw;
    max-width: 98vw;
  }
  .info-float-panel {
    left: 2vw;
    width: 98vw;
    max-width: 99vw;
    padding: 24px 12px 18px 18px;
  }
  .footer-panel-float {
    width: 98vw;
    padding: 10px 8px 10px 8px;
    font-size: 1em;
    border-radius: 16px 16px 24px 24px;
    gap: 12px;
  }
}

@media (max-width: 1150px) {
  #map,
  .map-float-bg {
    display: none !important;
  }
  .search-float-bar {
    position: static;
    width: 100vw;
    max-width: 100vw;
    margin: 18px auto 18px auto;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    transform: translateX(0%);
  }
  .search-float-bar .search-form {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .search-float-bar button[type="submit"]{
    border-radius: 0;
  }
  .footer-panel-float {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto 18px auto;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
  }
  .info-float-panel {
    position: static;
    left: auto;
    top: auto;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: none;
    margin: 0 auto 0 auto;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    padding: 24px 4vw 24px 4vw;
  }
  .info-timeline-list {
    max-height: none;
    min-height: 0;
    overflow-y: visible;
  }
  body {
    background: #18191c;
    padding: 0 !important;
  }
}

@media (max-width: 1800px) {
  .footer-panel-float {
    left: auto;
    right: 4vw;
    transform: none;
    width: 480px;
    max-width: 60vw;
  }
}