/*
 * Shared NIKO public design system.
 *
 * Page-specific styles own page content. This layer is deliberately authoritative
 * for the public shell (header/footer), common controls and shared tokens so the
 * homepage, catalogue, property pages and owner-intake pages remain one product.
 */
:root {
  --niko-public-ink: #0b1110;
  --niko-public-paper: #faf9f5;
  --niko-public-surface: #fff;
  --niko-public-muted: #68736d;
  --niko-public-line: #e2e5e1;
  --niko-public-gold: #d1ae6d;
  --niko-public-radius: 14px;
  --niko-public-shadow: 0 18px 52px rgba(12, 22, 17, .08);
  --niko-container: min(100% - 3rem, 80rem);
  --niko-header-height: 4.5rem;
}

body.niko-app {
  background: var(--niko-public-paper);
  color: var(--niko-public-ink);
}

/* Authoritative shared header. Keep selector specificity equal to homepage overrides. */
body.niko-app .niko-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--niko-header-height);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(8, 14, 12, .96);
  color: #fff;
  backdrop-filter: blur(18px);
}

body.niko-app .niko-header-inner {
  min-height: var(--niko-header-height);
}

body.niko-app .niko-brand-wrap {
  min-width: 0;
}

body.niko-app .niko-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .09em;
}

body.niko-app .niko-brand__logo {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: 8px;
  object-fit: cover;
}

body.niko-app .niko-brand__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.niko-app .niko-nav-list {
  gap: 1.35rem;
}

body.niko-app .niko-nav-list a {
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  font-weight: 650;
}

body.niko-app .niko-nav-list a:hover,
body.niko-app .niko-nav-list a:focus-visible {
  color: #fff;
}

body.niko-app .niko-portal-link {
  min-height: 2.45rem;
  border: 1px solid rgba(209, 174, 109, .65);
  background: transparent;
  color: #efd49e;
  padding-inline: .95rem;
  font-size: .78rem;
  font-weight: 800;
}

body.niko-app .niko-menu-toggle {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}

body.niko-app .niko-nav-list__utility--destination {
  display: none;
}

/* Authoritative shared footer. Dense, useful and consistent across all public pages. */
body.niko-app .niko-site-footer {
  min-height: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 16% 0%, rgba(209, 174, 109, .075), transparent 26%),
    #080d0c;
  color: rgba(255, 255, 255, .68);
  padding: 0;
}

body.niko-app .niko-footer-inner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) minmax(0, .75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: 2.25rem 1rem;
}

body.niko-app .niko-footer-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: .55rem;
}

body.niko-app .niko-footer-brand {
  max-width: 25rem;
}

body.niko-app .niko-footer-brand__name {
  display: inline-flex;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-decoration: none;
}

body.niko-app .niko-footer-brand p {
  max-width: 23rem;
  margin: .9rem 0 1.2rem;
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
  line-height: 1.65;
}

body.niko-app .niko-footer-brand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  align-items: center;
}

body.niko-app .niko-footer-brand__actions a {
  color: rgba(255, 255, 255, .72);
  font-size: .77rem;
  font-weight: 750;
  text-decoration: none;
}

body.niko-app .niko-footer-brand__actions .niko-footer-action {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  border: 1px solid rgba(209, 174, 109, .62);
  border-radius: 8px;
  color: #efd49e;
  padding-inline: .85rem;
}

body.niko-app .niko-footer-column nav,
body.niko-app .niko-footer-widget {
  display: grid;
  gap: .55rem;
}

body.niko-app .niko-footer-column .menu,
body.niko-app .niko-footer-column .wp-block-navigation__container,
body.niko-app .niko-footer-column .wp-block-page-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.niko-app .niko-footer-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.niko-app .niko-footer-menu li {
  min-width: 0;
}

body.niko-app .niko-footer-column > strong,
body.niko-app .niko-footer-column h2 {
  margin-bottom: .25rem;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.niko-app .niko-footer-column a,
body.niko-app .niko-footer-column span {
  color: rgba(255, 255, 255, .56);
  font-size: .78rem;
  line-height: 1.45;
  text-decoration: none;
}

body.niko-app .niko-footer-column a:hover,
body.niko-app .niko-footer-column a:focus-visible,
body.niko-app .niko-footer-brand__actions a:hover,
body.niko-app .niko-footer-brand__actions a:focus-visible {
  color: #fff;
}

body.niko-app .niko-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  min-height: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 1rem 1.5rem;
}

body.niko-app .niko-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .42);
  font-size: .7rem;
}

body.niko-app .niko-footer-social {
  display: flex;
  gap: .85rem;
}

body.niko-app .niko-footer-social a {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  text-decoration: none;
}

body.niko-app .niko-footer-social a:hover,
body.niko-app .niko-footer-social a:focus-visible {
  color: #efd49e;
}

