/* goZanzibar.pl - shared header/sticky dimensions */
:root {
  --goegipt-desktop-header-height: 68px;
  --goegipt-desktop-stuck-height: 62px;
  --goegipt-sticky-offset: 68px;
}

/* goZanzibar.pl - compact, scalable main navigation */
.rd-nav-link {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

@media (min-width: 992px) {
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-main {
    min-height: var(--goegipt-desktop-header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

  .rd-navbar-minimal.rd-navbar-static .rd-navbar-main-outer {
    border-bottom: 1px solid #edf0f3;
    box-shadow: 0 2px 10px rgba(18, 46, 68, 0.04);
  }

  .rd-navbar-minimal.rd-navbar-static .rd-navbar-brand img {
    width: 150px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .rd-navbar-minimal.rd-navbar-static .rd-nav-item + .rd-nav-item {
    margin-left: 25px;
  }

  .rd-navbar-static .rd-nav-link {
    padding: 24px 0;
    color: #122e44;
  }

  .rd-navbar-static .rd-nav-link:hover,
  .rd-navbar-static .rd-nav-item.opened > .rd-nav-link,
  .rd-navbar-static .rd-nav-item.focus > .rd-nav-link {
    color: #ff830a;
  }

  .rd-navbar-static .rd-navbar-dropdown {
    min-width: 270px;
    padding: 13px 0;
    border: 1px solid #e8edf1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(18, 46, 68, 0.13);
  }

  .rd-navbar-static .rd-navbar-dropdown.goegipt-menu-wide {
    width: 540px;
    columns: 2;
    column-gap: 0;
  }

  .rd-navbar-static .rd-navbar-dropdown.goegipt-menu-wide .rd-dropdown-item {
    break-inside: avoid;
  }

  .rd-navbar-static .rd-navbar-dropdown li > a {
    padding: 9px 22px;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
  }

  .rd-navbar-static .rd-navbar-dropdown li > a::before {
    display: none;
  }

  .rd-navbar-static.rd-navbar--is-stuck .rd-navbar-main,
  .rd-navbar-static.rd-navbar--is-clone .rd-navbar-main {
    min-height: var(--goegipt-desktop-stuck-height);
  }

  .rd-navbar-static.rd-navbar--is-stuck .rd-nav-link,
  .rd-navbar-static.rd-navbar--is-clone .rd-nav-link {
    padding-top: 21px;
    padding-bottom: 21px;
  }

  /* Base theme has a more specific 20px vertical padding on the stuck navbar.
     Override it explicitly so the real sticky header height matches our offsets. */
  .rd-navbar-minimal.rd-navbar-static.rd-navbar--is-stuck .rd-navbar-main,
  .rd-navbar-minimal.rd-navbar-static.rd-navbar--is-clone .rd-navbar-main {
    min-height: var(--goegipt-desktop-stuck-height);
    padding: 0 15px;
  }

  .rd-navbar-minimal.rd-navbar-static.rd-navbar--is-stuck .rd-menu,
  .rd-navbar-minimal.rd-navbar-static.rd-navbar--is-clone .rd-menu {
    margin-top: 21px;
  }
}

@media (max-width: 991px) {
  :root {
    --goegipt-sticky-offset: 72px;
  }

  html.rd-navbar-fixed-linked .page {
    padding-top: 72px;
  }

  .rd-navbar-fixed .rd-navbar-panel {
    height: 72px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f3;
    box-shadow: 0 2px 10px rgba(18, 46, 68, 0.05);
  }

  .rd-navbar-fixed .rd-navbar-brand {
    top: 4px;
    left: 58px;
  }

  .rd-navbar-fixed .rd-navbar-brand img {
    width: 136px;
    max-height: 64px;
    height: auto;
    object-fit: contain;
  }

  .rd-navbar-fixed .rd-navbar-toggle {
    top: 11px;
    left: 12px;
  }

  .rd-navbar-fixed .rd-navbar-nav-wrap {
    top: 72px;
    width: min(340px, 88vw);
    padding-bottom: 24px;
  }

  .rd-navbar-fixed .rd-nav-link {
    min-height: 48px;
    padding: 14px 52px 14px 18px;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  .rd-navbar-fixed .rd-menu {
    padding-left: 10px;
  }

  .rd-navbar-fixed .rd-navbar-dropdown > li > a {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 14px;
    line-height: 1.35;
  }
}

/* Patch 16 - mobile navigation and breadcrumbs */

/* Breadcrumbs are rendered on a white page background, so do not inherit
   the old inverse/hero colors from the base theme. */
.breadcrumbs-wrap .breadcrumbs-custom-path li {
  color: #687681;
}

.breadcrumbs-wrap .breadcrumbs-custom-path a,
.breadcrumbs-wrap .breadcrumbs-custom-path a:active,
.breadcrumbs-wrap .breadcrumbs-custom-path a:focus {
  color: #52636f;
}

.breadcrumbs-wrap .breadcrumbs-custom-path a:hover {
  color: #ff830a;
}

.breadcrumbs-wrap .breadcrumbs-custom-path li::after {
  color: #a7b1b9;
}

@media (max-width: 991px) {
  /* Mobile menu: compact dropdown below the fixed header instead of
     the legacy full-height side drawer. */
  .rd-navbar-fixed .rd-navbar-nav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    bottom: auto;
    width: 100%;
    max-height: calc(100vh - 72px);
    padding: 8px 12px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-right: 0;
    border-bottom: 1px solid #e8edf1;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 30px rgba(18, 46, 68, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .rd-navbar-fixed .rd-navbar-nav-wrap.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rd-navbar-fixed .rd-navbar-nav {
    margin: 0;
  }

  .rd-navbar-fixed .rd-nav-item {
    position: relative;
    margin: 0;
  }

  .rd-navbar-fixed .rd-nav-item + .rd-nav-item {
    margin-top: 0;
    border-top: 1px solid #eef1f3;
  }

  .rd-navbar-fixed .rd-nav-link {
    min-height: 44px;
    padding: 12px 48px 12px 12px;
    border-radius: 7px;
    font-size: 15px;
    line-height: 20px;
  }

  .rd-navbar-fixed .rd-navbar-submenu-toggle {
    cursor: pointer;
  }

  .rd-navbar-fixed .rd-navbar-submenu-toggle::after {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }

  .rd-navbar-fixed .rd-menu {
    margin: 2px 0 7px 12px;
    padding: 4px 0 4px 10px;
    background: #f7f9fa;
    border-left: 2px solid #ff830a;
    border-radius: 0 7px 7px 0;
  }

  .rd-navbar-fixed li.opened > .rd-menu {
    display: block;
    opacity: 1;
    height: auto;
  }

  .rd-navbar-fixed .rd-navbar-dropdown > li > a {
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (max-width: 767px) {
  /* Keep the breadcrumb useful but to one compact line on small screens.
     The current-page title is truncated because the H1 immediately follows. */
  .breadcrumbs-wrap {
    padding: 3px 0 0;
  }

  .breadcrumbs-wrap .breadcrumbs-custom-path {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    padding: 4px 0 3px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
  }

  .breadcrumbs-wrap .breadcrumbs-custom-path > li {
    flex: 0 0 auto;
    margin: 0 9px 0 0;
    padding: 0 10px 0 0;
    white-space: nowrap;
  }

  .breadcrumbs-wrap .breadcrumbs-custom-path > li::after {
    right: -1px;
  }

  .breadcrumbs-wrap .breadcrumbs-custom-path > li.active {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    padding-right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7a8790;
  }

  /* Remove the old visual hole between breadcrumb and page content. */
  .page > .breadcrumbs-wrap + section.section-lg,
  .page > .breadcrumbs-wrap + section.section-md,
  .page > .breadcrumbs-wrap + section.section-xl {
    padding-top: 8px;
  }
}

/* Global footer navigation - audit 2026-09-05 */
.footer-affiliate-note {
  max-width: 920px;
  margin-top: 10px;
  color: #aeb1be;
  font-size: 13px;
  line-height: 1.65;
}

.footer-nav-groups {
  margin-top: 30px;
}

.footer-nav-group h5 {
  margin-bottom: 14px;
  color: #ffffff;
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}

.footer-nav-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-group li + li {
  margin-top: 8px;
}

.footer-nav-group a {
  color: #d6d9df;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.footer-nav-group a:hover,
.footer-nav-group a:focus {
  color: #ffffff;
  text-decoration: underline;
}

#poznaj-egipt {
  scroll-margin-top: calc(var(--goegipt-sticky-offset) + 16px);
}

@media (max-width: 767px) {
  .footer-nav-groups {
    margin-top: 22px;
  }

  .footer-nav-group h5 {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) {
  .footer-advanced-main {
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .footer-advanced-aside {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (min-width: 1200px) {
  .footer-advanced h4 + *,
  .footer-advanced .heading-4 + * {
    margin-top: 14px;
  }
}


/* Last Minute as a visible top-level sales entry. */
.rd-nav-item--last-minute > .rd-nav-link {
  color: #d96b00;
  font-weight: 600;
}

@media (min-width: 992px) {
  .rd-navbar-static .rd-nav-item--last-minute > .rd-nav-link {
    position: relative;
  }

  .rd-navbar-static .rd-nav-item--last-minute > .rd-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 13px;
    height: 2px;
    border-radius: 2px;
    background: #ff830a;
    opacity: .8;
  }
}

@media (max-width: 991px) {
  .rd-navbar-fixed .rd-nav-item--last-minute > .rd-nav-link {
    background: #fff7ef;
    color: #d96b00;
  }
}

/* goZanzibar.pl - Hotele mega menu: stable Region -> Podregion navigation */
@media (min-width: 992px) {
  .rd-navbar-static .rd-navbar-dropdown.goegipt-hotels-mega {
    left: -135px;
    width: 900px;
    max-width: calc(100vw - 40px);
    padding: 0;
    overflow: hidden;
    background: #fff;
  }

  .rd-navbar-static .goegipt-hotels-mega > li {
    margin: 0;
  }

  .rd-navbar-static .goegipt-hotels-mega__all > a {
    position: static;
    left: auto;
    display: block;
    padding: 13px 22px;
    color: #122e44;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #edf0f3;
    background: #f8fafb;
  }

  .rd-navbar-static .goegipt-hotels-mega__all > a:hover {
    color: #ff830a;
    background: #fff;
  }

  .rd-navbar-static .goegipt-hotels-mega__content {
    padding: 18px 20px 20px;
  }

  .rd-navbar-static .goegipt-hotels-mega__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .rd-navbar-static .goegipt-hotels-mega__group {
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid #edf0f3;
  }

  .rd-navbar-static .goegipt-hotels-mega__group:first-child {
    padding-left: 2px;
    border-left: 0;
  }

  .rd-navbar-static .goegipt-hotels-mega__group:last-child {
    padding-right: 2px;
  }

  .rd-navbar-static .goegipt-hotels-mega__region,
  .rd-navbar-static .goegipt-hotels-mega__links a {
    position: static;
    left: auto;
    display: block;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
  }

  .rd-navbar-static .goegipt-hotels-mega__region {
    margin: 0 0 8px;
    padding: 0 0 9px;
    color: #122e44;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 2px solid #ff830a;
  }

  .rd-navbar-static .goegipt-hotels-mega__region:hover {
    color: #ff830a;
  }

  .rd-navbar-static .goegipt-hotels-mega__links a {
    padding: 5px 0;
    color: #52636f;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
  }

  .rd-navbar-static .goegipt-hotels-mega__links a:hover {
    color: #ff830a;
  }

  .rd-navbar-static .goegipt-hotels-mega__all > a::before,
  .rd-navbar-static .goegipt-hotels-mega__region::before,
  .rd-navbar-static .goegipt-hotels-mega__links a::before {
    display: none;
  }
}

@media (max-width: 991px) {
  .rd-navbar-fixed .goegipt-hotels-mega {
    margin-left: 12px;
    padding: 0;
    border-left: 2px solid #ff830a;
    background: #f7f9fa;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__all > a {
    display: block;
    padding: 11px 14px;
    color: #122e44;
    font-weight: 600;
    border-bottom: 1px solid #e7ecef;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__content {
    padding: 6px 14px 12px;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__grid {
    display: block;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__group {
    padding: 10px 0 7px;
    border-top: 1px solid #e7ecef;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__group:first-child {
    border-top: 0;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__region {
    display: block;
    padding: 4px 0 6px;
    color: #122e44;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__links a {
    display: block;
    padding: 6px 0;
    color: #52636f;
    font-size: 13px;
    line-height: 1.3;
  }

  .rd-navbar-fixed .goegipt-hotels-mega__region:hover,
  .rd-navbar-fixed .goegipt-hotels-mega__links a:hover,
  .rd-navbar-fixed .goegipt-hotels-mega__all > a:hover {
    color: #ff830a;
  }
}

@media (max-width: 520px) {
  .rd-navbar-fixed .goegipt-hotels-mega__links {
    grid-template-columns: 1fr;
  }
}


/* goZanzibar.pl 2026-09-30 - compact desktop header */
@media (min-width: 992px) {
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-main {
    height: 68px;
    min-height: 68px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-panel,
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-main-element {
    height: 68px;
    min-height: 68px;
    display: flex;
    align-items: center;
  }
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-brand {
    display: flex;
    align-items: center;
  }
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-brand img {
    width: 150px;
    max-height: 54px;
  }
  .rd-navbar-minimal.rd-navbar-static .rd-navbar-nav {
    display: flex;
    align-items: center;
    min-height: 68px;
  }
  .rd-navbar-minimal.rd-navbar-static .rd-nav-link {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}

/* goZanzibar.pl 2026-09-30 - 5 regionow w jednym rzedzie w mega menu hoteli */
@media (min-width: 992px) {
  .rd-navbar-static .rd-navbar-dropdown.goegipt-hotels-mega {
    left: -220px;
    width: 1040px;
    max-width: calc(100vw - 32px);
  }

  .rd-navbar-static .goegipt-hotels-mega__content {
    padding: 18px 18px 20px;
  }

  .rd-navbar-static .goegipt-hotels-mega__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .rd-navbar-static .goegipt-hotels-mega__group {
    padding: 0 14px;
  }

  .rd-navbar-static .goegipt-hotels-mega__region {
    font-size: 14px;
    white-space: normal;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .rd-navbar-static .rd-navbar-dropdown.goegipt-hotels-mega {
    left: -265px;
    width: calc(100vw - 36px);
  }

  .rd-navbar-static .goegipt-hotels-mega__group {
    padding: 0 10px;
  }

  .rd-navbar-static .goegipt-hotels-mega__region {
    font-size: 13px;
  }
}


/* goZanzibar.pl 2026-10-01 - pionowe dropdowny Poradniki / Hotele */
@media (min-width: 992px) {
  .rd-navbar-static .rd-navbar-dropdown.goturcja-vertical-dropdown {
    left: 50%;
    width: 330px;
    min-width: 330px;
    max-width: calc(100vw - 32px);
    padding: 8px 0;
    columns: auto;
    column-count: 1;
    transform: translateX(-50%);
    overflow: visible;
  }

  .rd-navbar-static .goturcja-vertical-dropdown .rd-dropdown-item {
    display: block;
    width: 100%;
    margin: 0;
    break-inside: auto;
  }

  .rd-navbar-static .goturcja-vertical-dropdown .rd-dropdown-link,
  .rd-navbar-static .goturcja-vertical-dropdown .goturcja-hotels-dropdown__region {
    position: static;
    left: auto;
    display: block;
    width: 100%;
    padding: 9px 18px;
    color: #263642;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
  }

  .rd-navbar-static .goturcja-vertical-dropdown .rd-dropdown-link:hover,
  .rd-navbar-static .goturcja-vertical-dropdown .goturcja-hotels-dropdown__region:hover {
    color: #ff830a;
    background: #fff8f1;
  }

  .rd-navbar-static .goturcja-vertical-dropdown .goturcja-dropdown-all > a {
    padding-top: 11px;
    padding-bottom: 11px;
    color: #122e44;
    font-weight: 700;
    background: #f7f9fa;
    border-bottom: 1px solid #e8edf1;
  }

  .rd-navbar-static .goturcja-hotels-dropdown {
    width: 360px;
    min-width: 360px;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__group {
    padding: 5px 0 7px;
    border-top: 1px solid #eef1f3;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__group:first-of-type {
    border-top: 0;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__region {
    padding-bottom: 5px;
    color: #122e44;
    font-weight: 700;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__subregions {
    padding: 0 18px 3px 30px;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__subregions a {
    position: static;
    left: auto;
    display: block;
    padding: 4px 0;
    color: #687681;
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
  }

  .rd-navbar-static .goturcja-hotels-dropdown__subregions a:hover {
    color: #ff830a;
  }

  .rd-navbar-static .goturcja-vertical-dropdown a::before {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .rd-navbar-fixed .goturcja-vertical-dropdown {
    margin: 2px 0 7px 12px;
    padding: 4px 0 6px 10px;
    background: #f7f9fa;
    border-left: 2px solid #ff830a;
    border-radius: 0 7px 7px 0;
  }

  .rd-navbar-fixed .goturcja-vertical-dropdown .rd-dropdown-link,
  .rd-navbar-fixed .goturcja-hotels-dropdown__region {
    display: block;
    padding: 9px 12px;
    color: #263642;
    font-size: 14px;
    line-height: 1.35;
    text-transform: none;
  }

  .rd-navbar-fixed .goturcja-vertical-dropdown .goturcja-dropdown-all > a,
  .rd-navbar-fixed .goturcja-hotels-dropdown__region {
    color: #122e44;
    font-weight: 700;
  }

  .rd-navbar-fixed .goturcja-hotels-dropdown__group {
    padding: 2px 0 5px;
    border-top: 1px solid #e7ecef;
  }

  .rd-navbar-fixed .goturcja-hotels-dropdown__subregions {
    padding: 0 12px 4px 24px;
  }

  .rd-navbar-fixed .goturcja-hotels-dropdown__subregions a {
    display: block;
    padding: 6px 0;
    color: #687681;
    font-size: 13px;
    line-height: 1.3;
  }
}
