/* Island Discovery: isolated styles ensure the section stays styled if the
   main stylesheet is cached independently. */
.welcome-intro {
    position: fixed;
    inset: 0 auto 0 0;
    width: 100vw;
    z-index: 10000;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(28px, 6vw, 80px);
    color: #fffaf1;
    background: #000;
    animation: welcomeSceneEnter 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.welcome-intro::before { position: absolute; inset: 22px; z-index: 1; border: 1px solid rgba(242,207,141,.3); content: ""; pointer-events: none; animation: welcomeFrameIn 1.2s .25s both; }
body.welcome-intro-active { overflow: hidden; }
.welcome-intro-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.welcome-intro-sky::before { position: absolute; inset: 0; content: ""; background: #000; }
.welcome-intro-orb { display: none; }
.welcome-intro-stars { position: absolute; inset: 0; }
.welcome-intro-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #f7dfae; animation: welcomeStarPulse 3.4s ease-in-out infinite alternate; }
.welcome-intro-stars i:nth-child(1) { top: 17%; left: 18%; }
.welcome-intro-stars i:nth-child(2) { top: 26%; left: 72%; animation-delay: -.9s; }
.welcome-intro-stars i:nth-child(3) { top: 68%; left: 14%; animation-delay: -1.7s; }
.welcome-intro-stars i:nth-child(4) { top: 76%; left: 82%; animation-delay: -.5s; }
.welcome-intro-stars i:nth-child(5) { top: 38%; left: 91%; animation-delay: -2.2s; }
.welcome-intro-stars i:nth-child(6) { top: 84%; left: 37%; animation-delay: -1.2s; }
.welcome-intro-stars i:nth-child(7) { top: 12%; left: 48%; animation-delay: -2.6s; }
.welcome-intro-stars i:nth-child(8) { top: 54%; left: 76%; animation-delay: -.3s; }
.welcome-intro-stars i:nth-child(9) { top: 30%; left: 30%; animation-delay: -1.4s; }
.welcome-intro-route { position: absolute; right: 2%; bottom: 10%; width: min(52vw, 650px); height: auto; overflow: visible; opacity: .72; }
.welcome-intro-route path { stroke: rgba(246,215,157,.68); stroke-width: 1.4; stroke-dasharray: 500; stroke-dashoffset: 500; animation: welcomeRouteDraw 2.2s .35s ease-out forwards; }
.welcome-intro-route circle { fill: #f5d99e; opacity: 0; animation: welcomeWaypoint .45s 1.7s ease-out forwards; }
.welcome-intro-route circle:last-child { animation-delay: 2s; }
.welcome-intro-curtain { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.welcome-intro-curtain span { background: #000; transform: scaleX(0); animation: welcomeCurtainOpen 1s .08s cubic-bezier(.76,0,.24,1) both; }
.welcome-intro-curtain span:first-child { transform-origin: left; }
.welcome-intro-curtain span:last-child { transform-origin: right; animation-delay: .14s; }
.welcome-intro-content { position: relative; z-index: 2; width: min(100%, 1180px); margin-inline: auto; text-align: center; }
.welcome-intro-content::before { display: block; width: 74px; height: 1px; margin: 0 auto 30px; content: ""; background: #f2cf8d; animation: welcomeGoldRuleIn .8s .38s both; }
.welcome-intro-logo { display: grid; width: 132px; aspect-ratio: 1; place-items: center; margin: 0 auto 30px; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; background: rgba(7,28,33,.9); box-shadow: 0 10px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.28); animation: welcomeLogoIn .9s .5s cubic-bezier(.2,.8,.2,1) both; }
.welcome-intro-logo img { width: 78%; height: 78%; object-fit: contain; }
.welcome-intro-kicker,.welcome-intro-caption,.welcome-intro-footer { font-family: var(--font-ui); }
.welcome-intro-kicker { margin: 0 0 20px; color: #f2cf8d; font-size: .88rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; animation: welcomeCopyIn .8s .7s both; }
.welcome-intro-content h1 { margin: 0; color: #fffaf1; font-family: var(--font-display); font-size: 8.5rem; font-weight: 500; line-height: .94; }
.welcome-intro-content h1 span,.welcome-intro-content h1 strong { display: block; }
.welcome-intro-content h1 span { margin-bottom: 18px; color: rgba(255,250,241,.72); font-family: var(--font-ui); font-size: 1.05rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.welcome-intro-content h1 strong { color: #f2cf8d !important; font-weight: 500; }
.welcome-intro-caption { margin: 28px 0 0; color: rgba(255,250,241,.88); font-size: 1.18rem; animation: welcomeCopyIn .8s .95s both; }
.welcome-intro-itinerary { display: flex; width: min(100%, 470px); min-height: 86px; align-items: center; gap: 18px; margin: 38px auto 0; padding: 17px 22px; border: 1px solid rgba(242,207,141,.4); border-radius: 2px; background: #080808; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: welcomeCopyIn .8s 1.1s both; }
.welcome-intro-itinerary-index { color: #f2cf8d; font-family: var(--font-ui); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.welcome-intro-itinerary-index span { color: rgba(255,255,255,.45); }
.welcome-intro-itinerary-divider { width: 1px; height: 31px; background: rgba(255,255,255,.25); }
.welcome-intro-itinerary-copy { display: grid; gap: 4px; }
.welcome-intro-itinerary-copy > span { color: rgba(255,255,255,.6); font-family: var(--font-ui); font-size: .62rem; text-transform: uppercase; }
.welcome-intro-stop { color: #fffaf1; font-family: var(--font-display); font-size: 1rem; font-weight: 500; transition: opacity .2s ease, transform .2s ease; }
.welcome-intro-stop.is-changing { opacity: 0; transform: translateY(5px); }
.welcome-intro-itinerary-index { color: #f2cf8d !important; }
.welcome-intro-compass { width: 35px; height: 35px; margin-left: auto; stroke: #f2cf8d; stroke-width: 1.4; }
.welcome-intro-progress { width: min(100%, 410px); height: 2px; overflow: hidden; margin: 20px auto 0; background: rgba(255,255,255,.24); }
.welcome-intro-progress span { display: block; width: 100%; height: 100%; background: #f2cf8d; transform: scaleX(0); transform-origin: left; animation: welcomeProgress 5.6s linear forwards; }
.welcome-intro-skip { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; padding: 0 30px; border: 1px solid #f2cf8d; border-radius: 2px; background: #f2cf8d; color: #100e09; font: 700 .9rem/1 var(--font-ui); cursor: pointer; transition: color .2s ease,background .2s ease,transform .2s ease; animation: welcomeCopyIn .8s 1.25s both; }
.welcome-intro-skip:hover { transform: translateY(-2px); background: #fff3d7; border-color: #fff3d7; color: #100e09; }
.welcome-intro-skip:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.welcome-intro-footer { position: absolute; z-index: 2; right: 24px; bottom: 22px; color: rgba(255,250,241,.62); font-size: .62rem; letter-spacing: .08em; }
.welcome-intro.is-leaving { pointer-events: none; animation: welcomeSceneExit 1.05s cubic-bezier(.76,0,.24,1) both; }
.welcome-intro.is-leaving .welcome-intro-curtain span:first-child { transform-origin: right; animation: welcomeCurtainClose .8s .08s cubic-bezier(.76,0,.24,1) both; }
.welcome-intro.is-leaving .welcome-intro-curtain span:last-child { transform-origin: left; animation: welcomeCurtainClose .8s cubic-bezier(.76,0,.24,1) both; }
.welcome-intro.is-leaving .welcome-intro-content { animation: welcomeContentExit .45s ease both; }
@keyframes welcomeFrameIn { from { opacity: 0; inset: 32px; } to { opacity: 1; inset: 22px; } }
@keyframes welcomeGoldRuleIn { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes welcomeSceneEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcomeSceneExit { to { opacity: 0; visibility: hidden; } }
@keyframes welcomeCurtainOpen { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes welcomeCurtainClose { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes welcomeLogoIn { from { opacity: 0; transform: translateY(20px) scale(.84); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes welcomeCopyIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcomeOrbFloat { to { transform: translate3d(0,-18px,0) scale(1.04); } }
@keyframes welcomeStarPulse { to { opacity: .28; transform: scale(.72); } }
@keyframes welcomeRouteDraw { to { stroke-dashoffset: 0; } }
@keyframes welcomeWaypoint { to { opacity: 1; } }
@keyframes welcomeProgress { to { transform: scaleX(1); } }
@media (max-width: 600px) {
    .welcome-intro { padding: 24px 20px 64px; }
    .welcome-intro::before { inset: 10px; }
    .welcome-intro-content { width: 100%; }
    .welcome-intro-content h1 { font-size: 3.2rem; line-height: .94; }
    .welcome-intro-content h1 span { margin-bottom: 12px; font-size: .78rem; }
    .welcome-intro-content::before { margin-bottom: 20px; }
    .welcome-intro-logo { width: 88px; margin-bottom: 18px; }
    .welcome-intro-kicker { margin-bottom: 12px; font-size: .66rem; }
    .welcome-intro-caption { margin-top: 18px; font-size: .94rem; line-height: 1.45; }
    .welcome-intro-itinerary { min-height: 72px; margin-top: 22px; padding: 12px 14px; }
    .welcome-intro-skip { min-height: 50px; margin-top: 18px; }
    .welcome-intro-route { right: -12%; bottom: 7%; width: 84vw; }
    .welcome-intro-footer { right: 14px; bottom: 12px; font-size: .52rem; }
}
@media (min-width: 601px) and (max-height: 950px) {
    .welcome-intro { padding-block: 30px; }
    .welcome-intro-logo { width: 100px; margin-bottom: 16px; }
    .welcome-intro-kicker { margin-bottom: 12px; }
    .welcome-intro-content h1 { font-size: 7rem; }
    .welcome-intro-content h1 span { margin-bottom: 12px; }
    .welcome-intro-caption { margin-top: 18px; }
    .welcome-intro-itinerary { min-height: 72px; margin-top: 22px; }
    .welcome-intro-progress { margin-top: 16px; }
    .welcome-intro-skip { min-height: 48px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .welcome-intro,.welcome-intro *,.welcome-intro::before,.welcome-intro::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 640px) {
    body main section.hero#home { min-height: 0 !important; height: auto !important; padding: 0 0 16px !important; align-items: flex-start; }
    body main section.hero#home > .hero-content { flex: 0 0 auto; padding: 16px 0 0 !important; }
    body main section.hero#home > .hero-content h1 { max-width: 18ch !important; margin-bottom: 9px !important; font-size: clamp(2rem, 8.2vw, 2.5rem) !important; line-height: 1 !important; letter-spacing: -.035em !important; }
    body main section.hero#home > .hero-content > p { margin-bottom: 10px !important; font-size: .84rem !important; line-height: 1.4 !important; }
    body main section.hero#home .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 8px !important; }
    body main section.hero#home .hero-actions .btn { min-height: 42px; justify-content: center; padding: 8px 5px; font-size: .68rem; text-align: center; }
    body main section.hero#home .hero-meta { flex-wrap: nowrap; gap: 4px; overflow: hidden; margin-bottom: 7px !important; }
    body main section.hero#home .hero-meta span { min-width: 0; justify-content: center; padding: 5px 4px; font-size: .46rem; letter-spacing: 0; text-align: center; }
    body main section.hero#home .hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 5px; max-width: none; }
    body main section.hero#home .hero-stats .stat-box { min-width: 0; padding: 7px 3px; border-radius: 10px; text-align: center; }
    body main section.hero#home .hero-stats .stat-box strong { margin-bottom: 1px; font-size: .9rem; }
    body main section.hero#home .hero-stats .stat-box span { font-size: .53rem; line-height: 1.12; }
    body main section.hero#home > .hero-panel { flex: 0 0 auto; width: calc(100% - 32px); margin: 8px 16px 0 !important; padding: 10px 13px !important; border-radius: 14px; animation: none; }
    body main section.hero#home > .hero-panel .panel-top { gap: 6px; margin-bottom: 5px; }
    body main section.hero#home > .hero-panel .panel-badge { padding: 4px 7px !important; font-size: .5rem; letter-spacing: .05em !important; }
    body main section.hero#home > .hero-panel .panel-price { font-size: .61rem; }
    body main section.hero#home > .hero-panel h3 { margin-bottom: 4px; font-size: .88rem; }
    body main section.hero#home > .hero-panel ul { gap: 2px; margin-bottom: 5px; }
    body main section.hero#home > .hero-panel li { font-size: .72rem; line-height: 1.2; }
    body main section.hero#home > .hero-panel .route-telemetry,
    body main section.hero#home > .hero-panel .route-spark,
    body main section.hero#home > .hero-panel .route-spark-message,
    body main section.hero#home .hero-live-console { display: none !important; }
    body main section.hero#home .hero-video { transform: scale(1.01); }
}

@media (max-width: 640px) and (max-height: 700px) {
    body main section.hero#home > .hero-content { padding-top: 8px !important; }
    body main section.hero#home > .hero-content h1 { font-size: 1.9rem !important; line-height: 1.02 !important; }
    body main section.hero#home > .hero-content > p { margin-bottom: 7px !important; font-size: .78rem !important; line-height: 1.34 !important; }
    body main section.hero#home .hero-meta { display: none !important; }
    body main section.hero#home .hero-actions { margin-bottom: 6px !important; }
    body main section.hero#home .hero-stats .stat-box { padding-block: 5px; }
    body main section.hero#home > .hero-panel { margin-top: 5px !important; padding: 8px 11px !important; }
    body main section.hero#home > .hero-panel .panel-top { margin-bottom: 3px !important; }
    body main section.hero#home > .hero-panel h3 { margin-bottom: 3px !important; font-size: .8rem !important; }
    body main section.hero#home > .hero-panel ul { display: grid !important; gap: 1px !important; margin-bottom: 3px !important; }
    body main section.hero#home > .hero-panel li { font-size: .66rem !important; line-height: 1.12 !important; }
    body main section.hero#home > .hero-panel .panel-btn { display: inline-flex !important; min-height: 32px !important; margin-top: 2px !important; padding-inline: 14px !important; font-size: .72rem !important; }
}

.discovery-section {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: radial-gradient(circle at 12% 18%, rgba(209,138,45,.16), transparent 28%), radial-gradient(circle at 90% 74%, rgba(105,212,157,.13), transparent 32%), linear-gradient(145deg, #f5efe5, #fffaf4 48%, #edf4f1);
}
.discovery-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
.discovery-section > .container { position: relative; z-index: 1; }
.discovery-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(110px); opacity: .18; pointer-events: none; }
.discovery-glow-one { top: -260px; left: -140px; background: #d18a2d; }
.discovery-glow-two { right: -220px; bottom: -260px; background: #69d49d; }
.discovery-heading-row { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.discovery-intro { max-width: 780px; margin: 0; text-align: left; }
.discovery-intro h2 { margin-top: 10px; color: #14252d; }
.discovery-intro h2 em { color: #b86f1d; font-style: italic; }
.discovery-intro p { max-width: 650px; margin-top: 18px; color: #59666b; }
.discovery-legend { display: flex; flex-wrap: wrap; gap: 18px; color: #59666b; font-size: .72rem; font-weight: 700; }
.discovery-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.legend-dot-gold { color: #d18a2d; background: #d18a2d; }
.legend-dot-teal { color: #2f7a7d; background: #2f7a7d; }
.discovery-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr); gap: 24px; align-items: stretch; }
.discovery-section .discovery-map { position: relative; min-height: 610px; overflow: hidden; border: 1px solid rgba(255,255,255,.66); border-radius: 30px; background: #dce9e2 !important; background-image: none !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.8),0 28px 70px rgba(25,55,60,.11); }
.discovery-section .map-grid { display: none !important; background: none !important; opacity: 0 !important; }
.discovery-section .sri-lanka-map { position: absolute; z-index: 1; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; overflow: hidden; background: #dce9e2; filter: none !important; font-family: var(--font-ui); }
.discovery-section .sri-lanka-map .leaflet-tile-pane { filter: none !important; }
.discovery-section .sri-lanka-map img.leaflet-tile { mix-blend-mode: normal !important; }
.discovery-section .sri-lanka-map img.leaflet-tile { width: 258px !important; height: 258px !important; margin: -1px; }
.discovery-section .sri-lanka-map .leaflet-tile-container { background: transparent !important; }
.sri-lanka-map .leaflet-control-attribution { font-size: 10px; }
.discovery-section .leaflet-control-zoom { display: none; }
.discovery-map-controls { position: absolute; top: 14px; right: 14px; z-index: 500; display: grid; gap: 6px; }
.discovery-map-controls button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(23,56,62,.2); border-radius: 10px; background: rgba(255,255,255,.95); color: #17383e; box-shadow: 0 2px 8px rgba(0,0,0,.16); font: 700 22px/1 var(--font-ui); cursor: pointer; }
.discovery-map-controls button:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.discovery-map-controls button:focus-visible { outline: 3px solid #d18a2d; outline-offset: 2px; }
.discovery-section .destination-marker { display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #17383e; color: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.4); font-family: var(--font-ui); font-size: 12px; font-weight: 800; line-height: 1; transform: none; }
.discovery-section .destination-marker span { color: #fff !important; transform: none; }
.discovery-section .destination-marker.is-active { background: #bf761e; box-shadow: 0 0 0 4px rgba(209,138,45,.28),0 2px 8px rgba(0,0,0,.4); }
.discovery-section .destination-marker-wrap { border: 0; background: transparent; }
.leaflet-tooltip.destination-tooltip { padding: 5px 9px; border: 1px solid rgba(255,255,255,.7); border-radius: 7px; background: rgba(255,255,255,.94); color: #17383e; box-shadow: 0 5px 15px rgba(13,48,55,.16); font-size: 11px; font-weight: 700; }
.leaflet-tooltip.destination-tooltip::before { display: none; }
.map-route { fill: none; stroke: rgba(209,138,45,.48); stroke-width: 2; stroke-linecap: round; }
.map-route-dashed { stroke-dasharray: 6 8; }
.map-pin { position: absolute; left: var(--pin-x); top: var(--pin-y); z-index: 3; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.72); color: #17383e; box-shadow: 0 8px 18px rgba(20,68,70,.16); cursor: pointer; transform: translate(-50%,-50%); transition: transform .3s cubic-bezier(.2,.8,.2,1),background .3s ease,box-shadow .3s ease; }
.map-pin span { position: relative; z-index: 2; font-family: var(--font-ui); font-size: .66rem; font-weight: 800; }
.map-pin i { position: absolute; inset: -8px; border: 1px solid rgba(209,138,45,.38); border-radius: 50%; opacity: 0; }
.map-pin:hover,.map-pin:focus-visible { transform: translate(-50%,-50%) scale(1.16); box-shadow: 0 12px 24px rgba(209,138,45,.25); }
.map-pin.is-active { background: #17383e; color: #fff8ec; box-shadow: 0 0 0 7px rgba(209,138,45,.14),0 12px 24px rgba(20,68,70,.3); }
.map-pin.is-active i { animation: discoveryPinRing 2.2s ease-out infinite; }
.map-compass { position: absolute; top: 24px; right: 28px; display: grid; justify-items: center; gap: 5px; color: #2b4b50; font-family: var(--font-ui); font-size: .68rem; }
.map-compass span { color: #b86f1d; font-weight: 800; }
.map-compass i { width: 1px; height: 40px; background: linear-gradient(#b86f1d,rgba(20,68,70,.16)); }
.map-compass b { font-size: .62rem; }
.glass-panel { border: 1px solid rgba(255,255,255,.68); background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.8),0 24px 60px rgba(20,55,62,.13); backdrop-filter: blur(26px); }
.discovery-detail { position: relative; display: flex; flex-direction: column; min-height: 610px; overflow: hidden; padding: 24px; border-radius: 30px; }
.discovery-detail::before { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(140deg,rgba(255,255,255,.5),transparent 45%); }
.detail-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #587177; font-family: var(--font-ui); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.detail-image-wrap { position: relative; height: 250px; flex: 0 0 auto; overflow: hidden; margin: 17px 0 25px; border-radius: 22px; background: #b3c6c3; }
.detail-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease,opacity .3s ease; }
.discovery-detail.is-changing .detail-image-wrap img { opacity: .35; transform: scale(1.08); }
.detail-image-tag { position: absolute; bottom: 14px; left: 14px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(10,31,36,.55); color: #fff; font-size: .65rem; backdrop-filter: blur(12px); }
.detail-copy { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; }
.detail-kicker { color: #a65f14; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.detail-copy h3 { margin: 4px 0 8px; color: #172d32; font-family: var(--font-display); font-size: clamp(2rem,3.5vw,3rem); line-height: 1; }
.detail-copy p { margin: 0; color: #53666a; font-size: .91rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.detail-meta span { padding: 8px 11px; border: 1px solid rgba(25,65,70,.11); border-radius: 10px; background: rgba(255,255,255,.55); color: #5c6d71; font-size: .69rem; }
.detail-meta b { color: #17383e; }
.detail-copy .btn { align-self: flex-start; margin-top: auto; }
.discovery-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(8,minmax(115px,1fr)); gap: 12px; overflow-x: auto; margin-top: 18px; padding: 3px 2px 15px; scrollbar-color: rgba(209,138,45,.4) transparent; scrollbar-width: thin; }
.discovery-mini-card { position: relative; display: block; min-width: 160px; height: 132px; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: #17383e; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 14px 28px rgba(25,55,60,.13); transition: transform .3s ease,box-shadow .3s ease; }
.discovery-mini-card:hover,.discovery-mini-card:focus-visible { transform: translateY(-7px); box-shadow: 0 20px 35px rgba(25,55,60,.2); }
.discovery-mini-card.is-active { outline: 2px solid #d18a2d; outline-offset: 3px; }
.discovery-mini-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.discovery-mini-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg,transparent 35%,rgba(8,26,31,.82)); }
.discovery-mini-card:hover img { transform: scale(1.08); }
.discovery-mini-card span,.discovery-mini-card i { position: absolute; z-index: 2; }
.discovery-mini-card span { bottom: 12px; left: 13px; }
.discovery-mini-card b,.discovery-mini-card small { display: block; }
.discovery-mini-card b { font-family: var(--font-display); font-size: .98rem; }
.discovery-mini-card small { margin-top: 2px; color: rgba(255,255,255,.75); font-size: .58rem; text-transform: uppercase; }
.discovery-mini-card i { top: 11px; right: 12px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.12); font-size: .72rem; font-style: normal; backdrop-filter: blur(8px); }
.discovery-pulse { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr 1fr .7fr auto; align-items: center; gap: 24px; margin-top: 28px; padding: 18px 20px; border-radius: 20px; }
.pulse-signal-copy,.pulse-weather,.pulse-route { display: flex; align-items: center; gap: 12px; }
.pulse-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #69d49d; box-shadow: 0 0 0 6px rgba(105,212,157,.14),0 0 16px rgba(105,212,157,.7); animation: discoverySignalPulse 2.2s ease-in-out infinite; }
.pulse-signal-copy small,.pulse-weather small,.pulse-route small,.pulse-clock small { display: block; color: #617477; font-size: .59rem; font-weight: 700; text-transform: uppercase; }
.pulse-signal-copy strong,.pulse-weather strong,.pulse-route strong,.pulse-clock strong { display: block; color: #17383e; font-family: var(--font-ui); font-size: .76rem; }
.pulse-weather>span,.pulse-route>span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(209,138,45,.12); color: #b86f1d; }
.pulse-route>span { background: rgba(47,122,125,.1); color: #2f7a7d; }
.pulse-clock { text-align: center; }
.pulse-clock strong { font-size: 1.05rem; }
.discovery-pulse-button { min-height: 46px; padding: 0 19px; border: 1px solid rgba(209,138,45,.3); border-radius: 999px; background: #17383e; color: #fff; font-size: .73rem; font-weight: 800; cursor: pointer; }
.discovery-pulse-button span { margin-left: 7px; }
@keyframes discoveryPinRing { to { opacity: 0; transform: scale(1.55); } }
@keyframes discoverySignalPulse { 50% { box-shadow: 0 0 0 9px rgba(105,212,157,.04),0 0 20px rgba(105,212,157,.4); } }
body[data-theme="dark"] .discovery-section { background: linear-gradient(145deg,#0b171d,#0d1b22 55%,#10221e); }
body[data-theme="dark"] .discovery-intro h2,body[data-theme="dark"] .detail-copy h3,body[data-theme="dark"] .pulse-signal-copy strong,body[data-theme="dark"] .pulse-weather strong,body[data-theme="dark"] .pulse-route strong,body[data-theme="dark"] .pulse-clock strong { color: #f4f7f6; }
body[data-theme="dark"] .discovery-intro p,body[data-theme="dark"] .detail-copy p,body[data-theme="dark"] .detail-meta span,body[data-theme="dark"] .pulse-signal-copy small,body[data-theme="dark"] .pulse-weather small,body[data-theme="dark"] .pulse-route small,body[data-theme="dark"] .pulse-clock small { color: #c7d5d8; }
body[data-theme="dark"] .discovery-map,body[data-theme="dark"] .discovery-detail { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
body[data-theme="dark"] .map-shape { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.17); }
body[data-theme="dark"] .detail-meta span { background: rgba(255,255,255,.07); }
body[data-theme="dark"] .discovery-pulse { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.06); }
@media (max-width: 980px) {
    .discovery-layout { grid-template-columns: minmax(0,1fr); }
    .discovery-map { min-height: 520px; }
    .discovery-detail { min-height: 560px; }
    .discovery-pulse { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .pulse-clock { display: none; }
    .discovery-pulse-button { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 680px) {
    .discovery-heading-row { display: block; margin-bottom: 32px; }
    .discovery-legend { margin-top: 22px; }
    .discovery-map { min-height: 430px; border-radius: 23px; }
    .sri-lanka-map { min-height: 430px; }
    .map-pin { width: 38px; height: 38px; }
    .map-compass { top: 18px; right: 17px; }
    .discovery-detail { min-height: 590px; padding: 17px; border-radius: 23px; }
    .detail-image-wrap { height: 220px; }
    .discovery-cards { grid-template-columns: repeat(8,160px); grid-auto-flow: column; grid-auto-columns: 160px; justify-content: start; overflow-x: auto; }
    .discovery-pulse { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 17px; }
    .pulse-signal-copy { grid-column: 1 / -1; }
    .pulse-route { display: none; }
    .discovery-pulse-button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .discovery-section *, .discovery-section *::before, .discovery-section *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