/* Shared interactive vocabulary. */
.niko-public-button,
.niko-filter-submit,
.niko-owner-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid var(--niko-public-ink);
  border-radius: 9px;
  background: var(--niko-public-ink);
  color: #fff;
  padding: 0 1.15rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.niko-public-button:hover,
.niko-filter-submit:hover,
.niko-owner-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 17, 16, .12);
}

.niko-property-filters input,
.niko-property-filters select,
.niko-owner-form input,
.niko-owner-form select,
.niko-owner-form textarea,
.niko-property-contact-card input,
.niko-property-contact-card select,
.niko-property-contact-card textarea {
  border-color: var(--niko-public-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--niko-public-ink) !important;
  box-shadow: none !important;
}

.niko-property-filters input:focus,
.niko-property-filters select:focus,
.niko-owner-form input:focus,
.niko-owner-form select:focus,
.niko-owner-form textarea:focus,
.niko-property-contact-card input:focus,
.niko-property-contact-card select:focus,
.niko-property-contact-card textarea:focus {
  border-color: #b99350 !important;
  outline: 2px solid rgba(209, 174, 109, .18) !important;
  outline-offset: 1px !important;
}

.niko-property-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.niko-property-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 56rem) {
  :root {
    --niko-container: min(100% - 1.75rem, 48rem);
  }

  body.niko-app .niko-brand {
    max-width: min(55vw, 18rem);
  }

  body.niko-app .niko-nav-list {
    top: calc(var(--niko-header-height) + .5rem);
    right: .5rem;
    bottom: auto;
    left: auto;
    width: min(calc(100vw - 1rem), 22rem);
    max-height: calc(100dvh - var(--niko-header-height) - 1rem);
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem;
    border: 1px solid rgba(209, 174, 109, .3);
    border-radius: 14px;
    background: var(--vnre-brand-primary, #0b1110);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .3);
  }

  body.niko-app .niko-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  body.niko-app .niko-nav-list li:last-child {
    border-bottom: 0;
  }

  body.niko-app .niko-nav-list a,
  body.niko-app .niko-pwa-mobile-install {
    display: flex;
    min-height: 3rem;
    align-items: center;
    width: 100%;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: .86rem;
    line-height: 1.25;
    text-decoration: none;
  }

  body.niko-app .niko-nav-list a:hover,
  body.niko-app .niko-nav-list a:focus-visible,
  body.niko-app .niko-pwa-mobile-install:hover,
  body.niko-app .niko-pwa-mobile-install:focus-visible {
    background: rgba(255, 255, 255, .07);
    color: #fff;
  }

  body.niko-app .niko-nav-list__utility--favorites {
    margin-top: .4rem;
    padding-top: .4rem;
    border-top: 1px solid rgba(209, 174, 109, .38);
  }

  body.niko-app .niko-nav-list__utility--destination {
    display: block;
  }

  body.niko-app .niko-nav-list__utility--install:has(.niko-pwa-mobile-install[hidden]) {
    display: none;
  }

  body.niko-app .niko-favorites-shortcut {
    gap: .65rem;
  }

  body.niko-app .niko-favorites-shortcut__count {
    margin-left: auto;
    color: #efd49e;
  }

  body.niko-app .niko-pwa-mobile-install {
    gap: .65rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  body.niko-app .niko-pwa-mobile-install[hidden],
  body.niko-app .niko-pwa-install-badge {
    display: none !important;
  }

  body.admin-bar.niko-app .niko-site-header {
    top: 32px;
  }

  body.admin-bar.niko-app .niko-nav-list {
    top: calc(var(--niko-header-height) + 32px + .5rem);
    max-height: calc(100dvh - var(--niko-header-height) - 32px - 1rem);
  }

  body.niko-app .niko-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.65rem;
    padding-block: 2rem 1rem;
  }

  body.niko-app .niko-footer-column:last-child {
    grid-column: 1 / -1;
  }

  body.niko-app .niko-site-footer {
    margin-top: 3rem;
  }
}

@media (max-width: 48.875rem) {
  body.admin-bar.niko-app .niko-site-header {
    top: 46px;
  }

  body.admin-bar.niko-app .niko-nav-list {
    top: calc(var(--niko-header-height) + 46px + .5rem);
    max-height: calc(100dvh - var(--niko-header-height) - 46px - 1rem);
  }
}

@media (max-width: 38rem) {
  body.niko-app .niko-brand__logo {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
  }

  body.niko-app .niko-brand__title {
    font-size: .78rem;
  }

  body.niko-app .niko-footer-inner {
    grid-template-columns: 1fr;
  }

  body.niko-app .niko-footer-column:last-child {
    grid-column: auto;
  }

  body.niko-app .niko-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .niko-public-button,
  .niko-filter-submit,
  .niko-owner-form button[type="submit"],
  .niko-property-card {
    transition: none !important;
    transform: none !important;
  }
}
