/* ============================================================
   Flyplassguiden.no — Hovedstil
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --brand:        #0D2B4E;
  --brand-light:  #1a4275;
  --accent:       #E8773C;
  --accent-h:     #d4632a;
  --blue:         #1E7FC2;
  --blue-light:   #EBF4FB;
  --white:        #FFFFFF;
  --bg:           #F4F6F9;
  --text:         #1A2332;
  --text-light:   #6B7889;
  --border:       #E1E8F0;
  --success:      #27AE60;
  --warning:      #F5A623;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  --sh-sm: 0 1px 4px rgba(0,0,0,0.07);
  --sh-md: 0 4px 14px rgba(0,0,0,0.11);
  --sh-lg: 0 8px 28px rgba(0,0,0,0.15);
  --sh-xl: 0 16px 48px rgba(0,0,0,0.18);

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  --t: 0.2s ease;
  --max: 1200px;
  --nav-h: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.22; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container      { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section        { padding: 4rem 0; }
.section-sm     { padding: 2.5rem 0; }
.section-lg     { padding: 6rem 0; }

.section-header        { text-align: center; margin-bottom: 3rem; }
.section-header h2     { margin-bottom: 0.6rem; }
.section-header p      { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* --- Navigation --- */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--brand); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.nav-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--brand); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
.nav-link {
  display: flex; align-items: center; gap: 0.2rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.925rem; font-weight: 500; color: var(--text);
  border-radius: var(--r-sm); transition: all var(--t);
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover { background: var(--bg); color: var(--brand); }
.nav-link.active { color: var(--blue); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link::after { content: '▾'; font-size: 0.7rem; margin-left: 0.2rem; opacity: 0.6; }
.dropdown-menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%);
  background: white; box-shadow: var(--sh-xl); border-radius: var(--r-lg);
  padding: 1.5rem; min-width: 580px;
  display: none; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  z-index: 1001; border: 1px solid var(--border);
}
.dropdown-menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -0.6rem; height: 0.6rem;
}
.nav-dropdown:hover .dropdown-menu { display: grid; }
.dropdown-column h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-light);
  margin-bottom: 0.7rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border);
}
.dropdown-column a { display: block; padding: 0.28rem 0; font-size: 0.88rem; color: var(--text); }
.dropdown-column a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.btn-search-icon {
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--text-light); font-size: 1.1rem;
  border-radius: var(--r-sm); transition: all var(--t);
}
.btn-search-icon:hover { background: var(--bg); color: var(--brand); }
.btn-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--text); font-size: 1.3rem;
}

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 999; overflow-y: auto; padding: 1.5rem;
}
.nav-mobile.open { display: block; }
.nav-mobile-link {
  display: block; padding: 0.85rem 0; font-size: 1.05rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none;
}
.nav-mobile-section h4 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-light); margin: 1.5rem 0 0.4rem;
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,43,78,0.88) 0%, rgba(13,43,78,0.65) 55%, rgba(13,43,78,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 5rem 1.5rem; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); color: white;
  padding: 0.38rem 1rem; border-radius: 99px; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 { color: white; max-width: 680px; margin-bottom: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.84); font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 560px; margin-bottom: 2.5rem; }

/* Search */
.search-bar {
  background: white; border-radius: var(--r-xl);
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 620px; box-shadow: var(--sh-xl);
}
.search-bar input {
  flex: 1; border: none; outline: none; font-size: 1rem; color: var(--text);
  background: transparent; padding: 0.5rem 0;
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar .si { color: var(--text-light); font-size: 1.1rem; flex-shrink: 0; }
.btn-search-submit {
  background: var(--accent); color: white; border: none;
  padding: 0.7rem 1.6rem; border-radius: 99px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: background var(--t); flex-shrink: 0;
}
.btn-search-submit:hover { background: var(--accent-h); }

.hero-tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-tag {
  background: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
  color: white; padding: 0.35rem 0.85rem; border-radius: 99px;
  font-size: 0.84rem; border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--t); text-decoration: none;
}
.hero-tag:hover { background: rgba(255,255,255,0.26); color: white; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 0.85rem 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.bc-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; font-size: 0.84rem; list-style: none; }
.bc-list li::marker { content: none; }
.bc-item a { color: var(--text-light); }
.bc-item a:hover { color: var(--blue); }
.bc-item.active { color: var(--text); font-weight: 500; }
.bc-sep { color: var(--border); font-size: 0.75rem; margin: 0 0.1rem; }

