/* 모두잇길 1단계 핵심 장소 UI */

.region-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}


/* 직접 입력 + 찾기 */
.core-place-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
}

.core-place-find-btn {
  min-height: 54px;
  border: 1px solid #276b4d;
  border-radius: 12px;
  background: #276b4d;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.core-place-find-btn:hover {
  background: #1f5a40;
}


/* 검색 결과 / 저장 장소 목록 */
.core-place-result-panel {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #dbe6de;
  border-radius: 12px;
  background: #fff;
}

.saved-core-place-panel {
  border-color: #d1e3d4;
  background: #fbfdf9;
}


/* 목록 상단 */
.core-place-panel-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8eee9;
}

.core-place-panel-head strong {
  color: #203228;
  font-size: 13px;
}

.core-place-panel-head > span,
.core-place-panel-head > a {
  color: #60746a;
  font-size: 12px;
  text-decoration: none;
}


/* 장소 한 줄 */
.core-place-result-item {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf1ee;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.core-place-result-item:last-child {
  border-bottom: 0;
}


/* 선택된 장소 행 */
.core-place-result-item.is-selected {
  background: #f1f8e9;
}

.core-place-result-item.is-selected
.core-place-result-copy strong {
  color: #225f43;
}


/* 장소명 / 주소 */
.core-place-result-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.core-place-result-copy strong,
.core-place-result-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.core-place-result-copy strong {
  color: #203228;
  font-size: 13px;
}

.core-place-result-copy span {
  color: #75837b;
  font-size: 11px;
}


/* 선택 버튼 */
.core-place-add-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;

  border: 1px solid #bad0c0;
  border-radius: 9px;

  background: #fff;
  color: #276b4d;

  font-size: 12px;
  font-weight: 850;

  cursor: pointer;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.core-place-add-btn:hover {
  background: #f1f7f2;
}


/* 선택된 버튼 */
.core-place-add-btn.is-selected {
  border-color: #67ad45;
  background: #67ad45;
  color: #fff;
}

.core-place-add-btn.is-selected:hover {
  border-color: #5a9d3b;
  background: #5a9d3b;
}


/* 저장 장소 없음 */
.core-place-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 18px 14px;

  color: #6c7d74;
  font-size: 12px;
}

.core-place-empty a {
  color: #276b4d;
  font-weight: 800;
}


/* 태블릿 */
@media (max-width: 1100px) {
  .region-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 모바일 */
@media (max-width: 680px) {
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-place-search-row {
    grid-template-columns: 1fr;
  }

  .core-place-result-item {
    align-items: stretch;
    flex-direction: column;
  }

  .core-place-add-btn {
    width: 100%;
  }
}