/* Drift Lodge: Soma Bay page (Soma-Bay.dc.html; the same responsive page on phones). */

.sb-intro h2, .sb-explore h2, .sb-todo h2, .sb-seasons h2, .sb-route h2 { font-size: clamp(38px, 4.8vw, 62px); }
.dl ul.sb-facts, .dl ul.todo-grid, .dl ul.season-grid, .dl ol.route-steps { list-style: none; margin: 0; padding: 0; }
.sb-wide { max-width: 28em; }

/* Intro */
.sb-intro { padding-top: 90px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.sb-intro-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.sb-intro-text p { margin: 0; color: var(--muted); max-width: 34em; }
.sb-facts { flex: 1 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sb-facts li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; background: #FFFFFF; }
.sb-facts svg { color: var(--teal); }
.sb-facts b { font-weight: 700; line-height: 1.25; }
.sb-facts span { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Expanding panels */
.sb-explore { padding-top: 50px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 24px; }
.xp { display: flex; gap: 10px; height: 580px; }
.xp-panel {
  position: relative; display: block; flex: 1 1 0; min-width: 0; border: 0; padding: 0; border-radius: 28px; overflow: hidden;
  background: var(--night); color: #FFFFFF; text-align: left; cursor: pointer;
  transition: flex .6s cubic-bezier(.2, .7, .2, 1);
}
.xp-panel.on { flex: 6 1 0; cursor: default; }
.xp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.xp-panel:hover .xp-img { transform: scale(1.04); }
.xp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 22, 30, .2) 0%, rgba(18, 22, 30, .1) 40%, rgba(18, 22, 30, .78) 100%); transition: background .4s ease; }
.xp-panel.on .xp-shade { background: none; } /* open panel: photo without the dark overlay (Fady, 2026-10-19) */
.xp-panel:not(.on) .xp-shade { background: linear-gradient(180deg, rgba(18, 22, 30, .35), rgba(18, 22, 30, .7)); }
.xp-num { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: #F6D3A5; }
.xp-panel.on .xp-num { left: 24px; text-align: left; }
.xp-label { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-weight: 600; font-size: 16px; transition: opacity .3s ease; }
.xp-panel.on .xp-label { opacity: 0; }
.xp-body {
  position: absolute; left: 20px; bottom: 20px; width: min(520px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.xp-panel.on .xp-body { opacity: 1; transform: none; transition-delay: .2s; }
.xp-tag { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: var(--apricot); color: var(--night); font-size: 12px; font-weight: 700; }
.xp-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.xp-text { font-size: 16px; line-height: 1.55; }
.xp-note { display: flex; align-items: flex-start; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .32); font-size: 14px; line-height: 1.5; }

/* Things to do */
.sb-todo { background: var(--night); color: var(--sand); }
.sb-todo-inner { padding-top: 90px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 28px; }
.sb-todo-intro { color: inherit; opacity: .8; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.todo { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lift { transition: transform .3s ease, box-shadow .3s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(27, 42, 48, .55); }
.todo-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(242, 163, 94, .16); color: var(--apricot); }
.todo b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; }
.todo > span:last-child { font-size: 15px; opacity: .78; }
.dl .sb-ask { align-self: flex-start; display: flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--apricot); color: var(--night); text-decoration: none; font-weight: 700; }

/* Seasons */
.sb-seasons { padding-top: 90px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.season { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 26px; }
.season-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.season-months { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); }
.season-chip { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.season b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.season > span:last-child { font-size: 15px; color: var(--muted); }

/* Getting here */
.sb-route { padding-top: 60px; padding-bottom: 90px; display: flex; flex-direction: column; gap: 24px; }
/* Map and route card side by side at equal width; the map keeps the satellite image's shape (Fady, 2026-10-19). */
.route-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.route-map { min-width: 0; position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 15 / 11; background: #1E4E86; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-card { min-width: 0; padding: 26px; border-radius: 32px; background: #FFFFFF; display: flex; flex-direction: column; gap: 4px; }
.route-steps { display: flex; flex-direction: column; gap: 4px; }
.route-steps li { display: flex; gap: 14px; padding: 12px 0; }
.route-n { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; font-weight: 700; font-size: 15px; }
.route-steps b { font-weight: 700; }
.route-steps span span { font-size: 15px; color: var(--muted); }
.route-card .btn-dark { margin-top: auto; }

@media (max-width: 960px) {
  .route-row { grid-template-columns: 1fr; }
  /* Phone: shape set with padding (4:3), because iPhone Safari squeezes an aspect-ratio box with nothing inside it to zero height (Fady, 2026-10-20). */
  .route-map { aspect-ratio: auto; height: 0; padding-top: 75%; border-radius: 26px; }
}
@media (max-width: 760px) {
  .xp { flex-direction: column; height: auto; gap: 8px; }
  .xp-panel { flex: none; height: 76px; border-radius: 22px; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
  /* Open panel: the photo fills most of the screen and the text card sits at its foot (Fady, 2026-10-19). */
  .xp-panel.on { flex: none; height: auto; }
  .xp-panel.on .xp-body { position: relative; left: auto; bottom: auto; margin: max(320px, 60vh) 12px 12px; margin-top: max(320px, 60svh); }
  .xp-label { writing-mode: horizontal-tb; left: 20px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .xp-num { left: auto; right: 20px; top: 50%; transform: translateY(-50%); text-align: right; }
  .xp-panel.on .xp-num { left: auto; right: 20px; top: 20px; transform: none; }
  .xp-body { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
  .xp-panel.on .xp-body { width: auto; }
  .xp-title { font-size: 28px; }
  .xp-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-panel, .xp-img, .xp-body, .xp-label, .lift { transition: none; }
}
