/* V187 — 단순 카드 배경 시스템
   전체 섹션 = 밝은 한지/백색
   카드 = 배경색 + 문양 1개(background-image)
   아이콘/텍스트 = HTML
*/

/* ---------- 공통 섹션 ---------- */
.featured2-section,
.district-summary,
.all-temples-section{
  position:relative !important;
  box-sizing:border-box !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  overflow:hidden !important;
  margin-top:24px !important;
  padding:18px 18px 20px !important;
  border:1px solid #c8b18e !important;
  border-radius:22px !important;
  background:#fbf9f4 !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72) !important;
}
.featured2-section::before,
.featured2-section::after,
.district-summary::before,
.district-summary::after,
.all-temples-section::before,
.all-temples-section::after{
  display:none !important;
  content:none !important;
}

.featured2-section .section-head,
.district-summary .section-head,
.all-temples-section .section-head{
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  gap:14px !important;
  margin:0 2px 12px !important;
  padding:0 !important;
}
.featured2-section .section-head h2,
.district-summary .section-head h2,
.all-temples-section .section-head h2{
  margin:0 !important;
  font-size:28px !important;
  line-height:1.08 !important;
  font-weight:900 !important;
  letter-spacing:-.04em !important;
  color:#241d16 !important;
}
.featured2-section .section-head p,
.district-summary .section-head p,
.all-temples-section .section-head p{
  margin:0 0 2px !important;
  max-width:48% !important;
  font-size:12px !important;
  line-height:1.35 !important;
  font-weight:700 !important;
  text-align:right !important;
  color:#7b6b57 !important;
  background:transparent !important;
  padding:0 !important;
}

/* ---------- 카드 공통 ---------- */
#featuredList .rep2-card,
.district-card,
.all-temple-card{
  position:relative !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  border:1px solid #b48e58 !important;
  border-radius:10px !important;
  background-color:#fffdf8 !important;
  background-repeat:no-repeat !important;
  background-position:right 16px bottom 9px !important;
  background-size:76px auto !important;
  box-shadow:0 1px 2px rgba(77,55,28,.035) !important;
  color:inherit !important;
  text-decoration:none !important;
  transform:none !important;
}
#featuredList .rep2-card::before,
#featuredList .rep2-card::after,
.district-card::before,
.district-card::after,
.all-temple-card::before,
.all-temple-card::after{
  display:none !important;
  content:none !important;
}
#featuredList .rep2-card:hover,
.district-card:hover,
.all-temple-card:hover{
  border-color:#987744 !important;
  background-color:#fffaf1 !important;
  box-shadow:0 2px 7px rgba(72,50,20,.06) !important;
  transform:none !important;
}

