@charset "UTF-8";
/**
 * Variables i mixins compartits
 * Constel·lació Gaudí
 */
/* VERMELL

$color-type-contractista: #8B5A8D;
$color-type-gestor: #9B5687;
$color-type-societat: #000000;
$color-type-promotor: #AA5381;
$color-type-entitat: #B8577D;

$color-type-disseny-grafic: #C35576;
$color-type-interiorisme: #CD536F;
$color-type-installacions: #D4516D;
$color-type-historiografia: #DA5866;
$color-type-instruments-musicals: #DF5F5F;
$color-type-restauracio: #E46659;

$color-type-vitralleria: #E87056;
$color-type-escultura: #EB7A53;

$color-type-mobiliari: #E67E5C;
$color-type-tapisseria: #E38450;
$color-type-fusteria: #DF8A45;
$color-type-serralleria: #DB903A;

$color-type-forja: #D8932B;
$color-type-orfebreria: #D49838;
$color-type-metallisteria: #CF9D45;
$color-type-pintura: #CAA152;

$color-type-mestre-obres: #C5A55F;
$color-type-ceramica: #C0A96C;
$color-type-mosaics: #BBAD79;
$color-type-obra-pedra: #B6B186;
$color-type-ram-paleta: #B1B593;
$color-type-default: #6B8E6F;

*/
/*$color-intervention-10: #cabfab;
$color-intervention-15: #e7e7e7;
$color-intervention-40: #c29f8e;
$color-intervention-60: #883108;*/
/**
 * Estils per al component ConstelacioEdificis
 * Constel·lació Gaudí - Constel·lació d'Edificis
 */
.site-data {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: calc(var(--gap) * 1);
  padding-bottom: calc(var(--gap) * 1.5);
  color: #2c3e50;
  width: 100%;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}
.site-data.hidden {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  padding-bottom: 0;
}

.modal-active-indicator {
  position: absolute;
  right: 0px;
  width: var(--gap);
  height: var(--gap);
  cursor: pointer;
  pointer-events: none;
  transform: translateX(50%);
  opacity: 0;
  transition: top 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 10000;
}
.modal-active-indicator.is-visible {
  pointer-events: auto;
}

.modal-active-indicator-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: background-color 0.3s ease-out;
  background-color: #2c3e50 !important;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
.modal-active-indicator-front::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-color: #fff;
  -webkit-mask-image: url("../img/pictos/eye.svg");
  mask-image: url("../img/pictos/eye.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;
}
.modal-active-indicator-front::before {
  content: none;
}
.modal-active-indicator:has(.navigation-history-list:not(:empty)) .modal-active-indicator-front:hover::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 50%;
  border: 1px dashed #2c3e50;
  box-sizing: border-box;
  pointer-events: none;
  z-index: -1;
  animation: modalIndicatorRotate 10s linear infinite;
}
.modal-active-indicator.list-open .modal-active-indicator-front::after {
  -webkit-mask-image: url("../img/pictos/eye-minus.svg");
  mask-image: url("../img/pictos/eye-minus.svg");
}

@keyframes modalIndicatorRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.active-filters-display {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.active-filters-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-start;
}
.active-filters-row.relations {
  flex-direction: row;
}
.active-filters-row .active-filters-group {
  display: flex;
  gap: calc(var(--gap) * 0.6);
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.active-filters-row .active-filters-group.active-filters-group--actors {
  gap: 0.3rem;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}
.active-filters-row .active-filters-group.active-filters-group--filters {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-left: calc(var(--gap) * 0.8);
}

.active-filters-title {
  font-size: 0.65rem;
  color: #2c3e50;
  margin-right: 0.3rem;
  width: 100%;
}

.active-filter-separator {
  display: none;
}

body:has(#detail-modal.active) .modal-trigger-btn {
  transform: translateX(150%) translateY(-50%);
}

.active-filter-tag,
.active-filter-link {
  line-height: 1.4;
  pointer-events: auto;
  width: 100%;
  position: relative;
}
.active-filter-tag.active-filter-tag--frozen-intervention-group,
.active-filter-link.active-filter-tag--frozen-intervention-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 0.2);
  padding-left: 0;
}
.active-filter-tag > div:first-child,
.active-filter-link > div:first-child {
  text-transform: uppercase;
  font-size: 0.65rem;
  line-height: 1.1;
  margin-bottom: 0 !important;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-right: var(--gap);
}
.active-filter-tag .intervention-group-items,
.active-filter-link .intervention-group-items {
  font-size: 0.8rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background-color 0.3s;
}
.active-filter-tag .intervention-group-items .intervention-group-item,
.active-filter-link .intervention-group-items .intervention-group-item {
  width: 100%;
  position: relative;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2c3e50;
  padding: 0.5rem;
  border-radius: 3px;
  display: flex;
  background: #f1ede3;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}
.active-filter-tag .intervention-group-items .intervention-group-item:hover, .active-filter-tag .intervention-group-items .intervention-group-item.is-modal-active,
.active-filter-link .intervention-group-items .intervention-group-item:hover,
.active-filter-link .intervention-group-items .intervention-group-item.is-modal-active {
  background: #2c3e50;
  padding-left: calc(var(--gap) * 0.6);
  color: #ffffff;
}
.active-filter-tag .intervention-group-items .intervention-group-item.is-modal-active,
.active-filter-link .intervention-group-items .intervention-group-item.is-modal-active {
  transition: all 0.3s;
  padding-left: 0.3rem;
}
.active-filter-tag .intervention-group-items .intervention-group-item .intervention-typology-dot,
.active-filter-link .intervention-group-items .intervention-group-item .intervention-typology-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2em;
  background: #24678e !important;
}
.active-filter-tag .intervention-group-items .intervention-group-item .intervention-text-container,
.active-filter-link .intervention-group-items .intervention-group-item .intervention-text-container {
  flex: 1;
  line-height: 1.2;
  padding-right: calc(var(--gap) * 0.5);
}
.active-filter-tag .intervention-group-items .intervention-group-item .intervention-date,
.active-filter-link .intervention-group-items .intervention-group-item .intervention-date {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: block;
  font-size: 0.9em;
}
.active-filter-tag .intervention-group-items .intervention-group-item:last-child,
.active-filter-link .intervention-group-items .intervention-group-item:last-child {
  margin-bottom: 0;
}
.active-filter-tag .intervention-group-items .intervention-group-item .modal-trigger-btn,
.active-filter-link .intervention-group-items .intervention-group-item .modal-trigger-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateX(50%) translateY(-50%);
  width: calc(var(--gap));
  height: calc(var(--gap));
  border-radius: 50%;
  color: white;
  background: #2c3e50;
  border: 1px solid;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.6s ease;
  z-index: 100;
}
.active-filter-tag .intervention-group-items .intervention-group-item .modal-trigger-btn::after,
.active-filter-link .intervention-group-items .intervention-group-item .modal-trigger-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-color: #ffffff;
  -webkit-mask-image: url("../img/pictos/eye.svg");
  mask-image: url("../img/pictos/eye.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.active-filter-tag .intervention-group-items .intervention-group-item .modal-trigger-btn:hover,
.active-filter-link .intervention-group-items .intervention-group-item .modal-trigger-btn:hover {
  background-color: #27ae60;
}
.active-filter-tag .intervention-group-items .intervention-group-item:hover .modal-trigger-btn,
.active-filter-link .intervention-group-items .intervention-group-item:hover .modal-trigger-btn {
  opacity: 1;
}
.active-filter-tag .intervention-group-items .intervention-group-item.is-modal-active .modal-trigger-btn,
.active-filter-link .intervention-group-items .intervention-group-item.is-modal-active .modal-trigger-btn {
  opacity: 0;
  pointer-events: none;
}
.active-filter-tag--frozen-actor,
.active-filter-link--frozen-actor {
  text-transform: none;
  line-height: 1.2;
  font-size: 0.8rem;
  padding: 0.3rem;
  padding-left: 0.5rem;
  padding-right: calc(var(--gap) * 0.5);
  border-radius: 3px;
  color: #2c3e50;
  background: #f1ede3;
  min-height: var(--gap);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: all 0.3s;
}
.active-filter-tag--frozen-actor:hover, .active-filter-tag--frozen-actor.is-modal-active,
.active-filter-link--frozen-actor:hover,
.active-filter-link--frozen-actor.is-modal-active {
  background: #2c3e50;
  padding-left: calc(var(--gap) * 0.6);
  color: #ffffff;
}
.active-filter-tag--frozen-actor.is-modal-active,
.active-filter-link--frozen-actor.is-modal-active {
  transition: all 0.3s;
  padding-left: 0.3rem;
}
.active-filter-tag--frozen-actor .actor-typology-dot,
.active-filter-link--frozen-actor .actor-typology-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  flex-shrink: 0;
}
.active-filter-tag--frozen-actor .modal-trigger-btn,
.active-filter-link--frozen-actor .modal-trigger-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateX(50%) translateY(-50%);
  width: calc(var(--gap));
  height: calc(var(--gap));
  border-radius: 50%;
  background: #2c3e50;
  border: 1px solid #ffffff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.6s ease;
  z-index: 100;
}
.active-filter-tag--frozen-actor .modal-trigger-btn::after,
.active-filter-link--frozen-actor .modal-trigger-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  fill: #ffffff !important;
  background-color: #ffffff;
  -webkit-mask-image: url("../img/pictos/eye.svg");
  mask-image: url("../img/pictos/eye.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.active-filter-tag--frozen-actor .modal-trigger-btn:hover,
.active-filter-link--frozen-actor .modal-trigger-btn:hover {
  background-color: #27ae60;
}
.active-filter-tag--frozen-actor:hover .modal-trigger-btn,
.active-filter-link--frozen-actor:hover .modal-trigger-btn {
  opacity: 1;
}
.active-filter-tag--frozen-actor.is-modal-active .modal-trigger-btn,
.active-filter-link--frozen-actor.is-modal-active .modal-trigger-btn {
  opacity: 0;
  pointer-events: none;
}
.active-filter-tag--frozen-intervention,
.active-filter-link--frozen-intervention {
  flex-basis: 20%;
  padding: 0.5em;
  color: white;
  font-size: 0.3em;
  /* width: 100%; */
  border-radius: 0.25em;
}
.active-filter-tag--frozen-building,
.active-filter-link--frozen-building {
  background: #000;
  color: white;
  font-weight: 600;
}
.active-filter-tag--info,
.active-filter-link--info {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  font-weight: 500;
}
.active-filter-tag--filter,
.active-filter-link--filter {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  width: fit-content;
  position: relative;
  transition: all 0.3s;
}
.active-filter-tag--filter:hover,
.active-filter-link--filter:hover {
  padding-left: calc(var(--gap) * 0.6);
}
.active-filter-tag--has-tooltip,
.active-filter-link--has-tooltip {
  position: relative;
  cursor: help;
  text-decoration: underline;
  font-size: 1em;
}
.active-filter-tag--has-tooltip:hover .active-filter-tooltip,
.active-filter-link--has-tooltip:hover .active-filter-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.remove-frozen-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: calc(var(--gap) * 0.85);
  height: calc(var(--gap) * 0.85);
  border-radius: 50%;
  background: #2c3e50;
  border: 1px solid;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  transition: all 0.3s;
}
.remove-frozen-btn:hover {
  background-color: #c0392b;
  color: #ffffff;
}

body:not(.detail-modal-open) .active-filter-tag--frozen-actor:hover .remove-frozen-btn,
body:not(.detail-modal-open) .intervention-group-item:hover .remove-frozen-btn,
body:not(.detail-modal-open) .active-filter-tag--filter:hover .remove-frozen-btn {
  opacity: 1;
  pointer-events: auto;
}

.active-filter-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: pre-line;
  max-width: 300px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}
.active-filter-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.reset-all-btn {
  all: unset;
  display: none;
  position: absolute;
  transform: translateY(-50%);
  left: var(--gap);
  width: calc(var(--gap) * 1.5);
  height: calc(var(--gap) * 1.5);
  top: 100%;
  z-index: 1;
  font-size: 0.65rem;
  background: #2c3e50;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  pointer-events: auto;
  border-radius: 50%;
  border: 1px solid white;
  font-size: 0.8rem;
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 0.6s;
}
.reset-all-btn svg {
  position: absolute;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: #ffffff;
  z-index: 2;
}
.reset-all-btn span {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 1;
  top: -1px;
  left: 50%;
  padding-right: calc(var(--gap) * 0.5);
  padding-left: calc(var(--gap) * 0.75);
  height: calc(var(--gap) * 1.5 + 2px);
  white-space: nowrap;
  opacity: 0;
  background-color: #2c3e50;
  border: 1px solid;
  border-left: 0;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  transition: background-color 0.6s, opacity 0.6s;
}
.reset-all-btn:hover {
  background-color: #c0392b;
}
.reset-all-btn:hover span {
  white-space: nowrap;
  opacity: 1;
  background-color: #c0392b;
}
body:not(:has(.constelacio-edificis-container)) .reset-all-btn {
  display: none;
  pointer-events: none;
}

