/* Sun Siyam Resorts group page (/resorts/sun-siyam-resorts) and the Sun Siyam section of the home page. */
.ssg,
.ssh {
    --ssg-ink: #0d3540;
    --ssg-deep: #072a33;
    --ssg-gold: #d6b25e;
    --ssg-gold-deep: #a98332;
    --ssg-sand: #f4f0e8;
    --ssg-muted: #49656b;
    color: var(--ssg-ink);
}

.ssg-eyebrow {
    margin: 0 0 18px;
    color: var(--ssg-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.6;
}

.ssg-eyebrow--dark {
    color: #738b8d;
}

html[lang="ar"] .ssg-eyebrow { letter-spacing: .04em; font-size: 13px; }

/* ---------------------------------------------------------------- hero */
.ssg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(100svh, 860px);
    background: linear-gradient(135deg, #072a33 0%, #0f4d5a 55%, #1b6d78 100%);
    background-image: var(--ssg-hero, none), linear-gradient(135deg, #072a33 0%, #0f4d5a 55%, #1b6d78 100%);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.ssg-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 22, 28, .55) 0%, rgba(4, 22, 28, .15) 38%, rgba(4, 22, 28, .78) 100%);
}

.ssg-hero__inner {
    position: relative;
    width: min(1240px, 100%);
    margin-inline: auto;
    padding: 150px 28px 56px;
}

.ssg-hero__logo {
    display: block;
    width: auto;
    height: 64px;
    margin-bottom: 26px;
    /* The official logo is black: turn it white for the dark hero. */
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.ssg-hero h1 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 7.4vw, 104px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .92;
}

.ssg-hero h1 em { color: var(--ssg-gold); font-weight: 400; }

.ssg-hero__lead {
    max-width: 640px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
}

.ssg-hero__badge { margin-top: 28px; }

.ssg-hero__actions,
.ssg-booking__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 34px;
    margin-top: 32px;
}

.ssg-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 30px;
    background: var(--ssg-gold);
    color: #0a2a31;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.ssg-button:hover { background: #e4c57b; transform: translateY(-1px); }
html[lang="ar"] .ssg-button { letter-spacing: 0; font-size: 14px; }

.ssg-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-decoration: none;
    border-bottom: 1px solid rgba(214, 178, 94, .7);
    padding-bottom: 5px;
}

.ssg-text-link--dark { color: var(--ssg-ink); }
html[lang="ar"] .ssg-text-link { letter-spacing: 0; font-size: 14px; }

.ssg-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(1240px, calc(100% - 56px));
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .28);
    background: rgba(4, 22, 28, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.ssg-stats div { padding: 22px 20px; border-inline-end: 1px solid rgba(255, 255, 255, .16); }
.ssg-stats div:last-child { border-inline-end: 0; }
.ssg-stats strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 40px; font-weight: 400; line-height: 1; }
.ssg-stats span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
html[lang="ar"] .ssg-stats span { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---------------------------------------------------------------- intro */
.ssg-intro,
.ssg-resorts,
.ssg-compare,
.ssg-faq { padding: clamp(60px, 8vw, 112px) 28px; }

.ssg-intro { background: var(--ssg-sand); }

.ssg-intro__inner,
.ssg-resorts__inner,
.ssg-compare__inner,
.ssg-faq__inner,
.ssg-booking__inner { width: min(1240px, 100%); margin-inline: auto; }

.ssg-intro__inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: start;
}

.ssg-intro h2,
.ssg-compare h2,
.ssg-faq h2,
.ssg-booking h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .95;
}

.ssg-intro p,
.ssg-booking p { margin: 0 0 18px; color: var(--ssg-muted); font-size: 15px; line-height: 1.85; }
.ssg-intro__note { padding-inline-start: 16px; border-inline-start: 2px solid var(--ssg-gold); }

/* ---------------------------------------------------------------- resort cards */
.ssg-resorts { background: #fff; }

.ssg-resorts__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ssg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3ddd0;
    scroll-margin-top: 90px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.ssg-card:hover { box-shadow: 0 22px 46px rgba(7, 42, 51, .14); transform: translateY(-3px); }

.ssg-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3540, #1b6d78);
}