/* 문양 7종: 카드 background-image만 교체 */
#featuredList .rep2-card:nth-child(7n+1),
.district-card:nth-child(7n+1),
.all-temple-card:nth-child(7n+1){background-image:url('assets/motifs/lotus.svg') !important}
#featuredList .rep2-card:nth-child(7n+2),
.district-card:nth-child(7n+2),
.all-temple-card:nth-child(7n+2){background-image:url('assets/motifs/cloud.svg') !important}
#featuredList .rep2-card:nth-child(7n+3),
.district-card:nth-child(7n+3),
.all-temple-card:nth-child(7n+3){background-image:url('assets/motifs/pine.svg') !important}
#featuredList .rep2-card:nth-child(7n+4),
.district-card:nth-child(7n+4),
.all-temple-card:nth-child(7n+4){background-image:url('assets/motifs/plum.svg') !important}
#featuredList .rep2-card:nth-child(7n+5),
.district-card:nth-child(7n+5),
.all-temple-card:nth-child(7n+5){background-image:url('assets/motifs/mountain.svg') !important}
#featuredList .rep2-card:nth-child(7n+6),
.district-card:nth-child(7n+6),
.all-temple-card:nth-child(7n+6){background-image:url('assets/motifs/medallion.svg') !important}
/* ---------- 대표사찰 ---------- */
#featuredList.rep2-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  margin:0 !important;
  padding:0 !important;
}
#featuredList .rep2-card{
  height:82px !important;
  min-height:82px !important;
  padding:0 !important;
  background-size:72px auto !important;
}
#featuredList .rep2-card-icon{
  position:absolute !important;
  left:16px !important;
  top:27px !important;
  width:28px !important;
  height:28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #ded1bb !important;
  border-radius:8px !important;
  background:#f8f3e9 !important;
  box-shadow:none !important;
}
#featuredList .rep2-card-icon .rep-temple-svg{
  width:21px !important;
  height:21px !important;
}
#featuredList .rep2-card-body{
  position:absolute !important;
  left:56px !important;
  right:104px !important;
  top:15px !important;
  margin:0 !important;
  padding:0 !important;
}
#featuredList .rep2-card-name{
  margin:0 0 5px !important;
  font-size:16px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#211b15 !important;
}
#featuredList .rep2-card-meta{
  margin:0 !important;
  font-size:10.5px !important;
  line-height:1.2 !important;
  font-weight:650 !important;
  color:#756754 !important;
}
#featuredList .rep2-card-link{
  display:inline-block !important;
  margin-top:7px !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:850 !important;
  color:#285e48 !important;
}
#featuredList .rep2-card-badge{
  position:absolute !important;
  top:7px !important;
  right:8px !important;
  z-index:3 !important;
  padding:3px 7px !important;
  border:1px solid #c9ad7b !important;
  border-radius:999px !important;
  background:#fffaf0 !important;
  color:#80613b !important;
  font-size:7px !important;
  line-height:1 !important;
}
#featuredList .rep2-card-motif,
#featuredList .rep2-card-corner{display:none !important}

/* ---------- 구별사찰 ---------- */
.district-cards{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:9px !important;
}
.district-card{
  min-height:82px !important;
  padding:14px 94px 14px 16px !important;
  background-size:60px auto !important;
  background-position:right 54px bottom 10px !important;
}
.district-card b{
  display:block !important;
  margin:0 0 5px !important;
  font-size:20px !important;
  line-height:1.05 !important;
  color:#211c16 !important;
}
.district-card small{
  font-size:11px !important;
  line-height:1.2 !important;
  color:#776d61 !important;
  font-weight:750 !important;
}
.district-card span{
  position:absolute !important;
  right:16px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  font-size:17px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#285e48 !important;
  background:transparent !important;
  padding:0 !important;
}

/* ---------- 서울 사찰 검색 ---------- */
.temple-search-wrap{margin:0 0 12px !important}
.temple-search-wrap input{
  width:100% !important;
  min-height:46px !important;
  padding:12px 14px !important;
  border:1px solid #d4c3a6 !important;
  border-radius:12px !important;
  background:#fffdfa !important;
  box-shadow:none !important;
  font-size:16px !important;
  color:#2a241d !important;
}
.all-temple-list{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
.all-temple-card{
  min-height:112px !important;
  padding:15px 104px 14px 16px !important;
  background-size:76px auto !important;
}
.all-temple-card b{
  display:block !important;
  font-size:22px !important;
  line-height:1.08 !important;
  color:#211c16 !important;
  letter-spacing:-.035em !important;
}
.all-temple-card span{
  display:block !important;
  margin-top:5px !important;
  font-size:12px !important;
  line-height:1.4 !important;
  color:#756a5e !important;
}
.all-temple-card .data-line{
  margin-top:9px !important;
  font-size:11px !important;
  line-height:1.35 !important;
  font-weight:850 !important;
  color:#285e48 !important;
}

@media(max-width:900px){
  .district-cards{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .featured2-section .section-head h2,
  .district-summary .section-head h2,
  .all-temples-section .section-head h2{font-size:25px !important}
}
@media(max-width:760px){
  .featured2-section,.district-summary,.all-temples-section{padding:15px !important;border-radius:18px !important}
  .featured2-section .section-head,.district-summary .section-head,.all-temples-section .section-head{
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:4px !important;
  }
  .featured2-section .section-head p,.district-summary .section-head p,.all-temples-section .section-head p{
    max-width:none !important;
    text-align:left !important;
  }
  #featuredList.rep2-grid,.all-temple-list{grid-template-columns:1fr !important}
  .district-cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

/* V189: 대표사찰 7개 카드 연한 연꽃색 통일 */
#featuredList .rep2-card{
  background-color:#fbf2f1 !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 1px 2px rgba(77,55,28,.04) !important;
}
#featuredList .rep2-card:hover{
  background-color:#f8ecea !important;
}

/* V190: 카드 영역별 기본색 통일 + 방문/가고싶어요 상태색 복원 */

/* 대표사찰 기본색: 연한 연꽃색 */
#featuredList .rep2-card{
  background-color:#fbf2f1 !important;
  border-color:#c39d73 !important;
}
#featuredList .rep2-card:hover{
  background-color:#f8ecea !important;
}

