/*
 * Enhanced place cards.
 *
 * Presentation only: the semantic modifier is supplied by the entitlement
 * decorator after membership, order and pagination are already fixed.
 * Keep media sizing/cropping unchanged; inset framed text for readability.
 */

:root {
  --ec-enhanced-line: #a87824;
  --ec-enhanced-ring: rgba(168, 120, 36, .42);
  --ec-enhanced-wash: rgba(255, 248, 229, .78);
  --ec-enhanced-shadow: rgba(38, 49, 47, .14);
}

/* EnhancedListingRendererAdapter output. The modifier comes only from the
   native enhanced entitlement; editorial and owner signals keep their own UI. */
.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced {
  --ec-enhanced-card-ink: #173e34;
  --ec-enhanced-card-gold: #b18a45;
  --ec-enhanced-card-paper: #f5f0e5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: .25rem;
  background: linear-gradient(165deg, #fffdf8 18%, var(--ec-enhanced-card-paper) 100%);
  box-shadow: 0 0 0 1px rgba(177, 138, 69, .62), 0 1rem 2.4rem rgba(32, 59, 51, .12);
}

.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__visual {
  box-shadow: inset 0 -3px 0 var(--ec-enhanced-card-gold);
}

.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__body {
  padding: .85rem .75rem .75rem;
  background: linear-gradient(180deg, rgba(255, 248, 229, .56), rgba(255, 248, 229, 0) 9rem);
}

.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__body h3,
.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__action {
  color: var(--ec-enhanced-card-ink);
}

.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__action {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top-color: rgba(23, 62, 52, .28);
}

.ec33-chapter.ec33-business .ec33-card__enhanced {
  display: grid;
  gap: .55rem;
  width: 100%;
  margin: 0 0 .8rem;
}

.ec33-chapter.ec33-business .ec33-card__enhanced-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #425750;
  font-size: .78rem;
  line-height: 1.55;
}

.ec33-chapter.ec33-business .ec33-card__enhanced-facts {
  margin: 0;
  color: #536655;
  font-size: .64rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.ec33-chapter.ec33-business .ec33-card__enhanced-label {
  box-sizing: border-box;
  width: 100%;
  margin: .15rem 0 0;
  padding: .58rem .7rem;
  border-top: 2px solid var(--ec-enhanced-card-gold);
  background: var(--ec-enhanced-card-ink);
  color: #fffaf0;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
}

/* The acquisition link is not relevant once this exact card is enhanced. */
.ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .tcoc-card-link {
  display: none !important;
}

@media (max-width: 40rem) {
  .ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__body { padding: .75rem .65rem .65rem; }
  .ec33-chapter.ec33-business .ec33-card__enhanced { gap: .42rem; margin-bottom: .65rem; }
  .ec33-chapter.ec33-business .ec33-card__enhanced-summary { font-size: .74rem; line-height: 1.48; }
  .ec33-chapter.ec33-business .ec33-card__enhanced-label { padding: .52rem .62rem; }
}

@media (forced-colors: active) {
  .ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced {
    outline: 3px double CanvasText;
    outline-offset: 2px;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  .ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__visual { box-shadow: inset 0 -3px 0 CanvasText; }
  .ec33-chapter.ec33-business .ec33-card.ec33-card--enhanced .ec33-card__body,
  .ec33-chapter.ec33-business .ec33-card__enhanced-label { background: Canvas; color: CanvasText; }
}

/* Shared cards used by search, saved and related-place surfaces. */
.ec-public-visual .ec-card.ec-card--enhanced,
.ec-vivid .ec-card.ec-card--enhanced {
  border-color: var(--ec-enhanced-line);
  background: linear-gradient(155deg, #fff 35%, var(--ec-enhanced-wash) 100%);
  box-shadow:
    0 0 0 2px var(--ec-enhanced-ring),
    0 12px 28px var(--ec-enhanced-shadow);
}

.ec-card.ec-card--enhanced .ec-card__title {
  font-weight: 700;
}

/* Discover cards intentionally have no outer border in the base design. */
#main-content .ec-discover-card.ec-discover-card--enhanced {
  border-radius: 1rem;
  box-shadow:
    0 0 0 2px var(--ec-enhanced-ring),
    0 10px 24px var(--ec-enhanced-shadow);
}

#main-content .ec-discover-card.ec-discover-card--enhanced .ec-discover-card__body {
  padding: 1rem;
  background: linear-gradient(90deg, var(--ec-enhanced-wash), rgba(255, 255, 255, 0));
}

#main-content .ec-discover-card.ec-discover-card--enhanced h3 {
  font-weight: 750;
}

