/* ==========================================================================
   EXPERIÊNCIAS E DESTINOS — GALERIA MOSAICO EXPANDIDA (SEM BORDAS / SEM TAGS / BOTÕES SÓLIDOS)
   ========================================================================== */

.travel-site #experiencia {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f5ff 0%, #f1ebff 100%);
  color: #1e163b;
}

.travel-site #experiencia .section-head--gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 36px;
  margin-bottom: 24px;
}

.travel-site #experiencia .section-head--gallery h2 {
  margin: 0;
  max-width: 24ch;
}

.travel-site #experiencia .section-head--gallery .lead {
  max-width: 46ch;
  margin: 0;
  color: #4f4570;
  font-size: 15px;
  line-height: 1.65;
}

/* Container expandido para destacar as fotografias */
.experience-mosaic-wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.2vw, 32px);
}

/* Filtros usados apenas dentro do modal completo */
.experience-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.experience-filter-pill {
  appearance: none;
  border: 1px solid #d7cdf6;
  background-color: #ffffff;
  background-image: none;
  color: #3b2d70;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s ease;
}

.experience-filter-pill:hover,
.experience-filter-pill:focus-visible {
  border-color: #3f13af;
  color: #241361;
  background-color: #f4f0ff;
  background-image: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 19, 175, 0.12);
  outline: none;
}

.experience-filter-pill[aria-selected="true"] {
  border-color: #3f13af;
  color: #ffffff;
  background-color: #3f13af;
  background-image: none;
  box-shadow: 0 6px 16px rgba(63, 19, 175, 0.22);
}

.experience-filter-pill .pill-count {
  font-size: 11px;
  opacity: 0.78;
  font-weight: 500;
}

.experience-filter-pill[aria-selected="true"] .pill-count {
  opacity: 0.94;
}

/* Mosaico em 4 colunas flexíveis — 12 imagens, topo e base alinhados, zero sobreposição */
.experience-mosaic {
  display: grid;
  grid-template-columns: repeat(var(--mosaic-cols, 4), minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Card limpo: sem borda e sem tags laterais/cantos */
.mosaic-tile {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  color: #ffffff;
  background: #1d1438;
  isolation: isolate;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.mosaic-tile--wide {
  aspect-ratio: 4 / 3;
}

.mosaic-tile--tall {
  aspect-ratio: 3 / 4;
}

.mosaic-tile--square {
  aspect-ratio: 1 / 1;
}

.mosaic-tile:hover,
.mosaic-tile:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.mosaic-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: #1d1438;
}

.mosaic-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mosaic-focal, 50% 42%);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.mosaic-img-layer.is-entering {
  opacity: 0;
  transform: scale(1.06);
}

.mosaic-img-layer.is-leaving {
  opacity: 0;
  transform: scale(1.03);
}

.mosaic-tile:hover .mosaic-img-layer:not(.is-leaving):not(.is-entering),
.mosaic-tile:focus-visible .mosaic-img-layer:not(.is-leaving):not(.is-entering) {
  transform: scale(1.035);
}

.mosaic-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 54%,
    rgba(12, 8, 28, 0.78) 100%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mosaic-tile:hover .mosaic-scrim,
.mosaic-tile:focus-visible .mosaic-scrim {
  background: linear-gradient(
    180deg,
    transparent 44%,
    rgba(12, 8, 28, 0.88) 100%
  );
}

.mosaic-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  gap: 2px;
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.mosaic-caption.is-swapping {
  opacity: 0;
  transform: translateY(5px);
}

.mosaic-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.32;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.58);
}

.mosaic-wa-hint {
  font-size: 11px;
  font-weight: 600;
  color: #ffd166;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    opacity 0.28s ease,
    max-height 0.28s ease;
}

.mosaic-tile:hover .mosaic-wa-hint,
.mosaic-tile:focus-visible .mosaic-wa-hint {
  max-height: 20px;
  opacity: 1;
}

/* Barra inferior com botão "Ver mais" sólido (sem degradê) */
.experience-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

.experience-more-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: #3f13af;
  background-image: none;
  box-shadow: 0 10px 24px rgba(63, 19, 175, 0.22);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.24s ease,
    box-shadow 0.28s ease;
}

.experience-more-btn:hover,
.experience-more-btn:focus-visible {
  transform: translateY(-2px);
  background-color: #2d0c85;
  background-image: none;
  box-shadow: 0 14px 30px rgba(45, 12, 133, 0.3);
  outline: none;
}

