/* ============== GRID & CARD ============== */
.crea-ddf-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:20px;
}
.crea-ddf-card{
  border:1px solid #e2e8f0;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}

/* ============== IMAGE (16:9 like reference) ============== */
.crea-ddf-thumb{
  display:block;
  position:relative;
  padding-top:56.25%; /* 16:9 */
  z-index:1;
}
.crea-ddf-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ==== BODY AREA UNDER IMAGE ==== */
.crea-ddf-body{
  padding:18px 20px;           /* more padding inside */
  margin-top:30px;              /* push body down from the image */
  position:relative;
  z-index:2;
  min-height:200px;            /* give each card body a baseline height */
}

/* ==== TITLE – still smaller & lighter ==== */
.crea-ddf-title,
.crea-ddf-title a{
  display:block !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  max-height:none !important;
  line-height:1.4 !important;
  -webkit-line-clamp:unset !important;
  -webkit-box-orient:initial !important;
}

.crea-ddf-title{
  margin:.5rem 0 8px;          /* more space above and below */
  font-size:15px !important;   /* slightly smaller */
  font-weight:600 !important;
  padding: 10px 0px 0px 0px;
  letter-spacing:.2px;
  text-transform:uppercase;
  position:relative;
  z-index:3;
}
.crea-ddf-title a{
  color:#111 !important;
  text-decoration:none !important;
  word-break:break-word;
}

/* ==== LINES ==== */
.crea-ddf-line{
  font-size:14px;
  font-weight:400;
  color:#000;
  margin:0 0 6px;
  line-height:1.45;
}

/* ============== MISC HIDDEN FIELDS ============== */
.crea-ddf-meta,.crea-ddf-specs,.crea-ddf-status{display:none}

/* ============== PAGINATION ============== */
.crea-ddf-paging{margin-top:1rem;text-align:center}
.crea-ddf-paging .button{margin:0 .25rem}

/* ============== WRAP & ERROR ============== */
.crea-ddf-wrap{max-width:1200px;margin:0 auto;padding:1rem}
.crea-ddf-error{
  padding:1rem;border:1px solid #fecaca;background:#fff1f2;
  border-radius:8px;color:#7f1d1d;
}

/* ============== SEARCH / FILTER FORM ============== */
.crea-ddf-search{
  display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;max-width:100%
}
.crea-ddf-search input,
.crea-ddf-search button{
  padding:.6rem .7rem;border:1px solid #cbd5e1;border-radius:6px
}
.crea-ddf-search input{min-width:0}
.crea-ddf-search button{
  border:1px solid #94a3b8;background:#f8fafc;cursor:pointer
}
/* Hover/focus: make button text white */
.crea-ddf-search button:hover,
.crea-ddf-search button:focus{color:#fff !important}

/* ============== RESPONSIVE ============== */
@media (max-width: 640px){
  .crea-ddf-search{display:grid;grid-template-columns:1fr;gap:.5rem}
  .crea-ddf-search input,
  .crea-ddf-search button{width:100%}
}
@media (min-width:641px) and (max-width:840px){
  .crea-ddf-search{flex-wrap:wrap}
  .crea-ddf-search input{flex:1 1 180px}
  .crea-ddf-search button{flex:0 0 auto}
}

/* ====== Filter UI ====== */
.crea-filters{
  display:grid; grid-template-columns: 340px 1fr; gap:24px; align-items:start; margin-bottom:18px;
}
.crea-filters__left{ min-width:0; }
.crea-label{ display:block; font-weight:600; margin-bottom:8px; }
.crea-area-list{
  max-height:330px; overflow:auto; border:1px solid #e2e8f0; border-radius:8px; padding:8px 10px; background:#fff;
}
.crea-area-row{ display:flex; align-items:center; gap:10px; padding:6px 4px; }
.crea-area-row input{ width:16px; height:16px; }
.crea-area-actions{ margin-top:6px; }
.crea-link{ background:none; border:0; padding:0; color:#2563eb; cursor:pointer; }

.crea-filters__right{ display:grid; grid-template-columns: repeat(2,minmax(220px,1fr)); gap:16px 24px; }
.crea-field input[type="range"]{ width:100%; }
.crea-range-pair{ display:grid; grid-template-columns: 1fr 60px; align-items:center; gap:10px; }
.crea-actions{ grid-column:1 / -1; }

/* ===== Filter Panel (boxed, two columns) ===== */
.crea-filter-panel{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:28px;
  border:1px solid #d1d5db;
  border-radius:8px;
  padding:18px 20px;
  background:#fff;
  margin-bottom:18px;
}

.crea-panel-left{ min-width:0; }
.crea-label{ display:block; font-weight:600; margin:2px 0 8px; }

.crea-area-list{
  max-height:340px;
  overflow:auto;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  padding:8px 10px;
}
.crea-area-row{ display:flex; align-items:center; gap:10px; padding:6px 4px; }
.crea-area-row input{ width:16px; height:16px; }
.crea-area-actions{ margin-top:8px; color:#6b7280; }
.crea-link{ background:none; border:0; padding:0; color:#2563eb; cursor:pointer; }

.crea-panel-right{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
.crea-field{
  display:grid;
  grid-template-columns: 180px 1fr;
  align-items:center;
  gap:16px;
}
.crea-field-label{ color:#111827; }
.crea-field-ctrl select{ min-width:260px; }
.crea-range-pair{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.crea-hint{ margin-top:6px; color:#6b7280; font-size:13px; }
.crea-actions{ margin-top:4px; }

.crea-filter-note{ margin-top:14px; color:#4b5563; }

/* responsive */
@media (max-width: 860px){
  .crea-filter-panel{ grid-template-columns: 1fr; }
  .crea-field{ grid-template-columns: 1fr; }
}

