/* ui.css — shared by all pages. Single source for rules that were duplicated in every page; edit here.
   Pages keep only their own styles inline (plus a few shared rules that must stay in place for the cascade). */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
ul{list-style:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;width:100%;position:relative;z-index:1}
.btn-primary:hover{background:var(--purple-hover);transform:translateY(-1px)}
.btn-outline{background:#fff;color:var(--purple);border:1.5px solid var(--purple)}
.btn-outline:hover{background:var(--bg-soft);transform:translateY(-1px)}
.header.scrolled{
  top:8px;border-radius:18px;
  box-shadow:0 8px 28px rgba(15,18,41,.14);
}
.header.scrolled .header-inner{padding:9px 16px}
.header.scrolled .logo-text img{height:16px}
.header.scrolled .logo-mark{height:25px}
.header.scrolled .nav-link{font-size:14px}
.logo{display:flex;align-items:center;gap:10px;flex:none}
.logo-mark{
  height:30px;width:auto;
  display:flex;align-items:center;justify-content:center;
  flex:none;
}
.logo-mark img{height:100%;width:auto;max-width:82px;object-fit:contain}
.logo-text{display:flex;align-items:center;flex:none}
.logo-text img{height:19px;width:auto;object-fit:contain;display:block}
.nav{display:flex;align-items:center;gap:28px;margin:0 auto}
.nav-link:hover{color:var(--purple)}
.header-right{display:flex;align-items:center;gap:14px;flex:none}
.divider-v{width:1px;height:26px;background:var(--line)}
.lang{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.lang svg{width:17px;height:17px}
.header-fav:hover{color:var(--purple)}
.header-fav svg{width:22px;height:22px}
.header-fav .fav-count:empty{display:none}
.burger{display:none;flex-direction:column;gap:4px;padding:6px;cursor:pointer;background:none;border:none;flex:none}
.burger span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;transition:all .25s ease}
.burger.active span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-menu-overlay{position:fixed;top:0;left:0;width:280px;height:100vh;background:#fff;z-index:200;transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);box-shadow:0 0 40px rgba(15,18,41,.15);overflow-y:auto;padding:80px 24px 32px;display:flex;flex-direction:column}
.mobile-menu-overlay.open{transform:translateX(0)}
.mobile-menu-backdrop{position:fixed;inset:0;background:rgba(15,18,41,.3);z-index:199;opacity:0;pointer-events:none;transition:opacity .3s ease}
.mobile-menu-backdrop.open{opacity:1;pointer-events:auto}
.mobile-nav{display:flex;flex-direction:column;gap:4px}
.mobile-nav-link{font-size:17px;font-weight:600;color:var(--ink);padding:14px 16px;border-radius:10px;transition:background .15s}
.mobile-nav-link:hover{background:var(--bg-soft)}
.mobile-menu-divider{height:1px;background:var(--line);margin:20px 0}
.mobile-menu-actions{display:flex;flex-direction:column;gap:14px}
.mobile-lang{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:var(--ink);padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:none;cursor:pointer}
.mobile-lang svg{width:18px;height:18px}
.mobile-signup{width:100%;justify-content:center;padding:14px}
.mobile-login-link{font-size:15px;font-weight:600;color:var(--ink);padding:14px 16px;border:1px solid var(--line);border-radius:10px;text-align:center}
.mobile-signup-btn{display:none;padding:8px 16px;font-size:13px}
.mobile-fav-link{font-size:15px;font-weight:600;color:var(--ink);padding:14px 16px;border:1px solid var(--line);border-radius:10px;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;position:relative}
.mobile-fav-link svg{width:20px;height:20px;flex:none}
.mobile-fav-link .fav-count{position:absolute;top:4px;right:12px;background:var(--purple);color:#fff;font-size:9px;font-weight:700;min-width:14px;height:14px;border-radius:7px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.mobile-fav-link .fav-count:empty{display:none}
.login:hover{color:var(--purple)}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,.08)}
.footer .logo-text{color:#fff}
.footer .logo-text img{filter:brightness(0) invert(1)}
.footer-about{color:#9aa0b5;font-size:14px;max-width:280px;margin-top:16px}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col a{font-size:14px;color:#9aa0b5;transition:color .18s}
.footer-col a:hover{color:#fff}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;font-size:13px;color:#7e8399}
@media (max-width:860px){
  .header>.container{padding:0}
  .header-inner,.header.scrolled .header-inner{position:relative;padding:10px 14px}
  .header .burger{margin-left:-6px}
  .header .logo{position:absolute;left:50%;transform:translateX(-50%);margin:0}
  .header-right{margin-left:auto}
}
.footer-company{grid-column:1/-1;font-style:normal;font-size:13px;line-height:1.7;color:#7e8399}
.footer-company a{color:#c7cbe0;font-weight:600;transition:color .18s}
.footer-company a:hover{color:#fff}
.footer-company .fc-nw{white-space:nowrap}
@media (max-width:860px){
  .footer-top{grid-template-columns:1fr 1fr;gap:32px 24px}
  .footer-top>div:first-child{grid-column:1/-1}
  .footer-company{grid-column:auto;align-self:start}
  .footer-company .fc-sep{display:none}
  .footer-company .fc-vat{display:block}
  /* phones — pelikan.sk-style footer: intro centred; link/company columns in an even 2-column grid
     with left-aligned text and the same inset on both sides; legal links and © centred at the bottom */
  .footer .footer-top{grid-template-columns:1fr 1fr;column-gap:16px;padding-inline:8px;text-align:left}
  .footer .footer-top>div:first-child{text-align:center}
  .footer .footer-top>div:first-child .logo{justify-content:center}
  .footer .footer-about{margin-left:auto;margin-right:auto}
  .footer .footer-company{overflow-wrap:anywhere}
  .footer-company .fc-nw{display:block}  /* address on two natural lines: street / postcode + city */
  .footer-company .fc-nw+br{display:none}
  .footer .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:10px}
  .footer .footer-legal{justify-content:center}
  /* compact, uniform 22px rhythm for links and company details */
  .footer-top{gap:24px 16px;padding-bottom:28px}
  .footer-col .footer-h{margin-bottom:8px}
  .footer-col ul{gap:0}
  .footer-col li,.footer-company{line-height:22px}
}
.mobile-menu-overlay{width:min(320px,86vw);height:100dvh;padding:calc(18px + env(safe-area-inset-top,0px)) 20px calc(24px + env(safe-area-inset-bottom,0px))}
.mm-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.mm-brand{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.mm-brand img{height:19px;width:auto;display:block}
.mm-close{width:38px;height:38px;margin-right:-8px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:var(--ink);border-radius:50%;cursor:pointer;transition:background .15s}
.mm-close:hover{background:var(--bg-soft)}
.mm-close svg{width:22px;height:22px}
.mm-nav{display:flex;flex-direction:column}
.mm-item{display:flex;align-items:center;gap:14px;width:100%;padding:11px 6px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .15s}
.mm-item:hover{background:var(--bg-soft)}
.mm-ico{width:24px;height:24px;flex:none}
.mm-text{flex:1;min-width:0;display:flex;flex-direction:column}
.mm-title{font-size:16px;font-weight:600;line-height:1.3}
.mm-chev{width:18px;height:18px;flex:none;color:var(--muted)}
.mm-divider{height:1px;background:var(--line);margin:10px 0}
.mm-meta{font-size:14px;font-weight:600;color:var(--muted)}
.mm-badge{min-width:26px;height:26px;padding:0 8px;border-radius:13px;background:#ECEBFC;color:var(--purple);font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.mm-badge:empty{display:none}
.mm-actions{display:flex;flex-direction:column;gap:10px;padding-top:20px}
.mm-signup{width:100%;justify-content:center;padding:14px;position:relative;font-size:15px}
.mm-signup svg{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:18px;height:18px}
.mm-login{display:block;text-align:center;font-size:15px;font-weight:600;color:var(--ink);padding:13px;border:1px solid var(--line);border-radius:12px;transition:background .15s}
.mm-login:hover{background:var(--bg-soft)}
@media (max-width:420px){
  .header .logo-text img{height:16px}
  .header .mobile-signup-btn{padding:8px 12px}
}
@media (max-width:380px){
  .header .logo-text img{height:14px}
  .header .mobile-signup-btn{padding:7px 10px;font-size:12.5px}
}
.header .nav-link{white-space:nowrap}
@media (max-width:1180px){
  .header .nav{gap:18px}
  .header .header-right{gap:10px}
  .header .nav-link{font-size:14px}
}
@media (min-width:861px) and (max-width:1100px){
  .header .burger{display:flex;margin-left:-6px}
  .header .nav,.header-right .divider-v,.header-right .lang,.header-right .login,.header-right .header-fav,.header-right .btn-primary:not(.mobile-signup-btn){display:none}
  .header-right .mobile-signup-btn{display:inline-flex}
  .header-inner,.header.scrolled .header-inner{position:relative}
  .header .logo{position:absolute;left:50%;transform:translateX(-50%);margin:0}
  .header-right{margin-left:auto}
}

/* ============================================================
   COMPONENTS — one definition per UI primitive, used site-wide.
   Older page-specific class names are listed as aliases of the same component
   (e.g. .rec-card / .rel-card = .article-card) so existing markup and JS keep working.
   ============================================================ */

/* section header — title (+ .section-sub) on the left, .link-purple "View all →" on the right */
.row-between{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:32px;flex-wrap:wrap}
.section-sub,.access-sub{color:var(--body);font-size:17px;max-width:540px;line-height:1.5;margin-top:10px}

/* eyebrow — small uppercase label above a title */
.eyebrow,.app-eyebrow{display:block;color:var(--purple);font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}

/* text link with arrow ("View all lounges →", "View all articles →") */
.link-purple{color:var(--purple);font-weight:600;font-size:15px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:none;cursor:pointer}
.link-purple svg{width:16px;height:16px;flex:none;transition:transform .18s}
.link-purple:hover{color:var(--purple-hover)}
.link-purple:hover svg{transform:translateX(3px)}

/* tabs with optional count badge ("All lounges 12", "All articles 12", lounge detail tabs) */
.tabs,.term-tabs,.lounge-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar,.term-tabs::-webkit-scrollbar,.lounge-tabs::-webkit-scrollbar{display:none}
.tab,.term-tab,.lounge-tab{display:inline-flex;align-items:center;gap:7px;padding:11px 18px;font-size:15px;font-weight:600;color:var(--muted);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;cursor:pointer;transition:color .18s,border-color .18s}
.tab:hover,.term-tab:hover,.lounge-tab:hover{color:var(--ink)}
.tab.active,.term-tab.active,.lounge-tab.active{color:var(--ink);border-bottom-color:var(--purple)}
/* count badge — tabs and the blog category list */
.count,.sidebar-cat-count{display:inline-block;font-size:12px;font-weight:700;color:var(--muted);background:var(--bg-soft);border-radius:999px;padding:2px 8px;line-height:1.5}
.tab.active .count,.term-tab.active .count,.sidebar-cat-item.active .sidebar-cat-count{background:rgba(81,70,216,.1);color:var(--purple)}

/* category pill (article category everywhere) */
.cat-pill,.article-cat,.featured-cat,.rec-cat,.all-cat,.rel-cat{display:inline-flex;align-items:center;width:fit-content;background:rgba(81,70,216,.1);color:var(--purple);font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:none;padding:5px 11px;border-radius:999px;line-height:1.3}
.cat-pill.on-image{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.article-cat{margin-bottom:16px}

/* round arrow button (cards, list rows) */
.arrow-btn,.rec-arrow,.rel-arrow,.all-arrow,.country-arrow,.airport-row-arrow{width:28px;height:28px;flex:none;border-radius:50%;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;color:var(--muted);transition:background .22s,color .22s}
.arrow-btn svg,.rec-arrow svg,.rel-arrow svg,.all-arrow svg,.country-arrow svg,.airport-row-arrow svg{width:14px;height:14px}

/* article card (landing Travel Tips, blog "Recommended reads", "Continue reading" in articles) */
.article-card,.rec-card,.rel-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--sh-card);color:inherit;text-decoration:none;cursor:pointer;transition:transform .22s ease,box-shadow .22s ease}
.article-card:hover,.rec-card:hover,.rel-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(15,18,47,.1)}
.article-card:hover .arrow-btn,.rec-card:hover .rec-arrow,.rel-card:hover .rel-arrow{background:var(--purple);color:#fff}
.article-card-img,.rec-card-img,.rel-card-img{height:150px;background-size:cover;background-position:center;flex:none}
.article-card-body,.rec-card-body,.rel-card-body{display:flex;flex-direction:column;gap:8px;padding:16px 18px;flex:1}
.article-card-title,.rec-title,.rel-title{font-size:15px;font-weight:700;color:var(--ink);line-height:1.35}
.article-card-meta,.rec-meta,.rel-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.article-card-time,.rec-readtime,.rel-readtime,.all-readtime{font-size:12px;color:var(--muted)}

/* footer bottom row — legal links (Terms, Privacy, Cookies, Accessibility), © line, tagline */
.footer-bottom{flex-wrap:wrap;gap:10px 24px}
.footer-legal{display:flex;flex-wrap:wrap;align-items:center;row-gap:6px;order:2}
.footer-legal a{color:#9aa0b5;transition:color .18s}
.footer-legal a:hover{color:#fff}
.footer-legal a+a::before{content:"•";color:#4b5070;padding:0 10px}
.footer-copy{order:1}
.footer-tagline{order:3}
@media (max-width:860px){.footer .footer-legal{order:0;justify-content:center}}

/* footer social icons (under the intro text; centred with it on phones) */
.footer-social{display:flex;gap:10px;margin-top:18px}
.footer-social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.06);color:#c7cbe0;display:flex;align-items:center;justify-content:center;transition:background .18s,color .18s}
.footer-social a:hover{background:var(--purple);color:#fff}
.footer-social svg{width:17px;height:17px}
@media (max-width:860px){.footer .footer-social{justify-content:center;margin-top:16px}}

/* in-page anchors (#how-works, #faq, article "On this page"…): leave room for the fixed header,
   so the target lands ~24px below it. Sections with their own top padding pull back by that padding. */
html{scroll-padding-top:94px}
.section[id],.how-section[id]{scroll-margin-top:calc(30px - var(--sec-gap,64px))}
@media (max-width:860px){html{scroll-padding-top:90px}}

/* lounge card — photo, airport line with flag, name (landing "Popular lounges", Favourites) */
.lounge-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-card);overflow:hidden;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer}
.lounge-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(15,18,41,.1)}
.lounge-photo{height:160px;position:relative;overflow:hidden;background-size:cover;background-position:center;transition:transform .25s ease}
.lounge-card:hover .lounge-photo{transform:scale(1.04)}
.lounge-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:4px}
.lounge-airport{font-size:12px;color:var(--muted);font-weight:500;display:flex;align-items:center;gap:8px}
.lounge-name{font-size:16px;font-weight:700;color:var(--ink);line-height:1.3}
.lounge-meta{font-size:13px;color:var(--muted);margin-top:2px}
.lounge-card-link{display:flex;flex-direction:column;color:inherit;text-decoration:none;height:100%}
.lounge-card-link:focus-visible{outline:3px solid var(--purple);outline-offset:-3px;border-radius:16px}

/* favourite (heart) toggle — on a photo, or inline in a row */
.fav-toggle{position:absolute;top:10px;right:10px;z-index:2;width:36px;height:36px;border:none;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 4px 14px rgba(15,18,41,.18);color:var(--purple);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s,background .15s}
.fav-toggle svg{width:18px;height:18px}
.fav-toggle:hover{transform:scale(1.08)}
.fav-toggle:focus-visible{outline:3px solid var(--purple);outline-offset:2px}
.fav-toggle.is-on svg{fill:currentColor}
.fav-toggle.inline{position:static;flex:none;box-shadow:none;background:var(--bg-soft)}

/* toast — short confirmation at the bottom of the screen, optional action (e.g. Undo) */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);background:var(--navy);color:#fff;padding:12px 22px;border-radius:12px;font-size:14px;font-weight:600;box-shadow:var(--sh-lift);z-index:200;opacity:0;transition:transform .3s,opacity .3s;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px)}
.toast.show{transform:translateX(-50%) translateY(0);opacity:1}
.toast-action{background:none;border:none;color:#B7B1FF;font:inherit;font-weight:700;cursor:pointer;padding:0;white-space:nowrap}
.toast-action:hover{color:#fff;text-decoration:underline}

/* tabs on phones — a little tighter so 3 tabs with counts fit on one line */
@media (max-width:560px){.tab,.term-tab,.lounge-tab{padding:10px 12px;font-size:14px;gap:6px}}

/* icons inside buttons never grow beyond text size (buttons without a sized .arrow class) */
.btn svg{width:18px;height:18px;flex:none}

/* "Soon" badge — announced features that are not live yet (nav: MCP); the item is not clickable */
.soon-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:rgba(81,70,216,.1);color:var(--purple);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;line-height:1.4}
.nav .nav-soon{display:inline-flex;align-items:center;cursor:default}
.nav .nav-soon:hover{color:var(--ink)}
.mm-item.mm-soon{cursor:default}
.mm-item.mm-soon:hover{background:none}
.mm-soon .soon-badge{margin-left:auto}

/* card with one real link (on its title) stretched over the whole card; buttons inside stay clickable */
.has-link{position:relative}
.has-link button,.has-link .card-fav{position:relative;z-index:2}
.stretched-link{color:inherit;text-decoration:none}
.stretched-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.stretched-link:focus-visible{outline:none}
.stretched-link:focus-visible::after{outline:3px solid var(--purple);outline-offset:2px}
h3.lc-name,h3.airport-row-name{margin:0}
a.country-card{color:inherit;text-decoration:none}

/* footer links: at least 24px tall touch targets (WCAG 2.2 target size) */
.footer-col a{display:inline-block;padding:2px 0}
.footer-h{font-size:14px;line-height:1.4;font-weight:700;color:#fff;margin:0 0 16px}
/* text for screen readers and the heading outline only */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* lounge card photo: lazy <img> over the gradient placeholder (shared by home, favourites, airport pages) */
.lounge-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* "Show more" row under paged lists (lounges, airport, blog) */
.btn.btn-ghost{background:var(--bg-soft);color:var(--ink);border:1px solid var(--line);font-weight:600;padding:13px 28px}
.btn.btn-ghost:hover{background:var(--bg-soft-2);transform:translateY(-1px)}
.show-more-wrap{text-align:center;margin-top:32px}
.show-more-wrap:empty{display:none}
