.js-section {
  --surface: #0b1427;
  --border: #0b1427;
  --text: #ffffff;
  --muted: #999999;
  --accent: #c4a46b;
  --accent-d: #9a7d4a;
  --fade: 420ms;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.js-section .layout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* equal 50/50 columns */
  gap: 4rem;
  align-items: start;
  width: 100%;
}

@media (max-width: 768px) {

  .js-section{
    height: 100%;
  }
  .js-section .layout-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.js-section .layout-left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ── CUSTOM SELECT ───────────────────────────────────────── */
.js-section .select-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

.js-section .select-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 0.6rem;
}

.js-section .custom-select {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding: 0 !important;
}

.js-section .select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 200ms;
  border-radius: 4px;
}

.js-section .custom-select.open .select-trigger,
.js-section .select-trigger:hover {
  border-color: var(--accent-d);
}

.js-section .select-arrow {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform 250ms ease;
  flex-shrink: 0;
}

.js-section .custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.js-section .select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 50;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 300ms ease,
    opacity 220ms ease;
}

.js-section .custom-select.open .select-dropdown {
  max-height: 280px;
  opacity: 1;
}

.js-section .select-option {
  padding: 0.75rem 1.1rem;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 150ms,
    color 150ms;
}

.js-section .select-option:hover,
.js-section .select-option.active {
  background: rgba(196, 164, 107, 0.08);
  color: var(--accent);
}

.js-section .legends {
  list-style: none;
  padding: 0;
  margin: 0;
}

.js-section .legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 350ms ease,
    transform 350ms ease;
}

.js-section .legend-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-section .legend-number {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-d);
  letter-spacing: 0.05em;
  margin-top: 0.1rem;
  flex-shrink: 0;
  min-width: 20px;
}

.js-section .legend-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.js-section .legend-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--surface);
}

.js-section .legend-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── IMAGE FRAME ─────────────────────────────────────────── */
.js-section .layout-right {
  position: relative;
}

.js-section .image-frame {
  position: relative;
  overflow: hidden;
  /* background: var(--surface); */
  /* border: 1px solid var(--border); */
  height: 780px;
  padding: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius: 8px;
}

.js-section .image-frame::before {
  content: "";
  display: block;
  padding-top: 66%;
}

.js-section .image-slide {
  position: absolute;
  inset: 0;
  /* fills the frame — no hardcoded px */
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.js-section .image-slide.active {
  opacity: 1;
}

.js-section .image-slide picture,
.js-section .image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-brochure {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.js-section .image-caption {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--surface);
}
/* ── DOWNLOAD BUTTON ─────────────────────────────────────── */
.js-section .brochure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--surface);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.20rem;
  text-transform: uppercase;
  width: 100%;
  max-width: 340px;
  cursor: pointer;
  transition:
    background 200ms,
    color 200ms;
  border-radius: 6px;
}

.js-section .brochure-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg, #0a0a0a);
}

.js-section .brochure-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Icons */
.js-section .brochure-icon svg,
.js-section .brochure-spinner svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Spinner hidden by default */
.js-section .brochure-spinner {
  display: none;
}

.js-section .brochure-btn.loading .brochure-spinner {
  display: inline-flex;
}

.js-section .brochure-btn.loading .brochure-icon {
  display: none;
}

/* Spin animation */
@keyframes brochure-spin {
  to {
    transform: rotate(360deg);
  }
}

.js-section .brochure-spinner svg {
  animation: brochure-spin 0.75s linear infinite;
  transform-origin: center;
}

@media (max-width: 1200) {
  .js-section{
    height: 100%;
  }
}

@media (max-width: 768px) {
  .js-section .image-frame {
    height: 400px;
  }
  .details-brochure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}