/* resort-pages.css
   Shared layout for the commercial resort / hotel landing pages rendered by
   includes/resort-page-view.php. Kept separate from global.css so only these
   pages pay for it. */

.csi-rs-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

/* The site header is position:fixed with no clearance in the flow, so the
   breadcrumb bar that header.php emits above <main> would otherwise sit
   underneath it. Push it clear here rather than under the hero. */
body.csi-resort-page .csi-breadcrumb-wrap {
    padding-top: 92px;
}

.csi-rs-hero {
    position: relative;
    isolation: isolate;
    color: #f6efe4;
    background: #0a1a14;
    padding: 3.5rem 0 3.25rem;
    overflow: hidden;
}

.csi-rs-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.csi-rs-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csi-rs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 21, 16, 0.86) 0%, rgba(7, 21, 16, 0.62) 46%, rgba(7, 21, 16, 0.88) 100%);
}

.csi-rs-hero__badge {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(197, 126, 75, 0.22);
    border: 1px solid rgba(225, 180, 143, 0.45);
    color: #f0d3b6;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.csi-rs-hero h1 {
    margin: 1rem 0 0.85rem;
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.12;
    color: #fff;
}

.csi-rs-hero__lead {
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(246, 239, 228, 0.9);
}

.csi-rs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.csi-rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.csi-rs-btn:hover {
    transform: translateY(-2px);
}