/* 구별 사찰: 연한 녹색으로 전체 통일 */
.district-card{
  background-color:#f2f7ef !important;
  border-color:#aebf9d !important;
}
.district-card:hover{
  background-color:#edf4e9 !important;
  border-color:#91aa7e !important;
}

/* 아래 개별사찰: 연한 크림/아이보리색으로 전체 통일 */
.all-temple-card{
  background-color:#fff8e9 !important;
  border-color:#cbb487 !important;
}
.all-temple-card:hover{
  background-color:#fff4de !important;
  border-color:#b99b61 !important;
}

/* 방문했어요: 적색계열 */
#featuredList .rep2-card.is-visited,
.all-temple-card.is-visited{
  background-color:#fbe9e6 !important;
  border-color:#d99b8f !important;
  box-shadow:inset 4px 0 0 #d86a58, 0 1px 2px rgba(77,55,28,.04) !important;
}
#featuredList .rep2-card.is-visited:hover,
.all-temple-card.is-visited:hover{
  background-color:#f8dfdb !important;
  border-color:#cf7f70 !important;
}

/* 가고싶어요: 노란색계열 */
#featuredList .rep2-card.is-wish,
.all-temple-card.is-wish{
  background-color:#fff6cf !important;
  border-color:#d8bf67 !important;
  box-shadow:inset 4px 0 0 #d8a92c, 0 1px 2px rgba(77,55,28,.04) !important;
}
#featuredList .rep2-card.is-wish:hover,
.all-temple-card.is-wish:hover{
  background-color:#fff0b9 !important;
  border-color:#cbaa43 !important;
}

/* 둘 다 체크: 연한 살구색 */
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited.is-wish{
  background-color:#fcebd8 !important;
  border-color:#d8a36e !important;
  box-shadow:inset 4px 0 0 #cf745b, 0 1px 2px rgba(77,55,28,.04) !important;
}


/* V191 — 상태색 분리 + 구별/개별 카드 색상 강화 */

/* 기본 대표사찰: 연꽃색 유지 */
#featuredList .rep2-card{
  background-color:#fbf2f1 !important;
}

/* 구별 사찰: 확실한 연녹색 */
.district-card{
  background-color:#edf5e8 !important;
}

/* 개별사찰: 확실한 크림/베이지 */
.all-temple-card{
  background-color:#f8efd9 !important;
}

/* 상태색은 background 전체가 아니라 색상만 변경.
   문양 background-image / size / position은 그대로 유지 */
#featuredList .rep2-card.is-visited,
.all-temple-card.is-visited{
  background-color:#f7d9d7 !important;
}
#featuredList .rep2-card.is-wish,
.all-temple-card.is-wish{
  background-color:#fff0b8 !important;
}
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited.is-wish{
  background-color:#f8dfc2 !important;
}

/* 혹시 구버전 규칙이 background shorthand로 상태를 덮는 경우 무효화 */
#featuredList .rep2-card.is-visited,
#featuredList .rep2-card.is-wish,
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited,
.all-temple-card.is-wish,
.all-temple-card.is-visited.is-wish{
  background-image: var(--card-motif-image, none) !important;
  background-repeat:no-repeat !important;
  background-position:right 18px bottom 10px !important;
  background-size:80px auto !important;
}