.ssg-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ssg-card:hover .ssg-card__media img { transform: scale(1.04); }

.ssg-card__media--empty { display: grid; place-items: center; padding: 24px; }
.ssg-card__initials { color: rgba(255, 255, 255, .88); font-family: "Cormorant Garamond", Georgia, serif; font-size: 28px; text-align: center; line-height: 1.1; }

.ssg-card__badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; }

.ssg-card__tag {
    position: absolute;
    inset-block-end: 14px;
    inset-inline-start: 14px;
    padding: 6px 12px;
    background: rgba(7, 42, 51, .9);
    color: var(--ssg-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

html[lang="ar"] .ssg-card__tag { letter-spacing: 0; font-size: 12px; }

.ssg-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 26px; }
.ssg-card__meta { margin: 0 0 10px; color: #738b8d; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; }
html[lang="ar"] .ssg-card__meta { letter-spacing: 0; text-transform: none; font-size: 13px; }
.ssg-card h3 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 31px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.ssg-card h3 a { color: inherit; text-decoration: none; }
.ssg-card__blurb { margin: 14px 0 0; color: var(--ssg-muted); font-size: 14px; line-height: 1.7; }
.ssg-card__best { margin: 14px 0 0; color: var(--ssg-ink); font-size: 13px; line-height: 1.6; }
.ssg-card__list { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ssg-muted); font-size: 13px; line-height: 1.5; }
.ssg-card__list li { position: relative; padding-inline-start: 18px; margin-top: 6px; }
.ssg-card__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ssg-gold); }

