/* Discovery across country, region, city, neighbourhood, landmark and campus guides. */
.ec-guide-navigation {
  position: sticky;
  top: var(--ec-guide-header, 84px);
  z-index: 15;
  border-block: 1px solid var(--ec-line);
  background: var(--ec-white);
}
.ec-guide-navigation .web-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ec-guide-nav-links {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-width: 0;
}
.ec-guide-nav-links a {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 56px;
  border-bottom: 2px solid transparent;
  font: 700 13px/1.5 var(--ec-font-heading);
  color: var(--ec-muted);
  white-space: nowrap;
}
.ec-guide-nav-links a[aria-current='location'] {
  border-color: var(--ec-plum);
  color: var(--ec-plum);
}
.ec-guide-nav-links a:hover {
  color: var(--ec-plum);
}
.ec-guide-navigation time {
  flex: none;
  font-size: 11px;
  color: var(--ec-muted);
}
.ec-guide-navigation ~ * section[id],
.ec-city-guide section[id],
.ec-city-guide .web-section[id],
.location-page section[id],
.ec-hub-page section[id] {
  scroll-margin-top: 175px;
}
.ec-guide-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.ec-guide-controls .ec-hub-search {
  width: 320px;
  flex: 1 1 240px;
}
.ec-guide-control-right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.ec-guide-controls .ec-app-select {
  min-width: 180px;
}
.ec-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ec-guide-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-pill);
  background: var(--ec-white);
  color: var(--ec-muted);
  font: 700 12px/1.4 var(--ec-font-heading);
  transition:
    background var(--ec-duration),
    border-color var(--ec-duration);
}
.ec-guide-chips button[aria-pressed='true'] {
  background: var(--ec-plum);
  color: var(--ec-white);
  border-color: var(--ec-plum);
}
.ec-guide-chips button:hover {
  border-color: var(--ec-plum);
}
.ec-guide-chips small {
  font: 400 11px/1.3 var(--ec-font-body);
  opacity: 0.8;
}
.ec-guide-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ec-guide-place-grid > li {
  min-width: 0;
}
.ec-guide-place-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius-card);
  background: var(--ec-white);
  transition:
    background var(--ec-duration),
    border-color var(--ec-duration);
}
.ec-guide-place-card:hover {
  border-color: var(--ec-mauve);
  background: var(--ec-cream);
}
.ec-guide-place-card svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.ec-guide-place-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  color: var(--ec-plum);
  background: var(--ec-cream);
}
.ec-guide-place-copy {
  min-width: 0;
  flex: 1;
}
.ec-guide-place-copy strong {
  display: block;
  font: 700 14px/1.5 var(--ec-font-heading);
  color: var(--ec-plum);
  overflow-wrap: anywhere;
}
.ec-guide-place-copy small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ec-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ec-guide-place-card > svg {
  color: var(--ec-plum);
}
.ec-guide-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.ec-guide-more button svg {
  width: 18px;
  height: 18px;
}
.ec-guide-more button[aria-expanded='true'] svg {
  transform: rotate(180deg);
}
.ec-guide-homes .listing-grid {
  align-items: stretch;
}
.ec-guide-homes .ec-discovery-card,
.ec-guide-homes .ec-home-card,
.ec-guide-homes .ec-home-card > a {
  height: 100%;
}
.ec-guide-homes .ec-home-card > a {
  display: flex;
  flex-direction: column;
}
.ec-guide-homes .ec-home-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ec-guide-homes .ec-home-price {
  margin-top: auto;
}
.ec-guide-result-note {
  margin-bottom: 18px;
  color: var(--ec-muted);
  font-size: 12px;
}
.ec-guide-summary {
  margin-bottom: 20px;
}
.ec-guide-summary p {
  color: var(--ec-muted);
  font-size: 15px;
  line-height: 1.85;
}
.ec-guide-summary button {
  border: 0;
  background: transparent;
  color: var(--ec-plum);
  font: 700 12px/1.5 var(--ec-font-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
  min-height: 44px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ec-guide-summary button svg {
  width: 16px;
  height: 16px;
}
.ec-guide-summary [data-collapsed='true'] {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ec-city-guide .ec-city-hero-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
}
.ec-city-guide .ec-city-title-lead {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
.ec-city-guide .ec-city-title-place {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.14;
}
.ec-city-guide .ec-city-content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
}
.ec-city-guide .ec-city-snapshot {
  padding: 28px;
}
.ec-city-guide .ec-city-stay {
  top: 172px;
}
.ec-city-guide .ec-city-homes {
  border-bottom: 1px solid var(--ec-line);
}
.ec-guide-location .location-hero {
  padding-top: 24px;
  padding-bottom: 40px;
}
.ec-guide-location .location-hero-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
}
.ec-guide-location h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.2;
}
.ec-guide-location .ec-hub-title-place {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.2;
}
.ec-guide-location .ec-hub-title-lead {
  font-size: 20px;
}
.ec-guide-location .ec-guide-summary {
  max-width: 850px;
  margin-top: 16px;
}
.ec-guide-location .location-next {
  background: var(--ec-cream);
  padding: 28px;
}
.ec-guide-location .location-description {
  font-size: 15px;
  line-height: 1.8;
}
.ec-guide-location .location-facts {
  gap: 20px 28px;
}
.ec-guide-location .location-facts > div {
  min-width: 0;
}
.ec-guide-location .location-facts dt {
  font-size: 11px;
}
.ec-guide-location .location-facts dd {
  font-size: 20px;
}
.ec-guide-directory-stack {
  display: grid;
  gap: 36px;
}
.ec-guide-directory-stack > section > h3 {
  margin-bottom: 18px;
  font-size: 20px;
}
.ec-campus-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 24px 0;
}
.ec-campus-overview dt {
  font-size: 11px;
  color: var(--ec-muted);
}
.ec-campus-overview dd {
  margin: 5px 0 0;
  color: var(--ec-plum);
  font: 700 24px/1.3 var(--ec-font-heading);
}
.ec-campus-directory .ec-guide-place-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ec-campus-directory .ec-guide-place-copy strong {
  font-size: 15px;
}
@media (max-width: 1100px) {
  .ec-city-guide .ec-city-hero-grid,
  .ec-guide-location .location-hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
  .ec-city-guide .ec-city-content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
  .ec-guide-place-grid {
    grid-template-columns: 1fr;
  }
  .ec-campus-directory .ec-guide-place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .ec-city-guide .ec-city-hero-grid,
  .ec-city-guide .ec-city-content-grid,
  .ec-guide-location .location-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ec-city-guide .ec-city-title-lead {
    font-size: 19px;
  }
  .ec-city-guide .ec-city-title-place {
    font-size: 40px;
  }
  .ec-guide-navigation time {
    display: none;
  }
  .ec-guide-nav-links {
    gap: 24px;
  }
  .ec-guide-nav-links a {
    font-size: 12px;
    min-height: 52px;
  }
  .ec-guide-place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ec-guide-chips button {
    min-height: 44px;
  }
  .ec-city-guide .ec-city-stay {
    position: static;
  }
}
@media (max-width: 540px) {
  .ec-campus-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .ec-campus-overview dd {
    font-size: 20px;
  }
  .ec-guide-place-grid,
  .ec-campus-directory .ec-guide-place-grid {
    grid-template-columns: 1fr;
  }
  .ec-guide-place-card {
    min-height: 88px;
    padding: 16px;
  }
  .ec-guide-controls {
    align-items: stretch;
  }
  .ec-guide-controls .ec-hub-search {
    flex-basis: 100%;
  }
  .ec-guide-control-right {
    width: 100%;
    justify-content: space-between;
  }
  .ec-guide-controls .ec-app-select {
    min-width: 180px;
    flex: 1;
  }
  .ec-city-guide .ec-city-title-lead {
    font-size: 17px;
  }
  .ec-city-guide .ec-city-title-place {
    font-size: 36px;
  }
  .ec-city-guide .ec-city-snapshot,
  .ec-guide-location .location-next {
    padding: 20px;
  }
  .ec-guide-summary p {
    font-size: 14px;
  }
  .ec-guide-navigation ~ * section[id],
  .ec-city-guide section[id],
  .ec-city-guide .web-section[id],
  .location-page section[id],
  .ec-hub-page section[id] {
    scroll-margin-top: 150px;
  }
}
/* Avoid double offsets from the legacy marketplace anchor padding. */
html:has(.ec-guide-navigation) {
  scroll-padding-top: 0;
}
.ec-guide-pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--ec-line);
  margin-top: 28px;
  padding-top: 24px;
}
.ec-guide-pagination span {
  font-size: 12px;
  color: var(--ec-muted);
}
.ec-guide-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Reference-page framing shares the marketplace's tokens and never enters app flows. */
.ec-guide-preview-footer {
  padding: 40px 0;
  background: var(--ec-cream);
  border-top: 1px solid var(--ec-line);
}
.ec-guide-preview-footer p {
  font: 700 20px/1.5 var(--ec-font-heading);
  color: var(--ec-plum);
}
.ec-guide-preview-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 20px 0;
}
.ec-guide-preview-footer a {
  font-size: 13px;
  color: var(--ec-plum);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ec-guide-preview-footer small {
  color: var(--ec-muted);
}
.ec-preview-header .nav-wrap {
  gap: 20px;
}
@media (max-width: 600px) {
  .ec-preview-header .ec-badge {
    display: none;
  }
}