.csi-rs-btn--primary {
    background: linear-gradient(135deg, #eea560 0%, #d78849 100%);
    color: #17251e;
    box-shadow: 0 16px 34px rgba(228, 161, 93, 0.26);
}

.csi-rs-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.csi-rs-btn--solid {
    background: var(--primary, #1d4d3d);
    color: #fff;
}

.csi-rs-btn--outline {
    background: rgba(29, 77, 61, 0.06);
    border-color: rgba(29, 77, 61, 0.28);
    color: var(--primary, #1d4d3d);
}

/* ── Fact strip ───────────────────────────────────────────────────────── */

.csi-rs-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2.2rem;
}

.csi-rs-fact {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.csi-rs-fact dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 211, 182, 0.95);
}

.csi-rs-fact dd {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.csi-rs-section {
    padding: 3.5rem 0;
}

.csi-rs-section--cream {
    background: #f3efe6;
}

.csi-rs-section--white {
    background: #fff;
}

.csi-rs-intro {
    max-width: 74ch;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.csi-rs-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #c57e4b);
}

.csi-rs-section h2 {
    color: var(--primary, #1d4d3d);
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.22;
}

.csi-rs-intro p {
    margin-top: 0.7rem;
    color: rgba(21, 49, 39, 0.8);
    line-height: 1.78;
}

/* ── Two-column body ──────────────────────────────────────────────────── */

.csi-rs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.1rem;
    align-items: start;
}

.csi-rs-copy,
.csi-rs-card,
.csi-rs-aside,
.csi-rs-faq-shell,
.csi-rs-note {
    padding: 1.7rem;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(23, 49, 39, 0.09);
    box-shadow: 0 20px 48px rgba(11, 29, 24, 0.07);
}

.csi-rs-copy h2,
.csi-rs-copy h3,
.csi-rs-card h3,
.csi-rs-aside h3,
.csi-rs-note h3 {
    color: var(--primary, #1d4d3d);
}

.csi-rs-copy h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.csi-rs-copy p,
.csi-rs-card p,
.csi-rs-aside p,
.csi-rs-aside li,
.csi-rs-note p {
    color: rgba(21, 49, 39, 0.82);
    line-height: 1.8;
}

.csi-rs-copy p + p {
    margin-top: 0.95rem;
}

.csi-rs-copy h2 + p,
.csi-rs-copy h3 + p {
    margin-top: 0.7rem;
}

.csi-rs-sidebar {
    display: grid;
    gap: 1.1rem;
    position: sticky;
    top: 112px;
}

.csi-rs-aside ul {
    margin: 0.8rem 0 0;
    padding-left: 1.15rem;
}

.csi-rs-aside li + li {
    margin-top: 0.5rem;
}

.csi-rs-aside .csi-rs-links {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.csi-rs-aside .csi-rs-btn {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.82rem;
}

/* ── Card grids ───────────────────────────────────────────────────────── */

.csi-rs-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.csi-rs-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.csi-rs-card__index {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent, #c57e4b);
}

.csi-rs-card h3 {
    font-size: 1.12rem;
    line-height: 1.35;
}

.csi-rs-card p {
    margin-top: 0.6rem;
    font-size: 0.97rem;
}

/* ── Comparison table ─────────────────────────────────────────────────── */

.csi-rs-table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(23, 49, 39, 0.1);
    background: #fff;
    box-shadow: 0 20px 48px rgba(11, 29, 24, 0.07);
}

.csi-rs-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.csi-rs-table th,
.csi-rs-table td {
    padding: 0.95rem 1.1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(23, 49, 39, 0.08);
}

.csi-rs-table thead th {
    background: rgba(29, 77, 61, 0.07);
    color: var(--primary, #1d4d3d);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.csi-rs-table tbody th {
    color: var(--primary, #1d4d3d);
    font-weight: 700;
    white-space: nowrap;
}

.csi-rs-table tbody td {
    color: rgba(21, 49, 39, 0.82);
    line-height: 1.65;
}

.csi-rs-table tbody tr:last-child th,
.csi-rs-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ── Image band ───────────────────────────────────────────────────────── */

.csi-rs-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.csi-rs-shot {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #e8e2d6;
    border: 1px solid rgba(23, 49, 39, 0.09);
}

.csi-rs-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.csi-rs-shot figcaption {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(21, 49, 39, 0.78);
    background: #fff;
}

/* ── Steps ────────────────────────────────────────────────────────────── */

.csi-rs-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: csi-rs-step;
}

.csi-rs-step {
    padding: 1.4rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9, #f4ece0);
    border: 1px solid rgba(23, 49, 39, 0.09);
}

.csi-rs-step::before {
    counter-increment: csi-rs-step;
    content: counter(csi-rs-step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent, #c57e4b);
}

.csi-rs-step h3 {
    font-size: 1.04rem;
    color: var(--primary, #1d4d3d);
}

.csi-rs-step p {
    margin-top: 0.5rem;
    font-size: 0.94rem;
    line-height: 1.7;
    color: rgba(21, 49, 39, 0.8);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.csi-rs-faq {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.csi-rs-faq details {
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(23, 49, 39, 0.09);
}

.csi-rs-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary, #1d4d3d);
}

.csi-rs-faq p {
    margin: 0.75rem 0 0;
    color: rgba(21, 49, 39, 0.82);
    line-height: 1.78;
}

/* ── Internal link cloud ──────────────────────────────────────────────── */

.csi-rs-linkcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.csi-rs-linkcloud a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(29, 77, 61, 0.18);
    color: var(--primary, #1d4d3d);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.csi-rs-linkcloud a:hover {
    border-color: var(--accent, #c57e4b);
    color: var(--accent, #c57e4b);
}

/* ── Enquiry band ─────────────────────────────────────────────────────── */

.csi-rs-enquiry {
    background: linear-gradient(160deg, #123328 0%, #1d4d3d 100%);
    color: #f4ede2;
}

.csi-rs-enquiry h2 {
    color: #fff;
}

.csi-rs-enquiry .csi-rs-eyebrow {
    color: #e1b48f;
}

.csi-rs-enquiry__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 1.6rem;
    align-items: start;
}

.csi-rs-enquiry__copy p {
    margin-top: 0.8rem;
    color: rgba(244, 237, 226, 0.86);
    line-height: 1.8;
}

.csi-rs-enquiry__points {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.csi-rs-enquiry__points span {
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.93rem;
    color: rgba(244, 237, 226, 0.92);
}

.csi-rs-enquiry__points span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e1b48f;
}

.csi-rs-source-note {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(21, 49, 39, 0.7);
}

.csi-rs-source-note a {
    color: var(--primary, #1d4d3d);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .csi-rs-grid,
    .csi-rs-steps,
    .csi-rs-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .csi-rs-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .csi-rs-layout,
    .csi-rs-enquiry__layout {
        grid-template-columns: 1fr;
    }

    .csi-rs-sidebar {
        position: static;
    }
}

@media (max-width: 1024px) {
    body.csi-resort-page .csi-breadcrumb-wrap {
        padding-top: 82px;
    }
}

@media (max-width: 720px) {
    .csi-rs-hero {
        padding: 2.5rem 0 2.4rem;
    }

    .csi-rs-section {
        padding: 2.5rem 0;
    }

    .csi-rs-grid,
    .csi-rs-grid--2,
    .csi-rs-steps,
    .csi-rs-gallery,
    .csi-rs-facts {
        grid-template-columns: 1fr;
    }

    .csi-rs-copy,
    .csi-rs-card,
    .csi-rs-aside,
    .csi-rs-faq-shell,
    .csi-rs-note {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .csi-rs-hero__actions .csi-rs-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .csi-rs-btn {
        transition: none;
    }

    .csi-rs-btn:hover {
        transform: none;
    }
}
