/* Fiche publique structure (Séjourner) — canvas sombre + cartes catalogue */
.ap-structure-page {
  --ap-structure-mint: #6eecc0;
  --ap-structure-ink: #0c1a16;
  --ap-loc-bg: #0e0f11;
  --ap-loc-surface: rgba(28, 29, 33, 0.92);
  --ap-loc-border: rgba(255, 255, 255, 0.08);
  --ap-loc-text: rgba(255, 255, 255, 0.94);
  --ap-loc-muted: rgba(255, 255, 255, 0.68);
  color: var(--ap-loc-text);
  background: #0e0f11;
  padding-bottom: 1rem;
}

/* Canvas Bricks : fond sombre sur toute la fiche */
#brx-content:has(.ap-structure-page),
#brx-content .ap-structure-page {
  background: #0e0f11 !important;
}

.ap-structure-hero {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 1.5rem;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(110, 236, 192, 0.22), transparent 55%),
    linear-gradient(160deg, #0f2a24 0%, #0a1612 55%, #07110e 100%);
}

.ap-structure-hero--photo {
  background-image: none;
}

.ap-structure-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.ap-structure-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 17, 14, 0.35) 0%, rgba(7, 17, 14, 0.82) 70%, rgba(7, 17, 14, 0.94) 100%),
    radial-gradient(circle at 80% 20%, rgba(110, 236, 192, 0.12), transparent 40%);
}

.ap-structure-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.ap-structure-hero .ap-loc-breadcrumb {
  margin-bottom: 1rem;
  color: rgba(232, 246, 240, 0.7);
}

.ap-structure-hero .ap-loc-breadcrumb a {
  color: var(--ap-structure-mint);
}

.ap-structure-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.ap-structure-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(110, 236, 192, 0.2);
  color: var(--ap-structure-mint);
  border: 1px solid rgba(110, 236, 192, 0.35);
}

.ap-structure-pill--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 246, 240, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.ap-structure-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
  text-transform: none;
}

.ap-structure-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: rgba(232, 246, 240, 0.88);
}

.ap-structure-hero__meta i {
  color: var(--ap-structure-mint);
  margin-right: 0.35rem;
}

.ap-structure-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(232, 246, 240, 0.82);
}

.ap-structure-gallery {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem;
  overflow: hidden;
}

.ap-structure-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 28vw);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.ap-structure-gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  background: #10241e;
}

.ap-structure-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-structure-about {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: 720px;
}

.ap-structure-about h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #fff;
  text-transform: none;
}

.ap-structure-about p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgba(232, 246, 240, 0.85);
}

.ap-structure-about__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ap-structure-about__facts li {
  color: rgba(232, 246, 240, 0.9);
}

.ap-structure-about__facts i {
  width: 1.25rem;
  color: var(--ap-structure-mint);
}

.ap-structure-about__facts a {
  color: var(--ap-structure-mint);
  font-weight: 600;
}

.ap-structure-listings {
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2.75rem;
}

.ap-structure-listings__head {
  margin-bottom: 1.5rem;
}

.ap-structure-listings__head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #fff;
  text-transform: none;
}

.ap-structure-listings__head p {
  margin: 0;
  color: rgba(232, 246, 240, 0.72);
  max-width: 36rem;
}

/* Grille + cartes : filet de sécu si le catalogue n’est pas chargé */
.ap-structure-listings .ap-grid {
  display: grid !important;
  gap: clamp(1.35rem, 3vw, 2rem) !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
}

#brx-content .ap-structure-page .ap-card__image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

#brx-content .ap-structure-page .ap-card__image-wrapper img {
  position: static !important;
  inset: auto;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.ap-structure-page .ap-card {
  background: #151515;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ap-structure-page .ap-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
}

.ap-structure-page .ap-card h3 {
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  color: #fff !important;
  margin: 0 !important;
  text-transform: none !important;
}

.ap-structure-page .ap-card__title h3 a {
  color: inherit;
  text-decoration: none;
}

.ap-structure-page .ap-card__location {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.ap-structure-page .ap-card__price {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #5fe3ae;
}

.ap-structure-page .ap-card__link {
  color: #5fe3ae;
  font-weight: 600;
  text-decoration: none;
}

.ap-structure-page .ap-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.ap-structure-back {
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
  margin: 0;
}

.ap-structure-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ap-structure-mint);
  font-weight: 600;
  text-decoration: none;
}

.ap-structure-back a:hover {
  text-decoration: underline;
}

.ap-card--structure {
  outline: 1px solid rgba(110, 236, 192, 0.22);
}

.ap-card__badge--structure {
  background: rgba(110, 236, 192, 0.92) !important;
  color: #0a1612 !important;
  font-weight: 700;
}

.ap-structure-page .ap-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: rgba(232, 246, 240, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