body:has(.constelacio-edificis-container) #footer {
  display: none;
}

body:has(.constelacio-edificis-container) .site-branding {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body:has(.constelacio-edificis-container) .site-branding.site-branding-visible {
  opacity: 1;
}

.constelacio-edificis-chart {
  width: 100%;
  height: 100%;
  position: relative;
}

.actors-animation-ghost {
  position: fixed;
  top: 50%;
  left: 50vw;
  width: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  aspect-ratio: 1;
  transform: translate(calc(-100% - var(--gap) * 2), -50%);
  visibility: hidden;
  pointer-events: none;
}

.constelacio-edificis-svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.constelacio-edificis-svg:active {
  cursor: grabbing;
}
.constelacio-edificis-svg .main-group {
  transition: none;
}
.constelacio-edificis-svg .connections-group {
  pointer-events: none;
}
.constelacio-edificis-svg .connection-line {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}
.constelacio-edificis-svg .building-group,
.constelacio-edificis-svg .base-circle,
.constelacio-edificis-svg .center-circle {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .intervention-arc {
  transition: fill 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  fill-opacity: 1 !important;
  stroke: none !important;
  fill: #ebe6dd;
}
.constelacio-edificis-svg .intervention-arc.highlighted {
  fill: #24678e !important;
}
.constelacio-edificis-svg .intervention-arc.dimmed:not(.highlighted):not(.dimmed-shared) {
  fill: #ebe6dd !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .intervention-arc.dimmed-shared, .constelacio-edificis-svg .intervention-arc.dimmed-same-building {
  fill: #659da8 !important;
  pointer-events: all !important;
  cursor: pointer;
}
.constelacio-edificis-svg .intervention-arc.dimmed-shared:hover, .constelacio-edificis-svg .intervention-arc.dimmed-same-building:hover {
  fill: #24678e !important;
}
.constelacio-edificis-svg .intervention-arc.dimmed-zero {
  opacity: 0 !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .intervention-arc.hover-highlighted {
  fill: #24678e !important;
}
.constelacio-edificis-svg .intervention-arc.hover-dimmed {
  fill: #ebe6dd !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .intervention-arc.hovered {
  fill: #659da8 !important;
}
.constelacio-edificis-svg .intervention-arc[data-state=active] {
  fill: #24678e !important;
  pointer-events: all !important;
}
.constelacio-edificis-svg .intervention-arc[data-state=related] {
  fill: #659da8 !important;
  pointer-events: all !important;
  cursor: pointer;
}
.constelacio-edificis-svg .intervention-arc[data-state=related]:hover {
  fill: #24678e !important;
}
.constelacio-edificis-svg .intervention-arc[data-state=inactive] {
  fill: #ebe6dd !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .intervention-arc[data-state=hidden] {
  opacity: 0 !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .building-image {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.constelacio-edificis-svg .actor-node,
.constelacio-edificis-svg .actor-node-global {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), fill 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .actor-node[data-state=active],
.constelacio-edificis-svg .actor-node-global[data-state=active] {
  opacity: 1 !important;
  pointer-events: all !important;
  filter: none !important;
}
.constelacio-edificis-svg .actor-node[data-state=related],
.constelacio-edificis-svg .actor-node-global[data-state=related] {
  opacity: 0.6 !important;
  pointer-events: all !important;
  filter: none !important;
}
.constelacio-edificis-svg .actor-node[data-state=inactive],
.constelacio-edificis-svg .actor-node-global[data-state=inactive] {
  opacity: 0.15 !important;
  pointer-events: none !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg .actor-node[data-state=hidden],
.constelacio-edificis-svg .actor-node-global[data-state=hidden] {
  opacity: 0 !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg .actor-stroke-segment {
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .actor-group:has(.actor-node.dimmed:not(.highlighted)) .actor-stroke-segment, .constelacio-edificis-svg .actor-group:has(.actor-node-global.dimmed:not(.highlighted)) .actor-stroke-segment {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg .actor-group:has(.actor-node.dimmed-zero) .actor-stroke-segment, .constelacio-edificis-svg .actor-group:has(.actor-node-global.dimmed-zero) .actor-stroke-segment {
  opacity: 0 !important;
}
.constelacio-edificis-svg .actor-group:has(.actor-node.highlighted) .actor-stroke-segment, .constelacio-edificis-svg .actor-group:has(.actor-node-global.highlighted) .actor-stroke-segment {
  opacity: 1 !important;
  filter: none !important;
}
.constelacio-edificis-svg .actor-group:has(.actor-node.hover-highlighted) .actor-stroke-segment, .constelacio-edificis-svg .actor-group:has(.actor-node-global.hover-highlighted) .actor-stroke-segment {
  opacity: 1 !important;
}
.constelacio-edificis-svg .actor-group:has(.actor-node.hover-dimmed) .actor-stroke-segment, .constelacio-edificis-svg .actor-group:has(.actor-node-global.hover-dimmed) .actor-stroke-segment {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg .actor-connection-local,
.constelacio-edificis-svg .actor-connection-global {
  stroke-opacity: 0;
  transition: stroke-opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .actor-connection-local.hovered,
.constelacio-edificis-svg .actor-connection-global.hovered {
  stroke-opacity: 1 !important;
  opacity: 1 !important;
}
.constelacio-edificis-svg .actor-connection-local.dimmed:not(.hovered),
.constelacio-edificis-svg .actor-connection-global.dimmed:not(.hovered) {
  stroke-opacity: 0.15 !important;
}
.constelacio-edificis-svg .actor-connection-local[data-state=active],
.constelacio-edificis-svg .actor-connection-global[data-state=active] {
  stroke-opacity: 1 !important;
  opacity: 1 !important;
}
.constelacio-edificis-svg .actor-connection-local[data-state=related],
.constelacio-edificis-svg .actor-connection-global[data-state=related] {
  stroke-opacity: 0.6 !important;
  opacity: 0.6 !important;
}
.constelacio-edificis-svg .actor-connection-local[data-state=inactive],
.constelacio-edificis-svg .actor-connection-global[data-state=inactive] {
  stroke-opacity: 0.15 !important;
}
.constelacio-edificis-svg .actor-connection-local[data-state=hidden],
.constelacio-edificis-svg .actor-connection-global[data-state=hidden] {
  stroke-opacity: 0 !important;
}
.constelacio-edificis-svg .building-background {
  fill: #f4f1ec;
  fill-opacity: 1;
  stroke: none;
  pointer-events: none;
}
.constelacio-edificis-svg .building-title,
.constelacio-edificis-svg .building-subtitle {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .building-title[data-state=active],
.constelacio-edificis-svg .building-subtitle[data-state=active] {
  opacity: 1 !important;
}
.constelacio-edificis-svg .building-title[data-state=related],
.constelacio-edificis-svg .building-subtitle[data-state=related] {
  opacity: 0.6 !important;
}
.constelacio-edificis-svg .building-title[data-state=inactive],
.constelacio-edificis-svg .building-subtitle[data-state=inactive] {
  opacity: 0.15 !important;
}
.constelacio-edificis-svg .building-title[data-state=hidden],
.constelacio-edificis-svg .building-subtitle[data-state=hidden] {
  opacity: 0 !important;
}
.constelacio-edificis-svg .building-title {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  fill: #2c3e50;
  text-transform: uppercase;
}
.constelacio-edificis-svg .building-subtitle {
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
  display: none;
}
.constelacio-edificis-svg .building-central-circle {
  fill: #f4f1ec;
  stroke: transparent;
  stroke-width: 0;
  transition: stroke all 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke-width all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .building-central-group:hover .building-central-circle {
  stroke: #9d9067;
  stroke-width: 1px;
}
.constelacio-edificis-svg .building-central-arc {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.constelacio-edificis-svg .building-central-group:hover .building-central-arc {
  opacity: 1;
}
.constelacio-edificis-svg .building-central-label {
  display: none;
  user-select: none;
  fill: white;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2em;
  line-height: 0.8;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}
.constelacio-edificis-svg.buildings-collapsed .building-background,
.constelacio-edificis-svg.buildings-collapsed .building-group,
.constelacio-edificis-svg.buildings-collapsed .intervention-arc,
.constelacio-edificis-svg.buildings-collapsed .actor-node,
.constelacio-edificis-svg.buildings-collapsed .actor-node-global,
.constelacio-edificis-svg.buildings-collapsed .actor-group,
.constelacio-edificis-svg.buildings-collapsed .actor-stroke-segment,
.constelacio-edificis-svg.buildings-collapsed .typology-node-group,
.constelacio-edificis-svg.buildings-collapsed .building-title-group,
.constelacio-edificis-svg.buildings-collapsed .building-title,
.constelacio-edificis-svg.buildings-collapsed .building-subtitle {
  opacity: 0 !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg.buildings-collapsed .actor-connection-local,
.constelacio-edificis-svg.buildings-collapsed .actor-connection-global {
  stroke-opacity: 0 !important;
  pointer-events: none !important;
}
.constelacio-edificis-svg.buildings-collapsed .building-central-group {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease-out;
}
.constelacio-edificis-svg.buildings-collapsed .building-central-group.building-central-visible {
  opacity: 1;
  pointer-events: all;
}
.constelacio-edificis-svg.buildings-collapsed .gaudi-trigger {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.6s ease;
}
.constelacio-edificis-svg.buildings-collapsed .gaudi-trigger-dates {
  font-size: 1rem;
  fill: #2c3e50;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.constelacio-edificis-svg.buildings-collapsed .gaudi-trigger-name {
  font-size: 4.2rem;
  fill: #2c3e50;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
}
.constelacio-edificis-svg.buildings-collapsed .gaudi-trigger-typology {
  font-size: 2rem;
  fill: #2c3e50;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.constelacio-edificis-svg .gaudi-trigger.gaudi-trigger-small {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}
.constelacio-edificis-svg.central-groups-active .gaudi-trigger.gaudi-trigger-small {
  opacity: 1;
  pointer-events: all;
}
.constelacio-edificis-svg.central-groups-active .actor-node,
.constelacio-edificis-svg.central-groups-active .actor-node-global,
.constelacio-edificis-svg.central-groups-active .actor-group,
.constelacio-edificis-svg.central-groups-active .actor-stroke-segment {
  opacity: 0;
  pointer-events: none;
  transition: opacity all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg.central-groups-active .actor-connection-local,
.constelacio-edificis-svg.central-groups-active .actor-connection-global {
  stroke-opacity: 0;
  pointer-events: none;
  transition: stroke-opacity all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg.central-groups-active .typology-node-group {
  opacity: 0;
  pointer-events: none;
  transition: opacity all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg.central-groups-active .actor-node.building-click-visible,
.constelacio-edificis-svg.central-groups-active .actor-node-global.building-click-visible,
.constelacio-edificis-svg.central-groups-active .actor-group.building-click-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease-in-out;
}
.constelacio-edificis-svg.central-groups-active .actor-group.building-click-visible .actor-stroke-segment {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}
.constelacio-edificis-svg.central-groups-active .actor-connection-local.building-click-visible,
.constelacio-edificis-svg.central-groups-active .actor-connection-global.building-click-visible {
  stroke-opacity: 1;
  pointer-events: none;
  transition: stroke-opacity 1s ease-in-out;
}
.constelacio-edificis-svg.central-groups-active .typology-node-group.typologies-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease-in-out;
}
.constelacio-edificis-svg.central-groups-active .typology-node-group.typologies-visible.dimmed {
  opacity: 0.2;
  filter: grayscale(100%);
  pointer-events: none;
}
.constelacio-edificis-svg .actor-node.dimmed:not(.highlighted),
.constelacio-edificis-svg .actor-node-global.dimmed:not(.highlighted),
.constelacio-edificis-svg .building-title.dimmed,
.constelacio-edificis-svg .building-subtitle.dimmed,
.constelacio-edificis-svg .building-image.dimmed {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg .actor-node.dimmed:not(.highlighted),
.constelacio-edificis-svg .actor-node-global.dimmed:not(.highlighted) {
  pointer-events: none !important;
}
.constelacio-edificis-svg .building-image.dimmed-zero,
.constelacio-edificis-svg .actor-node.dimmed-zero,
.constelacio-edificis-svg .actor-node-global.dimmed-zero,
.constelacio-edificis-svg .building-title.dimmed-zero,
.constelacio-edificis-svg .building-subtitle.dimmed-zero {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg .actor-connection-local.dimmed-zero,
.constelacio-edificis-svg .actor-connection-global.dimmed-zero {
  stroke-opacity: 0 !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.constelacio-edificis-svg.actor-highlighted .actor-node.dimmed,
.constelacio-edificis-svg.actor-highlighted .actor-node-global.dimmed,
.constelacio-edificis-svg.actor-highlighted .actor-connection-local.dimmed:not(.hovered),
.constelacio-edificis-svg.actor-highlighted .actor-connection-global.dimmed:not(.hovered),
.constelacio-edificis-svg.actor-highlighted .building-title.dimmed,
.constelacio-edificis-svg.actor-highlighted .building-subtitle.dimmed,
.constelacio-edificis-svg.actor-highlighted .building-image.dimmed {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg.actor-highlighted .connection-line.dimmed,
.constelacio-edificis-svg.actor-highlighted .actor-connection-local.dimmed:not(.hovered),
.constelacio-edificis-svg.actor-highlighted .actor-connection-global.dimmed:not(.hovered) {
  stroke-opacity: 0.15 !important;
}
.constelacio-edificis-svg .actor-node.highlighted,
.constelacio-edificis-svg .actor-node-global.highlighted {
  opacity: 1 !important;
  pointer-events: all !important;
}
.constelacio-edificis-svg .actor-node.hover-highlighted,
.constelacio-edificis-svg .actor-node-global.hover-highlighted {
  opacity: 1 !important;
}
.constelacio-edificis-svg .actor-node.hover-dimmed,
.constelacio-edificis-svg .actor-node-global.hover-dimmed,
.constelacio-edificis-svg .actor-node.highlighted.hover-dimmed,
.constelacio-edificis-svg .actor-node-global.highlighted.hover-dimmed {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.constelacio-edificis-svg .actor-connection-local.hover-dimmed,
.constelacio-edificis-svg .actor-connection-global.hover-dimmed,
.constelacio-edificis-svg .actor-connection-local.hovered.hover-dimmed,
.constelacio-edificis-svg .actor-connection-global.hovered.hover-dimmed {
  stroke-opacity: 0.05 !important;
  opacity: 0.05 !important;
  transition: none;
}
.constelacio-edificis-svg .intervention-arc.highlighted {
  fill: #24678e !important;
  fill-opacity: 1 !important;
  stroke: none !important;
}
.constelacio-edificis-svg .building-title.highlighted {
  opacity: 1 !important;
  fill: #2c3e50;
}
.constelacio-edificis-svg .building-subtitle.highlighted {
  opacity: 1 !important;
}
.constelacio-edificis-svg .frozen-label {
  pointer-events: none;
  user-select: none;
}
.constelacio-edificis-svg .frozen-label-bg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.constelacio-edificis-svg .frozen-label-text {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.constelacio-edificis-svg .frozen-label-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c3e50;
  color: #ffffff;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  pointer-events: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.constelacio-edificis-svg .frozen-label-content--intervention {
  padding: 8px;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.actor-search-container {
  position: relative;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.actor-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  color: #2c3e50;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  outline: none;
  transition: all 0.3s ease;
}
.actor-search-input::placeholder {
  color: #95a5a6;
}
.actor-search-input:focus {
  background-color: rgb(255, 255, 255);
}

.actor-search-clear {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background-color: #e74c3c;
  color: #ffffff;
  font-size: 0.875rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.actor-search-clear:hover {
  background-color: #c0392b;
  transform: translateY(-50%) scale(1.1);
}

.actor-search-results {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
}

.actor-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.actor-search-result-item:last-child {
  border-bottom: none;
}
.actor-search-result-item:hover {
  background-color: rgba(245, 245, 245, 0.1);
}

.actor-search-result-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.actor-search-result-label {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2c3e50;
}

.actor-search-result-type {
  font-size: 0.8125rem;
  color: #7f8c8d;
}

.constelacio-zoom-controls {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.constelacio-zoom-btn {
  width: calc(var(--gap) * 1.25);
  height: calc(var(--gap) * 1.25);
  border: none;
  background-color: white;
  color: black;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.constelacio-zoom-btn:hover {
  background-color: #f5f5f5;
  color: #ffffff;
  transform: scale(1.05);
}
.constelacio-zoom-btn:active {
  transform: scale(0.95);
}

.constelacio-controls-separator {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

.constelacio-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0;
}

.constelacio-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  cursor: pointer;
}
.constelacio-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.constelacio-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 28px;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.constelacio-toggle-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .constelacio-toggle-slider {
  background-color: #f5f5f5;
}
input:checked + .constelacio-toggle-slider:before {
  transform: translateX(20px);
}
input:focus + .constelacio-toggle-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.constelacio-toggle-label {
  font-size: 0.7rem;
  color: #2c3e50;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

.visual-legend {
  position: fixed;
  top: 0;
  right: 0;
  width: 25%;
  height: 100vh;
  z-index: 200;
  padding: calc(var(--gap) * 3) calc(var(--gap) * 2);
  background: rgba(247, 242, 232, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  font-size: 0.65rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.visual-legend.active {
  transform: translateX(0);
}
.visual-legend h4 {
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
  margin: 0 0 1.5rem;
  font-weight: normal;
  border-bottom: 1px solid #e6e6e6;
}
.visual-legend .legend-section {
  margin-bottom: calc(var(--gap) * 2);
}
.visual-legend .legend-section:last-child {
  margin-bottom: 0;
}
.visual-legend .legend-title {
  margin-bottom: 0.5rem;
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.visual-legend .legend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.visual-legend .legend-item:hover {
  opacity: 0.7;
}
.visual-legend .legend-item:last-child {
  margin-bottom: 0;
}
.visual-legend .legend-item .legend-icon {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.visual-legend .legend-item svg {
  flex-shrink: 0;
}

.legend-diagram {
  margin-bottom: 1.5rem;
}
.legend-diagram__title {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.legend-diagram__svg {
  width: 100%;
  height: auto;
}
.legend-diagram__building-name {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  fill: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legend-diagram__label {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  fill: #2c3e50;
}
.legend-diagram__sublabel {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  fill: #7f8c8d;
}
.legend-diagram__note {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  color: #34495e;
  line-height: 1.5;
  margin: 1rem 0 0;
}

.constelacio-edificis-stats {
  position: fixed;
  top: 100px;
  right: 1.5rem;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.constelacio-stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.constelacio-stats-label {
  color: #34495e;
  font-weight: 400;
}

.constelacio-stats-value {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
}

.constelacio-edificis-info {
  Display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-left: 4px solid #f5f5f5;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  color: #34495e;
  line-height: 1.5;
  opacity: 0.5;
  pointer-events: none;
}
.constelacio-edificis-info strong {
  color: #2c3e50;
  font-weight: 600;
}

.constelacio-edificis-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #95a5a6;
  font-size: 1.125rem;
}

.constelacio-edificis-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .constelacio-edificis-stats {
    right: 1rem;
    top: 80px;
    min-width: 150px;
    padding: 0.75rem;
  }
  .constelacio-stats-item {
    font-size: 0.85rem;
  }
  .constelacio-stats-value {
    font-size: 1rem;
  }
  .constelacio-zoom-controls {
    bottom: 1rem;
    right: 1rem;
  }
  .constelacio-zoom-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .constelacio-edificis-info {
    display: none;
  }
  .constelacio-edificis-svg .building-title {
    font-size: 10px;
  }
  .constelacio-edificis-svg .building-subtitle {
    font-size: 8px;
  }
}
@media (max-width: 480px) {
  .constelacio-edificis-stats {
    min-width: 130px;
    padding: 0.5rem;
  }
  .constelacio-stats-item {
    font-size: 0.75rem;
  }
  .constelacio-stats-value {
    font-size: 0.9rem;
  }
  .constelacio-edificis-svg .building-title {
    font-size: 8px;
  }
  .constelacio-edificis-svg .building-subtitle {
    font-size: 7px;
  }
}
.actor-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 200px;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease;
  transition: transform 0.2s ease;
}
.actor-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.actor-tooltip-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
}
.actor-tooltip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.actor-tooltip-content {
  padding: 1rem;
}

.actor-tooltip-name {
  font-size: 0.85rem;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.actor-tooltip-type {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #34495e;
  margin-bottom: 0.5rem;
}

.actor-tooltip-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.actor-tooltip-birth,
.actor-tooltip-death {
  font-size: 0.8125rem;
  color: #7f8c8d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes frozenActorArcRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.frozen-actor-arc {
  pointer-events: none;
}

@media print {
  .constelacio-edificis-header,
  .constelacio-zoom-controls,
  .constelacio-edificis-legend,
  .constelacio-edificis-info {
    display: none;
  }
  .constelacio-edificis-container {
    height: auto;
  }
  .constelacio-edificis-svg {
    cursor: default;
  }
}
.no-activ {
  fill: #f4f1ec;
  stroke: none !important;
  stroke-width: 0 !important;
  pointer-events: none;
}

.building-origin-circle {
  fill: #F7F2E8 !important;
  stroke: none !important;
  stroke-width: 0 !important;
  cursor: pointer;
  pointer-events: all;
}
.typology-node-group {
  opacity: 0.8;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.typology-node-group:hover {
  opacity: 1;
}
.typology-node-group:hover .typology-node-circle {
  stroke-width: 1px !important;
  stroke-dasharray: none !important;
}
.typology-node-group.dimmed {
  opacity: 0.2;
  filter: grayscale(100%);
  pointer-events: none;
}
.typology-node-group.hover-dimmed {
  opacity: 0.2 !important;
  filter: grayscale(100%);
  pointer-events: none;
}
.typology-node-group.selected {
  opacity: 1;
}
.typology-node-group.selected .typology-node-circle {
  stroke-width: 1px !important;
  stroke-dasharray: none !important;
}
.typology-node-group.selected .typology-node-label {
  fill: white !important;
}
.typology-node-group .typology-node-circle {
  fill: #ebe6dd;
  transition: stroke-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke-dasharray 0.4s cubic-bezier(0.4, 0, 0.2, 1), fill 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: transparent;
}
.typology-node-group .typology-node-label {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
  transition: fill 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.typology-node-group .typology-node-badge {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.typology-node-group .typology-node-badge-text {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  user-select: none;
}
.typology-node-group.hover-from-actor {
  opacity: 1;
}
.typology-node-group.hover-from-actor .typology-node-circle {
  stroke-width: 1px !important;
  stroke-dasharray: none !important;
  fill: var(--typology-color) !important;
}
.typology-node-group.hover-from-actor .typology-node-label {
  fill: #ffffff !important;
}

.original {
  /*

  &.detail-modal{
    .intervention-left {
      margin-left:calc($global-width-margin-left * -1);
      margin-right:calc($global-width-margin-right * -1);
      padding-left:calc($global-width-margin-left * 1);
      padding-right:calc($global-width-margin-left * 1);

      padding-top: $global-top-padding;
      padding-bottom: $global-top-padding;
      background:$color-intervention-60;
      color:$color-white;
    //  min-height:0vh;
    }
    .detail-modal-close {
      color:$color-white;
    }
  }
    */
}

.navigation-history-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: #2c3e50;
  border: 1px solid #ffffff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

.navigation-history-list {
  position: absolute;
  left: 0;
  top: 0;
  width: calc((min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2) * 0.8);
  background: #2c3e50;
  border-radius: 3px;
  backdrop-filter: blur(10px);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  border-left: 0;
  padding: calc(var(--gap) * 0.05) 0;
  padding-right: calc(var(--gap) * 0.75);
  z-index: 1;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 0.3s ease-out, opacity 0.2s ease, visibility 0.2s ease;
}

.navigation-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.navigation-history-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.navigation-history-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.navigation-history-item-label {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-active-indicator .modal-active-indicator-front {
  transition: left 0.3s ease-out, right 0.3s ease-out, transform 0.3s ease-out;
}
.modal-active-indicator.list-open .navigation-history-list:not(:empty) {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  visibility: visible;
  transition: background-color 0.2s ease;
}
.modal-active-indicator.list-open .navigation-history-badge {
  pointer-events: auto;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal-active-indicator.list-open .navigation-history-badge:hover {
  background-color: #c0392b;
  font-size: 0;
}
.modal-active-indicator.list-open .navigation-history-badge:hover::after {
  content: "×";
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.modal-active-indicator.list-open:has(.navigation-history-badge:hover) .navigation-history-list {
  background-color: #c0392b;
}
.modal-active-indicator.list-open .modal-active-indicator-front {
  left: calc(100% + var(--list-width, 180px));
  right: auto;
  z-index: 10;
}

.controls-container {
  position: fixed;
  bottom: var(--gap);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.constelacio-edificis-container:has(.constelacio-edificis-svg:not(.buildings-collapsed)) .controls-container {
  opacity: 1;
  pointer-events: auto;
}

.controls-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.constelacio-search-module {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  padding-bottom: 0;
  padding-top: 0;
}

.constelacio-search-input {
  width: 180px;
  height: calc(var(--gap) * 1.25);
  padding: 0 0.75rem;
  border: 1px solid #2c3e50;
  color: #ffffff;
  background: #2c3e50;
  border-right: 0;
  border-radius: calc(var(--gap) * 1.25 * 0.5) 0 0 calc(var(--gap) * 1.25 * 0.5);
  font-size: 0.8rem;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
  transition: all 0.2s ease;
}
.constelacio-search-input::placeholder {
  color: #ffffff;
}

.constelacio-search-btn {
  width: calc(var(--gap) * 1.25);
  height: calc(var(--gap) * 1.25);
  border: none;
  background-color: #ffffff;
  color: #2c3e50;
  border-radius: 0 50% 50% 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: 1px solid rgb(0, 0, 0);
  border-left: 0px;
  border: 1px solid #2c3e50;
  color: #ffffff;
  background: #2c3e50;
}
.constelacio-search-btn:hover {
  background-color: black;
}
.constelacio-search-btn:active {
  transform: scale(0.95);
}
.constelacio-search-btn svg {
  width: 16px;
  height: 16px;
}

.constelacio-zoom-controls {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  background-color: transparent;
  backdrop-filter: none;
  padding: 0.5rem;
  padding-bottom: 0;
  padding-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.constelacio-zoom-btn {
  width: calc(var(--gap) * 1.25);
  height: calc(var(--gap) * 1.25);
  border: 1px solid #2c3e50;
  color: #ffffff;
  background: #2c3e50;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.constelacio-zoom-btn:hover {
  background-color: black;
  color: white;
  transform: scale(1.05);
}
.constelacio-zoom-btn:active {
  transform: scale(0.95);
}

.constelacio-legend-module {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  padding-bottom: 0;
  padding-top: 0;
}

.constelacio-legend-btn {
  width: calc(var(--gap) * 1.25);
  height: calc(var(--gap) * 1.25);
  border: 1px solid #2c3e50;
  color: #ffffff;
  background: #2c3e50;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.constelacio-legend-btn:hover, .constelacio-legend-btn.active {
  background-color: black;
  color: white;
  transform: scale(1.05);
}
.constelacio-legend-btn:active {
  transform: scale(0.95);
}
.constelacio-legend-btn .legend-btn-icon {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
}

.actor-group.search-match {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.building-group.search-match-building .building-title {
  fill: #659da8 !important;
}

.detail-modal-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff !important;
  z-index: 100;
  min-height: calc(clamp(16px, 1.1719vw, 21px) * 4);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  line-height: 1.3;
  font-size: 1rem;
  flex-direction: column;
}
.detail-modal-sticky-header.visible {
  transform: translateY(0);
  opacity: 1;
}
.detail-modal-sticky-header.visible:after {
  width: 100%;
  height: calc(var(--gap) * 0.5);
  position: absolute;
  top: 99%;
  left: 0;
  content: "";
  display: block;
  background-image: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 18%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0.25) 82%, rgba(255, 255, 255, 0) 100%);
}
.detail-modal-sticky-header .sticky-header-container {
  padding-top: calc(var(--gap) * 1.5);
  padding-bottom: calc(var(--gap) * 0.5);
  margin-left: 5vw;
  margin-right: 10vw;
}
.detail-modal-sticky-header .sticky-header-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--gap);
  font-size: 1rem;
}
.detail-modal-sticky-header .sticky-header-dates {
  display: none;
}
.detail-modal-sticky-header .sticky-header-title {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-modal-sticky-header .sticky-header-building {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-transform: uppercase;
  text-overflow: ellipsis;
}
.detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}
@media (min-width: 1024px) {
  .detail-modal {
    left: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
    width: calc(100% - (min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2));
  }
}
.detail-modal.active {
  display: block;
}

.detail-modal-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(209, 209, 209, 0.2);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.detail-modal.active .detail-modal-overlay {
  opacity: 1;
}

.detail-modal-container {
  top: 0;
  left: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: all 0.6s ease;
}
.detail-modal.active .detail-modal-container {
  transform: translateX(0);
}

.detail-modal-close {
  all: unset;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  background: transparent;
  top: var(--gap);
  right: var(--gap);
  width: calc(var(--gap) * 2);
  height: calc(var(--gap) * 2);
  background: #2c3e50;
  color: #ffffff;
  border: 1px solid;
  font-size: 2rem;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  z-index: 101;
  transition: background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-modal-close:hover {
  background-color: #c0392b;
}
.detail-modal-close::after {
  content: "";
  width: 60%;
  height: 60%;
  background-color: currentColor;
  -webkit-mask-image: url("../img/pictos/eye-minus.svg");
  mask-image: url("../img/pictos/eye-minus.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.detail-modal-content {
  overflow-y: auto;
  width: 100%;
  padding-left: 5vw;
  padding-right: 10vw;
  padding-top: 0;
  margin: auto;
  transition: background-color 0.4s ease-out;
  background: white !important;
  color: #2c3e50 !important;
}
.detail-modal-content.modal-out .detail-modal-layout {
  opacity: 0;
}

.detail-modal-layout {
  display: flex;
  gap: 0rem;
  min-height: 25rem;
  flex-direction: column;
  transition: opacity 0.3s ease-out;
}

.detail-modal-left {
  padding-top: var(--gap);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  row-gap: 0;
  color: #2c3e50;
}
.detail-modal-left .detail-header {
  grid-column: 1/span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.detail-modal-left .detail-modal-left-inner {
  display: none;
  align-items: center;
  gap: calc(var(--gap) * 3);
}
.detail-modal-image {
  overflow: hidden;
}
.detail-modal-image.empty {
  display: none;
}
.detail-modal-image .detail-modal-image-inner {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.detail-modal-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: 0.5s;
}
.detail-modal-image img.loaded {
  opacity: 1;
  transform: scale(1);
}

.detail-modal-header-info {
  font-size: 1rem;
  line-height: 1;
  position: relative;
  width: 70%;
}

.detail-modal-name {
  --fit-min-font-size: 1rem;
  --fit-max-font-size: 4.2rem;
  --fit-max-lines: 4;
  --fit-line-height: 1;
  font-size: 4.2rem;
  letter-spacing: -0.02em;
  font-weight: normal;
  margin-bottom: 0;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.detail-modal-name.text-fitted {
  opacity: 1;
  transform: translateY(0);
}

.detail-modal-profession {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.detail-modal-type {
  margin-top: 0;
  margin-bottom: 0;
  transform: translatey(-100%) !important;
  font-size: 2rem;
  opacity: 0;
  animation: fadeInSoft 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: 0.9s;
}

.detail-modal-type-building {
  opacity: 0;
  animation: fadeInSoft 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: 0.7s;
}

.detail-modal-dates {
  display: flex;
  grid-column: 2;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeInSoft 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: 1.1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.detail-modal-date-item {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.detail-modal-date-value {
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.detail-modal-right {
  flex: 1;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  row-gap: 0;
}
.detail-modal-right > * {
  grid-column: 1/span 12;
  padding-top: calc(clamp(16px, 1.1719vw, 21px) * 5);
}
.detail-modal-right > *.detail-modal-description {
  grid-column: 1/span 10;
}
.detail-modal-right h3.section-title {
  font-size: 2rem;
}

.detail-modal-no-data {
  color: #999;
  font-style: italic;
}

.detail-modal-section-title {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.detail-modal-actors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-modal-actor-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 1rem;
}
.detail-modal-actor-item:last-child {
  border-bottom: none;
}
.detail-modal-actor-item .actor-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.detail-modal-actor-item .actor-details {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  flex-shrink: 0;
}
.detail-modal-actor-item .actor-age {
  color: #999;
  white-space: nowrap;
}
.detail-modal-actor-item .actor-type {
  color: #777;
  font-style: italic;
}

.detail-modal-description {
  font-size: 1.1rem;
  transition: padding 1s ease-out;
}
.detail-modal-description .section-title {
  display: none;
}
.detail-modal-description.empty {
  padding: 0;
}

.actor-mini-diagrams {
  margin-bottom: 1rem;
}

.actor-mini-diagrams-wrapper {
  --mini-columns: 3;
  display: grid;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-template-columns: repeat(var(--mini-columns), 1fr);
  gap: calc(var(--gap) * 1);
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-wrapper {
  display: flex;
  align-items: center;
  gap: calc(var(--gap) * 0.6);
}
.actor-mini-diagrams-wrapper .actor-mini-diagram {
  width: 100%;
  height: auto;
  max-width: 10vw;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram .mini-diagram-bg {
  fill: #F7F2E8;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram .mini-diagram-arc.active {
  fill: #24678e;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram .mini-diagram-arc.inactive {
  fill: #ebe6dd;
  opacity: 0.8;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-label {
  display: flex;
  flex-direction: column;
  row-gap: calc(var(--gap) * 0.45);
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-building {
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: calc(var(--gap) * 0.5);
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-intervention {
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: Column;
  gap: calc(var(--gap) * 0.1);
  align-items: flex-start;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-intervention:hover {
  text-decoration: underline;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-intervention .intervention-date {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: block;
  font-size: 0.65rem;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-intervention .intervention-age {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2c3e50;
  font-size: 0.8em;
  display: none;
}
.actor-mini-diagrams-wrapper .actor-mini-diagram-intervention .intervention-actor-type {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8em;
  display: block;
}
.actor-mini-diagrams-wrapper.mini-columns-1 > * {
  grid-column: 1/span 12;
}
.actor-mini-diagrams-wrapper.mini-columns-1 .actor-mini-diagram-intervention {
  font-size: 1rem;
  flex-direction: row;
  gap: calc(var(--gap) * 0.5);
  align-items: center;
}
.actor-mini-diagrams-wrapper.mini-columns-1 .actor-mini-diagram-intervention .intervention-date,
.actor-mini-diagrams-wrapper.mini-columns-1 .actor-mini-diagram-intervention .intervention-age {
  padding-top: 0.2rem;
  font-size: 0.65rem;
  white-space: nowrap;
  width: 3rem;
  flex-shrink: 0;
}
.actor-mini-diagrams-wrapper.mini-columns-1 .actor-mini-diagram-intervention .intervention-age {
  display: none;
}
.actor-mini-diagrams-wrapper.mini-columns-2 > * {
  grid-column: span 6;
}
.actor-mini-diagrams-wrapper.mini-columns-2 .actor-mini-diagram-intervention {
  font-size: 1rem;
  flex-direction: column;
  gap: calc(var(--gap) * 0.1);
}
.actor-mini-diagrams-wrapper.mini-columns-2 .intervention-date,
.actor-mini-diagrams-wrapper.mini-columns-2 .intervention-age {
  padding-top: 0.2rem;
  font-size: 0.65rem;
  white-space: nowrap;
  width: 3rem;
  flex-shrink: 0;
}
.actor-mini-diagrams-wrapper.mini-columns-2 .intervention-age {
  display: none;
}
.actor-mini-diagrams-wrapper.mini-columns-3 > * {
  grid-column: span 4;
}
.actor-mini-diagrams-wrapper.mini-columns-3 .actor-mini-diagram-building {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.mini-diagrams-container {
  margin-bottom: 1.5rem;
}

.mini-diagrams-row {
  margin-bottom: 1rem;
}
.mini-diagrams-row:last-child {
  margin-bottom: 0;
}

.mini-diagrams-actor-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.mini-diagrams-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mini-diagram {
  flex-shrink: 0;
  background: #fafafa;
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
}
.mini-diagram svg {
  display: block;
}

@media (max-width: 48rem) {
  .mini-diagrams-wrapper {
    gap: 0.3rem;
  }
  .mini-diagram {
    max-width: 50px;
    max-height: 50px;
  }
}
.enriched-fade-in {
  animation: enrichedFadeIn 0.4s ease-out forwards;
}

@keyframes enrichedFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.enriched-description {
  display: flex;
  flex-direction: column;
  row-gap: calc(clamp(16px, 1.1719vw, 21px) * 5 * 0.5);
}
.enriched-description p {
  line-height: 1.4;
}
.enriched-description .description-source {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: var(--gap);
}

.enriched-gallery {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.enriched-gallery h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #666;
}
.enriched-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}
.enriched-gallery .gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
}
.enriched-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.enriched-gallery .gallery-item img:hover {
  transform: scale(1.05);
}
.enriched-gallery .gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enriched-gallery .gallery-item .gallery-creator {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.15rem 0.35rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.55rem;
}

.intervention-layout .detail-modal-image {
  width: 100%;
  overflow: hidden;
}
.intervention-layout .detail-modal-image .detail-modal-image-inner {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}
.intervention-layout .detail-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intervention-layout .detail-modal-dates {
  margin: 0;
}

.detail-modal-title {
  grid-column: 6/span 6;
  grid-row: 1;
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  gap: calc(var(--gap) * 0.5);
}

.intervention-left .detail-modal-header-info {
  display: flex;
  flex-direction: row-reverse;
  gap: calc(var(--gap) * 2);
  align-items: center;
  width: 100%;
}
.intervention-left .detail-modal-image {
  grid-column: 1/span 5;
  grid-row: 1;
}
.intervention-left .detail-modal-image.empty {
  display: none;
}
.intervention-left .detail-modal-header-info {
  grid-column: 1/span 12;
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  grid-template-columns: repeat(12, 1fr);
  gap: calc(var(--gap) * 3);
  min-height: 44vh;
}
@media (min-width: 1024px) {
  .intervention-left .detail-modal-header-info {
    display: grid;
  }
}
.intervention-left .detail-modal-header-info:has(.detail-modal-image.empty) {
  padding-top: calc(var(--gap) 0);
  padding-bottom: calc(var(--gap) * 1);
  grid-column: 1/span 9;
  display: flex;
  flex-direction: row;
}
.intervention-left .detail-modal-header-info:has(.detail-modal-image:not(.empty)) .detail-modal-title {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.intervention-left .detail-modal-dates,
.intervention-left .detail-modal-name {
  margin: 0;
}
.intervention-left .detail-modal-type-building {
  text-transform: uppercase;
  line-height: 1;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.intervention-protection {
  display: none;
  flex-wrap: wrap;
  margin-top: 0;
  gap: 0.8rem;
  grid-column: span 2;
  flex-direction: column-reverse;
  opacity: 0;
  transform: translateY(calc(2rem + 4px));
  animation: fadeInProtection 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  animation-delay: 1.3s;
}

@keyframes fadeInProtection {
  from {
    opacity: 0;
    transform: translateY(calc(2rem + 4px));
  }
  to {
    opacity: 1;
    transform: translateY(2rem);
  }
}
.protection-badge {
  display: inline-block;
}

.arquitectura-catalana-link {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25em;
  margin-bottom: 1em;
  font-size: 1rem;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
  padding-top: calc(1.5rem + 1em);
  border-top: 1px solid #2c3e50;
}
.arquitectura-catalana-link .arquitectura-catalana-domain {
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.arquitectura-catalana-link svg {
  flex-shrink: 0;
  opacity: 0.5;
  align-self: center;
}
.arquitectura-catalana-link:hover {
  color: rgb(0, 0, 0);
}
.arquitectura-catalana-link:hover svg {
  opacity: 0.9;
}

.intervention-usages {
  display: none;
  width: 100%;
  font-size: 0.8rem;
  grid-column: span 2;
}
.intervention-usages .usages-label {
  display: none;
}

.intervention-slider {
  width: 100%;
}
.intervention-slider .section-title {
  display: flex;
  justify-content: space-between;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
}
.slider-track::-webkit-scrollbar {
  display: none;
}
.slider-track.dragging {
  cursor: grabbing;
  user-select: none;
}

.slider-item {
  flex: 0 0 auto;
  position: relative;
  height: 30vh;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.slider-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.slider-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  pointer-events: none;
}
.slider-item:hover .slider-item-credits {
  opacity: 1;
}

.slider-item-credits {
  position: absolute;
  bottom: 0rem;
  left: 0rem;
  padding: 0.25rem 0.5rem;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.6rem;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.6s;
}

.view-toggle-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.25rem;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
  vertical-align: middle;
}
.view-toggle-btn svg {
  fill: currentColor;
}
.view-toggle-btn:hover {
  opacity: 1;
}
.view-toggle-btn.grid-active {
  opacity: 1;
  background: currentColor;
}
.view-toggle-btn.grid-active svg {
  fill: white;
}

.images-grid-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.images-grid-container .grid-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  flex-shrink: 0;
}
.images-grid-container .grid-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  flex-shrink: 0;
  height: 100%;
}
.images-grid-container .grid-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.images-grid-container .grid-item:hover .grid-item-credits {
  opacity: 1;
}
.images-grid-container .grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.images-grid-container .grid-item-credits {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.2rem 0.4rem;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.55rem;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s;
}

.intervention-archive .archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.intervention-archive .archive-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
  transition: box-shadow 0.2s ease;
}
.intervention-archive .archive-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.intervention-archive .archive-item-image {
  aspect-ratio: 1;
  overflow: hidden;
}
.intervention-archive .archive-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.intervention-archive .archive-item-image:hover img {
  transform: scale(1.03);
}
.intervention-archive .archive-item-info {
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.intervention-archive .archive-item-label {
  font-size: 0.7rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intervention-archive .archive-item-creator {
  font-size: 0.6rem;
  color: #888;
}
.intervention-archive .archive-item-keeper {
  font-size: 0.55rem;
  color: #aaa;
  font-style: italic;
}

.intervention-audiovisuals .audiovisual-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.intervention-audiovisuals .audiovisual-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.intervention-audiovisuals .audiovisual-item:hover {
  background: #eee;
}
.intervention-audiovisuals .audiovisual-item-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: #555;
}
.intervention-audiovisuals .audiovisual-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.intervention-audiovisuals .audiovisual-item-label {
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intervention-audiovisuals .audiovisual-item-creator {
  font-size: 0.6rem;
  color: #888;
}

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 80vw;
  height: 80vh;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.lightbox-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  all: unset;
  cursor: pointer;
  position: fixed;
  top: var(--gap);
  right: var(--gap);
  width: calc(var(--gap) * 2);
  height: calc(var(--gap) * 2);
  background: #2c3e50;
  color: #ffffff;
  border: 1px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.4s;
}
.lightbox-close::after {
  content: "";
  width: 60%;
  height: 60%;
  background-color: currentColor;
  -webkit-mask-image: url("../img/pictos/eye-minus.svg");
  mask-image: url("../img/pictos/eye-minus.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.lightbox-close:hover {
  background-color: #c0392b;
}

.lightbox-credits {
  position: absolute;
  bottom: -2rem;
  left: 0;
  color: rgba(44, 62, 80, 0.5);
  font-size: 0.8rem;
}

.lightbox-nav {
  all: unset;
  cursor: pointer;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--gap) * 2);
  height: calc(var(--gap) * 2);
  background: #2c3e50;
  color: #ffffff;
  border: 1px solid;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.4s;
}
.lightbox-nav::after {
  content: "";
  width: 55%;
  height: 55%;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.lightbox-nav:hover {
  background: rgba(44, 62, 80, 0.7);
}
.lightbox-nav.lightbox-prev {
  left: var(--gap);
}
.lightbox-nav.lightbox-prev::after {
  -webkit-mask-image: url("../img/pictos/arrow-left.svg");
  mask-image: url("../img/pictos/arrow-left.svg");
}
.lightbox-nav.lightbox-next {
  right: var(--gap);
}
.lightbox-nav.lightbox-next::after {
  -webkit-mask-image: url("../img/pictos/arrow-right.svg");
  mask-image: url("../img/pictos/arrow-right.svg");
}

.archive-slide {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.archive-slide.fade-out {
  opacity: 0;
  transform: scale(0.96);
}

.slider-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.slider-thumbnails::-webkit-scrollbar {
  height: 4px;
}
.slider-thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.slider-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.slider-thumb:hover {
  opacity: 0.8;
}
.slider-thumb.active {
  opacity: 1;
}

.intervention-descriptions .descriptions-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #444;
}
.intervention-descriptions .description-creator {
  display: block;
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.intervention-actors {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding-left: 5vw;
  padding-top: 5vh;
  padding-right: 10vw;
  margin-left: -5vw;
  margin-right: -10vw;
  padding-bottom: 8vh;
}
.intervention-actors .section-title {
  text-transform: uppercase;
  grid-column: 1/span 12;
}
.intervention-actors .intervention-actors-diagram {
  grid-column: 1/span 6;
}
.intervention-actors .intervention-hover-label {
  grid-column: 7/span 6;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-bottom: 20vh;
}

.intervention-hover-label {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.intervention-hover-label.visible {
  opacity: 1;
}
.intervention-hover-label .hover-info-title {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.intervention-hover-label .hover-info-years {
  position: absolute;
  right: calc(100% + var(--gap) * 0.25);
  font-size: 0.5rem;
  line-height: 0.8rem;
  opacity: 0.8;
  white-space: nowrap;
}
.intervention-hover-label .hover-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: flex-start;
}
.intervention-hover-label .hover-info-item {
  font-size: 0.65rem;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}
.intervention-hover-label .hover-info-item:hover {
  text-decoration: underline;
  cursor: pointer;
}
.intervention-hover-label .hover-info-intervention {
  padding-left: 3rem;
}
.intervention-hover-label .hover-info-intervention:last-child {
  margin-bottom: 0;
}
.intervention-hover-label .hover-info-subtitle {
  position: relative;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  padding-bottom: 0.25rem;
  gap: calc(var(--gap) * 0.25);
  align-items: center;
}

.intervention-actors-diagram {
  width: 100%;
  position: relative;
}
.intervention-actors-diagram .modal-zoom-controls {
  position: absolute;
  top: 50%;
  left: auto;
  right: 0%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.intervention-actors-diagram .intervention-actors-svg {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  position: sticky;
  top: calc(clamp(16px, 1.1719vw, 21px) * 5 + var(--gap));
}
.intervention-actors-diagram .intervention-actors-svg .actor-connector-modal {
  transition: stroke-opacity 0.2s ease;
  stroke-opacity: 0;
  pointer-events: none;
}
.intervention-actors-diagram .intervention-actors-svg .actor-connector-modal.active {
  stroke-opacity: 1;
}
.intervention-actors-diagram .intervention-actors-svg .actor-connector-modal.dimmed {
  stroke-opacity: 0 !important;
  transition: none;
}
.intervention-actors-diagram .intervention-actors-svg .actor-connector-modal.hovered, .intervention-actors-diagram .intervention-actors-svg .actor-connector-modal.hover-highlighted {
  stroke-opacity: 1 !important;
  transition: stroke-opacity 0.2s ease;
}
.intervention-actors-diagram .intervention-actors-svg .actor-connector-modal.hover-dimmed {
  stroke-opacity: 0 !important;
  transition: none;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal {
  transition: fill 0.25s ease;
  opacity: 1;
  fill-opacity: 1 !important;
  stroke: none !important;
  fill: #ebe6dd;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.typology-highlighted {
  fill: #659da8 !important;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.selected {
  fill: #24678e !important;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.dimmed:not(.selected):not(.typology-highlighted) {
  fill: #ebe6dd !important;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.dimmed:not(.selected):not(.typology-highlighted):hover:not(.disabled) {
  fill: #659da8 !important;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal:hover:not(.disabled):not(.dimmed) {
  fill: #659da8 !important;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.disabled {
  fill: #f2f2f2 !important;
  cursor: not-allowed !important;
  pointer-events: all;
}
.intervention-actors-diagram .intervention-actors-svg .intervention-circle-modal.disabled:hover {
  fill: #f2f2f2 !important;
}
.intervention-actors-diagram .intervention-actors-svg .typology-node-group-modal {
  cursor: pointer;
  transition: opacity all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.intervention-actors-diagram .intervention-actors-svg .typology-node-group-modal .typology-node-circle-modal {
  transition: stroke-width 0.4s ease, stroke-dasharray 0.4s ease, fill 0.5s ease;
}
.intervention-actors-diagram .intervention-actors-svg .typology-node-group-modal.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}
.intervention-actors-diagram .intervention-actors-svg .typology-node-group-modal.disabled .typology-node-circle-modal {
  stroke-opacity: 0.5;
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal {
  transition: opacity all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal.active {
  opacity: 1;
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal.dimmed {
  opacity: 0.15;
  filter: grayscale(100%);
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal.highlighted {
  opacity: 1 !important;
  filter: none !important;
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal.hover-highlighted {
  opacity: 1 !important;
  filter: none !important;
}
.intervention-actors-diagram .intervention-actors-svg .actor-group-modal.hover-dimmed {
  opacity: 0.15 !important;
  filter: grayscale(100%);
}
.intervention-actors-diagram .intervention-actors-svg .actor-node-modal {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.intervention-actors-diagram .intervention-actors-svg .actor-label-modal,
.intervention-actors-diagram .intervention-actors-svg .actor-age-modal {
  pointer-events: none;
  font-family: inherit;
}

.intervention-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin: 0 0 0.75rem 0;
}

.intervention-actors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intervention-actor-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}
.intervention-actor-item .actor-image {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.intervention-actor-item .actor-color-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.intervention-actor-item .actor-name {
  font-weight: 500;
  color: #333;
}
.intervention-actor-item .actor-age {
  color: #999;
  font-size: 0.8rem;
}
.intervention-actor-item .actor-type {
  font-size: 0.75rem;
  font-style: italic;
  margin-left: auto;
}

.archive-lightbox .archive-lightbox-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 80vw;
  max-height: 80vh;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.archive-lightbox.active .archive-lightbox-content {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.archive-lightbox .archive-slide {
  display: flex;
  gap: 2rem;
  max-height: 80vh;
}
.archive-lightbox .archive-slide-image {
  flex: 1;
  min-width: 0;
}
.archive-lightbox .archive-slide-image img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.archive-lightbox .archive-slide-meta {
  flex: 0 0 280px;
  color: #2c3e50;
}
.archive-lightbox .archive-slide-meta h3 {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-weight: normal;
}
.archive-lightbox .archive-slide-meta .archive-meta-fields dl {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}
.archive-lightbox .archive-slide-meta .archive-meta-fields dl dt {
  color: rgba(44, 62, 80, 0.5);
  white-space: nowrap;
}
.archive-lightbox .archive-slide-meta .archive-meta-fields dl dd {
  color: #2c3e50;
}
.archive-lightbox .archive-slide-meta .archive-counter {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: rgba(44, 62, 80, 0.4);
  text-align: center;
}

.video-lightbox .video-lightbox-content {
  position: relative;
  width: 80vw;
  max-width: 960px;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-lightbox.active .video-lightbox-content {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.video-lightbox .video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.video-lightbox .video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-lightbox .video-title {
  color: rgba(44, 62, 80, 0.7);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
}
.video-lightbox .video-counter {
  color: rgba(44, 62, 80, 0.5);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  text-align: center;
}

.intervention-audiovisuals .audiovisual-item .audiovisual-item-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intervention-audiovisuals .audiovisual-item .audiovisual-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intervention-audiovisuals .audiovisual-item .audiovisual-item-thumb .audiovisual-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
.intervention-audiovisuals .audiovisual-item:hover .audiovisual-play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 64rem) {
  .intervention-layout {
    flex-direction: column;
  }
  .slider-main {
    aspect-ratio: 16/9;
  }
  .archive-lightbox .archive-slide {
    flex-direction: column;
  }
  .archive-lightbox .archive-slide-meta {
    flex: 0 0 auto;
  }
}
.ownerships-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ownerships-list .ownership-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--gap) * 0.3) 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 1rem;
}
.ownerships-list .ownership-item:last-child {
  border-bottom: none;
}
.ownerships-list .ownership-name {
  flex: 1;
  min-width: 0;
}
.ownerships-list .ownership-period {
  flex-shrink: 0;
  text-align: right;
  margin-left: var(--gap);
  opacity: 0.7;
}

.modal-share {
  display: none;
  gap: 0.75rem;
  padding: 1.5rem 0 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #2c3e50;
  align-items: center;
}
@media (min-width: 64rem) {
  .modal-share {
    display: flex;
  }
}
.modal-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid;
  background: transparent;
  color: #2c3e50;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0;
  font: inherit;
}
.modal-share__link:hover {
  background-color: #2c3e50;
  color: #ffffff;
}
.modal-share__copy--done {
  background-color: #27AE60 !important;
  color: #ffffff !important;
  border-color: #27AE60 !important;
}

.detail-modal.instant-reveal .detail-modal-container {
  transform: translateX(0) !important;
  transition: none !important;
}
.detail-modal.instant-reveal .detail-modal-overlay {
  opacity: 1 !important;
  transition: none !important;
}

.detail-modal-content.instant-reveal .detail-modal-type,
.detail-modal-content.instant-reveal .detail-modal-type-building,
.detail-modal-content.instant-reveal .detail-modal-dates,
.detail-modal-content.instant-reveal .intervention-protection {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}
.detail-modal-content.instant-reveal .detail-modal-name {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.detail-modal-content.instant-reveal .detail-modal-image img {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.detail-modal-content.instant-reveal .detail-modal-layout {
  transition: none !important;
}

.enriched-expand {
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.enriched-expand-content {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
.enriched-expand-content.visible {
  opacity: 1;
}

.enriched-loading {
  padding: calc(var(--gap) * 0.5) 0;
  display: flex;
  align-items: center;
  gap: 0.2em;
}

.loading-dots {
  display: inline-flex;
  gap: 0.25em;
}
.loading-dots::before, .loading-dots::after, .loading-dots {
  content: "";
}
.loading-dots::before, .loading-dots::after {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: loadingDotPulse 1.2s ease-in-out infinite;
}
.loading-dots::before {
  animation-delay: 0s;
}
.loading-dots::after {
  animation-delay: 0.4s;
}

.loading-dots {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: loadingDotPulse 1.2s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes loadingDotPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  40% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}
.detail-modal-buildings-wrapper {
  position: relative;
}

.collaborator-connections-svg {
  position: absolute;
  left: -5px !important;
  top: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.detail-modal-buildings-list {
  padding: 0;
  margin: 0;
}
.detail-modal-buildings-list .building-group {
  margin-bottom: 1.5rem;
}
.detail-modal-buildings-list .building-group:last-child {
  margin-bottom: 0;
}
.detail-modal-buildings-list .buildings-list-title {
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: normal;
  font-size: 1.55rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

h4.building-name {
  z-index: 2;
  text-transform: uppercase;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 20%);
  margin: 0;
  position: sticky;
  top: calc(clamp(16px, 1.1719vw, 21px) * 3 + 1.5rem);
  font-size: 1.8rem;
  padding-top: calc(clamp(16px, 1.1719vw, 21px) * 1 + 1rem);
  padding-bottom: calc(var(--gap) * 0.25);
  margin-bottom: calc(var(--gap) - 1rem);
}

.detail-modal-buildings-list .building-interventions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-modal-buildings-list .intervention-item {
  padding: 0.5rem 0;
  padding-top: 0;
  padding-bottom: 0;
}
.detail-modal-buildings-list .intervention-item:last-child {
  border-bottom: none;
}
.detail-modal-buildings-list .intervention-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  position: sticky;
  border-bottom: 1px solid;
  top: calc(clamp(16px, 10.27px + 0.56vw, 21px) * 8 + 1rem);
  z-index: 1;
  padding-bottom: calc(var(--gap) - 1rem);
  margin-bottom: calc(var(--gap) - 1rem);
  background-color: #ffffff !important;
  font-size: 1rem;
}
.detail-modal-buildings-list .intervention-header:after {
  width: 100%;
  height: var(--gap);
  position: absolute;
  top: 99%;
  left: 0;
  content: "";
  display: block;
  background-image: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 18%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0.25) 82%, rgba(255, 255, 255, 0) 100%);
}
.detail-modal-buildings-list .intervention-header .intervention-years {
  font-size: 0.8em;
  flex-basis: 3.6rem;
}
.detail-modal-buildings-list .intervention-header .intervention-age {
  display: none;
}
.detail-modal-buildings-list .intervention-name:hover {
  text-decoration: underline;
}
.detail-modal-buildings-list .intervention-age {
  display: none;
}
.detail-modal-buildings-list .intervention-collaborators {
  list-style: none;
  padding: 0;
  width: 100%;
  padding-left: 1rem;
  margin: 0;
  font-size: 0.8rem;
  padding-top: var(--gap);
  display: grid;
  padding-bottom: calc(var(--gap) * 3);
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  row-gap: 0;
}
.detail-modal-buildings-list .collaborator-item {
  grid-column: 1/span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: calc(var(--gap) * 0.2) 0;
  position: relative;
  border-bottom: 1px solid #e6e6e6;
}
.detail-modal-buildings-list .collaborator-item::before {
  content: none;
}
.detail-modal-buildings-list .collaborator-item.has-connections .connection-indicator {
  position: absolute;
  right: 0rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 0;
}
.detail-modal-buildings-list .collaborator-item.has-connections .connection-indicator:hover {
  transform: translateY(-50%) scale(1.3);
}
.detail-modal-buildings-list .collaborator-item.has-connections .connection-indicator.active {
  background: white;
}
.detail-modal-buildings-list .collaborator-item.faded {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.detail-modal-buildings-list .collaborator-item.faded:hover, .detail-modal-buildings-list .collaborator-item.faded.connectat {
  opacity: 1;
}
.detail-modal-buildings-list .collaborator-node-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: auto;
  box-sizing: content-box;
}
.detail-modal-buildings-list .collaborator-node {
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: content-box;
  background: white;
}
.detail-modal-buildings-list .collaborator-info {
  grid-column: 2/span 11;
  display: grid;
  grid-template-columns: repeat(10, 1fr) 2fr;
  gap: var(--gap);
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
}
.detail-modal-buildings-list .collaborator-info .collaborator-name {
  grid-column: 1/span 5;
  font-size: 1rem;
}
.detail-modal-buildings-list .collaborator-info .collaborator-name:hover {
  text-decoration: underline;
}
.detail-modal-buildings-list .collaborator-info .collaborator-count {
  grid-column: 10/span 2;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.25rem;
  padding-right: 1rem;
  position: relative;
}
.detail-modal-buildings-list .collaborator-info .collaborator-count .connection-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.detail-modal-buildings-list .collaborator-info .collaborator-count .connection-indicator.active {
  background: white;
}
.detail-modal-buildings-list .collaborator-info .collaborator-type {
  grid-column: 6/span 2;
  grid-row: 1;
}
.detail-modal-buildings-list .collaborator-info .collaborator-age {
  grid-column: 8/span 2;
  grid-row: 1;
  opacity: 0;
  font-size: 0.75rem;
}

.intervention-collaborators-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  row-gap: 0;
}
.intervention-collaborators-list .collaborator-item {
  grid-column: 1/span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  padding: calc(var(--gap) * 0.2) 0;
  border-bottom: 1px solid #e6e6e6;
}
.intervention-collaborators-list .collaborator-item:last-child {
  border-bottom: none;
}
.intervention-collaborators-list .collaborator-item::before {
  content: none;
}
.intervention-collaborators-list .collaborator-node-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: auto;
  box-sizing: content-box;
}
.intervention-collaborators-list .collaborator-node {
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: content-box;
  background: white;
}
.intervention-collaborators-list .collaborator-info {
  grid-column: 2/span 11;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: var(--gap);
  align-items: center;
  font-size: 1rem;
}
.intervention-collaborators-list .collaborator-name {
  grid-column: 1/span 7;
  cursor: pointer;
  grid-row: 1;
  font-size: 1rem;
}
.intervention-collaborators-list .collaborator-name:hover {
  text-decoration: underline;
}
.intervention-collaborators-list .collaborator-type {
  grid-column: 7/span 2;
  font-size: 1rem;
  grid-row: 1;
}
.intervention-collaborators-list .collaborator-age {
  grid-column: 10/span 2;
  grid-row: 1;
  opacity: 0;
  font-size: 1rem;
  text-align: right;
}

/**
 * Timelines - Estils per intervention-timeline i actor-timeline
 * Constel·lació Gaudí
 */
.intervention-timeline,
.actor-timeline {
  width: 100%;
}
.intervention-timeline .intervention-timeline-svg,
.intervention-timeline .actor-timeline-svg,
.actor-timeline .intervention-timeline-svg,
.actor-timeline .actor-timeline-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.intervention-timeline .timeline-axis-main,
.actor-timeline .timeline-axis-main {
  stroke: #2c3e50;
  stroke-width: 1;
  stroke-opacity: 0.7;
}
.intervention-timeline .timeline-axis-building,
.actor-timeline .timeline-axis-building {
  stroke-linecap: round;
  stroke-width: 14;
}
.intervention-timeline .timeline-axis-gaudi,
.actor-timeline .timeline-axis-gaudi {
  stroke-linecap: round;
  stroke-width: 4;
  stroke-opacity: 0.4;
}
.intervention-timeline .timeline-arc,
.actor-timeline .timeline-arc {
  fill: none;
}
.intervention-timeline .timeline-arc.gaudi-death,
.actor-timeline .timeline-arc.gaudi-death {
  stroke: #2c3e50;
  stroke-width: 1px;
}
.intervention-timeline .timeline-arc.gaudi-death-fill,
.actor-timeline .timeline-arc.gaudi-death-fill {
  fill: unset !important;
}
.intervention-timeline .timeline-arc-hover-area,
.actor-timeline .timeline-arc-hover-area {
  pointer-events: stroke;
}
.intervention-timeline .timeline-arc-group.gaudi-death .timeline-arc.gaudi-death,
.actor-timeline .timeline-arc-group.gaudi-death .timeline-arc.gaudi-death {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.intervention-timeline .timeline-arc-group.gaudi-death .gaudi-death-text,
.actor-timeline .timeline-arc-group.gaudi-death .gaudi-death-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.intervention-timeline .timeline-arc-group.gaudi-death:hover .timeline-arc.gaudi-death,
.actor-timeline .timeline-arc-group.gaudi-death:hover .timeline-arc.gaudi-death {
  opacity: 1;
}
.intervention-timeline .timeline-arc-group.gaudi-death:hover .gaudi-death-text,
.actor-timeline .timeline-arc-group.gaudi-death:hover .gaudi-death-text {
  opacity: 1;
}
.intervention-timeline .gaudi-death-text,
.actor-timeline .gaudi-death-text {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.4875rem;
  pointer-events: none;
}
.intervention-timeline .timeline-year-mark,
.actor-timeline .timeline-year-mark {
  stroke-width: 0;
  stroke: #2c3e50;
}
.intervention-timeline .timeline-label-main,
.actor-timeline .timeline-label-main {
  font-size: 0.8rem;
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
}
.intervention-timeline .timeline-label-year,
.actor-timeline .timeline-label-year {
  font-size: 0.52rem;
  text-anchor: middle;
}
.intervention-timeline .timeline-intervention,
.intervention-timeline .timeline-building,
.actor-timeline .timeline-intervention,
.actor-timeline .timeline-building {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.intervention-timeline .timeline-intervention:hover .timeline-bar,
.intervention-timeline .timeline-intervention:hover .timeline-building-bar,
.intervention-timeline .timeline-building:hover .timeline-bar,
.intervention-timeline .timeline-building:hover .timeline-building-bar,
.actor-timeline .timeline-intervention:hover .timeline-bar,
.actor-timeline .timeline-intervention:hover .timeline-building-bar,
.actor-timeline .timeline-building:hover .timeline-bar,
.actor-timeline .timeline-building:hover .timeline-building-bar {
  fill-opacity: 0.8;
}
.intervention-timeline .timeline-intervention.active .timeline-bar,
.intervention-timeline .timeline-intervention.active .timeline-building-bar,
.intervention-timeline .timeline-building.active .timeline-bar,
.intervention-timeline .timeline-building.active .timeline-building-bar,
.actor-timeline .timeline-intervention.active .timeline-bar,
.actor-timeline .timeline-intervention.active .timeline-building-bar,
.actor-timeline .timeline-building.active .timeline-bar,
.actor-timeline .timeline-building.active .timeline-building-bar {
  fill-opacity: 1;
  fill: #659da8;
}
.intervention-timeline .timeline-bar,
.intervention-timeline .timeline-building-bar,
.actor-timeline .timeline-bar,
.actor-timeline .timeline-building-bar {
  transition: fill-opacity 0.2s ease, filter 0.2s ease;
  fill: url(#timeline-building-gradient);
  height: 20px;
  rx: 4px;
  ry: 4px;
}
.intervention-timeline .timeline-bar,
.actor-timeline .timeline-bar {
  transition: fill-opacity 0.2s ease, fill 0.2s ease, filter 0.2s ease;
  mix-blend-mode: normal;
  fill: #ebe6dd;
}
.intervention-timeline .timeline-bar.hovered,
.actor-timeline .timeline-bar.hovered {
  fill: #659da8;
}
.intervention-timeline .timeline-bar.active,
.actor-timeline .timeline-bar.active {
  fill: #24678e !important;
}
.intervention-timeline .timeline-building-label,
.actor-timeline .timeline-building-label {
  fill: #2c3e50;
  font-size: 0.585rem;
  text-transform: uppercase;
}
.intervention-timeline .timeline-actor-intervention,
.actor-timeline .timeline-actor-intervention {
  pointer-events: all;
  fill: #24678e;
  fill-opacity: 1;
  cursor: pointer;
  height: 20px;
  rx: 4px;
  ry: 4px;
}
.intervention-timeline .timeline-intervention-label,
.actor-timeline .timeline-intervention-label {
  font-size: 0.65rem;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.intervention-timeline .timeline-intervention-label.visible,
.actor-timeline .timeline-intervention-label.visible {
  opacity: 1;
}
.intervention-timeline .timeline-actor-life-bar,
.actor-timeline .timeline-actor-life-bar {
  height: 24px;
  rx: 4px;
  ry: 4px;
}
.intervention-timeline .timeline-actor-life-label,
.actor-timeline .timeline-actor-life-label {
  fill: #ffffff;
  font-size: 0.585rem;
  text-transform: uppercase;
}
.intervention-timeline .timeline-hover-area,
.actor-timeline .timeline-hover-area {
  fill: transparent;
  pointer-events: all;
}

.firma {
  font-size: 0.9em;
  padding-top: 3em;
  padding-bottom: 5em;
}
.firma strong {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.page:not(.home) .site-main {
  margin: 0 auto;
  margin-left: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2 + var(--gap) * 2);
  max-width: 50vw;
  padding: calc(var(--gap) * 2) var(--gap);
  padding-top: calc(var(--gap) * 2);
}
body.page:not(.home) .site-page {
  margin: 0;
}
body.page:not(.home) .site-page__title {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 4.2rem;
  line-height: 1.1;
  margin: 0;
  color: #2c3e50;
  min-height: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: calc(var(--gap) * 4);
}
body.page:not(.home) .site-page__content {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
}
body.page:not(.home) .site-page__content h2 {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: calc(var(--gap) * 2) 0 var(--gap);
}
body.page:not(.home) .site-page__content h3 {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1.3;
  margin: calc(var(--gap) * 1.5) 0 calc(var(--gap) * 0.5);
}
body.page:not(.home) .site-page__content p {
  margin: 0 0 var(--gap);
}
body.page:not(.home) .site-page__content a {
  color: #2c3e50;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s ease;
}
body.page:not(.home) .site-page__content a:hover {
  opacity: 0.6;
}
body.page:not(.home) .site-page__content ul, body.page:not(.home) .site-page__content ol {
  margin: 0 0 var(--gap);
  padding-left: 1.5em;
}
body.page:not(.home) .site-page__content li {
  margin-bottom: calc(var(--gap) * 0.3);
}
body.page:not(.home) .site-page__content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
body.page:not(.home) .site-page__content blockquote {
  margin: var(--gap) 0;
  padding-left: var(--gap);
  border-left: 2px solid #2c3e50;
  font-style: italic;
}
body.page:not(.home) .site-page__empty {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.55rem;
  color: rgba(44, 62, 80, 0.5);
  text-align: center;
  padding: calc(var(--gap) * 3) 0;
}

.page-modal {
  display: block;
  position: fixed;
  top: 0;
  left: 33vw;
  width: calc(100% - 33vw);
  height: 100%;
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.6s;
}
.page-modal.active {
  transform: translateX(0%);
}
@media (max-width: 768px) {
  .page-modal {
    left: 0;
    width: 100%;
    z-index: 4;
  }
}

.page-modal__container {
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-modal__close {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: var(--gap);
  right: var(--gap);
  width: calc(var(--gap) * 2);
  height: calc(var(--gap) * 2);
  background: #2c3e50;
  color: #ffffff;
  border: 1px solid;
  font-size: 2rem;
  border-radius: 50%;
  z-index: 101;
  transition: background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-modal__close::after {
  content: "";
  width: 60%;
  height: 60%;
  background-color: currentColor;
  -webkit-mask-image: url("../img/pictos/eye-minus.svg");
  mask-image: url("../img/pictos/eye-minus.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.page-modal__close:hover {
  background-color: #c0392b;
}

.page-modal__content {
  overflow-y: auto;
  width: 100%;
  height: 100%;
  padding-left: 5vw;
  padding-right: 10vw;
  padding-top: 0;
  background: white;
  background: #F7F2E8;
  color: #2c3e50;
}

.page-modal__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: rgba(44, 62, 80, 0.4);
}
.page-modal.loaded .page-modal__loader {
  display: none;
}

.page-modal__inner {
  width: 100%;
  mix-blend-mode: darken;
  max-width: 40vw;
  padding: calc(var(--gap) * 2) 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-modal.loaded .page-modal__inner {
  opacity: 1;
  transform: translateY(0);
}

.page-modal__title {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 4.2rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
  color: #2c3e50;
  min-height: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: calc(var(--gap) * 4);
}

.page-modal__body {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
}
.page-modal__body h2 {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: calc(var(--gap) * 2) 0 var(--gap);
}
.page-modal__body h3 {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2rem;
  line-height: 1.3;
  margin: calc(var(--gap) * 1.5) 0 calc(var(--gap) * 0.5);
}
.page-modal__body h4 {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.page-modal__body p {
  margin: 0 0 var(--gap);
}
.page-modal__body a {
  color: #2c3e50;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s ease;
}
.page-modal__body a:hover {
  opacity: 0.6;
}
.page-modal__body strong {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.page-modal__body ul, .page-modal__body ol {
  margin: 0 0 var(--gap);
  padding-left: 1.5em;
}
.page-modal__body li {
  margin-bottom: calc(var(--gap) * 0.3);
}
.page-modal__body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.page-modal__body blockquote {
  margin: var(--gap) 0;
  padding-left: var(--gap);
  border-left: 2px solid #2c3e50;
  font-style: italic;
}
.page-modal__body .wpcf7 {
  position: relative;
}
.page-modal__body .wpcf7-form {
  max-width: 40em;
}
.page-modal__body .wpcf7-form strong {
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: block;
}
.page-modal__body .wpcf7-form .colaborar-block {
  margin-bottom: calc(var(--gap) * 2);
}
.page-modal__body .wpcf7-form .colaborar-block p {
  margin-bottom: var(--gap);
}
.page-modal__body .wpcf7-form .colaborar-block--legal .colaborar-legal__text {
  font-size: 0.8em;
  padding: 1em;
  background: #f1ede3;
  margin: 0;
}
.page-modal__body .wpcf7-list-item {
  margin-top: var(--gap);
  margin-left: 0;
}
.page-modal__body label {
  display: block;
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}
.page-modal__body label .wpcf7-list-item-label {
  font-size: 0.8rem;
}
.page-modal__body input[type=text],
.page-modal__body input[type=email] {
  display: block;
  width: 100%;
  padding: calc(var(--gap) * 0.5) calc(var(--gap) * 0.6);
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  background: #f1ede3;
  border: 1px solid transparent;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.page-modal__body input[type=text]:focus,
.page-modal__body input[type=email]:focus {
  outline: none;
  border-color: #2c3e50;
}
.page-modal__body select {
  display: block;
  width: 100%;
  padding: calc(var(--gap) * 0.5) calc(var(--gap) * 0.6);
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  background: #f1ede3;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.page-modal__body select:focus {
  outline: none;
  border-color: #2c3e50;
}
.page-modal__body textarea {
  display: block;
  width: 100%;
  min-height: 8em;
  padding: calc(var(--gap) * 0.5) calc(var(--gap) * 0.6);
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  background: #f1ede3;
  border: 1px solid transparent;
  border-radius: 2px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.page-modal__body textarea:focus {
  outline: none;
  border-color: #2c3e50;
}
.page-modal__body input[type=submit] {
  margin-top: calc(var(--gap) * 1.5);
  padding: calc(var(--gap) * 0.7) calc(var(--gap) * 3);
  font-family: "LL Replica Pro Regular Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #ffffff;
  background: #2c3e50;
  border: 1px solid #2c3e50;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.page-modal__body input[type=submit]:hover {
  background: transparent;
  color: #2c3e50;
}
.page-modal__body .wpcf7-not-valid {
  color: #c0392b !important;
  border-color: #c0392b !important;
}
.page-modal__body .wpcf7-not-valid::placeholder {
  color: #c0392b !important;
}
.page-modal__body .wpcf7-not-valid-tip {
  font-size: 0.65rem;
  color: #c0392b;
  margin-top: calc(var(--gap) * 0.2);
}
.page-modal__body .wpcf7-response-output {
  font-size: 0.8rem;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 1em !important;
  color: #ffffff !important;
  line-height: 1.3;
  width: 33%;
  border-radius: 2px;
  margin-bottom: 0 !important;
}
.page-modal__body .invalid .wpcf7-response-output {
  background: #c0392b;
  border-color: #c0392b !important;
}
.page-modal__body .sent .wpcf7-response-output {
  background: #46b450;
}

.credits-grid h6 {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #2c3e50;
  margin: 0 0 calc(var(--gap) * 0.5);
}
.credits-grid p {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.credits-grid a {
  color: #2c3e50;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.credits-grid a:hover {
  opacity: 0.6;
}

.credits-grid__row {
  padding: calc(var(--gap) * 2) 0;
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}
.credits-grid__row:last-child {
  border-bottom: none;
}

.credits-grid__row--top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--gap) * 2);
}
.credits-grid__row--top-2 {
  display: grid;
  gap: calc(var(--gap) * 2);
  grid-template-columns: repeat(3, 1fr);
}
.credits-grid__row--top.logos-coac {
  padding-top: 0;
}
.credits-grid__row--top.logos-coac img {
  max-width: 80%;
}
@media (max-width: 768px) {
  .credits-grid__row--top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .credits-grid__row--top {
    grid-template-columns: 1fr;
  }
}

.credits-grid__logo {
  max-width: 10em;
  height: auto;
  margin-top: calc(var(--gap) * 0.3);
}

.credits-grid__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: calc(var(--gap) * 2);
  margin-top: calc(var(--gap) * 0.5);
}
.credits-grid__logos img {
  max-height: 3em;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.credits-grid__logos.credits-grid__logos--entities img {
  max-height: 6em;
  max-width: 80%;
}
.credits-grid__logos.credits-grid__logos--entities img.logo-palau-guell {
  max-width: 120%;
}

.mobile-block-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #333;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
@media (max-width: 1023px) {
  .mobile-block-overlay {
    display: flex;
  }
}
.mobile-block-overlay__content {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mobile-block-overlay__circle {
  width: clamp(140px, 40vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15em;
  padding: 1em;
  position: relative;
}
.mobile-block-overlay__circle::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed var(--circle-color, rgba(255, 255, 255, 0.35));
  animation: mobileBlockRotateBorder 40s linear infinite;
}
.mobile-block-overlay__circle-title {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.1;
}
.mobile-block-overlay__circle-subtitle {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.1;
}
.mobile-block-overlay__title {
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  opacity: 0.9;
}
.mobile-block-overlay__text {
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.5;
}
.mobile-block-overlay__logo {
  position: absolute;
  bottom: 2rem;
}
.mobile-block-overlay__logo img {
  height: 85px;
  width: auto;
}

@keyframes mobileBlockRotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
:root {
  color-scheme: light dark;
  --gap: 1.5rem;
  --dark-font: #2c3e50;
  --color-black: #2c3e50;
  --color-background: white;
  --color-intervention-highlight: #000000;
  --color-intervention-10: #ebe6dd;
  --color-intervention-12: #e0e0e0;
  --color-intervention-60: #24678e;
  --color-intervention-base: #f4f1ec;
  --color-node-background: white;
  --color-actor-default: #999999;
  --color-text-dark: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-type-arquitectura: #4A9882;
  --color-type-ceramica: #B88D67;
  --color-type-contractista: #5B658C;
  --color-type-disseny-grafic: #645094;
  --color-type-entitat: #5D5292;
  --color-type-escultura: #b8577d;
  --color-type-forja: #AE5262;
  --color-type-fusteria: #AA4D75;
  --color-type-gestor: #575C8E;
  --color-type-historiografia: #814B9B;
  --color-type-installacions: #764C99;
  --color-type-instruments-musicals: #8C4A9D;
  --color-type-interiorisme: #6C4E96;
  --color-type-mestre-obres: #B67E62;
  --color-type-metallisteria: #B26059;
  --color-type-mobiliari: #A54A89;
  --color-type-mosaics: #BB9B6E;
  --color-type-obra-pedra: #BDA874;
  --color-type-orfebreria: #B0555A;
  --color-type-pintura: #B46F5D;
  --color-type-promotor: #575590;
  --color-type-ram-paleta: #BFB47C;
  --color-type-restauracio: #99499F;
  --color-type-serralleria: #AC4F6B;
  --color-type-societat: #000000;
  --color-type-tapisseria: #A74B7F;
  --color-type-vitralleria: #A1499C;
  --color-grey-tipology-stroke: #a6b9b3;
  --color-free-dimmed: #ebe6dd;
  --color-palette-gradient: "#8B5A8D, #9B5687, #AA5381, #B8577D, #C35576, #CD536F, #D4516D, #DA5866, #DF5F5F, #E46659, #E87056, #EB7A53, #E67E5C, #E38450, #DF8A45, #DB903A, #D8932B, #D49838, #CF9D45, #CAA152, #C5A55F, #C0A96C, #BBAD79, #B6B186, #B1B593, #ACB9A0";
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(16px, 1.1719vw, 21px);
}

body {
  margin: 0;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: black;
  background: #ffffff;
}
body.page-template-constelacio-php {
  background: #F7F2E8;
}

.site-title-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

.site-tagline {
  margin: 0.5rem 0 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
  border-radius: 0.25rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease-in-out;
}
.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  width: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  z-index: 1000;
  color: #ffffff;
  border-bottom-right-radius: calc((min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2) * 0.5);
}

footer#footer {
  border-top: 1px solid rgb(51, 51, 51);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: calc(var(--gap) * 4);
  width: 100%;
  padding-left: var(--gap);
  padding-right: var(--gap);
  background-color: rgb(255, 255, 255);
  filter: invert(100%);
  -webkit-filter: invert(100%);
  z-index: 99;
  position: relative;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (min-width: 1024px) {
  footer#footer {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    margin-right: 0;
    z-index: 2;
  }
}

#footer a {
  text-decoration: underline;
  color: #2c3e50;
}

@media (min-width: 768px) {
  #footer .footer-inner {
    display: flex;
    padding-top: 23vh;
    position: relative;
    justify-content: space-around;
  }
}
@media (min-width: 1024px) {
  #footer .footer-inner {
    max-width: 85vw;
    width: auto;
    margin: auto;
    display: grid;
    grid-template-columns: 20% 1fr 1fr 1fr;
    padding-top: 2rem;
  }
}

#footer .col {
  padding-top: 2rem;
  font-size: 0.9rem;
  line-height: 160%;
  margin-left: 1rem;
}
@media (min-width: 768px) {
  #footer .col {
    margin-left: 0;
    width: 25%;
  }
}
@media (min-width: 1024px) {
  #footer .col {
    width: 100%;
  }
}

#footer .col.first {
  margin-left: 0;
}
@media (min-width: 768px) {
  #footer .col.first {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
  }
}
@media (min-width: 1024px) {
  #footer .col.first {
    position: inherit;
    display: grid;
    flex-direction: column;
  }
}
#footer .col.first .by {
  margin-top: 0;
}
#footer .col.first .by.coac {
  width: 40%;
  margin-bottom: 2rem;
}
#footer .col.first .by.coac span {
  display: block;
  white-space: nowrap;
  margin-bottom: 1rem;
}
#footer .col.first .by.centre_arquitectura {
  width: 65%;
  margin-bottom: 2rem;
}
#footer .col.first .by img.logo-coac-bottom, #footer .col.first .by img.logo-centre_obert-bottom {
  width: 100%;
}
@media (min-width: 1024px) {
  #footer .col.first .tb-column-inner {
    align-self: flex-end;
    width: 300%;
  }
}

#footer h6 {
  font-size: 1em;
  margin-bottom: 0;
  margin-left: -1rem;
  font-weight: normal;
}
@media (min-width: 768px) {
  #footer h6 {
    margin-left: 0;
  }
}

#footer .suport {
  text-transform: uppercase;
  padding-top: 2rem;
}
#footer .suport img {
  width: 100%;
}
#footer .suport p.logo {
  max-width: 400px;
}

#footer .col .links-footer i.fa {
  margin-right: 0.5em;
  text-align: left;
  display: none;
}

.site-main {
  padding: 2rem 1.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.constelacio-edificis-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  border-bottom: 0px solid black;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F7F2E8;
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  animation: fadeIn 0.5s ease;
}

.constelacio-filters-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  padding: 0 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.constelacio-filters-container > * {
  pointer-events: auto;
}

.actor-search-wrapper {
  flex: 1;
  min-width: 0;
  display: none;
}

.actor-type-filter-wrapper {
  flex: 0 0 auto;
  width: 250px;
}

.edifici-select-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: -3.3rem auto 0;
  padding: 0 1rem;
}

.site-branding {
  position: relative;
  z-index: 3;
  display: flex;
  padding: var(--gap);
  padding-bottom: 0;
  align-items: center;
}
.site-branding__link {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--gap) * 1);
  text-decoration: none;
  color: #2c3e50;
  font-size: 1rem;
  width: 100%;
  aspect-ratio: 1;
  border: 1px none;
  background: #f1ede3;
  border-radius: 50%;
  transition: background-color 1.2s ease, color 1.2s ease, border-color 0.3s ease;
  position: relative;
}
.site-branding__link::after {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1.5px dashed #9d9067;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: brandingArcRotate 8s linear infinite;
}
body:not(.home) .site-branding__link:hover {
  border-color: transparent;
}
.site-branding__title {
  gap: calc(var(--gap) * 0.5);
  font-size: calc(min(100vw, 100vh) * 0.018);
  margin: 0;
  line-height: 1;
  font-family: "LL Replica Pro bold Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-branding__claim {
  display: block;
  text-transform: none;
  letter-spacing: 0px;
  line-height: 1;
  font-size: 0.8em;
  padding-top: 0.4em;
  font-family: "LL Replica Pro Light Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-nav__panel {
  padding-top: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2 + var(--gap) * 2);
}

.site-nav__toggle {
  z-index: 3;
  position: fixed;
  top: var(--gap);
  left: var(--gap);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  width: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2 - var(--gap) * 2);
  aspect-ratio: 1;
  text-indent: -1000vw;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, background 0.2s ease-in-out;
}
.site-nav__toggle::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  border: 1.5px dashed #9d9067;
  box-sizing: border-box;
  animation: brandingArcRotate 40s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.site-nav__toggle:hover::before, .site-nav__toggle:focus-visible::before {
  opacity: 1;
}
body.detail-modal-open .site-nav__toggle::before {
  border-color: var(--toggle-arc-color, #9d9067);
}

.site-nav__toggle-icon {
  position: relative;
  width: 22px;
  height: 14px;
  display: none;
}
.site-nav__toggle-icon::before, .site-nav__toggle-icon::after,
.site-nav__toggle-icon span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-nav__toggle-icon span {
  top: 50%;
  transform: translateY(-50%);
}
.site-nav__toggle-icon::before {
  top: 0;
}
.site-nav__toggle-icon::after {
  bottom: 0;
}

.site-nav__toggle[aria-expanded=true] .site-nav__toggle-icon span {
  opacity: 0;
}
.site-nav__toggle[aria-expanded=true] .site-nav__toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle[aria-expanded=true] .site-nav__toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  pointer-events: none;
}
.site-nav__overlay {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(249, 246, 239, 0.75);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  pointer-events: none;
}
.site-nav__panel {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #f9f6ef;
  color: var(--dark-font);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem calc(var(--gap) * 2) 1.5rem;
  gap: 1.5rem;
  box-shadow: 0 0 0rem rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.site-nav__panel ul li:first-child {
  margin-top: 2em;
  margin-bottom: 2em;
}
.site-nav__panel ul li:first-child a {
  font-size: 1rem;
}
.site-nav__panel-header {
  display: flex;
  justify-content: flex-end;
}
.site-nav__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-nav__close-icon {
  position: relative;
  width: 18px;
  height: 18px;
}
.site-nav__close-icon::before, .site-nav__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.site-nav__close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}
.site-nav__close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.site-nav__list a {
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 300;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.site-nav__active-eye {
  position: absolute;
  left: -1.4em;
  width: 0.8em;
  height: 0.8em;
  opacity: 0;
  transition: top 0.35s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.2s ease;
  pointer-events: none;
}
.site-nav__active-eye::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #2c3e50;
}
.site-nav__active-eye::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: white;
  -webkit-mask-image: url("../img/pictos/eye.svg");
  mask-image: url("../img/pictos/eye.svg");
  -webkit-mask-size: 60%;
  mask-size: 60%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.site-nav__active-eye.is-visible {
  opacity: 1;
}
.site-nav__languages {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.site-nav__lang {
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.site-nav__lang:hover, .site-nav__lang:focus-visible {
  opacity: 1;
}
.site-nav__lang--active {
  opacity: 1;
  pointer-events: none;
}

.site-nav-open .site-nav {
  pointer-events: auto;
}
.site-nav-open .site-nav__overlay {
  opacity: 1;
  pointer-events: auto;
}
.site-nav-open .site-nav__panel {
  transform: translateX(0);
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.12);
}
.site-nav-open body {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-nav__panel {
    width: 33vw;
    max-width: 33vw;
    padding-top: calc(min(100vw, 100vh) * 0.2 + 8px + var(--gap) * 2);
  }
}
@keyframes brandingArcRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
