@import url('../../../css/basic-tools.css?v=20260924-3');

.umbrella-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* INTRO */

.umbrella-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.035);
}

.umbrella-icon {
  flex: 0 0 auto;
  font-size: 38px;
}

.umbrella-intro strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.umbrella-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.7;
}

/* LOCATION */

.location-panel {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.location-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.location-panel-head strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.location-panel-head span {
  display: block;
  font-size: 12px;
  opacity: 0.62;
}

.location-current-btn {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.location-current-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* SEARCH */

.location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.location-search-input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.location-search-input:focus {
  border-color: rgba(44, 120, 230, 0.55);
  box-shadow: 0 0 0 3px rgba(44, 120, 230, 0.08);
}

.location-search-btn {
  min-width: 72px;
}

.location-search-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* SEARCH RESULTS */

.location-search-results {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.location-result-item {
  display: block;
  width: 100%;
  padding: 10px 11px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  cursor: pointer;
}

.location-result-item:hover {
  background: rgba(44, 120, 230, 0.055);
}

.location-result-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.location-result-item span {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.58;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-search-empty {
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.035);
  font-size: 12px;
}

/* RECENT */

.recent-locations {
  margin-top: 11px;
}

.recent-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.55;
}

.recent-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recent-location-chip {
  padding: 6px 9px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.025);
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* STATUS */

.umbrella-status {
  min-height: 22px;
  margin: 10px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.7;
}

/* RESULT */

.umbrella-result {
  margin-top: 8px;
}

/* LOCATION HEAD */

.weather-location-head {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.03);
}

.weather-location-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.location-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(44, 120, 230, 0.11);
  font-size: 12px;
  font-weight: 700;
}

#locationName {
  font-size: 15px;
}

#locationDetail {
  font-size: 12px;
  opacity: 0.55;
}

/* DECISION */

.umbrella-decision {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(44, 120, 230, 0.09);
}

.decision-icon {
  flex: 0 0 auto;
  font-size: 42px;
}

.decision-title {
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 800;
}

.decision-reason {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
}

/* CURRENT WEATHER */

.weather-current {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.weather-main > div {
  display: flex;
  flex-direction: column;
}

.weather-icon {
  font-size: 36px;
}

.weather-main strong {
  font-size: 17px;
}

#currentTemp {
  margin-top: 2px;
  font-size: 14px;
  opacity: 0.7;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.weather-item {
  padding: 11px 8px;
  text-align: center;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.035);
}

.weather-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  opacity: 0.62;
}

.weather-item strong {
  display: block;
  font-size: 14px;
}

/* HOURLY */

.hourly-section {
  margin-top: 18px;
}

.hourly-section h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.hourly-weather {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.hour-card {
  flex: 0 0 72px;
  padding: 10px 5px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.hour-time {
  font-size: 12px;
  opacity: 0.65;
}

.hour-icon {
  margin: 5px 0;
  font-size: 23px;
}

.hour-temp {
  font-size: 13px;
  font-weight: 700;
}

.hour-pop {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.72;
}

/* =========================================================
   RADAR
   ========================================================= */

.radar-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.radar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.radar-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.radar-head p {
  margin: 0;
  font-size: 12px;
  opacity: 0.6;
}

.radar-time {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.045);
  font-size: 12px;
  font-weight: 700;
}

.radar-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #eef2f4;
}

.radar-map {
  width: 100%;
  height: 330px;
}

