/* Scuba diving page (v2). Loads after home-v2.css (map, journey), rooms-v2.css (video hero, photo grid, viewer,
   help band), packages-v2.css (package cards) and getting-here-v2.css (glance strip, FAQ). Only what is new lives here. */

.stay-hero--scuba { background-image: url("../img/scuba/hero-desktop-poster.webp"); }
@media (orientation: portrait) {
    .stay-hero--scuba { background-image: url("../img/scuba/hero-mobile-poster.webp"); }
}

/* Shared section head for this page. */
.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; padding: 0 6px; }
.sc-head .text-link { margin-bottom: 8px; }
.sc-title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(38px, 4.4vw, 72px);
    line-height: 1;
    letter-spacing: -.02em;
}

/* ---------- Packages ---------- */
.sc-packages { padding: 10vh 0 8vh; }

/* ---------- Fun dive plan ---------- */
.sc-plan { padding: 6vh 0 8vh; }
.sc-plan__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 32px clamp(32px, 5vw, 96px); }
.sc-plan__grid > * { padding: 0 6px; }
.sc-plan__lede { max-width: 30em; margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); color: #2a3030; }
.sc-notes { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sc-notes li { position: relative; padding-left: 22px; font-size: 15px; color: #2a3030; }
.sc-notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .5em;
    width: 9px;
    height: 5px;
    border-left: 1.6px solid var(--deep);
    border-bottom: 1.6px solid var(--deep);
    transform: rotate(-45deg);
}
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table thead th {
    padding: 0 0 12px;
    font-family: var(--caps);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: .22em;
    text-align: left;
    text-transform: uppercase;
    color: #5d6363;
}
.sc-table tbody tr { border-top: 1px solid rgba(22, 27, 27, .16); }
.sc-table tbody tr:last-child { border-bottom: 1px solid rgba(22, 27, 27, .16); }
.sc-table tbody th, .sc-table td { padding: 18px 16px 18px 0; text-align: left; vertical-align: baseline; }
.sc-table tbody th { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); white-space: nowrap; }
.sc-table td { font-size: clamp(15px, 1.2vw, 17px); color: #2a3030; }

/* ---------- Courses ---------- */
.sc-courses { padding: 8vh 0 8vh; }
.sc-courses__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(28px, 5vh, 48px); padding: 0 6px; }
.course { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 38px); border: 1px solid rgba(22, 27, 27, .14); border-radius: 18px; background: #fff; }
.course__meta { font-family: var(--caps); font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--deep); }
.course__name { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.02; letter-spacing: -.01em; }
.course__about { margin-top: 16px; font-size: 15px; line-height: 1.6; color: #2a3030; }
.course__label { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(22, 27, 27, .1); font-family: var(--caps); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: #5d6363; }
.course__list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.course__list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; color: #2a3030; }
.course__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .42em;
    width: 9px;
    height: 5px;
    border-left: 1.6px solid var(--deep);
    border-bottom: 1.6px solid var(--deep);
    transform: rotate(-45deg);
}
.course .pill { align-self: flex-start; min-height: 44px; margin-top: auto; }
.course__list + .pill { margin-top: 26px; }

/* ---------- Photos: a filled grid (tall photos span two rows; dense flow closes the gaps) ---------- */
.sc-photos { padding: 6vh 0 8vh; }
.sc-grid {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: clamp(12px, 1.6vw, 24px);
}
.sc-grid .shot { margin: 0; }
.sc-grid .shot__frame { width: 100%; aspect-ratio: 3 / 2; }
.sc-grid .shot--tall { grid-row: span 2; }
/* Tall photos fill exactly the two rows they span: the image is taken out of the size calculation so it can't stretch them. */
.sc-grid .shot--tall .shot__frame { position: relative; height: 100%; aspect-ratio: auto; }
.sc-grid .shot--tall .shot__frame > img { position: absolute; inset: 0; }
.sc-grid .shot__frame > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Dive videos: three per row on desktop, two on tablet, one on phones ---------- */
.sc-videos { padding: 4vh 0 8vh; }
.sc-videos__grid .clip { flex: 0 0 calc((100% - 2 * clamp(14px, 1.8vw, 28px)) / 3); max-width: none; }

/* ---------- Next steps ---------- */
.sc-next { padding: 2vh 0 6vh; }
.sc-next__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.sc-next__link {
    display: grid;
    gap: 10px;
    padding: clamp(22px, 2.4vw, 32px);
    border-top: 1px solid rgba(22, 27, 27, .3);
    text-decoration: none;
    transition: background-color .3s;
}
.sc-next__link:hover { background: rgba(255, 255, 255, .6); }
/* Three or more next-step links share the row. */
.sn-next { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.sc-next__title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }

@media (max-width: 1023px) {
    .sc-plan__grid { grid-template-columns: 1fr; }
    .sc-videos__grid .clip { flex-basis: calc((100% - clamp(14px, 1.8vw, 28px)) / 2); }
}

@media (max-width: 767px) {
    .sc-head, .sc-plan__grid > *, .sc-courses__grid { padding: 0; }
    .sc-table tbody th { white-space: normal; }
    .sc-next__link { padding: 20px 0; }
    .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sc-videos__grid .clip { flex-basis: 100%; max-width: none; }
}