/* --- Cards --- */
.card {
  background: white; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img-ph {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.card-body { padding: 1.25rem; }
.card-badge {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  padding: 0.22rem 0.6rem; border-radius: 99px; font-size: 0.72rem; font-weight: 600; margin-bottom: 0.65rem;
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--blue); }
.card-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.card-text { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-links { display: flex; gap: 0.4rem; margin-top: 1rem; flex-wrap: wrap; }
.card-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.32rem 0.7rem; border-radius: 99px; font-size: 0.78rem; font-weight: 500;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); text-decoration: none;
  transition: all var(--t);
}
.card-link:hover { background: var(--brand); color: white; border-color: transparent; }

/* Airport card */
.airport-card-header { padding: 1.25rem 1.25rem 0.5rem; display: flex; align-items: flex-start; gap: 0.9rem; }
.airport-iata {
  background: var(--brand); color: white;
  font-size: 1.1rem; font-weight: 800; padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm); letter-spacing: 1.5px; flex-shrink: 0;
}
.airport-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.airport-info p { font-size: 0.83rem; color: var(--text-light); margin: 0; }

/* Region card */
.region-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 210px; display: block; text-decoration: none;
}
.region-card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.4s ease;
}
.region-card:hover .region-card-bg { transform: scale(1.06); }
.region-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,43,78,0.88) 0%, rgba(13,43,78,0.28) 60%, transparent 100%);
}
.region-card-content {
  position: relative; z-index: 2; padding: 1.4rem;
  display: flex; flex-direction: column; min-height: 210px; justify-content: flex-end;
}
.region-card-emoji { font-size: 1.9rem; margin-bottom: 0.4rem; }
.region-card h3 { color: white; margin-bottom: 0.2rem; font-size: 1.15rem; }
.region-card p { color: rgba(255,255,255,0.72); font-size: 0.84rem; margin: 0; }

