/* =============================================================
   DESIGN SYSTEM OVERRIDES — budapest-bud-international-airport.com
   Loaded last. Uses ds-* classes to avoid legacy CSS conflicts.
   ============================================================= */

/* ── Base ──────────────────────────────────────────────────── */
body, html {
  font-family: 'Open Sans', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
}
a, a:link, a:visited { color: #6a1b9a; text-decoration: none; }
a:hover              { color: #6e0000; }

/* ── Logo fill guard (in case SVG attr is overridden) ─────── */
.ds-logo svg circle,
.mnav-logo svg circle { fill: #6a1b9a !important; }
.ds-logo svg path,
.mnav-logo svg path   { fill: #ffffff !important; }

/* ══════════════════════════════════════════════════════════════
   DESKTOP HEADER  (≥ 768px)
   Uses ds-* classes — fully isolated from header.min.css
   ══════════════════════════════════════════════════════════════ */

/* Hide legacy header internals; keep the .header shell */
.header { display: block !important; background: #ffffff; box-shadow: none !important; }
.header .wrap,
.header .container,
.header .logo,
.header nav,
.header nav > ul { all: unset; }

/* Our header inner wrapper */
.ds-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
}

/* Logo */
.ds-logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 24px;
}
.logo-text  { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name  { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: #1a1a1a; }
.logo-sub   { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 11px; color: #6a1b9a; }

/* Nav */
.ds-nav { flex: 1; }

.ds-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 72px;
}

.ds-nav-item {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
}

.ds-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 72px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.ds-nav-link:hover { color: #6a1b9a; }

.ds-nav-chevron {
  color: #888888;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.ds-nav-item:hover .ds-nav-chevron { transform: rotate(180deg); color: #6a1b9a; }

/* ── Dropdown ──────────────────────────────────────────────── */
.ds-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 16px;
  list-style: none;
  margin: 0;
  z-index: 1001;
}
/* Invisible bridge so mouse can move from nav-link to dropdown */
.ds-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.ds-nav-item:hover .ds-dropdown { display: block; }

.ds-dropdown-item { margin: 0; }
.ds-dropdown-link {
  display: block;
  padding: 7px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}
.ds-dropdown-item:last-child .ds-dropdown-link { border-bottom: none; }
.ds-dropdown-link:hover { color: #6a1b9a; }

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

/* Legacy elements that might bleed through */
.mob-header    { display: none !important; }
.header .logo  { display: none !important; }    /* legacy logo replaced by ds-logo */
.header nav.item.menu { display: none !important; } /* legacy nav replaced by ds-nav */

/* Desktop ≥ 768px: show desktop header inner, hide mobile nav */
.mnav { display: none; }

@media (max-width: 767px) {
  .ds-header-inner { display: none; }   /* hide desktop header */
  .header          { display: none !important; }
  .mnav            { display: block; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV  (< 768px)
   ══════════════════════════════════════════════════════════════ */
.mnav-bar {
  position: sticky;
  top: 0;
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1001;
}

.mnav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.mnav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mnav-burger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}
.mnav-burger:hover,
.mnav-burger.is-open { color: #6a1b9a; }

.mnav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

.mnav-panel {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mnav-group { border-bottom: 1px solid #e5e5e5; }
.mnav-group:last-child { border-bottom: none; }

.mnav-parent-row {
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.mnav-parent-link {
  flex: 1;
  padding: 16px 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}
.mnav-parent-link:hover { color: #6a1b9a; }

.mnav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #555555;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.2s, color 0.2s;
}
.mnav-toggle.is-expanded { transform: rotate(180deg); color: #6a1b9a; }

.mnav-children {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f8f8f8;
  border-top: 1px solid #e5e5e5;
}
.mnav-children li { border-bottom: 1px solid #e5e5e5; }
.mnav-children li:last-child { border-bottom: none; }

.mnav-child-link {
  display: block;
  padding: 12px 16px 12px 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555555;
  text-decoration: none;
  transition: color 0.2s;
}
.mnav-child-link:hover { color: #6a1b9a; }

/* ══════════════════════════════════════════════════════════════
   HERO / PAGE-TOP
   ══════════════════════════════════════════════════════════════ */
.offer.page-top {
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.offer.page-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.offer.page-top .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  width: 100%;
}
.offer.page-top h1.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  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: 'Open Sans', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.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 h1 { font-family: 'Montserrat', sans-serif; font-size: 36px; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; line-height: 1.2; }
.main-content h2 { font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 700; color: #1a1a1a; margin: 40px 0 16px; line-height: 1.2; }
.main-content h3 { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 600; color: #1a1a1a; margin: 24px 0 12px; }
.main-content p  { font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.8; color: #1a1a1a; margin-bottom: 16px; }
.main-content a  { color: #6a1b9a; text-decoration: none; }
.main-content a:hover { text-decoration: underline; }

.main-content ul,
.content.main-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
}
.main-content ul li,
.content.main-content ul li {
  position: relative !important;
  padding: 5px 0 5px 30px !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
}
.main-content ul li::before,
.content.main-content ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: #6a1b9a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-size: 11px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.main-content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.main-content ol li {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  padding: 3px 0;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.ds-sidebar {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 88px;
}
.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: 'Open Sans', sans-serif; font-size: 14px; font-weight: 400; color: #555555; }
.ds-sidebar-value { font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 700; color: #1a1a1a; text-align: right; }
.ds-sidebar-value a { color: #6a1b9a; }
.ds-sidebar-value a:hover { text-decoration: underline; }

.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 #6a1b9a; background: #ffffff; color: #6a1b9a;
  font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: background 0.2s, color 0.2s;
}
.ds-btn-primary:hover { background: #6a1b9a; 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: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: background 0.2s;
}
.ds-btn-secondary:hover { background: #f8f8f8; color: #1a1a1a; text-decoration: none; }

.ds-sidebar-widget { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e5e5; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .content-block { padding: 24px 16px; }
  .content-block > .container { flex-direction: column; }
  .content-block .content.main-content,
  .content-block .sidebar { width: 100%; }
  .ds-sidebar { position: static; }
  .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; }
}


/* ══════════════════════════════════════════════════════════════
   GETTRANSFER WIDGET OVERRIDES
   Best-effort styling to match the design system.
   ══════════════════════════════════════════════════════════════ */

/* Ride / Per hour tab buttons */
#gettransfer_widget [class*=tab],
#gettransfer_widget [class*=trip-type] button,
#gettransfer_widget [class*=transfer-type] button,
#gettransfer_widget [class*=TripType],
#gettransfer_widget button[class*=tab] {
  border: 1px solid #6a1b9a !important;
  border-radius: 4px !important;
  color: #6a1b9a !important;
  background: #ffffff !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
#gettransfer_widget [class*=tab][class*=active],
#gettransfer_widget [class*=tab][class*=selected],
#gettransfer_widget [class*=tab].active {
  background: #6a1b9a !important;
  color: #ffffff !important;
}

/* From / To input fields — no border, only bottom separator */
#gettransfer_widget input[type=text],
#gettransfer_widget input[type=search],
#gettransfer_widget input:not([type=submit]):not([type=button]) {
  border: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 13px !important;
  color: #1a1a1a !important;
}

/* Get offers submit button — dark pill */
#gettransfer_widget button[type=submit],
#gettransfer_widget [class*=search-btn],
#gettransfer_widget [class*=submit-btn],
#gettransfer_widget [class*=SearchButton],
#gettransfer_widget [class*=search_button],
#gettransfer_widget [class*=get-offer],
#gettransfer_widget [class*=getOffer] {
  border-radius: 24px !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 600 !important;
  border: none !important;
}

/* ══════════════════════════════════════════════════════════════
   TABLE STYLES — matches reference WP theme
   ══════════════════════════════════════════════════════════════ */
.content.main-content table,
.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.content.main-content table.has-fixed-layout th,
.main-content table.has-fixed-layout th {
  background-color: #2d3b4e;
  color: #ffffff;
  padding: 24px 24px 24px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.content.main-content table.has-fixed-layout td,
.main-content table.has-fixed-layout td {
  padding: 24px 24px 24px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e5e5;
}
.content.main-content table.has-fixed-layout tbody tr:nth-child(even),
.main-content table.has-fixed-layout tbody tr:nth-child(even) {
  background-color: #f8f8f8;
}

/* ══════════════════════════════════════════════════════════════
   TABLE STYLES — matches reference WP theme
   ══════════════════════════════════════════════════════════════ */
.content.main-content figure.wp-block-table,
.main-content figure.wp-block-table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.content.main-content table,
.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.content.main-content table.has-fixed-layout th,
.main-content table.has-fixed-layout th {
  background-color: #2d3b4e;
  color: #ffffff;
  padding: 12px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.content.main-content table.has-fixed-layout td,
.main-content table.has-fixed-layout td {
  padding: 12px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e5e5;
}
.content.main-content table.has-fixed-layout tbody tr:last-child td,
.main-content table.has-fixed-layout tbody tr:last-child td {
  border-bottom: none;
}
.content.main-content table.has-fixed-layout tbody tr:nth-child(even),
.main-content table.has-fixed-layout tbody tr:nth-child(even) {
  background-color: #f8f8f8;
}
.content.main-content table.has-fixed-layout td a,
.main-content table.has-fixed-layout td a {
  color: #6a1b9a;
  font-weight: 600;
  text-decoration: none;
}
.content.main-content table.has-fixed-layout td a:hover,
.main-content table.has-fixed-layout td a:hover {
  text-decoration: underline;
}
