/* Footer variant "contact" — a contact card: address, phone and e-mail,
   opening hours when the layout has them, the map when coordinates are set;
   the workspace links and the login button in a bar beneath, the legal line
   last (contact, hairdresser, restaurant, hotel). */

.site-footer--contact {
  padding-top: 0;
  text-align: left;
  background: var(--page-paper, var(--white));
  color: var(--page-ink, var(--text-primary));
  border-top: 1px solid var(--page-rule, var(--gray-200));
}

.site-footer--contact .footer-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.site-footer--contact .footer-heading {
  margin: 0 0 1rem;
  font-family: var(--page-display, var(--font-heading));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-muted, var(--text-secondary));
}

.site-footer--contact .footer-brand {
  margin: 0 0 0.75rem;
  font-family: var(--page-display, var(--font-heading));
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer--contact .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.site-footer--contact .footer-contact a {
  color: inherit;
  text-decoration: none;
}

.site-footer--contact .footer-contact a:hover {
  color: var(--page-accent, var(--accent-color));
  text-decoration: underline;
}

.site-footer--contact .rtsb-hours-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.site-footer--contact .rtsb-hours-list__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dotted var(--page-rule, var(--gray-200));
}

.site-footer--contact .rtsb-hours-list__row--note {
  justify-content: flex-start;
  border-bottom: 0;
  color: var(--page-muted, var(--text-secondary));
}

.site-footer--contact .rtsb-hours-list dt {
  font-weight: 600;
}

.site-footer--contact .rtsb-hours-list dd {
  margin: 0;
  text-align: right;
}

.site-footer--contact .footer-map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--page-rule, var(--gray-200));
  border-radius: var(--border-radius);
}

.site-footer--contact .footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer--contact .footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--page-rule, var(--gray-200));
}

.site-footer--contact .footer-navigation {
  margin: 0;
}

.site-footer--contact .footer-menu {
  justify-content: flex-start;
  gap: 0.25rem;
}

.site-footer--contact .footer-menu a {
  padding: 0.5rem 0.75rem;
  min-height: 0;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-footer--contact .footer-menu a:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: var(--page-accent, var(--accent-color));
}

.site-footer--contact .footer-login {
  margin: 0;
}

.site-footer--contact .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--page-rule, var(--gray-200));
}

.site-footer--contact .footer-legal p,
.site-footer--contact .footer-legal p.footer-credit {
  margin: 0;
  font-size: 0.85rem;
  color: var(--page-muted, var(--text-secondary));
}

@media (max-width: 768px) {
  .site-footer--contact .footer-card {
    gap: 2rem;
  }

  .site-footer--contact .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Workspace panel (logged in): the bar stacks the panel above the login button. */
.site-footer--contact .footer-bar .footer-workspace {
  flex-basis: 100%;
  margin-bottom: 0.5rem;
}
