.hubr-detail {
  padding: 40px 24px 80px;
  background-color: #f9f7f2;
  min-height: 60vh;
}

.hubr-detail__inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hubr-detail__back {
  color: #6b7280;
  font-size: 28px;
  text-decoration: none;
  width: fit-content;
}

.hubr-detail__back:hover {
  color: #374151;
}

.hubr-detail__status {
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #555755;
}

.hubr-detail__status--plain {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}

.hubr-detail__status--error {
  color: #b91c1c; 
}

.hubr-detail__back-link {
  display: inline-block;
  margin-top: 12px;
  color: #374151;
}

.hubr-detail__card {
  background: #fff;
  border: 1px solid #eceae4;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hubr-detail__card[hidden],
.hubr-detail.is-loading .hubr-detail__card {
  display: none !important;
}

#hubr-detail-loading[hidden],
#hubr-detail-error[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .hubr-detail__card {
    padding: 40px;
  }
}

/* Cabeçalho */
.hubr-detail__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hubr-detail__identity {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.hubr-detail__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

@media (min-width: 768px) {
  .hubr-detail__logo {
    width: 200px;
    height: 200px;
  }
}

.hubr-detail__logo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .hubr-detail__logo--initials {
    font-size: 48px;
  }
}

.hubr-detail__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hubr-detail__title {
    font-size: 56px;
  }
}

.hubr-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hubr-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.hubr-detail__tag-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.hubr-detail__tag-icon svg {
  width: 40px;
  height: 40px;
}

.hubr-detail__tag--organizacao {
  color: #4b5563;
}

.hubr-detail__tag--categoria {
  color: #16a34a;
}

/* Seções de texto */
.hubr-detail__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hubr-detail__section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.hubr-detail__section-body {
  margin: 0;
  font-size: 24px;
  line-height: 1.65;
  color: #4b5563;
}

/* Contatos */
.hubr-detail__contacts {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hubr-detail__contacts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.hubr-detail__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hubr-detail__contact-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hubr-detail__contact-value {
  font-size: 24px;
  color: #1f2937;
  word-break: break-word;
}

.hubr-detail__contact-link {
  color: #4b5563;
  text-decoration: none;
}

.hubr-detail__contact-link:hover {
  color: #e95e0b;
  text-decoration: underline;
}

.hubr-detail__contacts--socials {
  margin-top: 4px;
}

/* Galeria */
.hubr-detail__gallery {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hubr-detail__gallery-viewport {
  flex: 1;
  overflow: hidden;
}

.hubr-detail__gallery-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
}

.hubr-detail__gallery-item {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: none;
  padding: 0;
  cursor: zoom-in;
}

@media (max-width: 639px) {
  .hubr-detail__gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

.hubr-detail__gallery-item img,
.hubr-detail__gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.hubr-detail__gallery-item:hover img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.hubr-lightbox__unavailable {
  margin: 0;
  padding: 24px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  text-align: center;
}

.hubr-detail__gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.hubr-detail__gallery-item--video:hover .hubr-detail__gallery-play {
  background: rgba(0, 0, 0, 0.4);
}

.hubr-detail__gallery-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid #1f2937;
  border-radius: 50%;
  background-color: transparent;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hubr-detail__gallery-nav:hover:not(:disabled) {
  background-color: #1f2937;
  color: #fff;
}

.hubr-detail__gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Lightbox */
body.hubr-lightbox-open {
  overflow: hidden;
}

.hubr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hubr-lightbox[hidden] {
  display: none;
}

.hubr-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.88);
}

.hubr-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, 100%);
  max-height: calc(100vh - 96px);
}

.hubr-lightbox__image,
.hubr-lightbox__video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hubr-lightbox__video {
  width: 100%;
  background: #000;
}

.hubr-lightbox__close,
.hubr-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.hubr-lightbox__close:hover,
.hubr-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hubr-lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.hubr-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.hubr-lightbox__nav--prev {
  left: 20px;
}

.hubr-lightbox__nav--next {
  right: 20px;
}

.hubr-lightbox__counter {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 639px) {
  .hubr-lightbox {
    padding: 12px;
  }

  .hubr-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .hubr-lightbox__nav--prev {
    left: 8px;
  }

  .hubr-lightbox__nav--next {
    right: 8px;
  }

  .hubr-lightbox__close {
    top: 12px;
    right: 12px;
  }
}