/* Atlas cards vary from open editorial tiles to bordered business cards. */
.ec-atlas-home .atlas-card.atlas-card--enhanced .atlas-card-image,
.atlas-card.atlas-card--enhanced .atlas-card-image {
  box-shadow:
    0 0 0 2px var(--ec-enhanced-ring),
    0 10px 24px var(--ec-enhanced-shadow);
}

.ec-atlas-home .atlas-card.atlas-card--enhanced .atlas-card-copy,
.atlas-card.atlas-card--enhanced .atlas-card-copy {
  background: linear-gradient(90deg, var(--ec-enhanced-wash), rgba(255, 255, 255, 0));
}

.ec-atlas-home .atlas-card.atlas-card--text.atlas-card--enhanced .atlas-card-copy,
.atlas-card.atlas-card--text.atlas-card--enhanced .atlas-card-copy {
  padding: .75rem;
  border-radius: .5rem;
  box-shadow:
    0 0 0 2px var(--ec-enhanced-ring),
    0 10px 24px var(--ec-enhanced-shadow);
}

.ec-atlas-home .atlas-card.atlas-card--enhanced h3,
.atlas-card.atlas-card--enhanced h3 {
  font-weight: 700;
}

.ec-business-hub .atlas-card.atlas-card--enhanced {
  border-color: var(--ec-enhanced-line);
  background: linear-gradient(155deg, #fff 35%, var(--ec-enhanced-wash) 100%);
  box-shadow:
    0 0 0 2px var(--ec-enhanced-ring),
    0 12px 28px var(--ec-enhanced-shadow);
}

@media (max-width: 360px) {
  .ec-atlas-home .atlas-card.atlas-card--text.atlas-card--enhanced h3 {
    font-size: 1.125rem;
    line-height: 1.3;
  }
}

@media (forced-colors: active) {
  .ec-card.ec-card--enhanced,
  #main-content .ec-discover-card.ec-discover-card--enhanced,
  .atlas-card.atlas-card--enhanced {
    outline: 3px double CanvasText;
    outline-offset: 2px;
  }

  .ec-card.ec-card--enhanced,
  #main-content .ec-discover-card.ec-discover-card--enhanced .ec-discover-card__media,
  #main-content .ec-discover-card.ec-discover-card--enhanced .ec-discover-card__body,
  .atlas-card.atlas-card--enhanced,
  .atlas-card.atlas-card--enhanced .atlas-card-image,
  .atlas-card.atlas-card--enhanced .atlas-card-copy {
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}


/* /* Crop marked home-card photos to their actual image frame, without changing originals. */
.ec33-business__grid .ec33-card__visual:has(> a > img[data-ec-original-aspect="true"]) {
  position: relative !important;
  aspect-ratio: 3 / 2 !important;
  overflow: hidden;
}

.ec33-business__grid .ec33-card__visual:has(> a > img[data-ec-original-aspect="true"]) > a {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ec33-business__grid .ec33-card__visual > a > img[data-ec-original-aspect="true"] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}
n/* Uniform cover crop for every homepage food/place card. */n#home-food .ec33-card__visualposition:relative!important;aspect-ratio:3/2!important;overflow:hidden!importantn#home-food .ec33-card__visual>a:first-childposition:absolute!important;inset:0!important;display:block!important;width:100
/* PORTAL4 home food cards: uniform 3:2 cover frames for every image. marker: portal4-home-card-cover-r4 */
#home-food .ec33-card__visual{position:relative!important;display:block!important;width:100%!important;height:auto!important;aspect-ratio:3/2!important;overflow:hidden!important}
#home-food .ec33-card__visual>a:first-of-type{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important}
#home-food .ec33-card__visual>a:first-of-type>img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}

#home-food .ec33-card__visual{aspect-ratio:3 / 2!important;height:auto!important;position:relative!important;overflow:hidden!important}
#home-food .ec33-card__visual > a:first-of-type{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;overflow:hidden!important}
#home-food .ec33-card__visual > a:first-of-type > img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:center center!important}
#main-content#main-content #home-food .ec33-card__visual img{object-fit:cover!important;transform:none!important}

html body.ec-home-portal #home-food .ec33-card.tc-featured-home .ec33-card__visual img{object-fit:cover!important;object-position:center center!important;transform:none!important}

html body.ec-home-portal #home-food#home-food .ec33-card.tc-featured-home .ec33-card__visual img{object-fit:cover!important;object-position:center center!important;transform:none!important}
