/* Build 186 RC27 — owner-approved Hidden Gems reference layout. */
.hidden-gem-page{--hg-bg:#041a34;--hg-panel:#08243f;--hg-line:#164b72;--hg-pink:#ff20a0;--hg-purple:#8d35ff;--hg-cyan:#12e7ff;--hg-green:#55f7a4;background:var(--hg-bg);color:#fff}.hidden-gem-page .top{background:#fff}.hg-demo-banner{padding:8px;text-align:center;background:#fff2b8;color:#593f00;font-weight:800;font-size:.8rem}.hg-page{display:grid;grid-template-columns:250px minmax(0,1fr);max-width:1600px;margin:0 auto}.hg-sidebar{padding:26px 20px;border-right:1px solid var(--hg-line);background:linear-gradient(180deg,#04172d,#062440);min-height:1080px}.hg-sidebar h2{margin:0 0 18px;font-size:1.2rem}.hg-filter-form{display:grid;gap:14px}.hg-filter-form label{display:grid;gap:6px;font-size:.82rem;font-weight:800}.hg-filter-form select,.hg-filter-form input{width:100%;padding:10px 12px;border:1px solid #315777;border-radius:8px;background:#143653;color:#fff}.hg-filter-submit{margin-top:4px;border:0;background:linear-gradient(90deg,#ff2aa4,#ff168c)}.hg-reset{text-align:center;padding:9px;border:1px solid #5a6290;border-radius:8px;color:#fff;text-decoration:none}.hg-sidebar blockquote{margin:28px 0;padding:22px 12px;border-top:1px solid #163d5d;border-bottom:1px solid #163d5d;color:#cbd8e6;text-align:center;font-style:italic;line-height:1.55}.hg-side-promo{margin-top:18px;padding:18px;border:1px solid #1b567d;border-radius:12px;background:linear-gradient(180deg,#0b416a,#072946)}.hg-side-promo>span{font-size:2rem}.hg-side-promo h3{color:#ffb7ef}.hg-side-promo p{color:#dbe9f4}.hg-side-promo a{display:inline-block;padding:9px 13px;border:1px solid #fff;border-radius:8px;color:#fff;text-decoration:none}.hg-main{min-width:0;padding:0 28px 30px}.hg-hero{min-height:275px;margin:0 -28px 0;background:linear-gradient(90deg,rgba(3,20,40,.35),rgba(3,20,40,.1),rgba(3,20,40,.65)),url('home/hero-malaysia.webp') center/cover no-repeat}.hg-hero-overlay{display:flex;justify-content:space-between;gap:20px;min-height:275px;padding:38px 40px 24px;background:linear-gradient(90deg,rgba(3,19,38,.72),rgba(3,19,38,.18) 56%,rgba(3,19,38,.62))}.hg-hero-copy h1{margin:0;color:#fff;font-size:clamp(2.9rem,5vw,5.4rem);line-height:.84;letter-spacing:-.045em}.hg-hero-copy h1 strong{color:#fff;text-shadow:0 0 18px rgba(38,105,255,.8),0 0 28px rgba(255,31,163,.65)}.hg-hero-copy>p{font-size:1.05rem;font-weight:700}.hg-values{display:flex;flex-wrap:wrap;gap:28px;margin-top:22px}.hg-values span{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:7px;align-items:center}.hg-values span:first-letter{font-size:1.3rem}.hg-values b{font-size:.78rem}.hg-values small{grid-column:2;color:#fff;font-size:.72rem}.hg-hero-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:280px}.hg-hero-mark em{margin-top:14px;text-align:right;font-family:cursive;font-size:1.25rem;line-height:1.25}.hidden-gem-badge{position:absolute;top:12px;left:12px;z-index:4;display:grid;place-items:center;width:76px;height:76px;padding:8px;transform:rotate(45deg);border:3px solid #fd62f0;border-radius:15px;background:linear-gradient(135deg,#351184,#071f66);box-shadow:0 0 5px #fff,0 0 14px #18dfff,0 0 26px #ff21ba;color:#fff;text-align:center;animation:hgPulse 3.2s ease-in-out infinite}.hidden-gem-badge>span{transform:rotate(-45deg);font-size:.61rem;font-weight:900;line-height:1.05;text-transform:uppercase}.hidden-gem-badge .hg-badge-diamond{display:none}.hidden-gem-badge-image{padding:0;border:0;background:transparent;box-shadow:none}.hidden-gem-badge-image img{width:100%;height:100%;object-fit:contain;transform:rotate(-45deg);filter:drop-shadow(0 0 8px #ff2bc1)}.hg-hero-badge{position:relative;top:auto;left:auto;width:150px;height:150px}.hg-hero-badge>span{font-size:1rem}.hg-search{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin:18px 0 12px;padding:5px 5px 5px 16px;border-radius:10px;background:#fff}.hg-search>span{color:#0c315a;font-size:1.4rem}.hg-search input{padding:12px 8px;border:0;outline:0;font-size:1rem}.hg-search button{height:46px;min-width:130px;border:0;border-radius:8px;background:#ff1b98;color:#fff;font-weight:900}.hg-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.hg-chips a{padding:9px 15px;border:1px solid #607998;border-radius:999px;color:#fff;text-decoration:none;font-size:.8rem;font-weight:800}.hg-chips a.active{background:#fff;color:#0b2340;box-shadow:0 0 17px #9c36ff}.hg-section{margin:20px 0 26px}.hg-section-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}.hg-section-title>div{display:flex;align-items:center;gap:11px}.hg-section-title h2{margin:0;font-size:1.45rem}.hg-section-title p{margin:2px 0 0;color:#c8d7e5;font-size:.78rem}.hg-section-title>a{color:#16d7ff;text-decoration:none;font-size:.8rem}.hg-section-icon,.hg-pin-icon{display:grid;place-items:center;width:38px;height:38px;color:#fff;font-size:1.65rem;text-shadow:0 0 8px #fff,0 0 17px #ff2cbf}.hg-grid{display:grid;gap:14px}.hg-featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hg-nearby-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hg-card{overflow:hidden;border:1px solid #1a587f;border-radius:10px;background:linear-gradient(180deg,#092844,#071f37);box-shadow:0 5px 18px rgba(0,0,0,.2)}.hg-card-media{position:relative;display:block;aspect-ratio:1.55/1;overflow:hidden;background:radial-gradient(circle at 40% 25%,#195b79,#061c34)}.hg-card-media img{width:100%;height:100%;object-fit:cover}.hg-media-fallback{display:grid;place-items:center;width:100%;height:100%;font-size:3rem;background:linear-gradient(135deg,#0d5a78,#0d284c 55%,#3e1556)}.hg-demo-chip{position:absolute;right:8px;top:8px;padding:5px 8px;border-radius:999px;background:#fff2a8;color:#423100;font-size:.65rem;font-weight:900}.hg-card-body{padding:11px 12px 13px}.hg-type-pill{display:inline-block;margin-top:-26px;position:relative;z-index:2;padding:5px 10px;border-radius:999px;background:#55f7a4;color:#06283f;font-size:.68rem;font-weight:900}.hg-card h3{margin:8px 0 5px;color:#fff;font-size:1rem;line-height:1.2}.hg-card h3 a{color:#fff;text-decoration:none}.hg-card p{margin:5px 0;color:#d4e1ea;font-size:.77rem;line-height:1.38}.hg-card .hg-location{color:#f6d7ee}.hg-detail-btn{display:inline-block;margin-top:7px;padding:7px 12px;border:1px solid #d9e8f6;border-radius:7px;color:#fff;text-decoration:none;font-size:.72rem;font-weight:800}.hg-detail-btn.disabled{opacity:.65}.hg-mini-card .hg-card-media{aspect-ratio:1.7/1}.hg-mini-card .hg-card-body{padding-top:9px}.hg-empty{padding:50px 25px;text-align:center;border:1px dashed #37678c;border-radius:12px;background:#07233d}.hg-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:19px max(30px,calc((100vw - 1500px)/2));border-top:1px solid #0f456d;background:#031629}.hg-trust span{display:grid;grid-template-columns:auto 1fr;column-gap:10px}.hg-trust b{font-size:.83rem}.hg-trust small{grid-column:2;color:#bcd0e2;font-size:.72rem}.hg-footer{text-align:center;padding:18px;background:#02111f;color:#8ba1b4;font-size:.75rem}@keyframes hgPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18)}}@media(max-width:1180px){.hg-page{grid-template-columns:220px 1fr}.hg-featured-grid,.hg-nearby-grid{grid-template-columns:repeat(3,1fr)}.hg-hero-mark{min-width:210px}.hg-hero-badge{width:120px;height:120px}}@media(max-width:900px){.hg-page{grid-template-columns:1fr}.hg-sidebar{min-height:0;border-right:0;border-bottom:1px solid var(--hg-line)}.hg-filter-form{grid-template-columns:repeat(2,1fr)}.hg-sidebar blockquote,.hg-side-promo{display:none}.hg-main{padding:0 16px 25px}.hg-hero{margin:0 -16px}.hg-hero-overlay{padding:30px 22px}.hg-hero-mark{display:none}.hg-featured-grid,.hg-nearby-grid{grid-template-columns:repeat(2,1fr)}.hg-trust{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.hg-filter-form{grid-template-columns:1fr}.hg-hero-copy h1{font-size:3rem}.hg-values{gap:12px}.hg-search{grid-template-columns:auto 1fr}.hg-search button{grid-column:1/-1;width:100%}.hg-featured-grid,.hg-nearby-grid{grid-template-columns:1fr}.hg-trust{grid-template-columns:1fr}.hidden-gem-badge{width:68px;height:68px}}@media(prefers-reduced-motion:reduce){.hidden-gem-badge{animation:none!important}}

.hidden-gem-why{margin:8px 0;color:#d7e7f4;font-size:.74rem}.hidden-gem-why summary{cursor:pointer;color:#ff9de0;font-weight:800}.hidden-gem-why p{min-height:0!important;margin:5px 0!important}

/* Build 187 RC28 — Hidden Gem detail-page treatment. */
.hidden-gem-detail-page{background:linear-gradient(180deg,#031326 0,#061a31 42%,#081d32 100%);color:#eaf5ff;min-height:100vh}
.hidden-gem-detail-page .site-header{background:#fff;color:#0b1d33}
.hidden-gem-detail-page .hgd-topline{max-width:1280px;margin:22px auto 0;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#9fdcff;font-size:.92rem}
.hidden-gem-detail-page .hgd-topline a{color:#53d9ff;text-decoration:none;font-weight:800}
.hidden-gem-detail-page .hgd-wrap{max-width:1280px}
.hidden-gem-detail-page .hgd-hero{position:relative;overflow:hidden;border:1px solid rgba(71,209,255,.35);background:radial-gradient(circle at 84% 12%,rgba(245,35,255,.22),transparent 32%),linear-gradient(135deg,#071a31,#0a2947 58%,#071628);box-shadow:0 24px 70px rgba(0,0,0,.32);color:#f7fbff;padding:34px;border-radius:26px}
.hidden-gem-detail-page .hgd-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(5,13,27,.06),rgba(5,13,27,.68));pointer-events:none}
.hidden-gem-detail-page .hgd-hero>*{position:relative;z-index:1}
.hidden-gem-detail-page .entity-profile-cover{margin:-34px -34px 28px;height:min(44vw,460px);border-radius:0;overflow:hidden;position:relative}
.hidden-gem-detail-page .entity-profile-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,9,20,.05),rgba(3,19,38,.82))}
.hidden-gem-detail-page .entity-profile-cover img{width:100%;height:100%;object-fit:cover}
.hidden-gem-detail-page .hgd-kicker{display:inline-flex;align-items:center;gap:8px;color:#ff9bff;font-weight:900;letter-spacing:.12em;font-size:.78rem;margin-bottom:8px}
.hidden-gem-detail-page .hgd-hero h1{font-size:clamp(2.1rem,5vw,4.35rem);line-height:1.02;max-width:880px;margin:.2rem 0 1rem;color:#fff;text-shadow:0 0 24px rgba(80,198,255,.18)}
.hidden-gem-detail-page .hgd-hero p{color:#d5e9f7;max-width:920px}
.hidden-gem-detail-page .hgd-hero .chip{background:rgba(255,255,255,.08);border:1px solid rgba(117,220,255,.25);color:#eaf8ff}
.hidden-gem-detail-page .hgd-hero .chip[href*="hidden-gems"]{border-color:#fa51ff;color:#fff;box-shadow:0 0 18px rgba(241,50,255,.18)}
.hidden-gem-detail-page .hgd-badge-wrap{position:absolute;right:34px;top:34px;z-index:4}
.hidden-gem-detail-page .hgd-badge-image{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 0 18px rgba(237,61,255,.65))}
.hidden-gem-detail-page .hgd-badge{width:138px;height:138px;transform:rotate(45deg);border:3px solid #ff5dff;border-radius:23px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(255,30,242,.27),rgba(48,28,152,.78));box-shadow:0 0 10px #ff40ff,0 0 30px rgba(49,168,255,.75),inset 0 0 18px rgba(255,255,255,.12);color:#fff}
.hidden-gem-detail-page .hgd-badge>*{transform:rotate(-45deg)}
.hidden-gem-detail-page .hgd-badge i{font-size:2.1rem;font-style:normal;line-height:1;color:#fff}
.hidden-gem-detail-page .hgd-badge b{font-size:1rem;text-transform:uppercase;text-align:center;max-width:95px;line-height:1.08;text-shadow:0 0 8px #fff,0 0 15px #ff30ff}
.hidden-gem-detail-page .map-actions .btn,.hidden-gem-detail-page .profile-save-action .btn{border-radius:12px}
.hidden-gem-detail-page .claim-cta,.hidden-gem-detail-page .share-box,.hidden-gem-detail-page details{border-color:rgba(106,192,236,.22)}
.hidden-gem-detail-page .card{background:#0a2139;border:1px solid rgba(78,177,225,.22);color:#eaf5ff;box-shadow:0 18px 50px rgba(0,0,0,.16)}
.hidden-gem-detail-page .card h2,.hidden-gem-detail-page .card h3{color:#fff}
.hidden-gem-detail-page .muted,.hidden-gem-detail-page .card small{color:#a9c7db}
.hgd-discovery-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 24px}
.hgd-discovery-strip>a,.hgd-discovery-strip>div{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon title" "icon note";column-gap:12px;align-items:center;padding:18px;border-radius:18px;background:linear-gradient(135deg,rgba(14,50,84,.96),rgba(8,29,51,.96));border:1px solid rgba(72,196,240,.23);color:#fff;text-decoration:none}
.hgd-discovery-strip span{grid-area:icon;font-size:1.7rem}.hgd-discovery-strip strong{grid-area:title}.hgd-discovery-strip small{grid-area:note;color:#a9c7db}
@media (prefers-reduced-motion:no-preference){.hidden-gem-detail-page .hgd-badge{animation:hgdGlow 3.4s ease-in-out infinite}@keyframes hgdGlow{50%{filter:brightness(1.1);box-shadow:0 0 16px #ff40ff,0 0 42px rgba(49,168,255,.72),inset 0 0 20px rgba(255,255,255,.15)}}}
@media(max-width:780px){.hidden-gem-detail-page .hgd-topline{align-items:flex-start;flex-direction:column}.hidden-gem-detail-page .hgd-hero{padding:22px;border-radius:20px}.hidden-gem-detail-page .entity-profile-cover{margin:-22px -22px 22px;height:62vw}.hidden-gem-detail-page .hgd-badge-wrap{right:18px;top:18px}.hidden-gem-detail-page .hgd-badge-image{width:96px;height:96px}.hidden-gem-detail-page .hgd-badge{width:86px;height:86px;border-radius:16px}.hidden-gem-detail-page .hgd-badge b{font-size:.72rem}.hidden-gem-detail-page .hgd-badge i{font-size:1.25rem}.hgd-discovery-strip{grid-template-columns:1fr}}

/* Build 218: unified Place layout overrides legacy Hidden Gem hero media rules. */
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{height:300px!important;min-height:300px!important;max-height:300px!important;margin:0!important;border-radius:0!important}body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}@media(max-width:820px){body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{height:220px!important;min-height:220px!important;max-height:220px!important}}@media(max-width:480px){body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{height:200px!important;min-height:200px!important;max-height:200px!important}}

/* Build 223 — keep Hidden Gem hero media aligned with the unified centered-media layout. */
@media(min-width:821px){
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{
  height:auto!important;min-height:320px!important;max-height:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:24px!important;background:#fff!important;box-sizing:border-box;
}
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media img{
  width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;
  max-height:360px!important;object-fit:contain!important;object-position:center!important;
  margin:auto!important;border-radius:14px;
}}
@media(max-width:820px){
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{
  display:flex!important;align-items:center!important;justify-content:center!important;padding:16px!important;background:#fff!important;
}
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media img{
  width:auto!important;max-width:100%!important;height:auto!important;max-height:100%!important;object-fit:contain!important;margin:auto!important;
}}

/* Build 340 canonical Hidden Gem artwork */
.hidden-gem-badge.hidden-gem-badge-image{width:82px;height:82px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;overflow:visible!important}
.hidden-gem-badge.hidden-gem-badge-image img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
.hidden-gem-badge.hidden-gem-badge-image.hg-hero-badge{position:relative;top:auto;left:auto;width:150px;height:150px}
body.hidden-gem-detail-page .mg-hidden-gem-status-v3{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
body.hidden-gem-detail-page .mg-hidden-gem-status-v3 .mg-hidden-gem-badge-image{display:block;width:min(240px,48vw)!important;height:auto!important;max-width:240px!important;max-height:none!important;object-fit:contain!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
@media(max-width:580px){.hidden-gem-badge.hidden-gem-badge-image{width:72px;height:72px}.hidden-gem-badge.hidden-gem-badge-image.hg-hero-badge{width:118px;height:118px}body.hidden-gem-detail-page .mg-hidden-gem-status-v3 .mg-hidden-gem-badge-image{width:min(205px,62vw)!important;max-width:205px!important}}

/* Build 342 — do not force-crop Hidden Gem hero media */
body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{height:auto!important;min-height:360px!important;max-height:none!important}body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media img{width:auto!important;height:auto!important;max-width:100%!important;max-height:410px!important;object-fit:contain!important}@media(max-width:820px){body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media{height:auto!important;min-height:0!important;max-height:none!important}body.hidden-gem-detail-page.entity-place-detail .mg-unified-hero>.mg-unified-media img{width:100%!important;height:auto!important;max-height:420px!important}}
