/* SIMSAR_PRIVATE_NAV_V15
   Guest navigation contains public pages only.
   Private pages are revealed only after an authenticated Simsar session exists. */

html:not([data-simsar-auth="member"]) [data-page="compare"],
html:not([data-simsar-auth="member"]) [data-page="saved-searches"],
html:not([data-simsar-auth="member"]) [data-page="favorites"],
html:not([data-simsar-auth="member"]) [data-page="bookings"],
html:not([data-simsar-auth="member"]) [data-page="profile"],
html:not([data-simsar-auth="member"]) [data-page="notifications"],
html:not([data-simsar-auth="member"]) [data-v6-page="compare"],
html:not([data-simsar-auth="member"]) [data-v6-page="saved-searches"],
html:not([data-simsar-auth="member"]) [data-v6-page="favorites"],
html:not([data-simsar-auth="member"]) [data-v6-page="notifications"],
html:not([data-simsar-auth="member"]) [data-v6-page="profile"],
html:not([data-simsar-auth="member"]) .simsar-v15-private,
html:not([data-simsar-auth="member"]) #sm18-account-button {
  display:none !important;
}

/* Hide direct private-page content while guest, even if an old deep link
   briefly activates the section before the session check completes. */
html:not([data-simsar-auth="member"]) #page-compare,
html:not([data-simsar-auth="member"]) #page-saved-searches,
html:not([data-simsar-auth="member"]) #page-favorites,
html:not([data-simsar-auth="member"]) #page-bookings,
html:not([data-simsar-auth="member"]) #page-profile,
html:not([data-simsar-auth="member"]) #page-notifications {
  display:none !important;
}

/* Native Login / Sign Up controls are guest-only. */
html[data-simsar-auth="member"] .simsar-v15-guest-only {
  display:none !important;
}

/* The membership account button belongs inside the normal top action row
   after sign-in, never as a floating control over the brand. */
html[data-simsar-auth="member"] #sm18-account-button {
  display:inline-flex !important;
  position:static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  z-index:auto !important;
  white-space:nowrap;
}

/* Keep guest sidebar visually balanced after private entries disappear. */
html:not([data-simsar-auth="member"]) .rail-nav {
  gap:6px;
}

/* On mobile, Requests disappears for guests and More stays available
   for the public Projects / Support pages. */
@media(max-width:900px){
  html:not([data-simsar-auth="member"]) .mobile-nav [data-page="bookings"]{
    display:none !important;
  }
}
