/* =============================================================
   DESIGN SYSTEM OVERRIDES — budapest-bud-international-airport.com
   Loaded last — overrides legacy header.min.css + main.min.css
   Strict per DESIGN.md
   ============================================================= */

/* ── Base ──────────────────────────────────────────────────── */
body, html {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}

h1, h2, h3, h4 {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  color: #1a1a1a;
}

a, a:link, a:visited {
  color: #8b0000;
  text-decoration: none;
}
a:hover {
  color: #6e0000;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  display: block !important;   /* overrides any inline display:none */
  height: 72px;
  min-height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
}

.header .wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 72px;
  gap: 24px;
}

/* Logo */
.header .logo,
.header a.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header .logo img {
  display: none;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}
.logo-sub {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #8b0000;
}

/* Nav */
.header nav.item.menu {
  flex: 1;
}

.header nav.item.menu > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 72px;
  gap: 0;
}

.header nav.item.menu > ul > li {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
}

.header nav.item.menu > ul > li > a {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 0 14px;
  height: 72px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.header nav.item.menu > ul > li > a:hover {
  color: #8b0000;
}

/* Dropdown — CSS hover, no JS required */
.header nav.item.menu > ul > li.has-children > ul {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  list-style: none;
  z-index: 1001;
}
.header nav.item.menu > ul > li.has-children:hover > ul {
  display: block;
}
.header nav.item.menu > ul > li > ul > li > a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.header nav.item.menu > ul > li > ul > li > a:hover {
  color: #8b0000;
}

/* Weather slot */
.header #wea-header {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  color: #555555;
}

/* Mobile: hide desktop header */
@media (max-width: 1023px) {
  .header {
    display: none !important;
  }
}

/* ── Hero / Page-top ───────────────────────────────────────── */
.offer.page-top {
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.offer.page-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.offer.page-top .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.offer.page-top h1.page-title {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 56px;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin: 0 0 8px;
}
.offer.page-top .subtitle {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}
.offer.page-top .center {
  text-align: center;
}

/* ── Content layout — 70 / 28% ─────────────────────────────── */
.content-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.content-block > .container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 2%;
}

.content-block .content.main-content {
  width: 70%;
  flex-shrink: 0;
}

.content-block .sidebar {
  width: 28%;
  flex-shrink: 0;
}