/* nth-child 문양을 상태 카드에서도 동일하게 유지 */
#featuredList .rep2-card:nth-child(7n+1),
.all-temple-card:nth-child(7n+1){
  --card-motif-image:url('assets/motifs/lotus.svg');
}
#featuredList .rep2-card:nth-child(7n+2),
.all-temple-card:nth-child(7n+2){
  --card-motif-image:url('assets/motifs/cloud.svg');
}
#featuredList .rep2-card:nth-child(7n+3),
.all-temple-card:nth-child(7n+3){
  --card-motif-image:url('assets/motifs/pine.svg');
}
#featuredList .rep2-card:nth-child(7n+4),
.all-temple-card:nth-child(7n+4){
  --card-motif-image:url('assets/motifs/plum.svg');
}
#featuredList .rep2-card:nth-child(7n+5),
.all-temple-card:nth-child(7n+5){
  --card-motif-image:url('assets/motifs/mountain.svg');
}
#featuredList .rep2-card:nth-child(7n+6),
.all-temple-card:nth-child(7n+6){
  --card-motif-image:url('assets/motifs/medallion.svg');
}
#featuredList .rep2-card:nth-child(7n+7),
.all-temple-card:nth-child(7n+7){
  --card-motif-image:url('assets/motifs197/traditional-round.svg');
}
#featuredList .rep2-card,
.all-temple-card{
  background-image:var(--card-motif-image, none) !important;
  background-repeat:no-repeat !important;
  background-position:right 18px bottom 10px !important;
  background-size:80px auto !important;
}

/* 구별사찰도 녹색 위에 문양 유지 */
.district-card{
  background-repeat:no-repeat !important;
  background-position:right 52px bottom 8px !important;
  background-size:64px auto !important;
}






/* V195 — 카드 장식을 JS 없이 background 레이어로 고정 */

/* 공통: 7종 문양 변수 */
#featuredList .rep2-card:nth-child(7n+1),
.all-temple-card:nth-child(7n+1),
.district-card:nth-child(7n+1){--motif:url('assets/motifs/lotus.svg')}
#featuredList .rep2-card:nth-child(7n+2),
.all-temple-card:nth-child(7n+2),
.district-card:nth-child(7n+2){--motif:url('assets/motifs/cloud.svg')}
#featuredList .rep2-card:nth-child(7n+3),
.all-temple-card:nth-child(7n+3),
.district-card:nth-child(7n+3){--motif:url('assets/motifs/pine.svg')}
#featuredList .rep2-card:nth-child(7n+4),
.all-temple-card:nth-child(7n+4),
.district-card:nth-child(7n+4){--motif:url('assets/motifs/plum.svg')}
#featuredList .rep2-card:nth-child(7n+5),
.all-temple-card:nth-child(7n+5),
.district-card:nth-child(7n+5){--motif:url('assets/motifs/mountain.svg')}
#featuredList .rep2-card:nth-child(7n+6),
.all-temple-card:nth-child(7n+6),
.district-card:nth-child(7n+6){--motif:url('assets/motifs/medallion.svg')}
#featuredList .rep2-card:nth-child(7n+7),
.all-temple-card:nth-child(7n+7),
.district-card:nth-child(7n+7){--motif:url('assets/motifs197/traditional-round.svg')}

/* 대표/개별/구별 모두 동일한 5중 배경:
   1) 카드 문양, 2~5) 네 모서리 문틀 */
#featuredList .rep2-card,
.all-temple-card,
.district-card{
  background-image:var(--motif) !important;
  background-repeat:no-repeat !important;
  background-size:80px auto !important;
  background-position:right 18px bottom 10px !important;
}

/* 구별카드는 오른쪽 숫자를 피해서 문양만 안쪽으로 */
.district-card{
  background-position:
    right 56px bottom 8px,
    left 5px top 5px,
    right 5px top 5px,
    left 5px bottom 5px,
    right 5px bottom 5px !important;
  background-size:
    64px auto,
    28px 28px,
    28px 28px,
    28px 28px,
    28px 28px !important;
}

