/* --------------------- Base --------------------- */

body.location-profile-page header,
body.location-profile-page #flash {
  margin-bottom: 0;
}

.location-profile,
.location-profile * {
  box-sizing: border-box;
}

.location-profile {
  --location-profile-card-gap: 20px;
  --location-profile-cards-per-row: 3;
  color: var(--color-font-primary);
  background: #ffffff;
  overflow-x: clip;
}

.location-profile a {
  text-decoration: none;
}

.location-profile :focus {
  outline: none;
}

.location-profile :focus-visible {
  outline: 2px solid var(--color-ambient-mint-dark);
  outline-offset: 3px;
}

/* --------------------- Hero --------------------- */

.location-profile__hero {
  width: 100%;
  max-width: var(--layout-outer-max-width);
  margin-inline: auto;
  background-color: #ffffff;
}

.location-profile__hero-content {
  position: relative;
  display: grid;
  padding-bottom: 0;
  padding-inline: var(--layout-inline-padding);
}

.location-profile__avatar-wrap {
  padding: 5px;
  border: 1px solid var(--color-ambient-mint-light-lowsaturation);
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(89, 69, 62, 0.08);
}

.location-profile__avatar-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.location-profile__avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
}

.location-profile__intro {
  min-width: 0;
}

.location-profile__title {
  margin: 0;
  color: var(--color-ambient-mint-dark);
  overflow-wrap: anywhere;
}

.location-profile__preserve-text {
  white-space: pre-wrap;
}

/* --------------------- Owner Actions --------------------- */

@media (min-width: 980px) {
  #location-profile-owner-actions {
    min-width: 280px;
    max-width: min(32rem, calc(100% - 2rem));
  }
}

.location-profile__body {
  margin-top: 22px;
  padding-top: 0;
}

.location-profile__tabs-frame {
  display: block;
}

/* --------------------- Tabs --------------------- */

.location-profile__tabs {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0;
  border-bottom: 1px solid var(--color-ambient-mint-light-lowsaturation);
}

.location-profile__tab-panel {
  position: relative;
  padding-top: 42px;
  padding-bottom: 54px;
  background-color: var(--color-ambient-bright);
}

.location-profile__tab-panel > :not(.location-profile__tab-loading) {
  transition: opacity 160ms ease;
}

.location-profile__tab-loading {
  --loading-indicator-size: 28px;
  --loading-indicator-border-width: 3px;

  position: absolute;
  z-index: 3;
  top: clamp(12px, 2vw, 24px);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 120ms ease, visibility 0s linear 120ms;
}

.location-profile__tabs-frame[busy] .location-profile__tab-loading {
  opacity: 1;
  visibility: visible;
  transition-delay: 120ms, 120ms;
}

.location-profile__tabs-frame[busy] .location-profile__tab-panel > :not(.location-profile__tab-loading) {
  opacity: 0.38;
  pointer-events: none;
}

.location-profile__tab-panel--overview {
  padding-top: 58px;
}

@media (prefers-reduced-motion: reduce) {
  .location-profile__tab-panel > :not(.location-profile__tab-loading),
  .location-profile__tab-loading {
    transition: none;
  }
}

/* --------------------- Page Layout --------------------- */

.location-profile__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin-top: 20px;
}

.location-profile__aside > .ribbon-box {
  margin-top: 20px;
}

.location-profile__aside-zuckerls {
  display: grid;
  gap: 18px;
  margin-top: 2px;
}

.location-profile__aside-zuckerls .cardBox {
  width: 100%;
  margin: 0;
  float: none;
}

.location-profile__goodie-login {
  font-style: italic;
}

.location-profile__goodie-login-links {
  display: inline-block;
  margin-top: 4px;
}

.location-profile__goodie-login a {
  text-decoration: underline;
}

.location-profile__goodie-login a:hover,
.location-profile__goodie-login a:focus {
  text-decoration: none;
}