/* Main content typography */
.main-content h1 {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  line-height: 1.2;
}
.main-content h2 {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 16px;
  line-height: 1.2;
}
.main-content h3 {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 24px 0 12px;
}
.main-content p {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.main-content a {
  color: #8b0000;
  text-decoration: none;
}
.main-content a:hover {
  text-decoration: underline;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.ds-sidebar {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 88px; /* 72px header + 16px gap */
}

.ds-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #e5e5e5;
}
.ds-sidebar-row:last-of-type {
  border-bottom: none;
}

.ds-sidebar-label {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
}
.ds-sidebar-value {
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
}
.ds-sidebar-value a {
  color: #8b0000;
  text-decoration: none;
}
.ds-sidebar-value a:hover {
  text-decoration: underline;
}

/* Sidebar buttons */
.ds-sidebar-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ds-btn-primary {
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  border: 2px solid #8b0000;
  background: #ffffff;
  color: #8b0000;
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.ds-btn-primary:hover {
  background: #8b0000;
  color: #ffffff;
  text-decoration: none;
}

.ds-btn-secondary {
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #1a1a1a;
  font-family: var(--font-open-sans), 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.ds-btn-secondary:hover {
  background: #f8f8f8;
  text-decoration: none;
  color: #1a1a1a;
}

/* Widget area below buttons */
.ds-sidebar-widget {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .content-block > .container {
    flex-direction: column;
  }
  .content-block .content.main-content,
  .content-block .sidebar {
    width: 100%;
  }
  .ds-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .content-block {
    padding: 24px 16px;
  }
  .offer.page-top {
    min-height: 160px;
  }
  .offer.page-top h1.page-title {
    font-size: 28px;
  }
  .main-content h1 { font-size: 28px; }
  .main-content h2 { font-size: 22px; }
}

/* hdr-d / hdr-m display pairing — DESIGN.md Phase 4 fix 2026-05-15 */
.hdr-m { display: none; }
@media (max-width: 1023px) {
  .hdr-d { display: none; }
  .hdr-m { display: block; }
}
/* === Typography polish — match Beijing Daxing reference === */
.content.main-content h1,
.content.main-content h2,
.content.main-content h3,
.offer.page-top h1.page-title,
[aria-labelledby="faq-heading"] h2,
[aria-labelledby="contact-heading"] h2,
[aria-labelledby="news-heading"] h2,
section h2 {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  color: #2d3b4e;
  font-weight: 600;
}

.offer.page-top h1.page-title {
  font-size: 56px;
  letter-spacing: -1.62px;
  color: #ffffff;
  line-height: 1.1;
}
.offer.page-top .subtitle {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  letter-spacing: -0.3px;
}

.content.main-content h2,
section h2 {
  font-size: 38px;
  letter-spacing: -1.2px;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.18;
}
.content.main-content h3,
section h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #2d3b4e;
}
.content.main-content p,
.content.main-content li {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #4a5560;
}

/* FAQ — Beijing-style spacing + chevron animation */
details[style] > summary {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 17px;
  color: #2d3b4e;
}
details[style][open] > summary > span[aria-hidden="true"] {
  transform: rotate(90deg);
}
details[style] > summary > span[aria-hidden="true"] {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Travel guide cards — hover effect */
[aria-labelledby="news-heading"] a {
  transition: transform 0.25s ease;
}
[aria-labelledby="news-heading"] a:hover {
  transform: translateY(-3px);
}
[aria-labelledby="news-heading"] a > div:last-child {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  color: #2d3b4e;
}

/* Bottom hero cards — subtle zoom on hover */
[aria-label="Explore further"] a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[aria-label="Explore further"] a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
[aria-label="Explore further"] a img {
  transition: transform 0.45s ease;
}
[aria-label="Explore further"] a:hover img {
  transform: scale(1.04);
}

/* Body text — switch from Open Sans to Montserrat for consistency */
body {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif !important;
}

/* Sticky sidebar — follows scroll on desktop */
.content-block .sidebar > *,
.content-block .sidebar .airport-info-card,
.content-block aside {
  position: sticky;
  top: 24px;
  align-self: flex-start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .content-block .sidebar > *,
  .content-block .sidebar .airport-info-card,
  .content-block aside {
    position: static;
    max-height: none;
  }
}

/* Sticky sidebar — apply to the .sidebar flex item itself */
.content-block > .container > aside.sidebar,
.content-block .sidebar {
  position: sticky !important;
  top: 24px !important;
  align-self: flex-start !important;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.content-block > .container > aside.sidebar > *,
.content-block .sidebar > * {
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
}
@media (max-width: 1023px) {
  .content-block > .container > aside.sidebar,
  .content-block .sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* === Mykonos-style green checkmark bullets === */
.content.main-content ul,
.ds-sidebar ul {
  list-style: none;
  padding-left: 0;
}
.content.main-content ul li,
.ds-sidebar ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  line-height: 1.55;
}
.content.main-content ul li::before,
.ds-sidebar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #2d3b4e;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ordered lists keep numbers — only ul gets the checkmark treatment */
.content.main-content ol {
  padding-left: 24px;
}
.content.main-content ol li {
  margin-bottom: 8px;
}

/* Mykonos-style sidebar — solid left border like blockquote */
.ds-sidebar {
  border-left: 4px solid #2d3b4e;
  padding-left: 18px;
}

/* Bold inline emphasis in body — match Mykonos heavier weight */
.content.main-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* === Lighter typography to match Mykonos === */
.content.main-content h2,
section h2 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
.content.main-content h3,
section h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.content.main-content p,
.content.main-content li {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}
.offer.page-top h1.page-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
}
.offer.page-top .subtitle {
  font-size: 18px;
  font-weight: 400;
}