/* 상태색은 background-color만 변경 */
#featuredList .rep2-card{background-color:#fbf2f1 !important}
.district-card{background-color:#edf5e8 !important}
.all-temple-card{background-color:#f8efd9 !important}

#featuredList .rep2-card.is-visited,
.all-temple-card.is-visited{background-color:#f7d9d7 !important}
#featuredList .rep2-card.is-wish,
.all-temple-card.is-wish{background-color:#fff0b8 !important}
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited.is-wish{background-color:#f8dfc2 !important}

/* 상태가 바뀌어도 5중 배경 장식은 유지 */
#featuredList .rep2-card.is-visited,
#featuredList .rep2-card.is-wish,
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited,
.all-temple-card.is-wish,
.all-temple-card.is-visited.is-wish{
  background-image:
    var(--motif),
    
    
    
     !important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat,no-repeat !important;
  background-size:
    80px auto,
    28px 28px,
    28px 28px,
    28px 28px,
    28px 28px !important;
  background-position:
    right 18px bottom 10px,
    left 5px top 5px,
    right 5px top 5px,
    left 5px bottom 5px,
    right 5px bottom 5px !important;
}


/* V197 — 아이콘 타일 제거 유지 */
#featuredList .rep2-card-icon{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
  width:28px !important;
  height:28px !important;
  padding:0 !important;
}
#featuredList .rep2-card-icon .rep-temple-svg{
  width:24px !important;
  height:24px !important;
  display:block !important;
}

/* 혹시 아이콘 배경용 래퍼가 남아 있어도 투명 처리 */
#featuredList .rep2-card-icon::before,
#featuredList .rep2-card-icon::after{
  display:none !important;
}

/* 코너 문양을 더 작고 얇게 */
#featuredList .rep2-card,
.all-temple-card,
.district-card{
  background-size:
    80px auto,
    22px 22px,
    22px 22px,
    22px 22px,
    22px 22px !important;
  background-position:
    right 18px bottom 10px,
    left 6px top 6px,
    right 6px top 6px,
    left 6px bottom 6px,
    right 6px bottom 6px !important;
}
.district-card{
  background-size:
    64px auto,
    22px 22px,
    22px 22px,
    22px 22px,
    22px 22px !important;
}

/* V197 — 문틀 장식 완전 제거 */
#featuredList .rep2-card,
.all-temple-card{
  background-image:var(--motif) !important;
  background-repeat:no-repeat !important;
  background-size:80px auto !important;
  background-position:right 18px bottom 10px !important;
}
.district-card{
  background-image:var(--motif) !important;
  background-repeat:no-repeat !important;
  background-size:64px auto !important;
  background-position:right 56px bottom 8px !important;
}

/* 방문/가고싶어요 상태에서도 문양만 유지 */
#featuredList .rep2-card.is-visited,
#featuredList .rep2-card.is-wish,
#featuredList .rep2-card.is-visited.is-wish,
.all-temple-card.is-visited,
.all-temple-card.is-wish,
.all-temple-card.is-visited.is-wish{
  background-image:var(--motif) !important;
  background-repeat:no-repeat !important;
  background-size:80px auto !important;
  background-position:right 18px bottom 10px !important;
}

/* V198 — 7번째 공장형 문양 완전 제거 */
#featuredList .rep2-card:nth-child(7n+7),
.all-temple-card:nth-child(7n+7),
.district-card:nth-child(7n+7){
  --motif:url('assets/motifs197/traditional-round.svg') !important;
  --card-motif-image:url('assets/motifs197/traditional-round.svg') !important;
}


/* V199 — 대표사찰 카드 아이콘 크기 확대 */
#featuredList .rep2-card-icon{
  width:36px !important;
  height:36px !important;
  left:14px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
#featuredList .rep2-card-icon .rep-temple-svg{
  width:32px !important;
  height:32px !important;
  display:block !important;
}
#featuredList .rep2-card-body{
  left:58px !important;
}


