/* ==========================================================================
   Typology Cards Grid & Shape Cards (Modern Museum Display)
   ========================================================================== */
.type-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 14px;
}

.type-shape-card {
  background: #ffffff;
  border: 1px solid rgba(153, 101, 21, 0.22);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(45, 35, 20, 0.04);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.type-shape-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 35, 20, 0.10);
  border-color: rgba(153, 101, 21, 0.45);
}

.type-shape-topbar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.type-shape-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fbf5ea;
  border: 1px solid rgba(153, 101, 21, 0.25);
  color: #996515;
}

.type-shape-title {
  font-family: 'Playfair Display', 'MainTitle', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2b1f13;
  margin: 0 0 12px 0;
}

.type-scan-box {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf7f2;
  border: 1px solid rgba(153, 101, 21, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.type-shape-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.type-shape-body {
  margin-bottom: 14px;
  flex: 1 1 auto;
}

.type-shape-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4a3e2f;
  margin: 0;
}

.type-shape-footer {
  margin-top: auto;
}

.type-btn-search,
#layoutBodyContent a.type-btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c4520 !important;
  background: #fbf5ea;
  border: 1px solid rgba(153, 101, 21, 0.28);
  box-sizing: border-box;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.type-btn-search:hover {
  background: #996515;
  border-color: #996515;
  color: #ffffff !important;
}

.type-btn-search svg {
  stroke: currentColor;
}

/* Table Card & Cell Styling */
.searchresult-table {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(153, 101, 21, 0.2);
}

.searchresult-table thead tr th {
  background: linear-gradient(180deg, #f0dfb8 0%, #d8b875 100%);
  color: #2f2318;
  font-weight: 700;
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(153, 101, 21, 0.25);
}

.searchresult-table tbody tr td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(153, 101, 21, 0.08);
  font-size: 13px;
}

.searchresult-table tbody tr:nth-child(even) {
  background: #faf6f0;
}

.searchresult-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.searchresult-table tbody tr:hover {
  background: #f5ede0;
}

/* Pagination Windowing */
.pagination strong.current-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: #996515;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid #7d5210;
}

.pagination .pagination-ellipsis {
  padding: 0 4px;
  color: #7a6652;
}

.pagination a.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  background: #ffffff;
  color: #2c1e10;
  border: 1px solid rgba(153, 101, 21, 0.22);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pagination a.page-link:hover {
  background: #fbf5ea;
  border-color: #996515;
  color: #996515;
}

@media (max-width: 768px) {
  .search-filters-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .type-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
