/* === icon base (from core_icon.css) === */
.svg-icon {
  width: 100%;
  height: 100%;
  transition: 0.4s ease-in-out;
  display: inline-flex;
  background-color: transparent;
}

.krds-btn.icon .svg-icon {
  background-color: transparent;
}

/* === expand icons (from core_icon.css) === */
.icon.expend-plus {
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  background: url("/static/mrb_gis/images/common/ico/ico-collapse_plus.svg") center;
}

.icon.expend-minus {
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  background: url("/static/mrb_gis/images/common/ico/ico-collapse_minus.svg") center;
}

/* === layer icon sizing (from sys_mrb.css) === */
.layer-group-wrapper .krds-btn.icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  cursor: pointer;
}

.layer-header .krds-btn.icon .svg-icon {
  width: 100%;
  height: 100%;
}

/* === layer icons (from sys_mrb.css) === */
.svg-icon.layer-eye {
  min-width: 1.6rem;
  min-height: 1.6rem;
  background: url("/static/mrb_gis/images/MRB/icons/ico-eye-open-white.svg") no-repeat center;
  background-size: 1.6rem !important;
}

.svg-icon.layer-magic {
  background: url("/static/mrb_gis/images/MRB/icons/ico-magic-stick.svg") no-repeat center;
}

.svg-icon.layer-tag {
  background: url("/static/mrb_gis/images/MRB/icons/ico-tag-white.svg") no-repeat center;
}

/* === hover/active swap (from sys_mrb.css) === */
.krds-btn.layer-eye.active .svg-icon {
  background: url("/static/mrb_gis/images/MRB/icons/ico-eye-closed.svg") no-repeat center;
}

.krds-btn.layer-magic:hover .svg-icon,
.krds-btn.layer-magic.active .svg-icon {
  background: url("/static/mrb_gis/images/MRB/icons/ico-magic-stick-white.svg") no-repeat center;
}

.krds-btn.layer-tag.active .svg-icon {
  background: url("/static/mrb_gis/images/MRB/icons/ico-prohibition.svg") no-repeat center;
}

/* layer header layout */
.layer-group.has-header .layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 0.8rem;
}

.layer-header-label {
  display: flex;
  align-items: center;
  column-gap: 0.8rem;
  width: 100%;
}

/* 텍스트 길이 보장용 (오른쪽 버튼 공간 확보) */
.layer-header-label.width-type-1 { width: calc(100% - 145px); }
.layer-header-label.width-type-2 { width: calc(100% - 100px); }
.layer-header-label.width-type-3 { width: calc(100% - 50px); }

.layer-button-group {
  display: flex;
  align-items: center;
  column-gap: 0.8rem;
}

.layer-group-wrapper .krds-btn.icon {
  width: 16px;
  height: 16px;
  border-radius: 0;
  cursor: pointer;
}

/* + 버튼 hover 시 화살표 */
.krds-btn.expand_btn:hover .svg-icon,
.krds-btn.expand_btn.is-active .svg-icon {
  background: url("/static/mrb_gis/images/common/ico/arrow16-white.svg") no-repeat center;
}

.layer-header-label .ellipsis-1 {
  font-size: 14px;
  font-weight: 400;
  color: #B1B8BE;
}

/* Gallery recipe detail tweaks */
#recipeDetailModal .modal-header .modal-title {
  font-size: 18px;
}

#recipeDetailModal #recipeDetailModalTitle {
  font-size: 18px !important;
}

#recipeDetailModal .modal-conts .layer-group.has-header {
  background-color: #1E2124;
  padding: 8px 12px;
  border-radius: 6px;
  box-sizing: border-box;
}

#recipeDetailModal .modal-conts .layer-group.has-header .layer-header {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

#recipeDetailModal .modal-conts .layer-group .layer-depth2 {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  background-color: #33363D;
  border-radius: 6px;
  box-sizing: border-box;
  transition: max-height 0.25s ease-out, opacity 0.2s ease-out, margin 0.25s ease-out, padding 0.25s ease-out;
}

#recipeDetailModal .modal-conts .layer-group.is-open .layer-depth2 {
  max-height: 800px;
  opacity: 1;
  margin-top: 6px;
  padding: 8px 12px;
}

/* 배지 색상 맞춤 */
.krds-badge.bg-royal-light-blue {
  background-color: #3B82F6;
  color: #FFFFFF;
}

.krds-badge.bg-light-point {
  background-color: #DA2576;
  color: #FFFFFF;
}

.krds-badge.bg-light-secondary {
  background-color: #D2761A;
  color: #FFFFFF;
}

/* 숨김 아이콘도 보이기 아이콘으로 강제 */
.svg-icon.layer-eye-slash {
  min-width: 1.6rem;
  min-height: 1.6rem;
  background: url("/static/mrb_gis/images/MRB/icons/ico-eye-open-white.svg") no-repeat center;
  background-size: 1.6rem !important;
}