/* V200 — 방문 깃발 아이콘 흰 배경박스 제거 */
.card-state-wrap,
.card-state,
.visit-flag,
.visited-flag,
.wish-flag,
#featuredList .card-state-wrap,
#featuredList .card-state,
.all-temple-card .card-state-wrap,
.all-temple-card .card-state{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  border-radius:0 !important;
  padding:0 !important;
}

/* 버튼/래퍼가 따로 있는 경우까지 투명 처리 */
.card-state-wrap button,
.card-state button,
.visit-flag button,
.visited-flag button{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
}


/* V201 — 구별사찰 카드 전체 텍스트 정렬 통일 */
.district-card{
  position:relative !important;
  box-sizing:border-box !important;
  min-height:82px !important;
  padding:14px 88px 12px 16px !important;
  display:block !important;
}

/* 카드 안 텍스트 블록을 항상 동일 위치에 고정 */
.district-card > div,
.district-card .district-info{
  position:relative !important;
  left:auto !important;
  top:auto !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
}

/* 구 이름 */
.district-card strong,
.district-card .district-name,
.district-card h3{
  display:block !important;
  margin:0 0 4px 0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* 보조 텍스트 */
.district-card small,
.district-card .district-meta,
.district-card .sub{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}

/* 오른쪽 'N곳' 숫자 */
.district-card > span,
.district-card .district-count{
  position:absolute !important;
  right:16px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  z-index:4 !important;
}

/* 문양은 텍스트와 숫자 사이 아래쪽에 고정 */
.district-card{
  background-position:
    right 56px bottom 8px !important;
}


/* V202 — 실제 DOM 기준 구별사찰 정렬 + 깃발 흰박스 제거 */

/* 구별 사찰 카드 전체 정렬 */
.district-card{
  position:relative !important;
  box-sizing:border-box !important;
  min-height:82px !important;
  padding:14px 88px 12px 16px !important;
}

/* 실제 생성 구조: div > b + small */
.district-card > div{
  position:relative !important;
  margin:0 !important;
  padding:0 !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
}

.district-card > div > b{
  display:block !important;
  margin:0 0 4px 0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

.district-card > div > small{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}

/* 실제 오른쪽 개수 표시 span */
.district-card > span{
  position:absolute !important;
  right:16px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  z-index:4 !important;
}

/* 깃발 실제 아이콘 박스 자체 제거 */
.card-state-icon,
.card-state-icon.visited,
.card-state-icon.wish,
.card-state-icon.is-visited,
.card-state-icon.is-wish{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
  padding:0 !important;
}

/* 깃발 아이콘 내부/버튼도 투명 */
.card-state-icon button,
.card-state-icon span,
.card-state-icon i{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* 기존 바깥 래퍼도 투명 유지 */
.card-state-wrap,
.card-state{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
}


/* V203 — 7번째 카드 정렬 버그 + 깃발 복원 */

/* 구별 사찰은 항상 같은 flex 정렬 */
.district-card{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  position:relative !important;
  box-sizing:border-box !important;
  min-height:82px !important;
  padding:14px 88px 12px 16px !important;
}
.district-card > div{
  position:static !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  transform:none !important;
}
.district-card > div > b{
  display:block !important;
  margin:0 0 4px 0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:1.05 !important;
}
.district-card > div > small{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.district-card > span{
  position:absolute !important;
  right:16px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  margin:0 !important;
  padding:0 !important;
}

/* 상태 아이콘 바깥 박스만 투명 */
.card-state-icon.visited{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
}

/* 실제 깃발은 다시 보이게 */
.card-state-icon.visited .mini-flag-pole{
  position:absolute !important;
  left:9px !important;
  top:6px !important;
  width:3px !important;
  height:22px !important;
  background:#48624f !important;
  border-radius:2px !important;
  display:block !important;
}
.card-state-icon.visited .mini-flag-cloth{
  position:absolute !important;
  left:11px !important;
  top:6px !important;
  width:17px !important;
  height:13px !important;
  background:#df5848 !important;
  clip-path:polygon(0 0,100% 12%,76% 50%,100% 88%,0 100%) !important;
  display:block !important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.16)) !important;
}
