/* Restore focus outlines removed by theme/plugin resets */
*:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #5067db !important;
  outline-offset: 2px !important;
}
/* ===== Global footer (KAN-82) ===== */
/* quicksand-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300;
  src: url("../assets/fonts/quicksand-v37-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/quicksand-v37-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500;
  src: url("../assets/fonts/quicksand-v37-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 600;
  src: url("../assets/fonts/quicksand-v37-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/fonts/quicksand-v37-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: url("../assets/fonts/open-sans-v44-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/open-sans-v44-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("../assets/fonts/open-sans-v44-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("../assets/fonts/open-sans-v44-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ===== Header logo ===== */
.lg-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.lg-logo__img {
  width: 128px;
  height: 30px;
  flex-shrink: 0;
}
/* ===== Header layout (Figma spacing) ===== */
.header-nav .header-inner.table-block {
  display: flex;
  align-items: center;
  min-height: 79px;
}
.header-nav .header-comp-logo {
  display: flex;
  align-items: center;
}
.header-nav .header-comp-nav {
  display: flex;
  align-items: center;
  margin-left: 40px;
}
.header-nav .header-comp-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.header-nav .lg-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-nav .lg-header-right .login-register {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.header-nav .lg-header-right .login-register li {
  list-style: none;
}
/* ===== Header nav (WordPress menu markup: .lg-nav__menu > .menu-item, .sub-menu) ===== */
.header-nav .lg-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav .lg-nav__menu li {
  position: relative;
}
.header-nav .lg-nav__menu a {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1f2733;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.header-nav .lg-nav__menu a:hover,
.header-nav .lg-nav__menu .current-menu-item > a,
.header-nav .lg-nav__menu .current-menu-ancestor > a {
  color: #5067db;
}
/* caret on top-level items that open a dropdown */
.header-nav .lg-nav__menu .menu-item-has-children > a::after {
  content: "▾";
  font-size: 11px;
  line-height: 1;
}
/* dropdown panel */
.header-nav .lg-nav__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 39, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
  z-index: 50;
}
.header-nav .lg-nav__menu .menu-item-has-children:hover > .sub-menu,
.header-nav .lg-nav__menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav .lg-nav__menu .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.header-nav .lg-nav__menu .sub-menu a::after {
  content: none; /* no caret inside the dropdown */
}
.header-nav .lg-nav__menu .sub-menu a:hover {
  background: #eff4fd;
}

/* ===== Header right (login / register / button) ===== */
.header-nav .login-register a {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  color: #1f2733;
}
.header-nav .login-register a:hover {
  color: #5067db;
}
.header-nav .lg-header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f4f9;
  border: 1px solid #e3e9f2;
  padding: 0;
}
.header-nav .btn-add-new-listing {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  background: transparent;
  color: #ffa24e;
  border: 1.5px solid #ffa24e;
  border-radius: 10px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.header-nav .btn-add-new-listing:hover,
.header-nav .btn-add-new-listing:focus,
.header-nav .btn-add-new-listing:focus-visible {
  background: #ffa24e;
  color: #000;
  border-color: #ffa24e;
}
.lg-footer {
  background: #1b2230;
  color: #c2c9d6;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
}
.lg-footer__inner {
  max-width: 1172px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.lg-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.lg-footer__logo-img {
  width: 128px;
  height: 30px;
  flex-shrink: 0;
}
.lg-footer__desc {
  color: #8b93a3;
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}
.lg-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.lg-footer__col-title {
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 16px;
}
.lg-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-footer__col li {
  margin-bottom: 10px;
}
.lg-footer__col a {
  color: #aeb6c4;
  text-decoration: none;
}
.lg-footer__col a:hover {
  color: #fff;
}
.lg-footer__col a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lg-footer__bottom {
  max-width: 1172px;
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-footer__copy {
  margin: 0;
  color: #8b93a3;
  font-size: 14px;
}
.lg-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.lg-footer__legal a {
  color: #8b93a3;
  text-decoration: none;
  font-size: 14px;
}
.lg-footer__legal a:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .lg-footer__inner {
    grid-template-columns: 1.4fr 2fr;
    gap: 64px;
    padding: 64px 20px 48px;
  }
  .lg-footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .lg-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
/* ── Focus visibility — nav ─────────────────────────────────────────────── */
.header-nav .lg-nav__menu a:focus-visible {
  outline: 2px solid #5067db;
  outline-offset: 2px;
  border-radius: 4px;
  color: #5067db;
}
.header-nav .lg-nav__menu .sub-menu a:focus-visible {
  outline: none;
  border-radius: 8px;
  background: #eff4fd;
  color: #5067db;
}
.header-nav .login-register a:focus-visible {
  outline: 2px solid #5067db;
  outline-offset: 2px;
  border-radius: 4px;
  color: #5067db;
}
.header-nav .btn-add-new-listing:focus-visible {
  outline: 2px solid #ffa24e;
  outline-offset: 2px;
  background: #ffa24e;
  color: #000;
}
