/*------------------------------------------------------------------
  ProEviction shared header
  Used on pages that do NOT load the main theme (assets/css/style.css):
  property-listings.html, single-property-1.html and back-end/*.html.
  It matches the header on index.html.
  Every rule is scoped to #main-header.pe-hdr so it cannot change the rest of
  the page, and so the page's own CSS cannot change the header.
------------------------------------------------------------------*/
#main-header.pe-hdr {
  --pe-dark: #20282D;
  --pe-link: #1C2539;
  --pe-link-hover: #245b83;
  --pe-soft: #F2F2F2;
  position: relative;
  z-index: 1000;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pe-link);
  text-align: left;
}
#main-header.pe-hdr *,
#main-header.pe-hdr *::before,
#main-header.pe-hdr *::after {
  box-sizing: border-box;
}
#main-header.pe-hdr::after { content: none; display: none; }
#main-header.pe-hdr ul,
#main-header.pe-hdr li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
}
#main-header.pe-hdr a { text-decoration: none; }
#main-header.pe-hdr img { display: block; max-width: none; border: 0; }

/* Container: same widths as the main site header */
#main-header.pe-hdr .pe-hdr__container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}
#main-header.pe-hdr .pe-hdr__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* Logo */
#main-header.pe-hdr .pe-hdr__logo { flex: 0 0 auto; display: block; }
#main-header.pe-hdr .pe-hdr__logo img { width: 320px; height: auto; }

/* Nav + buttons (nav links and buttons sit on the same bottom line) */
#main-header.pe-hdr .pe-hdr__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-left: auto;
}
#main-header.pe-hdr .pe-hdr__nav {
  min-width: 0;
  margin: 0 auto;
}
#main-header.pe-hdr .pe-hdr__nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}
#main-header.pe-hdr .pe-hdr__nav li { padding: 0; }
#main-header.pe-hdr .pe-hdr__nav a {
  display: block;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-link);
  background: none;
  transition: color 0.3s;
}
#main-header.pe-hdr .pe-hdr__nav a:hover { color: var(--pe-link-hover); }

#main-header.pe-hdr .pe-hdr__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
#main-header.pe-hdr .pe-hdr__btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
}
#main-header.pe-hdr .pe-hdr__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  min-width: max-content;
  margin: 0;
  padding: 13px 29px;
  border-radius: 15px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
#main-header.pe-hdr .pe-hdr__btn--solid {
  background: var(--pe-dark);
  border: 0;
  color: #fff;
}
#main-header.pe-hdr .pe-hdr__btn--solid:hover {
  background: var(--pe-soft);
  color: var(--pe-dark);
}
#main-header.pe-hdr .pe-hdr__btn--outline {
  background: transparent;
  border: 2px solid var(--pe-dark);
  color: var(--pe-dark);
}
#main-header.pe-hdr .pe-hdr__btn--outline:hover {
  background: var(--pe-dark);
  color: #fff;
}
#main-header.pe-hdr .pe-hdr__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  min-width: 55px;
  height: 55px;
  margin: 0 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--pe-soft);
  cursor: pointer;
}
#main-header.pe-hdr .pe-hdr__menu-btn img { width: 20px; height: auto; }

/* Slide-out menu (opened by the menu button) */
#main-header.pe-hdr .pe-hdr__overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
#main-header.pe-hdr .pe-hdr__drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100001;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s;
}
#main-header.pe-hdr.pe-hdr--open .pe-hdr__overlay { opacity: 1; visibility: visible; }
#main-header.pe-hdr.pe-hdr--open .pe-hdr__drawer { transform: none; visibility: visible; }
#main-header.pe-hdr .pe-hdr__drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}
#main-header.pe-hdr .pe-hdr__drawer-top img { width: 220px; height: auto; }
#main-header.pe-hdr .pe-hdr__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--pe-soft);
  color: var(--pe-dark);
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
}
#main-header.pe-hdr .pe-hdr__drawer-nav li { border-bottom: 1px solid #E9ECF1; }
#main-header.pe-hdr .pe-hdr__drawer-nav a {
  display: block;
  padding: 14px 0;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-link);
}
#main-header.pe-hdr .pe-hdr__drawer-nav a:hover { color: var(--pe-link-hover); }
#main-header.pe-hdr .pe-hdr__drawer-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
#main-header.pe-hdr .pe-hdr__drawer-btns .pe-hdr__btn { width: 100%; }

