/* ============================================================
   Section 03 — The Island
   Virtual tour viewer + (later) island particulars
   ============================================================ */

.island {
  position: relative;
  background: var(--ocean-deep);
  color: var(--cream);
  padding: clamp(80px, 12vh, 140px) 0;
}

.island__inner {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

.island__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.island__header .section__eyebrow {
  color: var(--sand);
}

.island__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.05;
  margin: 16px 0 14px;
}

.island__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(244, 237, 224, 0.75);
  letter-spacing: 0.01em;
}

/* Virtual tour viewer */
.tour-viewer {
  width: 100%;
}

.tour-viewer__controls {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 0.5px solid rgba(244, 237, 224, 0.12);
}

.tour-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(244, 237, 224, 0.5);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 18px 32px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 300ms var(--ease-emerge);
}

.tour-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 400ms var(--ease-emerge);
}

.tour-btn:hover { color: var(--cream); }

.tour-btn.is-active {
  color: var(--cream);
}

.tour-btn.is-active::after {
  transform: scaleX(1);
}

.tour-btn__num {
  font-size: 9px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.tour-btn.is-active .tour-btn__num { color: var(--gold); }

/* Tour iframe frame */
.tour-viewer__frame {
  position: relative;
  width: 100%;
  /* Slightly more cinematic & taller — 16:9 feels small on widescreen.
     Use 21:10 with a min-height floor so the viewer is always immersive. */
  aspect-ratio: 21 / 10;
  min-height: clamp(520px, 78vh, 880px);
  background: var(--ocean);
  border: 0.5px solid rgba(244, 237, 224, 0.12);
  overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
  .tour-viewer__frame {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.tour-viewer__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--ocean);
}

.tour-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean);
  color: rgba(244, 237, 224, 0.55);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 600ms var(--ease-emerge);
}

.tour-viewer__frame.is-loaded .tour-viewer__loading {
  opacity: 0;
}

/* Below-the-frame meta — hint on the left, attribution on the right */
.tour-viewer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 0 4px;
}

.tour-viewer__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244, 237, 224, 0.55);
}

.tour-viewer__hint-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 0.5px solid rgba(244, 237, 224, 0.45);
  border-radius: 50%;
  text-align: center;
  line-height: 17px;
  font-size: 11px;
  color: var(--gold);
}

.tour-viewer__attribution {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.45);
}

.tour-viewer__attribution a {
  color: var(--sand);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(201, 182, 138, 0.4);
  padding-bottom: 1px;
  transition: color 200ms var(--ease-emerge), border-color 200ms var(--ease-emerge);
}

.tour-viewer__attribution a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

@media (max-width: 720px) {
  .tour-btn { padding: 14px 18px; font-size: 10px; letter-spacing: 0.24em; }
  .tour-viewer__meta { flex-direction: column; align-items: flex-start; }
}
   