/* Almaty NOW v1.8 — photo-first cards with light, readable information panels. */
:root{--card-ink:#1a2349;--card-secondary:#596984;--card-accent:#7346df;--card-border:#e7e5f1}

/* Discovery tiles: showcase the photo on top, protect place details on a white panel. */
.v14-tour-grid{gap:13px!important;align-items:stretch}
.v14-visual{
  min-height:328px!important;padding:0!important;overflow:hidden!important;
  border:1px solid var(--card-border)!important;border-radius:23px!important;
  background:#f7f7fb!important;box-shadow:0 11px 28px rgba(29,38,82,.105)!important;
  justify-content:space-between;transform:translateZ(0);
  transition:transform .2s ease,box-shadow .2s ease!important;
}
.v14-visual:hover{box-shadow:0 16px 36px rgba(29,38,82,.16)!important;transform:translateY(-2px)}
.v14-visual:active{transform:scale(.99)!important}
.v14-visual:focus-within{outline:2px solid #a89af0;outline-offset:2px}
.v14-visual>img{
  top:0!important;bottom:auto!important;left:0!important;right:0!important;
  width:100%!important;height:62%!important;object-fit:cover!important;object-position:center!important;
  filter:saturate(1.06) contrast(1.01)!important;
}
.v14-visual:before{
  top:0!important;bottom:auto!important;height:62%!important;
  background:linear-gradient(180deg,rgba(16,21,54,.30),rgba(16,21,54,0) 54%,rgba(16,21,54,.13))!important;
}
.v14-visual .v14-photo-top{width:100%;padding:11px 11px 0;position:relative;z-index:1}
.v14-photo-tag{background:#ffffffed!important;color:#5634a8!important;font-size:10px!important;line-height:1.25!important;padding:6px 9px!important;box-shadow:0 3px 11px #1d245c1d!important;max-width:calc(100% - 44px)!important}
.v14-visual>.v14-photo-top+.v14-visual-copy{
  position:relative;z-index:1;width:100%;margin:0;
  padding:13px 13px 12px;background:#fffffff5;
  border-radius:20px 20px 0 0;box-shadow:0 -7px 22px rgba(26,30,60,.055);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
}
.v14-visual-copy h3{font-size:16px!important;line-height:1.18!important;font-weight:830!important;letter-spacing:-.28px;
  margin:0 0 6px!important;text-shadow:none!important;color:var(--card-ink)!important;overflow-wrap:anywhere;
}
.v14-visual-copy p{
  font-size:11px!important;line-height:1.43!important;max-height:3.92em!important;overflow:hidden!important;
  margin:0!important;color:var(--card-secondary)!important;text-shadow:none!important;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
}
.v14-visual .v14-bottom-row{margin-top:11px;align-items:center;gap:7px}
.v14-visual .v14-photo-placeholder{font-size:10px;line-height:1.24;color:#757f9c;opacity:1;font-weight:650}
.v14-visual .v14-circle{
  flex:0 0 33px;width:33px;height:33px;border-radius:50%;
  background:#eee9fe!important;color:#6541c2!important;border:1px solid #e2dafb;
  box-shadow:none!important;font-size:24px;font-weight:750;
}
.v14-visual .v14-fave{width:37px;height:37px;background:#20274cb3;border:1px solid #ffffff69;box-shadow:0 5px 16px #0002}
.v14-visual .v14-fave.on{background:#5f2ca7c9;color:#fff}

/* Event and place cards. Photos occupy 37% of the width on mobile and text stays bright. */
.card:not(.v14-visual){
  border:1px solid #e6e5f0!important;border-radius:21px!important;
  box-shadow:0 8px 26px rgba(27,30,77,.075)!important;
  background:#fff!important;min-height:176px;align-items:stretch;
  transition:box-shadow .18s ease,transform .18s ease;
}
.card:not(.v14-visual):hover{box-shadow:0 13px 33px rgba(27,30,77,.11)!important}
.card:not(.v14-visual):focus-within{outline:2px solid #a89af0;outline-offset:2px}
.card:not(.v14-visual)>.thumb,
.card:not(.v14-visual)>.thumb.venue-thumb{
  flex:0 0 clamp(116px,35.5%,174px)!important;width:clamp(116px,35.5%,174px)!important;
  min-width:116px!important;padding:12px;overflow:hidden;
}
.thumb.has-photo{background-size:cover!important;background-position:center!important}
.thumb.has-photo::before{background:linear-gradient(180deg,rgba(9,13,47,.16),rgba(9,13,47,.28))!important}
.v14-place-thumb{isolation:isolate}
.v14-place-thumb:before{background:linear-gradient(180deg,rgba(10,20,54,.20),rgba(10,20,54,.28))!important;z-index:1}
.v14-place-photo{object-fit:cover;object-position:center;filter:saturate(1.05)}
.v14-photo-caption,.v14-categ-photo-tag,.v18-illustration-badge{
  background:rgba(26,34,66,.68)!important;color:#fff!important;
  font-size:10px!important;line-height:1.3!important;border-radius:9px!important;
  padding:5px 7px!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  font-weight:680!important;
}
.v14-illustrated-photo .v14-photo-caption{background:rgba(37,40,72,.73)!important}
.card:not(.v14-visual) .card-content{
  padding:15px 14px 14px!important;min-width:0;flex:1;
}
.card:not(.v14-visual) .kicker{color:#6e48d2;font-size:11px;font-weight:790;line-height:1.3;margin-bottom:6px}
.card:not(.v14-visual) .card-title{font-size:16px!important;line-height:1.2!important;color:var(--card-ink);letter-spacing:-.25px;overflow-wrap:anywhere}
.card:not(.v14-visual) .detail,.card:not(.v14-visual) .open-desc{color:var(--card-secondary)!important;line-height:1.38;font-size:11px!important}
.card:not(.v14-visual) .open-desc{
  max-height:4.2em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
}
.card:not(.v14-visual) .bottom{flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:11px}
.card:not(.v14-visual) .actions{display:flex;gap:7px;margin-left:auto;flex-shrink:0}
.card:not(.v14-visual) .heart{
  border-radius:12px;min-width:35px;height:35px;font-size:19px;background:#f1eef8;
}
.card:not(.v14-visual) .heart.on{background:#fee9f0;color:#ca4173}
.card:not(.v14-visual) .detailbtn{
  padding:10px 12px!important;background:#eeeafe!important;color:#5937b9!important;
  border-radius:12px!important;font-size:11px!important;font-weight:800!important;
}
.card:not(.v14-visual) .venuelabel{color:#8890a6;font-size:10px;max-width:100%}
.card:not(.v14-visual) .thumb-icon{font-size:29px;opacity:.65}

/* Discovery/nearby category controls remain clearly interactive. */
.v14-pill,.chip{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}
.v14-pill[aria-pressed="true"],.v14-pill.active{box-shadow:0 6px 19px #7443df38!important}
.v14-useful button{box-shadow:0 8px 24px #232a5a16!important;border-radius:18px!important}
.v14-useful-photo{height:100px!important}

@media(max-width:640px){
  .v14-tour-grid{gap:10px!important}
  .v14-visual{min-height:340px!important}
  .v14-visual>img,.v14-visual:before{height:60%!important}
  .v14-visual>.v14-photo-top+.v14-visual-copy{padding:11px 11px 11px}
  .v14-visual-copy h3{font-size:15px!important}
  .v14-visual-copy p{font-size:10.5px!important;-webkit-line-clamp:3}
  .v14-visual .v14-photo-placeholder{font-size:9.5px}
  .card:not(.v14-visual) .card-content{padding:13px 11px 12px!important}
  .card:not(.v14-visual) .card-title{font-size:15px!important}
  .card:not(.v14-visual)>.thumb,.card:not(.v14-visual)>.thumb.venue-thumb{
    flex-basis:clamp(118px,35%,156px)!important;width:clamp(118px,35%,156px)!important;
  }
}
@media(max-width:370px){
  .v14-visual{min-height:353px!important}
  .v14-tour-grid{gap:9px!important}
  .v14-visual .v14-photo-top{padding:8px 8px 0}
  .v14-visual>.v14-photo-top+.v14-visual-copy{padding:10px 9px}
  .v14-visual-copy h3{font-size:14px!important;letter-spacing:-.1px}
  .v14-visual-copy p{font-size:10px!important}
  .v14-visual .v14-photo-tag{font-size:9px!important;padding:5px 7px!important}
  .v14-visual .v14-fave{width:33px;height:33px}
  .card:not(.v14-visual) .detailbtn{font-size:10px!important;padding:9px 8px!important}
  .card:not(.v14-visual)>.thumb,.card:not(.v14-visual)>.thumb.venue-thumb{
    flex-basis:116px!important;width:116px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .v14-visual,.v14-visual>img,.card:not(.v14-visual),.v14-pill,.chip{transition:none!important}
}