/* ---------- Responsive: same breakpoints as the main site header ---------- */
@media (min-width: 1921px) {
  #main-header.pe-hdr .pe-hdr__container { max-width: none; padding-left: 11.5vw; padding-right: 11.5vw; }
}
@media (min-width: 2299px) {
  #main-header.pe-hdr .pe-hdr__logo img { width: auto; }
}
@media (max-width: 2020px) {
  #main-header.pe-hdr .pe-hdr__nav ul { gap: 26px; }
}
@media (max-width: 1599px) {
  #main-header.pe-hdr .pe-hdr__nav { margin-right: 30px; }
  #main-header.pe-hdr .pe-hdr__nav ul { gap: 32px; }
}
/* Below 1500px the links wrap onto two lines (as on the main site) instead of
   pushing the buttons off the screen */
@media (max-width: 1500px) {
  #main-header.pe-hdr .pe-hdr__nav ul { gap: 22px; }
  #main-header.pe-hdr .pe-hdr__nav a { font-size: 14px; letter-spacing: 0.02em; line-height: 22px; }
}
@media (max-width: 1399px) {
  #main-header.pe-hdr .pe-hdr__nav { margin-right: 20px; }
  #main-header.pe-hdr .pe-hdr__nav ul { gap: 18px; }
  #main-header.pe-hdr .pe-hdr__logo img { width: 280px; }
}
@media (max-width: 1299px) {
  #main-header.pe-hdr .pe-hdr__container { padding-left: 24px; padding-right: 24px; }
  #main-header.pe-hdr .pe-hdr__logo img { width: 250px; }
  #main-header.pe-hdr .pe-hdr__nav ul { gap: 14px; }
  #main-header.pe-hdr .pe-hdr__btn { padding: 13px 20px; }
}
@media (max-width: 1199px) {
  #main-header.pe-hdr .pe-hdr__wrap { padding: 15px 0; }
  #main-header.pe-hdr .pe-hdr__logo img { width: 260px; }
  #main-header.pe-hdr .pe-hdr__nav { display: none; }
  #main-header.pe-hdr .pe-hdr__main { justify-content: flex-end; }
  #main-header.pe-hdr .pe-hdr__btn { padding: 13px 29px; }
}
@media (max-width: 767px) {
  #main-header.pe-hdr .pe-hdr__container { padding-left: 15px; padding-right: 15px; }
  #main-header.pe-hdr .pe-hdr__actions .pe-hdr__btns { display: none; }
}
@media (max-width: 575px) {
  #main-header.pe-hdr .pe-hdr__logo img { width: 190px; }
  #main-header.pe-hdr .pe-hdr__menu-btn { margin-left: 5px; }
  #main-header.pe-hdr .pe-hdr__btn { height: 47px; padding: 13px 20px; }
}

/* Back-end dashboard: the fixed sidebar starts right under the header.
   pe-header.js sets the exact --pe-hdr-h; these defaults are the header height
   at each screen size, so the sidebar is already in place before the JS runs. */
:root { --pe-hdr-h: 111px; }
@media (min-width: 2299px) { :root { --pe-hdr-h: 188px; } }
@media (max-width: 1399px) { :root { --pe-hdr-h: 101px; } }
@media (max-width: 1299px) { :root { --pe-hdr-h: 92px; } }
@media (max-width: 1199px) { :root { --pe-hdr-h: 101px; } }
@media (max-width: 575px)  { :root { --pe-hdr-h: 85px; } }
.page-body-wrapper .page-sidebar {
  top: var(--pe-hdr-h) !important;
}
