@media (max-width: 820px) {
  .site-footer {
    padding: 24px 0 calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .site-footer .container {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .site-footer .footer-grid {
    display: block !important;
  }

  .site-footer .footer-about {
    margin: 0 0 16px !important;
    padding: 0 2px 4px !important;
  }

  .site-footer .footer-brand {
    font-size: 23px !important;
    line-height: 1.2 !important;
  }

  .site-footer .footer-about p {
    max-width: 330px !important;
    margin: 8px 0 0 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .site-footer .btr-mobile-footer-group {
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .site-footer .btr-mobile-footer-heading {
    position: relative;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 34px 0 2px !important;
    display: flex;
    align-items: center;
    color: #fff !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    cursor: pointer;
    user-select: none;
    outline: 0;
  }

  .site-footer .btr-mobile-footer-heading::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(255,255,255,.72);
    border-bottom: 1.5px solid rgba(255,255,255,.72);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .18s ease;
  }

  .site-footer .btr-mobile-footer-group.is-open .btr-mobile-footer-heading::after {
    transform: translateY(-30%) rotate(225deg);
  }

  .site-footer .btr-mobile-footer-heading:focus-visible {
    outline: 2px solid rgba(255,255,255,.55);
    outline-offset: -2px;
    border-radius: 8px;
  }

  .site-footer .btr-mobile-footer-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 2px;
    transition: max-height .22s ease, opacity .18s ease, padding .22s ease;
  }

  .site-footer .btr-mobile-footer-group.is-open .btr-mobile-footer-links {
    max-height: 260px;
    opacity: 1;
    padding: 0 2px 10px;
  }

  .site-footer .footer-grid > .btr-mobile-footer-group .btr-mobile-footer-links > a {
    display: block !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .site-footer .footer-bottom {
    margin-top: 14px !important;
    padding-top: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .site-footer .footer-bottom span:last-child {
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .site-footer .footer-bottom {
    display: grid !important;
    justify-content: start !important;
    gap: 4px !important;
  }
}

/* BungalovTR V208 - mobile detail footer/contact-dock spacing regression fix. */
@media (max-width: 820px) {
  html.btr-mobile-app body.single-bungalov {
    /* Match the fixed contact dock footprint so no page-background strip remains
       between the footer and the dock. */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html.btr-mobile-app body.single-bungalov .site-footer {
    margin-bottom: 0 !important;
  }
}