.ssg-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: auto; padding-top: 24px; }
.ssg-card__details { color: var(--ssg-ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.ssg-card__inquire { padding: 12px 20px; border: 1px solid var(--ssg-gold-deep); color: var(--ssg-gold-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.ssg-card__inquire:hover { background: var(--ssg-gold-deep); color: #fff; }
html[lang="ar"] .ssg-card__details, html[lang="ar"] .ssg-card__inquire { letter-spacing: 0; font-size: 14px; }

/* ---------------------------------------------------------------- compare */
.ssg-compare { background: var(--ssg-sand); }
.ssg-compare h2 { margin-bottom: 36px; }
.ssg-compare__scroll { overflow-x: auto; border: 1px solid #ddd5c4; background: #fff; }
.ssg-compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ssg-compare thead th:nth-child(1) { width: 24%; }
.ssg-compare thead th:nth-child(2) { width: 17%; }
.ssg-compare thead th:nth-child(3) { width: 15%; }
.ssg-compare tbody tr:nth-child(even) { background: #faf7f0; }
.ssg-compare tbody tr:hover { background: #f4efe2; }
.ssg-compare tbody th a:hover { color: var(--ssg-gold-deep); }
.ssg-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eef5f3; color: var(--ssg-ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.ssg-compare th, .ssg-compare td { padding: 18px 20px; border-bottom: 1px solid #ece6d8; text-align: start; font-size: 14px; line-height: 1.55; vertical-align: top; }
.ssg-compare thead th { background: var(--ssg-deep); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ssg-compare tbody th { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 500; }
.ssg-compare tbody th a { color: var(--ssg-ink); text-decoration: none; border-bottom: 1px solid var(--ssg-gold); }
.ssg-compare td { color: var(--ssg-muted); }
html[lang="ar"] .ssg-compare thead th { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* ---------------------------------------------------------------- booking */
.ssg-booking { padding: clamp(64px, 8vw, 116px) 28px; background: linear-gradient(135deg, #072a33, #0f4d5a); color: #fff; }
.ssg-booking__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ssg-booking h2 em { color: var(--ssg-gold); font-weight: 400; }
.ssg-booking p { color: rgba(255, 255, 255, .86); }

/* ---------------------------------------------------------------- faq */
.ssg-faq { background: #fff; }
.ssg-faq__inner { max-width: 880px; }
.ssg-faq h2 { margin-bottom: 30px; }
.ssg-faq details { border-bottom: 1px solid #e3ddd0; }
.ssg-faq summary { position: relative; padding: 22px 36px 22px 0; cursor: pointer; list-style: none; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; line-height: 1.25; }
html[lang="ar"] .ssg-faq summary { padding: 22px 0 22px 36px; font-family: inherit; font-size: 18px; }
.ssg-faq summary::-webkit-details-marker { display: none; }
.ssg-faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 18px; color: var(--ssg-gold-deep); font-size: 28px; font-weight: 300; }
.ssg-faq details[open] summary::after { content: "–"; }
.ssg-faq details p { margin: 0 0 24px; color: var(--ssg-muted); font-size: 15px; line-height: 1.85; }
.ssg-faq__more { margin-top: 38px; }

/* ---------------------------------------------------------------- home section */
.ssh { padding: clamp(64px, 8vw, 116px) 28px; background: linear-gradient(160deg, #072a33 0%, #0d3f4a 100%); color: #fff; }
.ssh__inner { width: min(1240px, 100%); margin-inline: auto; }
.ssh__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.ssh__head h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.ssh__head h2 em { color: var(--ssg-gold); font-weight: 400; }
.ssh__lead { max-width: 520px; margin: 16px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.8; }
.ssh__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ssh-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(135deg, #0d3540, #1b6d78); color: #fff; text-decoration: none; }
.ssh-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ssh-card:hover img { transform: scale(1.05); }
.ssh-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 22, 28, .1) 35%, rgba(4, 22, 28, .86) 100%); }
.ssh-card__badge { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; }
.ssh-card__text { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; }
.ssh-card__text span { display: block; color: var(--ssg-gold); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ssh-card__text h3 { margin: 8px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.05; }
.ssh-card__text p { margin: 8px 0 0; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.5; }
html[lang="ar"] .ssh-card__text span { letter-spacing: 0; text-transform: none; font-size: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
    .ssg-resorts__inner, .ssh__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ssg-intro__inner, .ssg-booking__inner { grid-template-columns: 1fr; }
    .ssg-stats { grid-template-columns: repeat(2, 1fr); }
    .ssg-stats div:nth-child(2) { border-inline-end: 0; }
}

@media (max-width: 620px) {
    .ssg-resorts__inner, .ssh__grid { grid-template-columns: 1fr; }
    .ssg-hero__inner { padding: 120px 20px 40px; }
    .ssg-intro, .ssg-resorts, .ssg-compare, .ssg-faq, .ssg-booking, .ssh { padding-inline: 16px; }
    .ssg-stats { width: calc(100% - 32px); }
    .ssg-stats strong { font-size: 32px; }
    .ssh-card { aspect-ratio: 4 / 3; }
}

/* "Which Sun Siyam resort suits you?": stacked cards on phones instead of a sideways-scrolling table */
@media (max-width: 760px) {
    .ssg-compare h2 { margin-bottom: 22px; }
    .ssg-compare__scroll { border: 0; background: transparent; overflow: visible; }
    .ssg-compare table, .ssg-compare tbody, .ssg-compare tr, .ssg-compare th, .ssg-compare td { display: block; width: 100%; }
    .ssg-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ssg-compare tbody tr, .ssg-compare tbody tr:nth-child(even), .ssg-compare tbody tr:hover { background: #fff; border: 1px solid #ddd5c4; border-top: 3px solid var(--ssg-gold); margin: 0 0 14px; padding: 6px 0 8px; }
    .ssg-compare tbody th { padding: 14px 18px 6px; border: 0; font-size: 24px; line-height: 1.2; }
    .ssg-compare td { padding: 10px 18px; border: 0; border-top: 1px solid #f0ebde; font-size: 15px; line-height: 1.55; }
    .ssg-compare td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ssg-gold-deep); }
    html[lang="ar"] .ssg-compare td::before { letter-spacing: 0; text-transform: none; font-size: 13px; }
}