.radar-loading {
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.radar-controls {
  display: grid;
  grid-template-columns: 36px auto 36px minmax(80px, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.radar-control-btn,
.radar-play-btn {
  min-height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.radar-play-btn {
  min-width: 72px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.radar-slider {
  width: 100%;
}

.radar-description {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.52;
}

/* TIP */

.weather-tip {
  margin-top: 15px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  font-size: 13px;
  line-height: 1.55;
}

/* LOCATION INFO */

.location-info {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.52;
}

/* =========================================================
   SOURCES
   ========================================================= */

.weather-sources {
  margin-top: 18px;
  padding: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

.weather-source-title {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.weather-source-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 4px 0;
}

.weather-source-row > span {
  opacity: 0.55;
}

.weather-source-row a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.weather-source-row small {
  display: inline;
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.52;
}

.weather-source-note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed rgba(0, 0, 0, 0.09);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.5;
}

/* MOBILE */

@media (max-width: 600px) {
  .location-panel-head {
    align-items: flex-start;
  }

  .location-search-row {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .weather-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-title {
    font-size: 18px;
  }

  .radar-map {
    height: 285px;
  }

  .radar-controls {
    grid-template-columns: 34px 68px 34px;
  }

  .radar-slider {
    grid-column: 1 / -1;
  }
}
/* =========================================================
   RADAR
   ========================================================= */

.radar-section {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 24px rgba(15, 23, 42, 0.04);
}

/* ---------------------------------------------------------
   Radar Head
   --------------------------------------------------------- */

.radar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.radar-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.radar-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.radar-time {
  flex: 0 0 auto;
  min-width: 76px;
  padding: 6px 9px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   Radar Map
   --------------------------------------------------------- */

.radar-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 15px;
  background: #edf2f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.radar-map {
  width: 100%;
  height: 330px;
  background: #e8edf2;
}

/*
 * Radar frame 전환
 */

.radar-map .leaflet-tile {
  transition: opacity 180ms ease;
}

/* ---------------------------------------------------------
   Radar Loading
   --------------------------------------------------------- */

.radar-loading {
  position: absolute;
  z-index: 1000;

  left: 50%;
  bottom: 13px;

  transform: translateX(-50%);

  max-width: calc(100% - 28px);

  padding: 7px 12px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);

  color: #334155;

  font-size: 12px;
  font-weight: 650;

  white-space: nowrap;

  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.09);
}

/* =========================================================
   Radar 강수강도 범례
   - 우측 세로
   - 좁은 폭
   - 불연속 8단계
   ========================================================= */

.radar-rain-legend {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;

  margin-top: 43px !important;
  margin-right: 6px !important;

  padding: 7px 4px 6px !important;

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(7px);

  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);

  color: #334155;

  box-sizing: border-box;

  user-select: none;
}

/* 제목 */

.radar-rain-legend-title {
  margin: 0 0 1px;

  text-align: center;

  font-size: 12px;
  line-height: 1.15;

  font-weight: 800;

  white-space: nowrap;
}

/* 단위 */

.radar-rain-legend-unit {
  margin: 0 0 5px;

  text-align: center;

  color: #64748b;

  font-size: 12px;
  line-height: 1.1;

  white-space: nowrap;
}

/* 색상막대 + 숫자 */

.radar-rain-legend-body {
  display: flex;
  align-items: stretch;
  justify-content: center;

  height: 144px;
}

/* ---------------------------------------------------------
   불연속 8단계 색상막대
   --------------------------------------------------------- */

.radar-rain-steps {
  display: flex;
  flex: 0 0 10px;
  flex-direction: column;

  width: 10px;
  height: 144px;

  overflow: hidden;

  border-radius: 3px;

  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.radar-rain-steps .rv-step {
  display: block;

  flex: 0 0 18px;

  width: 10px;
  height: 18px;
}

/*
 * 강한 강수 → 약한 강수
 */

.radar-rain-steps .rv-8 {
  background: #ffaaff;
}

.radar-rain-steps .rv-7 {
  background: #c10000;
}

.radar-rain-steps .rv-6 {
  background: #e62800;
}

.radar-rain-steps .rv-5 {
  background: #ff8100;
}

.radar-rain-steps .rv-4 {
  background: #ffb700;
}

.radar-rain-steps .rv-3 {
  background: #85bf00;
}

.radar-rain-steps .rv-2 {
  background: #0088bf;
}

.radar-rain-steps .rv-1 {
  background: #36bae5;
}

/* ---------------------------------------------------------
   숫자
   --------------------------------------------------------- */

.radar-rain-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 144px;

  margin-left: 3px;

  color: #334155;

  font-size: 12px;
  line-height: 1;

  font-variant-numeric: tabular-nums;
}

.radar-rain-labels span {
  display: flex;
  align-items: center;

  height: 18px;

  white-space: nowrap;
}

/* 하단 설명 */

.radar-rain-legend-note {
  margin-top: 4px;

  padding-top: 3px;

  border-top: 1px solid rgba(15, 23, 42, 0.06);

  color: #94a3b8;

  font-size: 12px;
  line-height: 1.15;

  text-align: center;

  white-space: nowrap;
}

/* =========================================================
   Radar Controls
   ========================================================= */

.radar-controls {
  display: grid;

  grid-template-columns:
    38px
    88px
    38px
    minmax(90px, 1fr);

  align-items: center;

  gap: 7px;

  margin-top: 10px;

  padding: 7px;

  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;

  background: #f8fafc;
}

/* 이전 / 다음 */

.radar-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 36px;

  padding: 0;

  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;

  background: linear-gradient(180deg, #ffffff, #f8fafc);

  color: #334155;

  font: inherit;
  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease,
    box-shadow 0.12s ease;
}

.radar-control-btn:hover {
  border-color: rgba(37, 99, 235, 0.28);

  background: #ffffff;

  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);

  transform: translateY(-1px);
}

.radar-control-btn:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   재생 버튼
   --------------------------------------------------------- */

.radar-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 88px;
  height: 36px;

  padding: 0 13px;

  border: 0;
  border-radius: 10px;

  background: linear-gradient(135deg, #1e293b, #0f172a);

  color: #ffffff;

  font: inherit;
  font-size: 12px;
  font-weight: 800;

  letter-spacing: -0.01em;

  cursor: pointer;

  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);

  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease;
}

.radar-play-btn:hover {
  transform: translateY(-1px);

  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.radar-play-btn:active {
  transform: translateY(0);
}

.radar-play-btn.is-playing {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);

  box-shadow: 0 5px 13px rgba(37, 99, 235, 0.23);
}

/* ---------------------------------------------------------
   Slider
   --------------------------------------------------------- */

.radar-slider {
  width: 100%;
  height: 4px;

  accent-color: #2563eb;

  cursor: pointer;
}

/* ---------------------------------------------------------
   설명
   --------------------------------------------------------- */

.radar-description {
  margin-top: 8px;

  color: #94a3b8;

  text-align: center;

  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   Mobile Radar
   ========================================================= */

@media (max-width: 600px) {
  .radar-map {
    height: 285px;
  }

  .radar-controls {
    grid-template-columns:
      38px
      minmax(82px, 1fr)
      38px;
  }

  .radar-play-btn {
    width: 100%;
  }

  .radar-slider {
    grid-column: 1 / -1;

    margin: 3px 2px 1px;
  }

  /*
   * 모바일 범례는 더 슬림하게
   */

  .radar-rain-legend {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    margin-top: 40px !important;
    margin-right: 4px !important;

    padding: 6px 3px 5px !important;
  }

  .radar-rain-legend-body {
    height: 128px;
  }

  .radar-rain-steps {
    flex-basis: 9px;

    width: 9px;
    height: 128px;
  }

  .radar-rain-steps .rv-step {
    flex-basis: 16px;

    width: 9px;
    height: 16px;
  }

  .radar-rain-labels {
    height: 128px;

    margin-left: 2px;

    font-size: 12px;
  }

  .radar-rain-labels span {
    height: 16px;
  }
}
