/* VERSION: NOTRE_LOGEMENT_CSS_005_SWITCHER_CONTINUOUS_RAIL */

.nlp-switcher {
  display: grid;
  gap: 24px;
}

.nlp-tab {
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.nlp-tab.is-active {
  background: rgba(244, 236, 227, 0.98);
  border-color: rgba(162, 70, 52, 0.34);
  color: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(30, 24, 20, 0.09);
}

.nlp-panel-copy {
  min-height: 100%;
}

.nlp-switcher[data-section-id="lifestyle"] .nlp-panel-copy {
  min-height: 650px;
}

.nlp-gallery {
  overflow: hidden;
}

.nlp-gallery-main-image {
  transition: none;
}

.nlp-gallery-main-image.is-changing {
  opacity: 1;
  transform: none;
}

.nlp-gallery-thumbs-shell {
  --thumb-gap: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.nlp-gallery-thumbs-viewport {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 4px 0;
}

.nlp-gallery-thumbs-viewport::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: calc((100% - (var(--thumb-gap) * 4)) / 5);
  height: 88px;
  transform: translateX(-50%);
  border-radius: 16px;
  border: 2px solid rgba(162, 70, 52, 0.86);
  box-shadow: 0 16px 30px rgba(30, 24, 20, 0.14), inset 0 0 0 4px rgba(162, 70, 52, 0.18);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.nlp-gallery-thumbs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--thumb-gap) * 4)) / 5);
  gap: var(--thumb-gap);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.nlp-gallery-thumb {
  position: relative;
  min-width: 0;
  border: 0;
  opacity: 0.72;
  transition: box-shadow 220ms ease, transform 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.nlp-gallery-thumb img {
  height: 88px;
}

.nlp-gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.nlp-gallery-thumb.is-active {
  border-color: rgba(162, 70, 52, 0.78);
  box-shadow: 0 16px 30px rgba(30, 24, 20, 0.16);
  transform: translateY(-1px);
}

.nlp-gallery-thumb.is-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 4px solid rgba(162, 70, 52, 0.42);
  pointer-events: none;
}

@media (max-width: 980px) {
  .nlp-switcher[data-section-id="lifestyle"] .nlp-panel-copy {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .nlp-gallery-thumbs-shell {
    --thumb-gap: 8px;
  }

  .nlp-gallery-thumbs-viewport::after {
    width: calc((100% - (var(--thumb-gap) * 2)) / 3);
  }

  .nlp-gallery-thumbs-shell {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .nlp-gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .nlp-gallery-thumbs-track {
    grid-auto-columns: calc((100% - (var(--thumb-gap) * 2)) / 3);
  }
}

.nlp-gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(162, 70, 52, 0.22);
  background: rgba(248, 241, 233, 0.96);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(30, 24, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease, background 220ms ease;
}

.nlp-gallery-arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(30, 24, 20, 0.12);
  background: rgba(244, 236, 227, 0.98);
}

.nlp-gallery-arrow:disabled {
  opacity: 0.36;
  cursor: default;
  box-shadow: none;
}
