/**
 * Shell público CheckInAll — cabeçalho + menu (alinhado à homepage index.html)
 * Usar em páginas PHP fora do index.html, ex.: /accommodation/
 */
:root {
  --bg: #f7f7f7;
  --bg-card: #fff;
  --border: #ebebeb;
  --text: #222;
  --text-muted: #717171;
  --accent: #e61e4d;
  --accent-hover: #c4184a;
  --max-w: 1920px;
  --radius: 12px;
  --radius-full: 9999px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --public-nav-bar-height: 52px;
  --header-offset: 80px;
  --menu-bar-bg: linear-gradient(180deg, #ffffff 0%, #fffafb 42%, #fff5f8 100%);
  --menu-bar-border-color: rgba(230, 30, 77, 0.16);
  --menu-bar-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(230, 30, 77, 0.05);
  --chrome-header-height: 80px;
  --header-logo-max-height: min(48px, calc(var(--chrome-header-height, 80px) - 2.25rem));
  --header-logo-max-width: min(280px, 52vw);
}

@media (max-width: 720px) {
  :root {
    --public-nav-bar-height: 56px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-logo-max-height: min(40px, calc(var(--chrome-header-height, 80px) - 2rem));
    --header-logo-max-width: min(220px, 58vw);
  }
}

.ci-public-shell,
.ci-public-shell body {
  box-sizing: border-box;
}

.ci-public-shell body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.ci-public-shell *,
.ci-public-shell *::before,
.ci-public-shell *::after {
  box-sizing: border-box;
}

.ci-public-shell .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Cabeçalho branco fixo — largura máx. centrada (alinha com homepage) */
.ci-public-shell .header-bar {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  width: min(100%, var(--max-w));
  max-width: var(--max-w);
  transform: translateX(-50%);
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.ci-public-shell .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.ci-public-shell .header-bar .header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  max-height: var(--header-logo-max-height);
}

.ci-public-shell .header-bar .header-logo:hover {
  opacity: 0.9;
}

.ci-public-shell .header-bar .header-logo img {
  max-height: var(--header-logo-max-height);
  max-width: var(--header-logo-max-width);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.ci-public-shell .header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ci-public-shell .header-login-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-full);
  background: var(--bg);
}

.ci-public-shell .header-login-link:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.ci-public-shell .header-host-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.ci-public-shell .header-host-link:hover {
  color: var(--accent);
}

/* Visitante: CTA “Anuncie” em teal como na homepage */
.ci-public-shell body:not(.user-logged-in) .header-host-link {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.ci-public-shell body:not(.user-logged-in) .header-host-link:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.ci-public-shell .header-spacer {
  height: var(--header-offset);
  flex-shrink: 0;
}

/* Menu público rosa/branco */
.ci-public-shell .menu-bar {
  position: fixed;
  left: 50%;
  right: auto;
  width: min(100%, var(--max-w));
  max-width: var(--max-w);
  transform: translateX(-50%);
  top: var(--header-offset);
  z-index: 99;
  box-sizing: border-box;
  min-height: 0;
  background: var(--menu-bar-bg, var(--bg-card));
  border-bottom: 1px solid var(--menu-bar-border-color, var(--border));
  padding: 0.35rem 0;
  box-shadow: var(--menu-bar-shadow, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.ci-public-shell .menu-bar-spacer {
  height: var(--public-nav-bar-height);
  flex-shrink: 0;
}

.ci-public-shell nav.menu-bar > .wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.2rem;
  row-gap: 0.2rem;
  min-height: 0;
}

.ci-public-shell nav.menu-bar > .wrap > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}

.ci-public-shell nav.menu-bar > .wrap > a:hover {
  background: rgba(230, 30, 77, 0.07);
  color: var(--accent);
}

.ci-public-shell nav.menu-bar > .wrap > a.active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(230, 30, 77, 0.1);
}

.ci-public-shell nav.menu-bar .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