.location-profile__card-group {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.location-profile__section--overview-preview {
  margin-top: 34px;
}

.location-profile__section--story + .location-profile__section--overview-preview,
.location-profile__story-item--category + .location-profile__section--overview-preview {
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--color-ambient-mint-light-lowsaturation) 55%, white);
}

.location-profile__section--overview-preview .location-profile__section-heading h2 {
  padding-right: 14px;
  border-right: 1px solid color-mix(in srgb, var(--color-ambient-mint-light-lowsaturation) 70%, white);
  color: var(--color-font-primary);
  font-weight: bold;
}

.location-profile__section--overview-preview .location-profile__section-heading {
  justify-content: flex-start;
  gap: 10px 14px;
}

/* --------------------- Sections --------------------- */

.location-profile__section {
  margin-bottom: 34px;
}

.location-profile__section--card-grid {
  width: 100%;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-inline-padding);
}

.location-profile__section:last-child {
  margin-bottom: 0;
}

.location-profile__stream {
  width: 100%;
  max-width: 650px;
  margin-inline: auto;
  padding-top: 0;
  border-top: 0;
}

.location-profile__stream .entryCreate,
.location-profile__stream .streamElement {
  margin-left: auto;
  margin-right: auto;
}

.location-profile__stream .location-profile__tab-heading {
  margin-bottom: 32px;
}

.location-profile__load-more {
  margin-top: 24px;
}

.location-profile .cardBox.-meeting:not(.-online) .graetzl-sideflag {
  display: none;
}

.location-profile__section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.location-profile__section-heading h2 {
  margin: 0;
  color: var(--color-font-primary);
}

.location-profile__tab-heading {
  margin: 0 0 16px;
  color: var(--color-font-secondary);
  font-weight: bold;
  line-height: 1.25;
}

.location-profile__section-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-ambient-mint-dark);
  text-decoration: none;
}

.location-profile__section-link:hover,
.location-profile__section-link:focus {
  text-decoration: underline;
}

/* --------------------- Story Cards --------------------- */

.location-profile__story-grid {
  display: grid;
  gap: 16px;
}

.location-profile__overview-slogan {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 0 0 6px;
}

.location-profile__description {
  --location-description-lines: 4;
}

.location-profile__description--extended {
  --location-description-lines: 20;
}

.location-profile__description-text {
  white-space: pre-wrap;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.location-profile__description-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--location-description-lines);
  overflow: hidden;
}

.location-profile__description-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: -moz-max-content;
  width: max-content;
  margin-top: 14px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ambient-mint-dark);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.location-profile__description-toggle[hidden] {
  display: none;
}

.location-profile__description-toggle:hover {
  color: var(--color-font-primary);
}

.location-profile__description-toggle .icon {
  width: 16px;
  height: 16px;
}

.location-profile__description-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.location-profile__story-item + .location-profile__story-item {
  margin-top: 34px;
}

.location-profile__story-item :where(h2, h3) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--color-font-secondary);
  font-weight: bold;
  line-height: 1.25;
}

.location-profile__story-item--category {
  --location-profile-category-icon-size: 32px;
  margin-top: 34px;
}

.location-profile__category-heading a {
  color: inherit;
  text-decoration: none;
}

.location-profile__category-heading a:hover,
.location-profile__category-heading a:focus {
  text-decoration: underline;
}

.location-profile__category-icon {
  width: var(--location-profile-category-icon-size);
  height: var(--location-profile-category-icon-size);
  flex: 0 0 var(--location-profile-category-icon-size);
  background-color: var(--color-ambient-mint-dark);
}

.location-profile__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  padding: 0;
  overflow: visible;
}

.location-profile__tags > li {
  float: none;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.location-profile__tags > .location-profile__tags-control {
  padding: 0;
  background: transparent;
}

.location-profile__tags-control button {
  display: block;
  max-width: 100%;
  padding: 6px 15px;
  border: 0;
  border-radius: 20px;
  background: var(--color-ambient-mint-light-lowsaturation);
  color: var(--color-font-primary);
  font: inherit;
  cursor: pointer;
}

.location-profile__tags-control button:hover {
  background: var(--color-ambient-mint-light);
}

.location-profile__story-item--wide {
  grid-column: 1 / -1;
}

/* --------------------- Card Grids --------------------- */

.location-profile__card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--location-profile-card-gap);
  align-items: start;
}

