/* Wspólny układ (makieta wersja A): ciemny pasek z przełącznikiem hotelu, menu i wylogowaniem. */
:root {
  --bg: #F4F6F9;
  --ink: #0F172A;
  --bar: #0F172A;
  --bar-ink: #CBD5E1;
  --accent: #1D4ED8;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  background: var(--bar);
  color: #E2E8F0;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 56px;
  box-sizing: border-box;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.navlink {
  color: var(--bar-ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.navlink:hover { color: #FFFFFF; }
.navlink[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, 0.10); }

.navlink:focus-visible,
.property-switch summary:focus-visible,
.property-switch a:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 2px;
}

.property-switch { position: relative; }

.property-switch summary,
.property-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
}

.property-switch summary { cursor: pointer; list-style: none; }
.property-switch summary::-webkit-details-marker { display: none; }
.property-switch summary::after { content: "▾"; font-size: 12px; }

.property-switch ul {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.property-switch a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.property-switch a:hover { background: #F1F5F9; }

.property-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.topbar-user form { margin: 0; }

.avatar {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #334155;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.page {
  padding: clamp(8px, 2.5vw, 24px);
}

/* Telefon: hotel i wylogowanie w pierwszym wierszu, menu pod nimi na całą szerokość. */
@media (max-width: 640px) {
  .topbar { padding: 8px 16px; }
  .topnav { order: 1; flex-basis: 100%; }
  .topbar-user { margin-left: auto; }
}
