/* style.css */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;

  background: #ffffff;
  color: #111111;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard",
    sans-serif;
}

body {
  min-height: 100vh;
}

.main-screen {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content {
  width: 100%;
  max-width: 600px;

  margin: 0 auto;

  padding:
    70px
    18px
    40px;
}

/* 상단 */

.hero {
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;

  font-size: 33px;
  font-weight: 700;

  letter-spacing: -0.04em;
}

.hero p {
  margin-top: 5px;

  font-size: 14px;
  line-height: 1.5;

  color: #777777;
}

/* 입력 */

.input-wrap {
position: relative;
  display: grid;


  grid-template-columns:
    1.2fr
    0.9fr
    0.9fr
    60px;

  gap: 8px;

  margin-bottom: 26px;

}

.input-wrap input {
  width: 100%;
  height: 40px;

  border: 1px solid #ebebeb;
  background: #ffffff;

padding: 0 14px;
font-size: 13px;
border-radius: 10px;

  color: #111111;

  outline: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.input-wrap input:focus {
  border: 3px solid #111111;

}

.input-wrap button {
  height: 40px;

  border: none;
  border-radius: 10px;

  background: #111111;
  color: #ffffff;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.input-wrap button:hover {
  opacity: 0.92;
}

.input-wrap button:active {
  transform: scale(0.98);
}

/* 테이블 */

.table-wrap {
  width: 100%;
}

.table-header,
.weather-row {
  display: grid;

  grid-template-columns:
    1.5fr
    1fr
    0.7fr
    0.8fr
    0.8fr
    0.8fr
    0.8fr;

  align-items: center;
}

.table-header {
  height: 33px;

  border-bottom: 1px solid #777777;

  font-size: 12px;
  font-weight: 500;

  color: #333333;

  letter-spacing: -0.01em;
}

.weather-row {
  min-height: 40px;

  border-bottom: 2px solid #f0f0f0;

  font-size: 12px;
  font-weight: 500;

  letter-spacing: -0.015em;

  transition: background 0.15s ease;
}

.weather-row:hover {
  background: #eef4ff;
cursor: pointer;
}

.table-header div,
.weather-row div {
  padding: 0 2px;
text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.city-empty {
  color: transparent;
}

.weather-row div:nth-child(3) {

  font-size: 25px;

  line-height: 1;

  display: flex;
  align-items: center;
}

/* 하단 */

.bottom-text {
  width: 100%;

  padding:
    0
    18px
    26px;

  text-align: center;

  font-size: 12px;
  color: #9a9a9a;

  letter-spacing: -0.01em;
}

/* 모바일 */

@media (max-width: 640px) {

  .content {
    padding:
      56px
      14px
      32px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .input-wrap {
    grid-template-columns:
      1fr
      1fr;

    gap: 10px;
  }

  .input-wrap button {
    grid-column: span 2;
  }

  .table-header,
  .weather-row {

    grid-template-columns:
      1.2fr
      0.9fr
      0.5fr
      0.6fr
      0.6fr
      0.6fr
      0.7fr;

    font-size: 12px;
  }

  .weather-row {
    min-height: 52px;
  }

}

/* =========================
   flatpickr · QAS
========================= */

.flatpickr-calendar {

  margin-top: 8px;

  border: 1px solid #f4f4f4;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(18px);

  box-shadow: none;

  padding:
    12px
    12px
    14px;

  transform: scale(0.88);
  transform-origin: top left;

  animation: none !important;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard",
    sans-serif;
}


/* 상단 영역 */

.flatpickr-months {

  align-items: center;

  margin-bottom: 10px;
}


/* 월/연도 */

.flatpickr-current-month {

  padding-top: 2px;

  font-size: 12px !important;
  font-weight: 600;

  color: #111111;

  letter-spacing: -0.03em;
}


/* 연도 input */

.numInputWrapper input {

  font-weight: 600 !important;
}


/* 좌우 화살표 */

.flatpickr-prev-month,
.flatpickr-next-month {

  top: 12px;

  width: 28px;
  height: 28px;

  fill: #8d8d8d;

  border-radius: 8px;

  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {

  background: #f7f7f7;

  opacity: 1;
}


/* 요일 영역 */

.flatpickr-weekdays {

  margin-bottom: 6px;
}


/* 요일 */

.flatpickr-weekday {

  color: #aaaaaa;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: -0.01em;
}


/* 날짜 영역 */

.flatpickr-days {

  width: 100% !important;
}

.dayContainer {

  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}


/* 날짜 */

.flatpickr-day {

  width: 32px;
  max-width: 32px;

  height: 32px;
  line-height: 32px;

  margin: 1px;

  border: none;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 500;

  color: #111111;

  transition:
    background 0.12s ease,
    color 0.12s ease,
    opacity 0.12s ease;
}


/* hover */

.flatpickr-day:hover {

  background: #f7f7f7;
}


/* 오늘 날짜 */

.flatpickr-day.today {

  border: 1px solid #ececec;
}


/* 선택 범위 */

.flatpickr-day.inRange {

  background: #f6f6f6 !important;

  border-color: transparent !important;

  color: #111111 !important;

  box-shadow: none;
}


/* 시작일 / 종료일 */

.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected {

  background: #111111 !important;

  border-color: #111111 !important;

  color: #ffffff !important;
}


/* 비활성 날짜 */

.flatpickr-day.flatpickr-disabled {

  color: #d5d5d5;

  opacity: 0.5;
}


/* 이전달 / 다음달 날짜 */

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {

  color: #d0d0d0;
}


/* range 연결 배경 제거 */

.flatpickr-day.startRange + .endRange,
.flatpickr-day.endRange {

  box-shadow: none;
}


/* 모바일 */

@media (max-width: 640px) {

  .flatpickr-calendar {

    transform: scale(0.84);
  }

}

/* 모바일 */

@media (max-width: 640px) {

  .flatpickr-calendar {

    transform: scale(0.86);
  }

}

/* =========================
   Toast
========================= */

#toast {

  position: fixed;

  top: 22px;
  left: 50%;

  transform:
    translateX(-50%)
    translateY(-10px);

  width: 400px;

  padding:
    10px
    16px;


  border-radius: 12px;

background: #eef4ff;
border: 1px solid #cfdfff;

color: #111111;

  font-size: 13px;
  font-weight: 500;

  line-height: 1.2;

  display: flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;

  text-align: center;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  z-index: 9999;
}
#toast.show {

  opacity: 1;

  transform:
    translateX(-50%)
    translateY(0);
}

.weather-icon img {

  width: 22px;
  height: 22px;

  object-fit: contain;
}

.input-group {
  position: relative;
}

#autocompleteBox {

  position: absolute;

  top: calc(100% + 6px);

  left: 0;

  width: 195px;

  max-height: 220px;

  overflow-y: auto;

  background: #ffffff;

  border: 3px solid #999999;

  border-radius: 10px;

  display: none;

  z-index: 1000;
}

#autocompleteBox {

  scrollbar-width: none;

}

#autocompleteBox::-webkit-scrollbar {

  display: none;

}

.autocomplete-item {

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    10px
    10px;

  background: #ffffff;

  cursor: pointer;

  transition:
    background 0.16s ease,
    transform 0.16s ease;

  border-bottom:
    1px solid #f5f5f5;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {

  background: #f7faff;
}

.autocomplete-city {

  font-size: 12px;
  font-weight: 600;

  color: #111111;

  letter-spacing: -0.02em;
}

.autocomplete-code {

  font-size: 11px;

  color: #999999;

  font-weight: 500;

  letter-spacing: 0.04em;
}

.autocomplete-item {

  padding: 12px 14px;

  cursor: pointer;

  transition: 0.15s ease;
}

.autocomplete-item:hover {

  background: #eef4ff;
}

.city-cell {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;
}

.trip-city {

  font-size: 13px;

  font-weight: 600;

  color: #111111;
}

.trip-code {

  font-size: 11px;

  color: #9a9a9a;

  font-weight: 500;

  letter-spacing: 0.04em;
}