/* /resources/css/gis/gis-favorites.css */
/*
 * 예측지도 — 관심지역 칩 목록 (gis-favorites.js)
 * 출처: vworld-demo static/css/style.css 를 기능별로 나눈 것. 규칙 본문은 원본 그대로이고,
 * FRPS 에서 고친 곳은 "FRPS 보정" 주석을 단다.
 */

/* favorites */
/* 헤더 내 즐겨찾기 칩 목록 */
.favorites-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 칩 앞에는 노란 별 아이콘을 넣어 관심지역 목록이라는 걸 바로 보여주고(상세 패널의 별 버튼과
   같은 모양), 해제(×)는 20px 원형 버튼으로 키워 누르기 쉽게 했다. 칩 전체가 지역 이동 클릭
   영역이라(gis-favorites.js renderFavoritesChips) 마우스를 올리면 칩 배경이 조금 밝아진다. */
.favorite-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 4px 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.favorite-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.favorite-chip-star {
    display: block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.favorite-chip-star path {
    fill: #fbbf24;
    stroke: #fbbf24;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.favorite-chip-remove {
    width: 20px;
    height: 20px;
    margin-left: 1px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.favorite-chip-remove:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

.favorite-chip-remove-icon {
    display: block;
    width: 10px;
    height: 10px;
}

.favorite-chip-remove-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* FRPS 보정 — 원본 칩은 어두운 헤더(#1f2937) 위에 흰 글씨였다. 지도 화면은 밝은 도구줄에 놓이므로
 * 글자·테두리·배경만 밝은 바탕용으로 바꾼다(모양·크기는 원본 그대로) */
.map-toolbar .favorite-chip {
    border-color: #cfd8e3;
    background: #fff;
    color: #263747;
}

.map-toolbar .favorite-chip:hover {
    background: #eef3f8;
    border-color: #b6c3d1;
}

.map-toolbar .favorite-chip-remove {
    color: #8a94a3;
}

.map-toolbar .favorite-chip-remove:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
