
.search-main-col{flex: 1; min-width: 0;}
.spclz-card{display: none; position: relative; width: 100%; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 20px; padding: 24px; background: #fff; overflow: hidden;}
.spclz-card.is-visible{display: flex; flex-direction: column; }

.spclz-card-header{display: flex; align-items: center; flex: 0 0 auto; min-height: 3.6rem; gap: 0.8rem;}
.spclz-badge{display: inline-block; flex: 0 0 auto; padding: 0.4rem 1.2rem; font-size: 15px; font-weight: 600; color: var(--search-primary); background: #ECF2FE; border-radius: 2rem; letter-spacing: 0.5px; white-space: nowrap;}

.spclz-card-title{flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.spclz-card-toggle{flex: 0 0 auto; width: 28px; height: 28px; padding: 0; font-size: 12px; line-height: 28px; text-align: center; color: #6b7280; background: transparent; border: 1px solid #e5e7eb; border-radius: 50%; cursor: pointer; position: relative; margin-left: auto;}
.spclz-card-toggle:hover{color: #2c3e50; background: #f3f4f6;}
.spclz-card-toggle[aria-expanded="true"]::before{content: "\25B2";}
.spclz-card-toggle[aria-expanded="false"]::before{content: "\25BC";}

.spclz-card-body{flex: 1 1 auto; min-height: 0; padding-right: 4px; overflow: hidden;}

.spclz-card.is-collapsed .spclz-card-body{max-height: 0; overflow: hidden; padding:0; opacity: 0;}

@media (prefers-reduced-motion: reduce){
   .spclz-card-body{transition: none !important;}
}

.spclz-card.spclz-layout-t2 .spclz-card-body{max-height: none; overflow: hidden;}
.spclz-title{font-size: 2.4rem; font-weight: 700; color: #2c3e50; margin: 0 0 2rem 0; word-break: break-word;}
.spclz-smry{font-size: 1.6rem; color: #464C53; line-height: 1.6; margin-bottom: 2rem; word-break: break-word; overflow-wrap: anywhere;}
.spclz-tel{font-size: 15px; font-weight: 600; color: #2c3e50; margin-bottom: 10px;}
.spclz-sites{list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px;}
.spclz-sites li a{display: inline-block; padding: 0.4rem 1.2rem; font-size: 1.5rem; color: #3498db; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 2rem ; text-decoration: none; word-break: break-all;}
.spclz-sites li a::before{content:""; display:inline-block; vertical-align: middle; width:2rem; height:2rem; margin-right:0.4rem; background:url("../../images/mecsearch/content/cont_img03.svg") no-repeat 50% 50% / auto;}
.spclz-sites li a:hover{border-color:#3498db;}

.spclz-subimg-item{overflow: hidden; border-radius: 0.6rem; cursor: pointer; background: #f8fafc; border: 1px solid #e5e7eb;}
.spclz-subimg-item a{display: flex; width: 100%; padding-top:50%; color: #fff; text-decoration: none;}
.spclz-subimg-item img{width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; background: #f8fafc;}
.spclz-subimg-fallback{display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; padding: 2rem; font-size: 1.7rem; line-height: 1.45; text-align: center; word-break: keep-all; overflow-wrap: anywhere;}
.spclz-subimg-item:hover img{opacity: 0.85;}
.spclz-main-img{width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; background: #ddd;}
.spclz-thumb{width: 92px; height: 72px; object-fit: cover; border-radius: 4px; margin-bottom: 14px; display: block;}

/* T1: 이미지형 */
.spclz-t1{padding-top:2.4rem; overflow: hidden;}
.spclz-t1-img{float:left; width:50%; height:31.7rem; margin-right:2.4rem; margin-bottom:2rem; overflow: hidden; border-radius: 4px; background: #f8fafc;}
.spclz-t1-text{min-width: 0;}
.spclz-t1-subs{display: flex; gap: 8px; width:100%; margin-top:2.4rem; padding-top:2.4rem; border-top:1px solid #CDD1D5; overflow-x: auto;}
.spclz-t1-subs .spclz-subimg-item{position:relative; width:calc(33.3% - 0.4rem);}
.spclz-t1-subs .spclz-subimg-item::after{content:""; display:block; position:absolute; top:0; bottom:0; width:100%; height:100%; background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.70) 100%);}

/* T2: 반이미지형 */
.spclz-t2{display: grid; grid-template-rows: minmax(200px, 260px) auto; gap: 16px; min-height: 0;     padding-top: 2.4rem;}
.spclz-t2-img{overflow: hidden; border-radius: 4px; background: #f8fafc;}
.spclz-t2-bottom{display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 16px; min-height: 0;}
.spclz-t2-text{overflow: visible; min-width: 0;}
.spclz-t2-subs{display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 8px; overflow: visible;}
.spclz-t2-subs .spclz-subimg-item{width: 100%; min-height: 0; aspect-ratio: 4 / 3;}

/* T3: 텍스트형 + 서브이미지 2열형 */
.spclz-t3{display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-top: 2.4rem;}
.spclz-t3-text{overflow: visible; min-width: 0;}
.spclz-t3-no-subs{display: block; min-height: 0; max-width: 720px;}
.spclz-t3-no-subs .spclz-title{font-size: 22px; margin-bottom: 12px;}
.spclz-t3-no-subs .spclz-smry{font-size: 15px; line-height: 1.7;}
.spclz-t3-no-subs .spclz-tel{font-size: 16px;}
.spclz-t3-subs{display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 8px; overflow: auto;}
.spclz-t3-subs .spclz-subimg-item{width: 100%; aspect-ratio: 16 / 10;}

/* 모바일: 전체를 하나의 1열로 펼치기 */
@media (max-width: 1024px){
   /* 헤더 높이 줄어들면 max-height도 줄여주기 */
   .spclz-t1{grid-template-columns: 1fr;grid-template-rows: 200px auto auto;grid-template-areas:"t1-img" "t1-text""t1-subs";}
   .spclz-t2{grid-template-rows: minmax(180px, 220px) auto;}
   .spclz-t2-bottom{grid-template-columns: 1fr;}
   .spclz-t2-subs{grid-template-columns: repeat(4, minmax(0, 1fr));}
   .spclz-t3{grid-template-columns: 1fr;grid-template-rows: auto auto;min-height: 0;}
   .spclz-t3-subs{grid-auto-rows: minmax(130px, auto);}
}

@media (max-width: 768px){
   .spclz-card{padding: 16px;}

   .spclz-t2-subs .spclz-subimg-item{min-height: 0;}

   .spclz-t1-img{float:none; width:100%;}

}
