/* -----------------------------------------------------------------
   crown.css — root layout helper
   ----------------------------------------------------------------- */
/* The <crown> wrapper holds the header, hero banner and filter carousel.
   It must stay in normal document flow so the product grid (.container)
   renders BELOW it. It was previously position:fixed; height:100vh, which
   pulled it out of flow and pinned it over the whole viewport, hiding the
   products behind it ("products disappearing under the hero and header"). */
crown {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
  z-index: auto;
  pointer-events: auto;
}

crown .interactive-element {
  pointer-events: auto;
}

/* =================================================================
   Profile CSS tokens and nav styles (merged from profile/css/crown.css)
   ================================================================= */
:root{
  --brand: #ff5a5f;
  --accent: #5cb8ff;

  /* Card look identical across both pages */
  --tile-w: 320px;                       /* card width */
  --tile-r: 10px;                        /* corner radius */
  --tile-shadow: 0 6px 16px rgba(0,0,0,.12);

  --rail-gap: 16px;                      /* spacing between cards */
  --rail-pad: 8px;                       /* inner padding around rail */
  --rail-bg: #f5f6f7;                    /* light header band like pic1 */
}

/* =====================================================================
   Crown (header bar)
#crown{
  background:#fff;
  padding:16px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 4px 20px rgba(0,0,0,.1);
  gap:20px;
}
#crown a{ text-decoration:none; }
#crown .nav-menu{ margin-left:auto; }

/* Logo anchor — override global a{color:inherit} */
#crown > a:first-child,
#crown > a:first-child:visited,
#crown > a:first-child:hover {
  color: #ff5a5f;
  text-decoration: none;
}

#logo{
  margin:0;
  padding:0;
  position:relative;
  left:0;
  color: #ff5a5f !important;
  font-size:40px;
  font-weight:bold;
  font-family:'Quicksand',sans-serif;
  letter-spacing:1px;
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:5px;
  text-decoration-color:#5cb8ff;
}

#auth{ margin-left:auto; display:flex; gap:10px; }
#auth button{
  padding:12px 24px;
  border:none;
  border-radius:25px;
  background:#fff;
  color:var(--brand);
  transition:transform .2s ease, background .2s ease, color .2s ease;
}
#auth button:hover{
  background:var(--brand);
  color:#fff;
  transform:scale(1.05);
}

@media (max-width:768px){
  #crown{ flex-direction:column; align-items:center; text-align:center; gap:15px; padding:20px 10px; }
  #logo{ font-size:32px; }
  #auth{ margin-left:0; flex-direction:column; align-items:center; }
  #auth button{ padding:10px 20px; font-size:16px; width:100%; max-width:250px; }
}

/* -----------------------------------------------------------------
   Mobile override: "create a tour" fixed bottom-left at 25% width
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
  #custom.nav-link {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 25vw;               /* quarter of the screen */
    min-width: 0;
     background-color: #fff; /* brand red */
    color: #ff5a5f;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    
    border-radius: 10;          /* flush edges */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    left: 0 !important;        /* override desktop offset */
  }

  #custom.nav-link:hover {
    background-color: #e14e50;
    text-decoration: none;
  }

  /* keep content from being hidden behind the fixed footer */
  body { padding-bottom: 60px; }
}

/* -----------------------------------------------------------------
   Mobile override: "create a tour" fixed bottom-left at 25% width
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
  #maritimecalendar.nav-link {
    position: fixed;
    bottom: 0;
    left: 100px;
    width: 25vw;               /* quarter of the screen */
    min-width: 0;
   background-color: #fff; /* brand red */
    color: #ff5a5f;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    
    border-radius: 10;          /* flush edges */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    left: 100px !important;        /* override desktop offset */
  }

  #maritimecalendar.nav-link:hover {
    background-color: #e14e50;
    text-decoration: none;
  }

  /* keep content from being hidden behind the fixed footer */
  body { padding-bottom: 60px; }
}

/* -----------------------------------------------------------------
   Mobile override: "create a tour" fixed bottom-left at 25% width
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
  #accountBtn.nav-link {
    position: fixed;
    bottom: 0;
    left: 200px;
    width: 25vw;               /* quarter of the screen */
    min-width: 0;
    background-color: #fff; /* brand red */
    color: #ff5a5f;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: bold;
    
    border-radius: 10;          /* flush edges */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    left: 200px !important;        /* override desktop offset */
  }

  #accountBtn.nav-link:hover {
    background-color: #e14e50;
    text-decoration: none;
  }

  /* keep content from being hidden behind the fixed footer */
  body { padding-bottom: 60px; }
}