/**
 * Site footer for 1031.site.
 *
 * Thin (map at /), border-box:
 *   Desktop, min-width 768px: 26px, including the 1px hairline.
 *     12px type, 16px line, centered in the 25px content box.
 *   Mobile, max-width 767px: 45px plus env(safe-area-inset-bottom).
 *     1px hairline + 44px touch targets, still one line.
 *     With a 0px safe-area inset the measured height is 45px.
 *
 * Full (every other page): compact columns. Links are 44px tall below
 * 768px and tighten above that. Columns stack under 640px.
 *
 * The map shell stays 100dvh with this footer inside it, so the document
 * does not grow by the footer height.
 */

.site-footer {
  box-sizing: border-box;
  margin: 0;
  background: #f7f8fa;
  color: #5f6368;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  -webkit-font-smoothing: antialiased;
}

.site-footer a,
.site-footer button {
  color: #5f6368;
  font-family: inherit;
  font-size: inherit;
  line-height: 16px;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid #174ea6;
  outline-offset: -2px;
}

.site-footer__copy,
.site-footer__label,
.site-footer__list {
  margin: 0;
}

.site-footer__list {
  list-style: none;
  padding: 0;
}

.site-footer__dot {
  color: #80868b;
}

.site-shell {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: #f7f8fa;
}

.site-shell__main {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.site-shell__main > * {
  flex: 1 1 auto;
  min-height: 0;
}

/* Thin line. z-index stays under the Filters sheet (z-50 on body). */
.site-footer--thin {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  border-top: 1px solid #e4e4e7;
  background: #f7f8fa;
  height: calc(45px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-footer__thin-desktop {
  display: none;
}

.site-footer__thin-mobile {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: 0 4px;
  white-space: nowrap;
}

.site-footer__line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.site-footer__item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-footer--thin .site-footer__copy {
  flex: 0 0 auto;
  padding: 0 2px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.site-footer--thin .site-footer__dot {
  margin: 0 2px;
  font-size: 11px;
  line-height: 16px;
}

.site-footer--thin a,
.site-footer--thin button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  font-size: 11px;
  line-height: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.site-footer__popover {
  position: absolute;
  right: 4px;
  bottom: calc(100% - env(safe-area-inset-bottom, 0px));
  z-index: 2;
  min-width: 9rem;
  padding: 4px 0;
  border: 1px solid #e4e4e7;
  background: #f7f8fa;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08);
}

.site-footer__popover[hidden] {
  display: none;
}

.site-footer__popover a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .site-footer--thin {
    height: 26px;
    max-height: 26px;
    padding-bottom: 0;
  }

  .site-footer__thin-mobile {
    display: none;
  }

  .site-footer__thin-desktop {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 25px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .site-footer--thin .site-footer__copy,
  .site-footer--thin .site-footer__dot,
  .site-footer--thin a,
  .site-footer--thin button {
    font-size: 12px;
  }

  .site-footer--thin a,
  .site-footer--thin button {
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0 2px;
  }

  .site-footer--thin .site-footer__dot {
    margin: 0 4px;
  }
}

/* Full columns. Still quiet: 11–12px, hairline, tight padding. */
.site-footer--full {
  flex: 0 0 auto;
  border-top: 1px solid #e4e4e7;
  background: #f7f8fa;
  padding: 10px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 28px;
  max-width: 64rem;
  margin: 0 auto;
}

.site-footer__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
  color: #5f6368;
}

.site-footer--full a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0;
  font-size: 12px;
}

.site-footer--full .site-footer__copy {
  max-width: 64rem;
  margin: 6px auto 0;
  font-size: 11px;
  line-height: 16px;
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .site-footer--full a {
    display: inline-flex;
    min-height: 22px;
    padding: 1px 0;
  }
}

@media (min-width: 1024px) {
  .site-footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-chrome="account"] .site-footer--full {
    margin-left: 248px;
  }
}
