/* =========================
   KICS 메인 - 웨딩박람회 카드 리스트
   Target: #goods_wrap01 .goods01
   ========================= */

:root{
  --kics-bg: #ffffff;
  --kics-text: #111827;        /* slate-900 */
  --kics-subtext: #4b5563;     /* slate-600 */
  --kics-muted: #6b7280;       /* slate-500 */
  --kics-border: #e5e7eb;      /* gray-200 */
  --kics-shadow: 0 10px 25px rgba(0,0,0,0.08);
  --kics-shadow-hover: 0 16px 40px rgba(0,0,0,0.12);
  --kics-radius: 16px;
  --kics-accent: #2563eb;      /* blue-600 */
  --kics-accent2: #f43f5e;     /* rose-500 */
  --kics-chip-bg: #f9fafb;     /* gray-50 */
}

/* Wrap */
#goods_wrap01{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 24px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Card */
#goods_wrap01 .goods01{
  background: var(--kics-bg);
  border: 1px solid var(--kics-border);
  border-radius: var(--kics-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 100%;
}

#goods_wrap01 .goods01:hover{
  transform: translateY(-3px);
  box-shadow: var(--kics-shadow-hover);
  border-color: rgba(37,99,235,0.35);
}

/* Link full card */
#goods_wrap01 .goods01 > a{
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Title */
#goods_wrap01 .goods01 .title{
  padding: 14px 14px 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--kics-text);
  letter-spacing: -0.2px;

  /* 2줄 제한 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Thumbnail */
#goods_wrap01 .goods01 .thumb{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

#goods_wrap01 .goods01 .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  float: none !important; /* 원본 inline float 무력화 */
}

/* Info text */
#goods_wrap01 .goods01 .info{
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--kics-subtext);

  /* 2줄 제한 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date / Location area */
#goods_wrap01 .goods01 .date{
  margin: 0 14px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(244,63,94,0.06));
  color: var(--kics-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;

  display: flex;
  align-items: center;
  gap: 8px;
}

#goods_wrap01 .goods01 .date::before{
  content: "📅";
  font-size: 14px;
  line-height: 1;
}

#goods_wrap01 .goods01 .location{
  margin: 0 14px 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(37,99,235,0.25);
  border-radius: 12px;
  background: var(--kics-chip-bg);
  color: var(--kics-muted);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: -0.1px;
  word-break: keep-all;
}

/* Location line breaks look nicer */
#goods_wrap01 .goods01 .location br{
  content: "";
  display: block;
  margin: 2px 0;
}

/* Focus accessibility */
#goods_wrap01 .goods01 > a:focus{
  outline: 3px solid rgba(37,99,235,0.35);
  outline-offset: 2px;
  border-radius: var(--kics-radius);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1200px){
  #goods_wrap01{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  #goods_wrap01{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  #goods_wrap01 .goods01 .title{ font-size: 15px; }
}

@media (max-width: 540px){
  #goods_wrap01{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 12px 18px;
  }
  #goods_wrap01 .goods01{
    border-radius: 14px;
  }
}

/* =========================
   Optional: dark text on image readability helper
   (이미지 위 텍스트가 아니라면 생략 가능)
   ========================= */
/*
#goods_wrap01 .goods01 .thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.08));
}
*/