/* In-site link viewer: every outside link / PDF / EPUB opens in this pop-up instead of taking people away from HostelGig. */
.hgl{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(14,16,30,.62);backdrop-filter:blur(3px);animation:hgl-in .18s ease-out;font-family:'Nunito',-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
@keyframes hgl-in{from{opacity:0}to{opacity:1}}
.hgl *{box-sizing:border-box}
.hgl-box{width:min(1100px,96vw);height:min(92vh,920px);background:#fff;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.45);display:flex;flex-direction:column;overflow:hidden;color:#25263a}
.hgl-bar{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;background:#f4f5fb;border-bottom:1px solid #e3e5f0;flex:0 0 auto}
.hgl-ico{width:30px;height:30px;border-radius:50%;background:#7380ec;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex:0 0 auto}
.hgl-title{flex:1;min-width:0;line-height:1.2}
.hgl-title b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hgl-title small{display:block;font-size:11.5px;color:#7c7f98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hgl-btn{border:0;background:transparent;color:#4b4e6a;height:34px;min-width:34px;padding:0 10px;border-radius:10px;font-weight:600;font-size:13px;font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.hgl-btn:hover{background:#e6e8f6;color:#25263a}
.hgl-close{background:#ff7846;color:#fff}
.hgl-close:hover{background:#f2602c;color:#fff}
.hgl-body{position:relative;flex:1;min-height:0;background:#fff}
.hgl-body iframe,.hgl-body .hgl-epub{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.hgl-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#111;overflow:auto}
.hgl-img img{max-width:100%;max-height:100%;object-fit:contain}
.hgl-load{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#7c7f98;font-size:13.5px;background:#fff;text-align:center;padding:20px}
.hgl-load.is-hidden{display:none}
.hgl-spin{width:34px;height:34px;border-radius:50%;border:3px solid #dfe2f5;border-top-color:#7380ec;animation:hgl-spin .8s linear infinite}
@keyframes hgl-spin{to{transform:rotate(360deg)}}
.hgl-slow{display:none;max-width:420px}
.hgl-slow.is-on{display:block}
.hgl-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;text-align:center;background:#fff;overflow:auto}
.hgl-card .hgl-ico{width:64px;height:64px;font-size:28px}
.hgl-card h3{margin:6px 0 0;font-size:19px}
.hgl-card p{margin:0;max-width:440px;color:#6a6d86;font-size:14px;line-height:1.55}
.hgl-go{margin-top:8px;border:0;background:#7380ec;color:#fff;font-weight:700;font-size:14.5px;font-family:inherit;padding:12px 22px;border-radius:12px;cursor:pointer;text-decoration:none;display:inline-flex;gap:8px;align-items:center}
.hgl-go:hover{background:#5e6ce0;color:#fff}
.hgl-nav{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;padding:10px 14px;background:linear-gradient(0deg,#fff 60%,rgba(255,255,255,0));z-index:2;pointer-events:none}
.hgl-nav .hgl-go{pointer-events:auto;margin:0;padding:8px 16px}
.hgl-epub{padding-bottom:56px}
html.hgl-lock,html.hgl-lock body{overflow:hidden!important}
@media (max-width:700px){.hgl{align-items:stretch}.hgl-box{width:100vw;height:100dvh;height:100vh;border-radius:0}.hgl-btn .hgl-lbl{display:none}}
@media (prefers-color-scheme:dark){html[data-theme=dark] .hgl-box,html.dark .hgl-box{background:#1d1e2b;color:#e8e9f5}}
