.app-shell.rest-location-active .campus-detail {
  display: none;
}

.rest-location-marker {
  position: absolute;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(18rem, calc(100% - 2rem));
  padding: 0.48rem 0.72rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  background: #ad1930eb;
  border: 1px solid #fff8;
  border-radius: 999px;
  box-shadow: 0 0.45rem 1.2rem #3f0e1740;
  pointer-events: none;
  transform: translate(-50%, -125%);
}

.rest-location-marker::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 1.3rem;
  background: #ad1930;
  box-shadow: 0 0 0 1px #fff9;
  content: "";
  transform: translateX(-50%);
}

.rest-location-marker__dot {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0.18rem #ffffff42;
}

.rest-location-summary {
  position: absolute;
  z-index: 13;
  bottom: 3.15rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
  width: min(38rem, calc(100% - 3rem));
  min-height: 2.9rem;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  color: #36332e;
  background: #fffdf8f2;
  border: 1px solid #cfc4b4;
  border-left: 4px solid #ad1930;
  border-radius: 0.75rem;
  box-shadow: 0 0.55rem 1.5rem #36261b2e;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transform: translateX(-50%);
}

.rest-location-summary__text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rest-location-summary.is-expanded {
  align-items: flex-start;
}

.rest-location-summary.is-expanded .rest-location-summary__text {
  max-height: min(30vh, 12rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.08rem 0;
  text-overflow: clip;
  white-space: normal;
}

.rest-location-summary__name {
  color: #9f172b;
  font-weight: 800;
}

.rest-location-summary__expand {
  flex: 0 0 auto;
  min-width: 2.8rem;
  padding: 0.34rem 0.52rem;
  color: #9f172b;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #f5e7e9;
  border: 1px solid #d9afb6;
  border-radius: 999px;
}

.rest-location-summary__expand:hover,
.rest-location-summary__expand:focus-visible {
  color: #fff;
  background: #ad1930;
  border-color: #ad1930;
  outline: none;
}

.rest-location-summary__close {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  padding: 0;
  color: #6f675c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.rest-location-summary__close:hover,
.rest-location-summary__close:focus-visible {
  color: #fff;
  background: #ad1930;
  outline: none;
}

@media (width <= 760px) {
  .rest-location-marker {
    max-width: calc(100% - 1.5rem);
    font-size: 0.68rem;
  }

  .rest-location-summary {
    right: 0.75rem;
    bottom: 2.9rem;
    left: 0.75rem;
    width: auto;
    min-height: 2.65rem;
    padding: 0.42rem 0.38rem 0.42rem 0.7rem;
    transform: none;
  }

  .rest-location-summary__text {
    font-size: 0.7rem;
  }

  .rest-location-summary__expand {
    min-width: 2.55rem;
    padding: 0.32rem 0.42rem;
    font-size: 0.66rem;
  }
}

.campus-island--detail .rest-location-summary {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  min-height: 56px;
  gap: 6px;
  padding: 8px 8px 8px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.campus-island--detail .rest-location-summary__text {
  color: #504d4a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.campus-island--detail .rest-location-summary__name {
  color: #8e2335;
  font-weight: 600;
}

.campus-island--detail .rest-location-summary__location::before {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 9px;
  vertical-align: -0.05em;
  background: #c8bbb4;
  content: "";
}

.campus-island--detail .rest-location-summary.is-expanded {
  display: block;
  padding: 12px 16px 12px 18px;
}

.campus-island--detail .is-expanded .rest-location-summary__text {
  max-height: min(28vh, 11rem);
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.campus-island--detail .is-expanded .rest-location-summary__name {
  display: block;
  margin-bottom: 4px;
  padding-right: 88px;
  font-size: 13px;
  line-height: 1.45;
}

.campus-island--detail .is-expanded .rest-location-summary__location {
  display: block;
}

.campus-island--detail .is-expanded .rest-location-summary__location::before {
  display: none;
}

.campus-island--detail .is-expanded .rest-location-summary__expand {
  position: absolute;
  top: 6px;
  right: 48px;
}

.campus-island--detail .is-expanded .rest-location-summary__close {
  position: absolute;
  top: 6px;
  right: 7px;
}

.campus-island--detail .rest-location-summary__expand {
  min-width: 44px;
  min-height: 40px;
  padding: 0 8px;
  color: #941a30;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.campus-island--detail .rest-location-summary__expand:hover,
.campus-island--detail .rest-location-summary__expand:focus-visible {
  color: #941a30;
  background: rgba(148, 26, 48, 0.1);
}

.campus-island--detail .rest-location-summary__close {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

/* A small glass label travels with the selected rest location. */
.app-shell__scene > .rest-location-marker {
  z-index: 10;
  display: flex;
  width: 12px;
  height: 12px;
  max-width: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.app-shell__scene > .rest-location-marker .rest-location-marker__dot,
.app-shell__scene > .rest-location-marker > span:not(.rest-location-marker__dot) {
  display: none;
}

.app-shell__scene > .rest-location-marker::after {
  display: none;
}

.app-shell__scene > .rest-location-summary {
  --campus-lg-tint: rgba(255, 251, 246, .33);
  --campus-lg-shadow: 0 6px 20px rgba(60, 38, 32, .18), 0 1px 4px rgba(60, 38, 32, .08);
  position: absolute;
  z-index: 11;
  right: auto;
  bottom: auto;
  display: block;
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  max-width: min(218px, calc(100% - 24px));
  min-height: 0;
  padding: 0;
  color: #514946;
  background: rgba(255, 252, 248, .12);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 15px;
  box-shadow: var(--campus-lg-shadow);
  transform: none;
  animation: rest-location-rise 420ms cubic-bezier(.2, .8, .25, 1) both;
}

.app-shell__scene > .rest-location-summary:not(.campus-lg) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px 6px;
  padding: 7px 8px 7px 10px;
}

.app-shell__scene > .rest-location-summary > .campus-lg__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 2px 6px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 7px 8px 7px 10px;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__text {
  display: contents;
  margin: 0;
  padding: 0;
  color: #625a55;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__name {
  display: block;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #90283d;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__name::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  vertical-align: .12em;
  background: #a52a40;
  border-radius: 50%;
  content: "";
}

.app-shell__scene > .rest-location-summary .rest-location-summary__location {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  box-sizing: border-box;
  max-height: min(30vh, 180px);
  overflow-y: auto;
  margin-top: 0;
  padding-left: 11px;
  overflow-wrap: anywhere;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__close {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  color: #746963;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__close svg {
  width: 16px;
  height: 16px;
}

.app-shell__scene > .rest-location-summary .rest-location-summary__close:hover,
.app-shell__scene > .rest-location-summary .rest-location-summary__close:focus-visible {
  color: #90283d;
  background: rgba(154, 49, 65, .1);
}

.app-shell[data-input-modality="pointer"] .rest-location-summary button:focus-visible {
  outline: none;
}

.app-shell.rest-location-active .campus-map-label.is-rest-associated {
  visibility: hidden;
  pointer-events: none;
}

@keyframes rest-location-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell__scene > .rest-location-summary { animation: none; }
}

