/* Retention v3: photo-based, non-overlapping CTA; only when DEV flag enabled. */
body.aicity-store-detail-page .store_hero_shell.has-retention-v3 .aicity-store-mock-category,
body.aicity-store-detail-page .store_hero_shell.has-retention-v3 .store_hero_title{
  display:none!important;
}
.aicity-retention-v3{
  margin:10px 12px 12px;
  color:#273c36;
  min-width:0;
}
.aicity-retention-v3__photo{
  position:relative;
  overflow:hidden;
  border-radius:15px;
  height:295px;
  background:#23463f;
  box-shadow:0 6px 21px rgba(25,45,42,.11);
}
.aicity-retention-v3__image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  /* Brighten only illustrative photos; owner photographs are outside this selector. */
  filter:brightness(1.12) saturate(1.05);
}
.aicity-retention-v3__shade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(10,25,27,.64),rgba(10,25,27,.025) 72%),
             linear-gradient(90deg,rgba(18,28,25,.16),transparent 64%);
}
.aicity-retention-v3__topbar{
  position:absolute;
  inset:12px 12px auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.aicity-retention-v3__category{
  display:inline-block;
  max-width:44%;
  border-radius:30px;
  background:rgba(255,255,255,.95);
  padding:6px 11px;
  color:#245644;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
  overflow-wrap:anywhere;
}
.aicity-retention-v3__disclaimer{
  display:inline-block;
  max-width:54%;
  color:#fff;
  border-radius:5px;
  background:rgba(22,30,29,.72);
  padding:5px 8px;
  font-size:10px;
  line-height:1.4;
  font-weight:650;
  text-align:right;
}
.aicity-retention-v3__photo-copy{
  position:absolute;
  bottom:21px;
  left:20px;
  right:20px;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.46);
}
.aicity-retention-v3__city{
  font-size:11px;
  font-weight:800;
}
body.aicity-store-detail-page #main .store_hero_shell.has-retention-v3 .aicity-retention-v3__name,
body.aicity-store-detail-page #main .store_hero_shell.has-retention-v3 .aicity-retention-v3__name.aicity-share-title-with-button{
  display:block!important;
  width:100%!important;
  margin:8px 0 7px!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  font-size:clamp(21px,3vw,31px)!important;
  font-weight:850!important;
  line-height:1.3!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:0 2px 9px rgba(0,0,0,.43)!important;
  overflow-wrap:anywhere;
}
.aicity-retention-v3__name::before{display:none!important;}
.aicity-retention-v3__tagline{
  margin:0!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:650!important;
}
.aicity-retention-v3__share-slot{
  display:flex;
  justify-content:flex-end;
  min-height:0;
  margin:6px 3px 6px;
}
.aicity-retention-v3__share-slot:empty{display:none;}
.aicity-retention-v3__share-slot .aicity-share-top-btn{
  position:static!important;
  display:inline-flex!important;
  transform:none!important;
  margin:0!important;
  color:#335248!important;
  background:#fff!important;
  border:1px solid #d9e7df!important;
  box-shadow:none!important;
}
.aicity-retention-v3__ugc{
  margin:11px 0 0;
  padding:15px 17px;
  border-radius:13px;
  background:#fff;
  border:1px solid #dce8e1;
  box-shadow:0 3px 13px rgba(36,54,46,.06);
}
.aicity-retention-v3__ugc-heading{text-align:center;}
.aicity-retention-v3__ugc-heading span{
  color:#5e826e;
  display:block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
}
body.aicity-store-detail-page .aicity-retention-v3__ugc-heading h3{
  margin:4px 0 4px!important;
  color:#24483a!important;
  font-size:17px!important;
  line-height:1.45!important;
  font-weight:800!important;
}
.aicity-retention-v3__ugc-heading p{
  margin:0!important;
  color:#688076!important;
  font-size:11px!important;
  line-height:1.5!important;
}
.aicity-retention-v3__ugc-counts{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:12px 0;
  color:#475e55;
  font-weight:750;
  font-size:12px;
}
.aicity-retention-v3__ugc-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.aicity-retention-v3__ugc-action{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none!important;
  border:1px solid #a5cfb7;
  background:#eefaf2;
  color:#145e44!important;
  font-size:12px;
  font-weight:850;
  line-height:1.35;
  text-align:center;
  box-sizing:border-box;
  white-space:normal;
}
.aicity-retention-v3__ugc-action:hover,
.aicity-retention-v3__ugc-action:focus{filter:brightness(.96);text-decoration:none;}
.aicity-retention-v3__ugc--no-review-no-photo .aicity-retention-v3__ugc-action:first-child,
.aicity-retention-v3__ugc--review-no-photo .aicity-retention-v3__ugc-action:nth-child(2),
.aicity-retention-v3__ugc--no-review-photo .aicity-retention-v3__ugc-action:nth-child(2){
  background:#ef784f;
  color:#fff!important;
  border-color:#ed784c;
  box-shadow:0 2px 7px rgba(229,93,50,.15);
}
.aicity-retention-v3__ugc--review-no-photo .aicity-retention-v3__ugc-action:last-child,
.aicity-retention-v3__ugc--no-review-photo .aicity-retention-v3__ugc-action:last-child,
.aicity-retention-v3__ugc--review-photo .aicity-retention-v3__ugc-action:nth-child(n+3){
  background:#fff;
  border-color:#d7e2db;
  color:#4c6458!important;
  min-height:36px;
}
.aicity-retention-v3__real-photo-cta{
  margin:12px 14px;
}
@media(max-width:767px){
  .aicity-retention-v3{margin:8px 9px 11px;}
  .aicity-retention-v3__photo{height:250px;border-radius:12px;}
  .aicity-retention-v3__topbar{top:10px;left:10px;right:10px;}
  .aicity-retention-v3__category{padding:5px 8px;font-size:10px;}
  .aicity-retention-v3__disclaimer{font-size:9px;padding:5px 6px;}
  .aicity-retention-v3__photo-copy{left:14px;right:14px;bottom:17px;}
  body.aicity-store-detail-page #main .store_hero_shell.has-retention-v3 .aicity-retention-v3__name{font-size:24px!important;}
  .aicity-retention-v3__ugc{padding:12px 12px 13px;margin-top:11px;}
  .aicity-retention-v3__ugc-heading h3{font-size:16px!important;}
  .aicity-retention-v3__ugc-actions{gap:7px;}
  .aicity-retention-v3__ugc-action{min-height:46px;font-size:12px;padding:7px 5px;}
  .aicity-retention-v3__real-photo-cta{margin:11px 9px;}
}
@media(max-width:359px){
  .aicity-retention-v3__disclaimer{max-width:55%;font-size:8px;}
  .aicity-retention-v3__ugc-action{font-size:11px;}
}

/* Override inherited store hero h2+p treatment; the photo caption stays readable. */
body.aicity-store-detail-page #main .store_hero_shell.has-retention-v3 .aicity-retention-v3__tagline {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