.experience-more-btn span {
  opacity: 0.88;
  font-weight: 600;
}

.experience-helper-note {
  margin: 0;
  font-size: 12.5px;
  color: #5b527a;
}

/* ==========================================================================
   MODAL COMPLETO DA GALERIA ("Ver mais") — OVERLAY FIXO ABAIXO DO PHOTOSWIPE
   ========================================================================== */

.experience-gallery-modal[hidden] {
  display: none !important;
}

.experience-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 10, 34, 0.76);
  backdrop-filter: blur(8px);
}

.exp-gallery-panel {
  width: min(1320px, 94vw);
  max-width: 1320px;
  height: min(90vh, 940px);
  max-height: 92vh;
  border: 1px solid #dfd7fb;
  border-radius: 16px;
  background: #fbf9ff;
  color: #1e163b;
  box-shadow: 0 32px 90px rgba(18, 10, 48, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.exp-gallery-head {
  flex-shrink: 0;
  padding: 18px 24px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e6dffb;
  display: grid;
  gap: 12px;
}

.exp-gallery-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.exp-gallery-title-wrap {
  display: grid;
  gap: 3px;
}

.exp-gallery-title-wrap h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: #241361;
}

.exp-gallery-sub {
  margin: 0;
  font-size: 12.5px;
  color: #5b527a;
}

.exp-gallery-close {
  appearance: none;
  border: 1px solid #d7cdf6;
  background-color: #ffffff;
  background-image: none;
  color: #241361;
  border-radius: 999px;
  padding: 8px 18px;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.exp-gallery-close:hover,
.exp-gallery-close:focus-visible {
  background-color: #3f13af;
  background-image: none;
  border-color: #3f13af;
  color: #ffffff;
  outline: none;
}

.exp-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-gallery-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 24px;
}

.exp-gallery-grid {
  column-count: 4;
  column-gap: 10px;
}

.mosaic-tile--modal {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 10px;
}

.mosaic-tile--modal .mosaic-media {
  position: relative;
  inset: auto;
}

.mosaic-tile--modal .mosaic-img-layer {
  position: static;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   PHOTOSWIPE V5 — BARRA DE LEGENDA MINIMALISTA + WHATSAPP DO DESTINO
   ========================================================================== */

.pswp {
  z-index: 100000 !important;
}

.pswp__memoravel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 20px clamp(16px, 3vw, 32px) calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(12, 8, 28, 0.88) 45%, rgba(10, 6, 24, 0.96) 100%);
  pointer-events: none;
}

.pswp__memoravel-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  pointer-events: auto;
}

.pswp__memoravel-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.pswp__memoravel-wa {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background-color: #1f9d55;
  background-image: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pswp__memoravel-wa:hover,
.pswp__memoravel-wa:focus-visible {
  background-color: #178244;
  background-image: none;
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

/* Responsividade */
@media (max-width: 1536px) {
  .exp-gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .travel-site #experiencia .section-head--gallery .lead {
    font-size: 13.5px;
  }

  .experience-mosaic-wrap {
    padding: 0 12px;
  }

  .experience-filter-pill {
    padding: 8px 13px;
    font-size: 11.5px;
    min-height: 36px;
  }

  .experience-mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-mosaic,
  .mosaic-col {
    gap: 8px;
  }

  .mosaic-caption {
    left: 10px;
    right: 10px;
    bottom: 8px;
  }

  .mosaic-title {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .mosaic-wa-hint {
    max-height: 18px;
    opacity: 0.92;
    font-size: 10.5px;
  }

  .experience-gallery-modal {
    padding: 8px;
  }

  .exp-gallery-panel {
    width: 96vw;
    height: 92vh;
    border-radius: 14px;
  }

  .exp-gallery-head {
    padding: 14px 16px 12px;
  }

  .exp-gallery-body {
    padding: 12px 14px 18px;
  }

  .exp-gallery-grid {
    column-count: 1;
    column-gap: 0;
  }

  .mosaic-tile--modal {
    margin-bottom: 8px;
  }

  .pswp__memoravel-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pswp__memoravel-wa {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-tile,
  .mosaic-img-layer,
  .mosaic-caption,
  .mosaic-wa-hint,
  .experience-filter-pill,
  .experience-more-btn {
    animation: none !important;
    transition: none !important;
  }
}
