/* CampToMe T18 – focused design fixes; no business or privacy logic. */
/* 1. Keep the previously approved desktop header gradient from index.php.
   Only compact/mobile layouts below receive the T18 background override.
   Do not let a broad light desktop gradient wash out the white navigation text. */
body.role-camper #mainBrand,
body.role-campsite #mainBrand{overflow:visible!important}
body.role-camper .brand-logo-full,
body.role-campsite .brand-logo-full{object-fit:contain!important;object-position:left center!important}
/* 2. Dropdown sign-out reuses #authLogout. Accessible in both languages. */
.ctm8b3-pop .ctm8b3-mobile-logout{
  border-top:1px solid #e2eaf0!important;
  border-radius:0 0 8px 8px;
  margin-top:4px;
  padding-top:13px;
  color:#8e3c25;
}
.ctm8b3-pop .ctm8b3-mobile-logout:hover,
.ctm8b3-pop .ctm8b3-mobile-logout:focus-visible{background:#fff1e9;color:#9f401e}
/* 3. Extra descender room for g, p, y, j in campsite names and long titles. */
#camperWorkflowDrawer .ctm-offer-showcase .ctm-offer-title-line{
  overflow:visible!important;
  row-gap:8px!important;
  margin-bottom:7px!important;
  padding-bottom:3px!important;
}
#camperWorkflowDrawer .ctm-offer-showcase .ctm-offer-title-line .camper-history-campsite-name{
  line-height:1.32!important;
  padding-bottom:3px!important;
  overflow:visible!important;
}
#camperWorkflowDrawer .ctm-offer-showcase .ctm-offer-title-line .ctm-profile-name-link{
  display:inline-block!important;
  line-height:1.32!important;
  padding-bottom:2px!important;
  overflow:visible!important;
}
/* Compact header contains two rows: bright logo/language row and dark menu row. */
@media(max-width:1040px){
  body.role-camper .nav .nav-inner,
  body.role-campsite .nav .nav-inner{
    background:linear-gradient(180deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.98) 59%,rgba(3,35,56,.83) 74%,rgba(3,35,56,.75) 100%),url('header-scene-v99-7.webp') left center/cover no-repeat!important;
  }
}

/* T18b – Unauthenticated mobile header: previously both CTAs were hidden.
   Only guest mode is affected. Logged-in mobile menus remain unchanged. */
@media (max-width:760px){
  body:not(.role-camper):not(.role-campsite) .nav{
    height:auto!important;
  }
  body:not(.role-camper):not(.role-campsite) .nav .nav-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    height:auto!important;
    min-height:0!important;
    gap:8px 8px!important;
    padding-top:7px!important;
    padding-bottom:10px!important;
  }
  body:not(.role-camper):not(.role-campsite) .nav #mainBrand{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
  }
  body:not(.role-camper):not(.role-campsite) .nav .lang-switch{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
  }
  body:not(.role-camper):not(.role-campsite) .nav #authGuestActions{
    grid-column:1/-1!important;
    grid-row:2!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    flex-wrap:nowrap!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  body:not(.role-camper):not(.role-campsite) #authGuestActions .btn-outline,
  body:not(.role-camper):not(.role-campsite) #authGuestActions .btn-orange{
    display:inline-flex!important;
    flex:1 1 0!important;
    min-width:0!important;
    min-height:40px!important;
    padding:9px 8px!important;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:normal!important;
    text-align:center!important;
  }
}