/* --- Grids --- */
.grid-2   { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3   { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4   { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.4rem; border-radius: 99px;
  font-size: 0.92rem; font-weight: 600; cursor: pointer;
  transition: all var(--t); text-decoration: none; border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-h); color: white; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(232,119,60,0.38); }
.btn-secondary { background: white; color: var(--brand); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--brand); }
.btn-ghost { background: rgba(255,255,255,0.14); color: white; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); color: white; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.83rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* --- Feature boxes --- */
.feature-box {
  background: white; border-radius: var(--r-lg); padding: 1.75rem;
  border: 1px solid var(--border); transition: all 0.25s ease; text-decoration: none; display: block;
}
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--blue); }
/* Ikke-klikkbart "kommer snart"-kort */
.feature-box-soon { cursor: default; opacity: 0.72; }
.feature-box-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.feature-box-soon .feature-link { color: var(--text-light); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.fi-blue   { background: #EBF4FB; }
.fi-orange { background: #FEF0E8; }
.fi-green  { background: #E8F5EE; }
.fi-purple { background: #EEE8F5; }
.feature-box h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-box p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; margin-bottom: 0.9rem; }
.feature-link { display: flex; align-items: center; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; color: var(--blue); }

/* --- Stats bar --- */
.stats-bar { background: var(--brand); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 1.9rem; color: white; margin-bottom: 0.2rem; }
.stat-item p { color: rgba(255,255,255,0.65); font-size: 0.84rem; margin: 0; }

/* --- Airport hero --- */
.airport-hero { background: var(--brand); color: white; padding: 3rem 0; position: relative; overflow: hidden; }
.airport-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, white 0, white 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.airport-hero-content { position: relative; }
.airport-hero-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.airport-hero h1 { color: white; font-size: clamp(1.7rem, 4vw, 2.8rem); margin-bottom: 0.7rem; }
.airport-hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.airport-hero-meta span { display: flex; align-items: center; gap: 0.45rem; }
.airport-quick-links { display: flex; gap: 0.7rem; margin-top: 2rem; flex-wrap: wrap; }

/* --- Info boxes --- */
.info-box { background: var(--bg); border-radius: var(--r-lg); padding: 1.4rem; border-left: 4px solid var(--blue); }
.info-box h4 { color: var(--blue); margin-bottom: 0.4rem; }
.info-box p { font-size: 0.88rem; margin: 0; color: var(--text-light); }
.tip-box { border-left-color: var(--success); }
.tip-box h4 { color: var(--success); }
.warn-box { border-left-color: var(--warning); }
.warn-box h4 { color: var(--warning); }

/* --- Table --- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead { background: var(--brand); color: white; }
thead th { padding: 0.9rem 1.1rem; font-weight: 600; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 0.8rem 1.1rem; }

/* --- Country header --- */
.country-header { background: linear-gradient(135deg, var(--brand) 0%, #1a4275 100%); padding: 4rem 0; }
.country-header h1 { color: white; }
.country-header p { color: rgba(255,255,255,0.78); font-size: 1.1rem; }
.flag-emoji { font-size: 2.4rem; margin-bottom: 0.8rem; display: block; }

/* --- Content + Sidebar --- */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.sidebar-widget { background: white; border-radius: var(--r-lg); padding: 1.4rem; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-size: 0.9rem; margin-bottom: 0.9rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--border); }
.sidebar-list li { padding: 0.48rem 0; border-bottom: 1px solid var(--border); font-size: 0.87rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text); display: flex; justify-content: space-between; }
.sidebar-list a:hover { color: var(--blue); }

/* --- ToC --- */
.toc { background: var(--bg); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 2rem; }
.toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 0.9rem; }
.toc ol { padding-left: 1.4rem; }
.toc ol li { margin-bottom: 0.45rem; }
.toc ol li a { font-size: 0.88rem; color: var(--text); }
.toc ol li a:hover { color: var(--blue); }

/* Article content */
.article-content h2 { margin-top: 2.5rem; margin-bottom: 0.9rem; padding-top: 2.5rem; border-top: 1px solid var(--border); font-size: 1.45rem; }
.article-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-content h3 { margin-top: 1.8rem; margin-bottom: 0.65rem; }
.article-content ul, .article-content ol { margin: 1rem 0; padding-left: 1.6rem; }
.article-content li { margin-bottom: 0.45rem; line-height: 1.7; }
.article-content img { border-radius: var(--r-md); margin: 2rem 0; }

/* Transport options */
.transport-option {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.4rem; background: white; border-radius: var(--r-lg);
  border: 1px solid var(--border); margin-bottom: 1rem; transition: all var(--t);
}
.transport-option:hover { border-color: var(--blue); box-shadow: var(--sh-md); }
.transport-icon {
  width: 46px; height: 46px; background: var(--blue-light);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.transport-details h4 { margin-bottom: 0.3rem; }
.transport-details p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.65rem; }
.transport-meta { display: flex; gap: 1.2rem; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; }
.transport-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* --- Footer --- */
.site-footer { background: var(--brand); color: rgba(255,255,255,0.78); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-txt { font-size: 1.4rem; font-weight: 800; color: white; display: block; margin-bottom: 1rem; letter-spacing: -0.5px; }
.footer-brand .logo-txt span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.58); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.4rem; }
.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; color: white; font-size: 0.82rem; transition: background var(--t);
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { color: white; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col li a { color: rgba(255,255,255,0.62); font-size: 0.88rem; transition: color var(--t); }
.footer-col li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.84rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 1.4rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); font-size: 0.84rem; transition: color var(--t); }
.footer-bottom-links a:hover { color: white; }

/* --- Search overlay --- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.52);
  backdrop-filter: blur(5px); z-index: 2000;
  display: none; align-items: flex-start; justify-content: center; padding-top: 8vh;
}
.search-overlay.open { display: flex; }
.search-modal { background: white; border-radius: var(--r-xl); padding: 2rem; width: 100%; max-width: 620px; margin: 0 1.5rem; box-shadow: var(--sh-xl); }
.search-modal-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.search-modal-input {
  flex: 1; border: 2px solid var(--border); border-radius: var(--r-md);
  padding: 0.8rem 1rem; font-size: 1rem; outline: none; transition: border-color var(--t);
}
.search-modal-input:focus { border-color: var(--blue); }
.search-modal-close { background: var(--bg); border: none; border-radius: var(--r-sm); padding: 0.5rem 0.7rem; cursor: pointer; font-size: 1rem; color: var(--text-light); }
.search-results { max-height: 380px; overflow-y: auto; }
.search-result-item {
  padding: 0.8rem; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 0.9rem; cursor: pointer;
  transition: background var(--t); text-decoration: none; color: var(--text);
}
.search-result-item:hover { background: var(--bg); }
.search-result-icon { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.search-result-text h5 { font-size: 0.92rem; margin-bottom: 0.1rem; }
.search-result-text p { font-size: 0.78rem; color: var(--text-light); margin: 0; }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px;
  background: var(--brand); color: white; border: none; border-radius: var(--r-md);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--sh-md); transition: all var(--t); z-index: 100;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--accent); transform: translateY(-2px); }

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; padding: 0.22rem 0.7rem; border-radius: 99px; font-size: 0.73rem; font-weight: 600; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-orange { background: #FEF0E8; color: var(--accent); }
.badge-green { background: #E8F5EE; color: var(--success); }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-light  { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-blue   { color: var(--blue); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .btn-hamburger { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .stat-item h3 { font-size: 1.5rem; }
  .hero { min-height: 520px; }
  .hero-content { padding: 3rem 1rem; }
  .search-bar { flex-direction: column; padding: 1rem; border-radius: var(--r-lg); }
  .search-bar input { width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; margin-bottom: 0.4rem; }
  .btn-search-submit { width: 100%; justify-content: center; }
  .section { padding: 2.5rem 0; }
  .airport-quick-links { flex-direction: column; }
  .airport-quick-links .btn { justify-content: center; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .nav-logo-text { font-size: 1rem; }
}
@media print {
  .site-nav,.site-footer,.search-overlay { display: none; }
}

/* ============================================================
   Utvidede stiler — airport-sider, ny layout m.m.
   ============================================================ */

/* Airport page header (ny stil brukt på alle flyplasssider) */
.airport-page-header {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.airport-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.airport-iata-large {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 2rem;
  font-weight: 900;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-md);
  letter-spacing: 3px;
  flex-shrink: 0;
  line-height: 1;
}
.airport-page-header h1 { color: white; margin-bottom: 0.4rem; }
.airport-subtitle { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 1rem; }
.airport-meta-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meta-tag {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Layout: main content + sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.main-content { min-width: 0; }
.main-content section { margin-top: 2.5rem; }
.main-content section:first-child { margin-top: 0; }
.main-content h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}
.main-content h3 { margin-top: 1.5rem; margin-bottom: 0.65rem; }

/* Sidebar boxes */
.sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-box {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.sidebar-box h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-light);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.sidebar-box .sidebar-list { list-style: none; }
.sidebar-box .sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  gap: 0.5rem;
}
.sidebar-box .sidebar-list li:last-child { border-bottom: none; }
.sidebar-box .sidebar-list li span { color: var(--text-light); flex-shrink: 0; }
.sidebar-box .sidebar-list li strong { text-align: right; }
.sidebar-list-links { list-style: none; }
.sidebar-list-links li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.sidebar-list-links li:last-child { border-bottom: none; }
.sidebar-list-links a { color: var(--text); }
.sidebar-list-links a:hover { color: var(--blue); }

