/* ==========================================================================
   TETRA-BUTE BLOCK STYLES
   ========================================================================== */

.c-tetra-bute-block {
  padding: 0;
  position: relative;
  z-index: 10; 
}

/* ==========================================================================
   PROVINCE FILTERS
   ========================================================================== */

.c-tetra-bute-filters {
  max-width: 1400px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

/* Centralized tooltip display */
.c-province-tooltip-display {
  text-align: center;
  margin-bottom: 30px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-province-tooltip-text {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(10px);
  display: inline-block;
  min-width: 120px;
}

.c-province-tooltip-text.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-filters-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 30px;
  color: #333;
  font-weight: 300;
}

.c-province-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.c-province-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
  color: #293e46;
  position: relative;
}

.c-province-filter:focus, .c-province-filter:focus-visible {
  outline: none;
}

.c-province-filter:hover {
  transform: translateY(-3px);
}

.c-province-filter.active {

  color: #89adbe;
  transform: translateY(-3px);

}

.c-province-svg {
  width: auto;
  height: 130px;
  transition: all 0.3s ease;
}

.c-province-filter:nth-of-type(2) .c-province-svg {
  height: 95px;
  position: relative;
left: -19px;
  top: 36px;
}

.c-province-filter:nth-of-type(3) .c-province-svg {
  height: 99px;
  position: relative;
  left: -17px;
  top: 34px;
}

.c-province-filter:nth-of-type(4) .c-province-svg {
height: 96px;
  position: relative;
  left: -18px;
  top: 35px;
}

.c-province-filter:hover .c-province-svg {
  transform: scale(1.1);
}

.c-province-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  display: none;
}

/* Clear Filters */
.c-clear-filters-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-clear-filters-container.show {
  opacity: 1;
  transform: translateY(0);
}

.c-clear-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 8px 16px;
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.c-clear-filters:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
  transform: translateY(-1px);
}

.c-clear-filters-icon {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.7;
}

/* Tooltip styles for province filters */
/* Removed individual tooltips - now using centralized display */

/* Filter animation states */
.c-tetra-bute-item {
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-tetra-bute-item.filtered-out {
  /* Items will be positioned off-screen by JavaScript */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.c-tetra-bute-item.filtered-in {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Animation for items being shown */
.c-tetra-bute-item.filter-animate-in {
  animation: filterIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes filterIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* No Results Message */
.c-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  margin: 40px 0;
}

.c-no-results-content {
  max-width: 500px;
  margin: 0 auto;
}

.c-no-results h3 {
  font-size: 1.75rem;
  color: #666;
  margin-bottom: 15px;
  font-weight: 300;
}

.c-no-results p {
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
}

.c-tetra-bute-intro {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.c-tetra-bute-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.c-tetra-bute-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
}

.c-tetra-bute-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
  
  /* Masonry Layout - using absolute positioning */
  display: block;
  width: 100%;
}

.c-tetra-bute-item {
  box-sizing: border-box;
  
  /* Will be positioned by JavaScript */
  position: relative;
  width: 100%;
}

.c-tetra-bute-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-tetra-bute-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.c-tetra-bute-left {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-tetra-bute-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  height: 80px;
  align-items: center;
}

.c-tetra-bute-logo img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.c-tetra-bute-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
  font-weight: 400;
}

.c-tetra-bute-content p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.c-tetra-bute-link {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #88aebd 0%, #9b9477 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 auto;
  display: block;
  width: fit-content;
  font-size: 14px;
}

.c-tetra-bute-link:hover {
  background: linear-gradient(135deg, #7a9fb0 0%, #8a8369 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: white;
  text-decoration: none;
}

/* Removed staff section styles - no longer needed */

/* Custom brand color support */
.c-tetra-bute-item[data-brand-color] .c-tetra-bute-link {
  background: var(--brand-color, linear-gradient(135deg, #88aebd 0%, #9b9477 100%));
}



/* Admin/Preview Styles */
.c-tetra-bute-placeholder {
  padding: 60px 40px;
  text-align: center;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: #6c757d;
}

.c-tetra-bute-placeholder h3 {
  margin-bottom: 10px;
  color: #495057;
}

/* End of Tetra-Bute styles */
@media (max-width: 768px) {
 .c-tetra-bute-grid {
  padding: 0;
 }
}