.location-profile__card-list--overview {
  gap: 18px;
}

.location-profile__card-list--featured {
  --location-profile-cards-per-row: 2;
}

.location-profile__card-list > * {
  min-width: 0;
}

.location-profile__card-list .cardBox {
  width: 100%;
  margin: 0;
  float: none;
}

.location-profile__card-list .coverImgWrapper > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.location-profile__card-list .coverImgWrapper > picture > .coverImg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* --------------------- Empty State --------------------- */

.location-profile__empty {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  border: 1px dashed var(--color-ambient-mint-light-lowsaturation);
  border-radius: 8px;
  background-color: var(--color-surface-white);
  color: var(--color-ambient-grey-dark);
}

.location-profile__empty .icon {
  width: 28px;
  height: 28px;
  color: var(--color-ambient-mint-dark);
  flex: 0 0 auto;
}

.location-profile__empty p {
  margin: 0;
}

/* --------------------- Responsive --------------------- */

@media (min-width: 650px) {
  .location-profile {
    --location-profile-cards-per-row: 2;
  }

  .location-profile__hero-content {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    padding-top: 0;
  }

  .location-profile__avatar-wrap {
    width: 136px;
    height: 136px;
    margin-top: -68px;
  }

  .location-profile__intro {
    padding-top: 16px;
  }

  .location-profile__body {
    margin-top: 30px;
  }

  .location-profile__aside {
    align-self: start;
    grid-area: sidebar;
    margin-top: 0;
    position: static;
  }

  .location-profile__main-content {
    grid-area: main;
  }

  .location-profile__story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-profile__card-list {
    grid-template-columns: repeat(var(--location-profile-cards-per-row), minmax(0, 1fr));
  }

}

@media (max-width: 979px) {
  .location-profile {
    --location-profile-card-gap: 16px;
  }

  .location-profile__tab-panel {
    padding-top: 28px;
  }

  .location-profile__tab-panel--overview {
    padding-top: 36px;
  }

  .location-profile__card-list--overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-profile__section {
    margin-bottom: 28px;
  }
}

@media (max-width: 649px) {
  .location-profile {
    --location-profile-card-gap: 14px;
  }

  .location-profile__tab-panel {
    padding-top: 22px;
  }

  .location-profile__tab-panel--overview {
    padding-top: 28px;
  }

  .location-profile__hero-content {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
    padding-top: 0;
  }

  .location-profile__avatar-wrap {
    width: 88px;
    height: 88px;
    margin-top: -44px;
  }

  .location-profile__intro {
    padding-top: 10px;
  }

  .location-profile__section {
    margin-bottom: 24px;
  }

  .location-profile__section-heading {
    gap: 8px 12px;
    margin-bottom: 14px;
  }
}

@media (min-width: 980px) {
  .location-profile {
    --location-profile-cards-per-row: 3;
  }

  .location-profile__hero-content {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .location-profile__intro {
    width: 100%;
    padding-top: clamp(14px, 1.8vw, 26px);
  }

  .location-profile__avatar-wrap {
    width: 220px;
    height: 220px;
    margin-top: -110px;
    padding: 6px;
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(89, 69, 62, 0.1);
  }

  .location-profile__body {
    margin-top: 32px;
  }

  .location-profile__tab-panel {
    padding-bottom: 70px;
  }

  .location-profile__section--card-grid {
    padding-inline: 0;
  }

  .location-profile__section--card-grid .location-profile__tab-heading {
    padding-inline: var(--layout-inline-padding);
  }

  .location-profile__card-list {
    grid-template-columns: repeat(var(--location-profile-cards-per-row), minmax(0, 1fr));
  }

  .location-profile__card-list--overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
