/* HORIZON PROPERTIES | Approved upper header reference
 * Adjusts only header, brand and navigation. Other page content and imagery are unchanged.
 * Reference red block is an annotation, NOT a page background colour.
 */
@media(min-width:851px){
  .header{
    height:auto;min-height:105px;
    display:flex;align-items:center;justify-content:space-between;
    gap:clamp(13px,1.7vw,25px);
    padding:12px clamp(5px,1.2vw,19px);
    margin-top:10px;margin-bottom:17px;
    background:transparent!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;
    overflow:visible;isolation:isolate;
  }
  /* Preserve the approved natural thin botanical motif. */
  .header::before{
    top:-11px;left:-16px;width:82px;height:66px;
    background-size:contain;opacity:.32;z-index:-1;
  }
  .brand{gap:clamp(10px,1.4vw,19px);padding:0 clamp(12px,1.7vw,24px) 0 0;border-radius:0;flex-shrink:0}
  .brand:hover{background:transparent}
  .brand-icon,.brand-icon:hover{width:clamp(64px,6vw,83px);height:clamp(64px,6vw,83px);flex:0 0 clamp(64px,6vw,83px);background:transparent!important}
  .brand-icon img{height:100%;width:100%;object-fit:contain}
  .brand-words strong{
    font-family:'Libre Baskerville',Georgia,serif!important;
    font-size:clamp(19px,2vw,28px);font-weight:700;
    text-transform:uppercase;line-height:1.19;letter-spacing:-.055em;
  }
  .brand-words small{
    font-family:'Manrope',system-ui,sans-serif;
    font-size:clamp(8px,.85vw,12px);
    font-weight:800;line-height:1.5;
    letter-spacing:clamp(1.1px,.18vw,2.5px);
    color:#826f50;margin-top:7px;
  }
  .brand::after{
    content:"";display:block;position:absolute;top:19%;right:-9px;
    height:62%;width:1px;
    background:linear-gradient(180deg,transparent,#c4b69c 18%,#b6a783 50%,#c4b69c 82%,transparent);
    opacity:.9;pointer-events:none;
  }
  /* Each menu item floats by itself, not inside one large enclosing pill. */
  .mainnav{
    display:flex;align-items:center;gap:clamp(7px,.8vw,13px);
    margin-left:auto;padding:0;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  .mainnav a{
    min-height:52px;display:inline-flex;align-items:center;justify-content:center;
    gap:clamp(6px,.55vw,10px);
    padding:11px clamp(10px,1.22vw,19px)!important;
    border:1px solid rgba(215,222,210,.47)!important;
    border-radius:999px!important;
    background:linear-gradient(150deg,#fffefa 12%,#fcfbf6 100%);
    color:#17432f;
    box-shadow:0 7px 19px rgba(35,53,35,.085),0 2px 4px rgba(37,54,37,.03)!important;
    font:750 clamp(12px,1vw,15px)/1.35 'Manrope',system-ui,sans-serif;
    letter-spacing:-.02em;
    transition:transform .19s ease,box-shadow .19s ease,background .19s ease,border-color .19s ease;
  }
  .mainnav a .nav-icon{width:clamp(16px,1.3vw,20px);height:clamp(16px,1.3vw,20px);opacity:1;flex-shrink:0}
  .mainnav a.active{
    background:linear-gradient(150deg,#e9f2e6,#dfeedd)!important;
    border-color:rgba(200,222,198,.58)!important;
    box-shadow:0 7px 18px rgba(36,74,42,.09)!important;
    color:#174630;font-weight:800;
  }
  .mainnav a.active:after{display:none!important}
  .mainnav a:hover,.mainnav a:focus-visible{
    transform:translateY(-2px);
    background:#f2f7ef;
    border-color:rgba(144,175,142,.55)!important;
    box-shadow:0 12px 25px rgba(28,58,37,.15)!important;
  }
  .mainnav a:focus-visible{outline:2px solid #6b9470;outline-offset:3px}
  .header-actions{display:none}
}
@media(min-width:851px) and (max-width:1270px){
  .header{gap:14px}
  .brand{gap:9px;padding-right:12px}
  .brand-icon,.brand-icon:hover{width:58px;height:59px;flex-basis:58px}
  .brand-words strong{font-size:clamp(17px,1.7vw,22px)}
  .brand-words small{font-size:8px;letter-spacing:1.2px}
  .mainnav{gap:6px}
  .mainnav a{min-height:45px;padding:8px 10px!important;font-size:12px}
  .mainnav a .nav-icon{width:15px;height:15px}
}
@media(max-width:850px){
  /* Mobile keeps the accessible hamburger, with five soft round menu rows. */
  .header{border:1px solid rgba(221,229,217,.75);box-shadow:0 7px 21px rgba(27,54,33,.08)!important}
  .mainnav{background:#fffefa!important;box-shadow:0 14px 36px rgba(20,50,32,.15)!important}
  .mainnav.open{gap:7px;padding:12px!important}
  .mainnav a{border-radius:15px!important;border:1px solid rgba(213,225,207,.56)!important;
    background:#fffefa;box-shadow:0 3px 10px rgba(20,48,29,.055);
    padding:12px 14px!important;min-height:47px}
  .mainnav a.active{background:#e7f0e5!important}
  .mainnav a.active:after{display:none!important}
}
@media(prefers-reduced-motion:reduce){.mainnav a{transition:none!important}.mainnav a:hover{transform:none!important}}

/* 2026-11-17 | Final reference-header refinements
 * Corner foliage is separate from the skyline mark, never inside/over the logo.
 * The body map, property cards, owner pages and feature scripts are untouched.
 */
@media (min-width: 1201px) {
  .header::before {
    left:-55px !important;
    top:-13px !important;
    width:67px !important;
    height:62px !important;
    opacity:.24 !important;
    background-position:left top !important;
    background-size:contain !important;
  }
}
@media (max-width: 1200px) {
  .header::before {display:none !important;content:none !important;}
}
/* The desktop header becomes a hamburger menu at 850px, not 800px.
   Keep its trigger visible through the entire mobile-navigation breakpoint. */
@media (min-width:801px) and (max-width:850px) {
  .header-actions {display:flex !important;}
  .mobile-menu {display:block !important;}
}
@media (max-width:850px) {
  .brand-words strong {
    font-family:'Libre Baskerville', Georgia, serif !important;
    text-transform:uppercase;
    letter-spacing:-.055em;
  }
}

/* app.js also enables tablet navigation through 1100px. Its menu trigger
   must remain visible while the horizontal pills are hidden. */
@media (min-width:851px) and (max-width:1100px) {
  .header-actions {display:flex !important;}
  .mobile-menu {display:grid !important;place-items:center;}
}
