/* Pixelia navbar (2026-11-17): ONE bar across the whole container, guests get Giriş yap / Ücretsiz kaydol buttons.
   Own file on purpose (loaded after pixelia-modern.css in layouts/base.njk) so edits to pixelia-modern.css can't wipe it.
   Needs the custom properties from pixelia-modern.css (:root --px-r, --px-blue-*, --px-ink, --px-yellow). */
/* ================= 2026-11-17: ONE navbar (desktop) =================
   Logo, menu tabs, radio, profile chip and "Otele gir" used to be five separately positioned pieces (two visual bars).
   Now the slot wrappers are `display: contents`, so all of them are flex items of .site-top, and one translucent white
   card-style bar (the ::after) spans the whole 1240px container behind them. No markup change; the burger layout
   (<= 1000px) is untouched. Order: logo | tabs ... profile | Otele gir. */
@media (min-width: 1001px) {
  html:root body .site-top.site-top {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 104px;
    min-height: 104px;
    padding: 0 calc(max(16px, (100% - 1240px) / 2 + 16px) + 10px); /* % statt 50vw: vw zählt die Scrollbar mit (2026-11-19) */
    box-sizing: border-box;
  }
  /* 2026-11-23: das separate Isometrie-Muster hinter der Navbar (pixelia-modern.css .site-top::before) entfernt; nur der Hero-Banner liefert das Muster */
  html:root body .site-top.site-top::before { display: none !important; background: none !important; }
  html:root body .site-top.site-top::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    inset: 20px max(16px, calc((100% - 1240px) / 2 + 16px)) auto max(16px, calc((100% - 1240px) / 2 + 16px));
    width: auto !important;
    max-width: none !important;
    margin: 0;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 30px -14px rgba(5, 25, 80, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
    pointer-events: none;
    z-index: 0;
  }
  html:root body .site-top.site-top > #heroSlot,
  html:root body .site-top.site-top .d-xfa36a5a,
  html:root body .site-top.site-top .d-x9df9b7d,
  html:root body .site-top.site-top .site-nav,
  html:root body .site-top.site-top .nav-bar,
  html:root body .site-top.site-top .nav-tabs { display: contents !important; }
  html:root body .site-top.site-top .banner-hotel,
  html:root body .site-top.site-top .px-strip,
  html:root body .site-top.site-top .nav-burger,
  html:root body .site-top.site-top .d-xf3f5e68 { display: none !important; }

  /* logo */
  html:root body .site-top.site-top .hero-brand {
    order: 0; position: relative; z-index: 2; flex: none; margin: 0 12px 0 0; padding: 0 22px 0 0; left: auto; right: auto; top: auto;
  }
  html:root body .site-top.site-top .hero-brand img { width: auto; height: auto; max-width: none; max-height: none; filter: none; display: block; } /* Originalgröße 244x90 (2026-11-19) */

  /* tabs */
  html:root body .site-top.site-top .nav-item {
    order: 1; position: relative; z-index: 2; display: flex; align-items: center; height: auto; margin: 0; padding: 0;
  }
  html:root body .site-top.site-top .nav-item .nav-tab-btn {
    position: relative; height: 46px; min-height: 46px; padding: 0 11px; gap: 8px; border: 0; border-radius: 12px;
    background: transparent; color: rgba(20, 35, 58, .78); font-size: 16px; font-weight: 500; text-shadow: none; box-shadow: none;
  }
  html:root body .site-top.site-top .nav-item .nav-tab-btn .nav-ic { filter: none; width: 22px; height: 22px; }
  html:root body .site-top.site-top .nav-item:hover > .nav-tab-btn,
  html:root body .site-top.site-top .nav-item:focus-within > .nav-tab-btn { background: rgba(26, 94, 193, .09); color: var(--px-blue-1); }
  html:root body .site-top.site-top .nav-user .nav-user-t b { color: var(--px-ink); font-weight: 700; }
  /* active page: no background, just heavier type */
  html:root body .site-top.site-top .nav-item .nav-tab-btn.active,
  html:root body .site-top.site-top .nav-item:hover > .nav-tab-btn.active { background: transparent; color: var(--px-blue-1); font-weight: 700; box-shadow: none; }
  /* active page marker: short blue bar under the label (no background) */
  html:root body .site-top.site-top .nav-item .nav-tab-btn.active::after {
    content: ''; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--px-blue-2);
  }
  html:root body .site-top.site-top .nav-tab-caret { opacity: .7; }

  /* 2026-11-19: logo left | menu exactly centred | Otele gir right. Logo and CTA areas share the free space equally (flex 1 1 0), the menu is one block in between. */
  html:root body .site-top.site-top .site-nav, html:root body .site-top.site-top .nav-bar { display: contents !important; }
  html:root body .site-top.site-top .nav-tabs { display: flex !important; order: 1; flex: none; width: auto !important; height: auto !important; align-items: center; flex-wrap: nowrap; gap: 4px; position: relative; z-index: 2; }
  html:root body .site-top.site-top .hero-brand { flex: 1 1 0; min-width: 0; margin-right: 0; padding-right: 0; justify-content: flex-start; }
  html:root body .site-top.site-top .hero-cta,
  html:root body .site-top.site-top .nav-cta { order: 4; flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0; position: relative; z-index: 2; }
  html:root body .site-top.site-top .hero-cta .btn-oyna { margin: 0; }

  /* dropdowns hang below the bar, with a hover bridge so the pointer can cross the gap */
  html:root body .site-top.site-top .nav-item .nav-menu { top: calc(100% + 16px); border-radius: 16px; }
  html:root body .site-top.site-top .nav-item .nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
  html:root body .site-top.site-top .nav-user .nav-menu { left: auto; right: 0; }

  /* profile chip */
  html:root body .site-top.site-top .nav-item.nav-user { order: 3; margin: 0 4px 0 auto; left: auto; top: auto; right: auto; bottom: auto; }
  html:root body .site-top.site-top .nav-user > .nav-tab-btn {
    height: 44px; min-height: 44px; padding: 0 14px 0 5px; border: 1px solid rgba(20, 35, 58, .14); border-radius: 999px;
    background: rgba(255, 255, 255, .65); color: var(--px-ink);
  }
  html:root body .site-top.site-top .nav-user:hover > .nav-tab-btn { background: #fff; border-color: rgba(26, 94, 193, .35); color: var(--px-blue-1); }
  html:root body .site-top.site-top .nav-user-ava { width: 34px; height: 34px; border-radius: 50%; background: #dfeafb; object-fit: cover; }

  /* guests: Giriş yap / Ücretsiz kaydol buttons instead of the profile chip */
  html:root body .site-top.site-top .nav-item.nav-auth { order: 3; gap: 10px; }
  html:root body .site-top.site-top .nav-auth .btn { min-height: 44px; height: 44px; padding: 0 22px; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; }

  /* Otele gir */
  html:root body .site-top.site-top .btn-oyna {
    order: 4; position: relative; z-index: 2; flex: none; margin: 0 0 0 4px; min-height: 44px; height: 44px;
    padding: 0 22px !important; font-size: 15px; width: auto; min-width: 0; top: auto; right: auto; left: auto; grid-column: auto; grid-row: auto;
  }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  html:root body .site-top.site-top .nav-item .nav-tab-btn { padding: 0 9px; }
}

/* guests' auth buttons inside the burger panel (<= 1000px): one row, full width */
@media (max-width: 1000px) {
  .site-nav .nav-item.nav-auth { display: flex; gap: 10px; padding: 10px 14px; }
  .site-nav .nav-auth .btn { flex: 1; min-height: 44px; justify-content: center; text-align: center; white-space: nowrap; display: inline-flex; align-items: center; }
}

/* burger panel: the tab labels were white on the white panel */
@media (max-width: 1000px) {
  html:root body .site-top .site-nav .nav-item > .nav-tab-btn:not(.active) { color: var(--px-ink); text-shadow: none; }
  html:root body .site-top .site-nav .nav-item > .nav-tab-btn.active { color: var(--px-blue-1); font-weight: 700; }
}

/* ---- /home banner: hotel picture vs. greeting (2026-11-17) ----
   .hm-hotel is positioned inside .hm-hero-in, which is ALREADY inset by the page margin; the old `right: var(--px-r) + 110px`
   counted that margin twice, pushed the picture ~255px to the left on wide screens and covered the name and the currency chips.
   Now it sits at the container's right edge, and the text block is capped so the two can never overlap. */
@media (min-width: 1001px) {
  body:has(.hm-hero) .hm-hero .hm-hotel { right: 8px; }
  body:has(.hm-hero) .hm-hero .hm-ava ~ .hm-who { max-width: max(300px, calc(100% - 130px - 26px - 479px - 24px)); }
  body:has(.hm-hero) .hm-hero .hm-who:only-child { max-width: max(300px, calc(100% - 479px - 24px)); }
}

/* ---- /home banner, shorter (2026-11-17): 430px -> 380px so the stories/photos start higher; hotel picture scaled with it ---- */
@media (min-width: 1001px) {
  body:has(.hm-hero) .hm-hero { height: 380px; }
  body:has(.hm-hero) .hm-hero-in { padding-top: 92px; padding-bottom: 62px; }
  body:has(.hm-hero) .hm-hero .hm-hotel { height: 410px; }
  body:has(.hm-hero) .hm-hero .hm-ava ~ .hm-who { max-width: max(300px, calc(100% - 130px - 26px - 428px - 24px)); }
  body:has(.hm-hero) .hm-hero .hm-who:only-child { max-width: max(300px, calc(100% - 428px - 24px)); }
  body:has(.hm-hero) .hm-hero .hm-ava { height: 210px; }
}
/* currency chips say what they are: number + small label */
.hm-chip .hm-chip-l { font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .02em; }

/* Wrapper um "Otele gir": ausserhalb der Desktop-Leiste unsichtbar (Burger-Layout bleibt wie vorher). */
.hero-cta { display: contents; }

/* 2026-12-03: Hell/Dunkel-Schalter in der Navigation (rechts, hinter "Otele gir"); die Marke bekommt rechts gleich viel Platz, damit das Menü mittig bleibt. */
.nav-theme { display: flex; align-items: center; }
@media (min-width: 1001px) {
  html:root body .site-top.site-top .nav-theme { order: 5; flex: none; margin: 0 0 0 14px; position: relative; z-index: 2; }
  html:root body .site-top.site-top .hero-brand { padding-right: 82px; }
}
@media (max-width: 1000px) {
  .site-nav .nav-theme { padding: 10px 14px; }
}
