/* A place in the Discovery World: arriving at its floating island, its lanterns, things to do, and the bridges on to
   the other islands. */

/* ---------- arriving at the island ---------- */
.k-place-hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 10px;
    min-height: 420px; padding: clamp(22px, 4vw, 44px);
    border-radius: 40px;
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--t) 38%, transparent), transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--ts) 70%, #fff), color-mix(in srgb, var(--t) 14%, #FFF1EA));
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), var(--shadow-l);
    margin-bottom: 34px;
}
:root[data-theme="dark"] .k-place-hero {
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(255, 216, 107, .22), rgba(255, 216, 107, 0) 70%),
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--t) 40%, transparent), transparent 60%),
        linear-gradient(160deg, #2C2B6E, #5B3FA8);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), var(--shadow-l);
}
.sg-isle-copy { position: relative; z-index: 2; }
.sg-isle-ar { display: inline-block; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--td); }
:root[data-theme="dark"] .sg-isle-ar { color: #FFE3A0; }
.k-place-hero h1 {
    font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; margin: 0 0 6px; letter-spacing: -.035em; line-height: .98;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .9), 0 4px 0 color-mix(in srgb, var(--t) 30%, #fff), 0 16px 30px rgba(91, 63, 208, .22);
}
:root[data-theme="dark"] .k-place-hero h1 { text-shadow: 0 2px 0 rgba(70, 50, 150, .6), 0 0 30px rgba(255, 210, 140, .45); }
:root[lang="ar"] .k-place-hero h1, :root[lang="ur"] .k-place-hero h1 { line-height: 1.35; letter-spacing: 0; }
.k-place-hero > div > p:not(.sg-isle-lanterns) { font-size: 1.2rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 18px; max-width: 520px; }
.sg-isle-lanterns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.sg-isle-lanterns:has([data-lantern-text]:empty) { display: none; }
.sg-isle-lamps { display: inline-flex; gap: 5px; }
.sg-isle-lamps i { width: 14px; height: 20px; border-radius: 6px 6px 7px 7px; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: background .5s, box-shadow .5s; }
.sg-isle-lamps i.is-lit { background: linear-gradient(180deg, #FFF3C2, #FFA34A); box-shadow: 0 0 12px 3px rgba(255, 190, 100, .7); }

.sg-isle-art { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; perspective: 900px; min-height: 300px; }
.sg-isle-img {
    position: relative; z-index: 1; width: min(440px, 100%); height: auto; display: block;
    filter: drop-shadow(0 30px 34px rgba(91, 63, 208, .25));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .6s var(--ease-soft), filter .6s;
    animation: sg-isle-float 6s ease-in-out infinite, sg-isle-arrive 1.1s var(--ease-soft) both;
}
.is-glowing .sg-isle-img { filter: drop-shadow(0 0 30px rgba(255, 200, 110, .75)) drop-shadow(0 30px 34px rgba(91, 63, 208, .25)); }
@keyframes sg-isle-float { 50% { translate: 0 -12px; } }
@keyframes sg-isle-arrive { from { opacity: 0; transform: translateY(70px) scale(.8); } }
.sg-isle-cloud { position: absolute; z-index: 2; width: 52%; height: auto; aspect-ratio: 400 / 140; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(120, 90, 200, .16)); animation: sg-drift 18s ease-in-out infinite alternate; }
.sg-isle-cloud--a { z-index: 0; inset-inline-start: -6%; top: 10%; width: 40%; opacity: .9; animation-duration: 22s; }
.sg-isle-cloud--b { inset-inline-end: -10%; bottom: 2%; }
:root[data-theme="dark"] .sg-isle-cloud { opacity: .35; }
.sg-isle-spark { position: absolute; z-index: 3; width: 14px; height: 14px; background: #FFD45C; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: noor-spark 2.6s ease-in-out infinite; }
.sg-isle-spark--1 { top: 18%; inset-inline-start: 22%; }
.sg-isle-spark--2 { top: 30%; inset-inline-end: 16%; animation-delay: .9s; background: #FF9EC4; }
.sg-isle-spark--3 { bottom: 26%; inset-inline-start: 12%; animation-delay: 1.7s; background: #7FD3F7; }

.k-place-hero .k-guide .k-bubble { max-width: 480px; }

/* ---------- things to do ---------- */
.k-activity-cover {
    margin: -20px -20px 6px; aspect-ratio: 3 / 2; overflow: hidden;
    border-radius: 30px 30px 20px 20px;
    background: var(--ts);
}
.k-activity-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.k-tile:hover .k-activity-cover img { transform: scale(1.06); }
.k-kind { position: absolute; inset-inline-start: 14px; top: 14px; z-index: 1; background: rgba(255, 255, 255, .92); color: #2B2350; }

/* ---------- where next: the other islands ---------- */
.sg-next { margin-top: 46px; }
.sg-next .k-section-title small { display: block; margin-top: 4px; font-size: 1rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.sg-next-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sg-next-isle {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 10px 10px 16px; border-radius: 28px; text-align: center;
    text-decoration: none; color: var(--ink);
    background: linear-gradient(180deg, color-mix(in srgb, var(--ts) 60%, transparent), var(--glass-strong));
    box-shadow: inset 0 0 0 1.5px var(--glass-edge), var(--shadow);
    transition: transform .35s var(--ease-bounce);
}
.sg-next-isle:hover { transform: translateY(-8px); }
.sg-next-isle img { width: 100%; max-width: 180px; height: auto; margin-top: -6px; filter: drop-shadow(0 14px 14px rgba(91, 63, 208, .2)); transition: transform .5s var(--ease-bounce); }
.sg-next-isle:hover img { transform: translateY(-6px) rotate(-3deg); }
.sg-next-isle b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.1; }
.sg-next-isle small { display: block; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-faint); line-height: 1.25; }
.sg-next-isle .sg-lantern-dot { position: absolute; top: 14px; inset-inline-end: 16px; }

@media (max-width: 1100px) { .sg-next-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .k-place-hero { grid-template-columns: 1fr; min-height: 0; padding: 20px 18px; border-radius: 32px; }
    .sg-isle-art { order: -1; min-height: 0; margin: -10px 0 -24px; }
    .sg-isle-img { width: min(270px, 80%); }
    .sg-next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sg-next-isle small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sg-isle-img, .sg-isle-cloud, .sg-isle-spark { animation: none !important; } }

/* ---------- lost in the clouds (not found and error pages) ---------- */
.sg-lost { padding-top: 10px; }
.sg-lost-balloon { position: relative; display: block; width: 130px; height: 200px; --a: #FF8A7A; --b: #FFD45C; animation: sg-isle-float 5s ease-in-out infinite; }
.sg-lost-art { position: absolute; inset: 0 0 auto 0; width: 130px; height: 195px; filter: drop-shadow(0 18px 18px rgba(91, 63, 208, .25)); }
.sg-lost .sg-lost-balloon .k-mascot-svg { position: absolute; left: 48px; top: 138px; width: 34px; height: 42px; filter: none; }
.sg-lost h1 { margin-top: 6px; }
.sg-lost p { max-width: 520px; font-size: 1.15rem; }
.sg-next-list--three { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; }
@media (max-width: 760px) { .sg-next-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- the island's spots (Part 40): pins on the island, and what waits at each ---------- */
.sg-diorama { position: relative; z-index: 1; width: min(440px, 100%); animation: sg-isle-float 6s ease-in-out infinite; }
.sg-diorama .sg-isle-img { width: 100%; animation: sg-isle-arrive 1.1s var(--ease-soft) both; }
.sg-dspot {
    position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%, -100%);
    display: flex; align-items: center; gap: 6px; height: 36px; padding-inline: 4px 12px; border-radius: 999px; white-space: nowrap; text-decoration: none;
    font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: #2B2350; background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 22px -10px rgba(76, 52, 150, .6); transition: background .2s, color .2s, transform .3s var(--ease-bounce);
    animation: sg-dspot-in .6s var(--ease-bounce) both; animation-delay: calc(.5s + var(--d, 0s));
}
.sg-dspot:nth-child(3) { --d: .08s; } .sg-dspot:nth-child(4) { --d: .16s; } .sg-dspot:nth-child(5) { --d: .24s; } .sg-dspot:nth-child(6) { --d: .32s; }
.sg-dspot::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.sg-dspot i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 700; color: #fff; background: var(--t); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.sg-dspot:hover, .sg-dspot:focus-visible, .sg-dspot.is-on { background: var(--td); color: #fff; transform: translate(-50%, -100%) scale(1.06); z-index: 4; }
.sg-dspot.is-on i, .sg-dspot:hover i { background: #fff; color: var(--td); }
.sg-dspot.is-done i { box-shadow: 0 0 0 3px #FFC84A, 0 0 14px 3px rgba(255, 190, 100, .8); }
.sg-dspot.is-on i { animation: sg-dspot-pulse 2s ease-in-out infinite; }
@keyframes sg-dspot-in { from { opacity: 0; transform: translate(-50%, -60%) scale(.6); } }
@keyframes sg-dspot-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .45); } }
:root[data-theme="dark"] .sg-dspot:not(.is-on) { background: rgba(46, 40, 108, .92); color: #FFF7EE; }

.sg-spots { position: relative; margin: -6px 0 34px; padding: clamp(16px, 2.6vw, 26px); border-radius: 34px; background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8), var(--shadow); scroll-margin-top: 100px; }
.sg-spots-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 12px; }
.sg-spots-head .k-section-title { margin: 0; }
.sg-spots-say { margin: 0; padding: 6px 14px; border-radius: 999px; background: linear-gradient(180deg, #FFF8E1, #FFF1C9); font-weight: 600; font-size: .95rem; color: #5A3A00; }
.sg-spots-say.is-back { animation: k-pop .5s var(--ease-bounce); box-shadow: 0 0 0 3px rgba(255, 200, 74, .5); }
:root[data-theme="dark"] .sg-spots-say { background: rgba(255, 210, 120, .14); color: #FFE9B8; }
.sg-spots-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sg-spots-tab {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-block: 5px 5px; padding-inline: 5px 14px; border-radius: 18px; text-decoration: none;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); background: var(--ts); transition: transform .25s var(--ease-bounce), background .2s, color .2s;
}
.sg-spots-tab i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; font-style: normal; font-weight: 700; color: #fff; background: var(--t); }
.sg-spots-tab .k-ico { width: 20px; height: 20px; color: var(--td); }
.sg-spots-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .8); color: var(--td); }
.sg-spots-tab:hover, .sg-spots-tab:focus-visible { transform: translateY(-2px); }
.sg-spots-tab[aria-selected="true"] { background: var(--td); color: #fff; box-shadow: 0 12px 24px -14px var(--td); }
.sg-spots-tab[aria-selected="true"] i { background: #fff; color: var(--td); }
.sg-spots-tab[aria-selected="true"] .k-ico { color: #fff; }
.sg-spots-panel h3 { margin: 4px 0 10px; font-family: var(--font-display); font-size: 1.1rem; color: var(--td); }
:root[data-theme="dark"] .sg-spots-panel h3 { color: #FFE3A0; }
.sg-spots-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sg-spots-act {
    position: relative; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding-block: 8px 8px; padding-inline: 8px 14px;
    border-radius: 20px; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1.5px var(--ts); transition: transform .25s var(--ease-bounce), box-shadow .2s;
}
.sg-spots-act:hover, .sg-spots-act:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--t), 0 14px 24px -16px var(--td); }
.sg-spots-act > .k-ico, .sg-spots-act > img { grid-row: span 2; width: 46px; height: 46px; padding: 8px; border-radius: 15px; background: var(--ts); color: var(--td); object-fit: cover; }
.sg-spots-act > img { padding: 0; }
.sg-spots-act b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.sg-spots-act small { font-size: .85rem; font-weight: 600; color: var(--ink-soft); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-spots-act [data-stars-type], .sg-spots-act [data-book-progress] { position: absolute; inset-inline-end: 10px; top: 8px; }
:root[data-theme="dark"] .sg-spots-act { background: rgba(255, 255, 255, .06); }
.sg-spots-marks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sg-spots-mark { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px 6px; padding-inline: 6px 16px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--ts); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 45%, transparent); transition: transform .25s var(--ease-bounce); }
.sg-spots-mark:hover, .sg-spots-mark:focus-visible { transform: translateY(-2px); }
.sg-spots-mark-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--t); color: #fff; }
.sg-spots-mark-ico .k-ico { width: 22px; height: 22px; }
.sg-spots-mark small { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.sg-spots-mark b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.1; }
@media (max-width: 760px) {
    .sg-diorama { width: min(300px, 86%); }
    .sg-dspot { height: 30px; font-size: 11.5px; padding-inline: 3px 8px; }
    .sg-dspot i { width: 24px; height: 24px; }
    .sg-dspot span { display: none; }
    .sg-dspot.is-on span { display: inline; }
    .sg-spots-tab { min-height: 42px; font-size: .92rem; }
    .sg-spots-tab .k-ico { display: none; }
    .sg-spots-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sg-diorama, .sg-dspot, .sg-dspot.is-on i { animation: none !important; } }
