/*
 * Rentals369 pre-redesign site header.
 * Self-contained so index.html can use it without r369.css.
 */
#r369-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 84px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #ecf1f9;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: box-shadow .3s ease;
}
#r369-nav .nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
#r369-nav .nav-inner > a:first-child {
  flex: 0 0 auto;
  line-height: 0;
}
#r369-nav .nav-inner > a:first-child img {
  display: block;
  width: auto;
  max-width: none;
  height: 40px;
}
#r369-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: 0;
}
#r369-nav .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  color: #0d1b2e;
  font: 600 16.5px/1.2 Roboto, Arial, sans-serif;
  letter-spacing: .1px;
  text-decoration: none;
  transition: color .2s ease;
}
#r369-nav .nav-links a::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 4px;
  left: 2px;
  height: 2px;
  border-radius: 2px;
  background: #0057ba;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
#r369-nav .nav-links a:hover,
#r369-nav .nav-links a[aria-current='page'] {
  color: #0057ba !important;
}
#r369-nav .nav-links a:hover::after,
#r369-nav .nav-links a:focus-visible::after,
#r369-nav .nav-links a[aria-current='page']::after {
  transform: scaleX(1);
}
#r369-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 100px;
  background: #0057ba;
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(0, 87, 186, .4);
  font: 700 15.5px/1.2 Roboto, Arial, sans-serif;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}
#r369-nav .nav-cta:hover {
  background: #003e83;
  box-shadow: 0 8px 20px -6px rgba(0, 87, 186, .5);
}
#r369-nav .r369-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #0d1b2e;
  cursor: pointer;
}
#r369-nav .r369-mobile-toggle svg {
  width: 30px;
  height: 30px;
}
#r369-nav :is(a, button):focus-visible,
#r369-mobile-menu a:focus-visible {
  outline: 3px solid #0057ba;
  outline-offset: 3px;
  border-radius: 8px;
}
#r369-mobile-menu {
  position: fixed;
  top: 84px;
  right: 0;
  left: 0;
  z-index: 99;
  max-height: calc(100svh - 84px);
  max-height: calc(100dvh - 84px);
  padding: 12px 6% calc(22px + env(safe-area-inset-bottom));
  border-bottom: 1px solid #e2e8f4;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 44px rgba(13, 27, 46, .1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-14px);
  transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s;
}
#r369-mobile-menu[data-open='1'] {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
#r369-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 16px 4px;
  border-bottom: 1px solid #ecf1f9;
  color: #0d1b2e;
  font: 600 17px/1.2 Roboto, Arial, sans-serif;
  text-decoration: none;
}
#r369-mobile-menu a.r369-mm-cta {
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 15px;
  border: 0;
  border-radius: 16px;
  background: #0057ba;
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(0, 87, 186, .5);
  font-weight: 700;
}

@media (max-width: 860px) {
  #r369-nav { height: 76px; }
  #r369-nav .nav-inner { padding-inline: 24px; }
  #r369-nav .nav-inner > a:first-child img { height: 36px; }
  #r369-nav .nav-links,
  #r369-nav .nav-cta { display: none; }
  #r369-nav .r369-mobile-toggle { display: flex; }
  #r369-mobile-menu {
    top: 76px;
    max-height: calc(100svh - 76px);
    max-height: calc(100dvh - 76px);
  }
}

@media (max-width: 360px) {
  #r369-nav .nav-inner { padding-inline: 16px; }
  #r369-mobile-menu { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  #r369-nav *,
  #r369-mobile-menu { transition: none !important; }
}

@media (forced-colors: active) {
  #r369-nav,
  #r369-mobile-menu { border-color: CanvasText; }
  #r369-nav .nav-cta,
  #r369-mobile-menu a.r369-mm-cta { border: 1px solid ButtonText; }
}

@media print {
  #r369-nav,
  #r369-mobile-menu { display: none !important; }
}