/* ToC box */
.toc-box {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.toc-box strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-light); margin-bottom: 0.8rem; }
.toc-box ol { padding-left: 1.4rem; margin: 0; }
.toc-box ol li { margin-bottom: 0.4rem; }
.toc-box ol li a { font-size: 0.88rem; color: var(--text); }
.toc-box ol li a:hover { color: var(--blue); }

/* Content lists */
.content-list { list-style: none; padding: 0; margin: 1rem 0; }
.content-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
}
.content-list li:last-child { border-bottom: none; }
.content-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Transport option enhancements */
.transport-details h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.transport-details p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.65rem; }
.transport-details p:last-child { margin-bottom: 0; }
.transport-tip {
  background: #FFF9F0;
  border-left: 3px solid var(--warning);
  padding: 0.65rem 0.9rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.84rem;
  color: var(--text);
  margin-top: 0.75rem;
}

/* Info box paragraph fix */
.info-box p { margin: 0.5rem 0 0; }
.info-box p:first-of-type { margin-top: 0.4rem; }
.info-box ul { padding-left: 1.3rem; margin-top: 0.5rem; font-size: 0.88rem; }
.info-box ul li { margin-bottom: 0.3rem; color: var(--text-light); }
.info-box strong { color: var(--text); }

/* Article image with caption */
.article-img { border-radius: var(--r-lg); overflow: hidden; margin: 2rem 0; }
.article-img img { width: 100%; height: 320px; object-fit: cover; }
.article-img figcaption { font-size: 0.78rem; color: var(--text-light); padding: 0.6rem 1rem; background: var(--bg); text-align: center; }

/* Responsive for new layout */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-box { flex: 1 1 260px; }
}
@media (max-width: 768px) {
  .airport-page-header { padding: 2.5rem 0 2rem; }
  .airport-iata-large { font-size: 1.5rem; }
  .sidebar { flex-direction: column; }
  .sidebar-box { flex: 1 1 100%; }
}
