/* Dive center, "why Pulau Aur" and dive site guides (v2). Loads after home-v2, rooms-v2, getting-here-v2 and scuba-v2;
   only what is new lives here. Used by the scuba page and the dive site pages. */

/* ---------- Diving status notice ---------- */
.dive-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-top: clamp(28px, 5vh, 48px);
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid var(--deep);
    border-bottom: 1px solid rgba(6, 38, 74, .2);
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--ink);
}
.dive-notice span {
    font-family: var(--caps);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--deep);
}

/* ---------- Dive center: name and PADI status, the story, an optional photo ---------- */
.dc { padding: clamp(64px, 12vh, 120px) 0 clamp(40px, 8vh, 80px); }
.dc__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 24px clamp(32px, 5vw, 96px);
    padding-top: clamp(24px, 4vh, 40px);
    border-top: 1px solid rgba(22, 27, 27, .3);
}
.dc__grid > * { padding: 0 6px; }
.dc__title {
    margin-top: 18px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 4.75vw, 76px);
    line-height: 1;
    letter-spacing: -.02em;
}
/* PADI status set like a certification card line. */
.dc__badge {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 14px 8px;
    border: 1px solid var(--deep);
    border-radius: 999px;
    font-family: var(--caps);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--deep);
}
.dc__body p { max-width: 34em; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: #2a3030; }
.dc__body p + p { margin-top: 1em; }
.dc__body .dc__company {
    margin-top: 22px;
    font-family: var(--caps);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #5d6363;
}
.dc__grid--image { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
.dc__image { aspect-ratio: 4 / 3; margin: 0; }
.dc__image > img { top: 0; height: 100%; object-fit: cover; }

/* ---------- Why Pulau Aur: numbered reasons beside a sticky heading ---------- */
.why { padding: clamp(40px, 8vh, 80px) 0 clamp(64px, 12vh, 120px); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 96px); }
.why__grid > * { padding: 0 6px; }
.why__head { align-self: start; position: sticky; top: 120px; }
.why__list { margin: 0; padding: 0; list-style: none; counter-reset: why; }
.why__item {
    display: grid;
    grid-template-columns: 3.4em minmax(0, 1fr);
    column-gap: 16px;
    padding: clamp(18px, 3vh, 28px) 0;
    border-top: 1px solid rgba(22, 27, 27, .16);
}
.why__item:last-child { border-bottom: 1px solid rgba(22, 27, 27, .16); }
.why__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; color: var(--ink-soft); }
.why__name { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.why__text { max-width: 34em; margin-top: 8px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: #2a3030; }

/* ---------- Dive site cards: a site without a photo gets a chart-style tile ---------- */
.ds-guides { padding: 2vh 0 clamp(48px, 10vh, 100px); }
.ds-cards__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 2vw, 26px);
    border-radius: 10px;
    background:
        repeating-radial-gradient(circle at 78% 30%, transparent 0 22px, rgba(255, 255, 255, .07) 22px 23px),
        var(--deep);
    color: #fff;
    transition: background-color .4s;
}
.ds-cards__num { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 6vw, 96px); line-height: .9; }
.ds-cards__place { font-family: var(--caps); font-weight: 500; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.other__link:hover .ds-cards__tile { background-color: #0a3566; }
.other__link:focus-visible { outline: 2px solid var(--deep); outline-offset: 6px; border-radius: 10px; }

/* ---------- Dive site page ---------- */
/* Hero without a photo: the title block takes the full width at a calmer height. */
.room-hero--text .room-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: clamp(40px, 8vh, 80px); }
.room-hero--text .room-hero__text { max-width: 980px; gap: clamp(48px, 10vh, 96px); }
.ds-lede { max-width: 32em; margin-top: clamp(20px, 3vh, 28px); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: #2a3030; }
/* Dive log: one column per known fact (depth, level, boat ride). */
.ds-log { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.ds-log dd { font-size: clamp(20px, 1.8vw, 30px); }
.ds-conditions { margin-top: 14px; font-size: 15px; line-height: 1.5; color: #2a3030; }
.ds-conditions span {
    margin-right: 10px;
    font-family: var(--caps);
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #5d6363;
}
.ds-life { padding-top: clamp(48px, 8vh, 80px); }
.ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-hero__actions .pill--wa { display: inline-flex; align-items: center; gap: 8px; }
.ds-preview {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px var(--gutter);
    background: #fff4d6;
    border-bottom: 1px solid #e6c766;
    font-size: 13px;
    text-align: center;
    color: #4a3b00;
}

@media (max-width: 1023px) {
    .dc__grid, .dc__grid--image, .why__grid { grid-template-columns: 1fr; }
    .why__head { position: static; }
}

@media (max-width: 767px) {
    .dc__grid > *, .why__grid > * { padding: 0; }
    .ds-log { grid-template-columns: 1fr; }
    .ds-log > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(22, 27, 27, .16); }
    .ds-grid { gap: 10px; }
    .dive-notice { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-cards__tile { transition: none; }
}
