/* Public paint-night cards on a city page (paint-and-sip-belfast.html).
   Same look as the "What's on this month" cards on the homepage, without React.
   Filled by city-cards.js from events-data.js. */
.eec-sec{padding-bottom:clamp(10px,1.6vw,22px)!important}
.eec-sec + section{padding-top:clamp(34px,4vw,60px)!important}
.eec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:clamp(28px,3.2vw,44px);padding:0 0 14px;align-items:stretch}
.eec-grid:has(> :last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,374px));justify-content:center}
.eec-grid:has(> :only-child){grid-template-columns:minmax(0,374px);justify-content:center}

.eec-card{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:22px;box-shadow:10px 10px 0 #D3EB5A;color:#0F1F24;text-decoration:none;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;font-family:"Inter",system-ui,sans-serif;min-width:0}
.eec-card:nth-child(3n+2){box-shadow:10px 10px 0 #FF8FAE}
.eec-card:nth-child(3n+3){box-shadow:10px 10px 0 #F2C14E}
.eec-card:hover{transform:translateY(-5px);box-shadow:0 24px 48px rgba(8,40,54,.18)}
.eec-card.is-sold{cursor:default}
.eec-card.is-sold:hover{transform:none}

.eec-img{position:relative;aspect-ratio:4/3;background-size:cover;background-position:center;border-radius:22px 22px 0 0;overflow:hidden}
.eec-badges{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:calc(100% - 20px);display:flex;flex-wrap:wrap;justify-content:center;gap:5px 6px;z-index:2}
.eec-badge{position:relative;overflow:hidden;padding:6px 10px;border-radius:999px;background:#0A3645;color:#FBF6E8;border:1px solid rgba(255,253,246,.45);font-weight:800;font-size:9.5px;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

.eec-body{flex:1 1 auto;display:flex;flex-direction:column;gap:12px;padding:22px 24px 24px}
.eec-body h3{margin:0;font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:22px;line-height:1.15;letter-spacing:-.025em;color:#0A3645;text-align:center}
.eec-meta{display:flex;flex-direction:column;gap:6px;padding:6px 0;font-size:13.5px;line-height:1.6;color:rgba(15,31,36,.72)}
.eec-meta .eec-venue{min-height:2lh}
.eec-meta .eec-venue:has(+ .eec-perk){min-height:0}
.eec-btn{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;padding:14px 24px;border-radius:999px;border:2px solid transparent;background:#114C5F;color:#FFFDF6;font-weight:600;font-size:15px;line-height:1.2;transition:background .2s ease,box-shadow .2s ease}
.eec-card:hover .eec-btn{background:#1B7A8F;box-shadow:0 10px 24px rgba(17,76,95,.32)}
.eec-sold{margin-top:auto;text-align:center;padding:14px 24px;border-radius:999px;background:rgba(17,76,95,.1);color:rgba(10,54,69,.6);font-weight:700;font-size:15px}

/* ---- Festive touches (events-data.js: festive: "snow" | "sparkle") — same as the homepage cards ---- */
.eec-card.is-festive .eec-badge{animation:eec-glow 3.6s ease-in-out infinite}
.eec-card.is-festive .eec-badge::after{content:"";position:absolute;top:-40%;bottom:-40%;left:0;width:42%;background:linear-gradient(100deg,transparent 0%,rgba(255,253,246,.14) 35%,rgba(255,253,246,.6) 50%,rgba(255,253,246,.14) 65%,transparent 100%);transform:translateX(-180%) skewX(-18deg);animation:eec-sheen 5.5s ease-in-out 1.2s infinite;pointer-events:none}
.eec-card.is-festive .eec-badge + .eec-badge::after{animation-delay:1.9s}
@keyframes eec-sheen{0%{transform:translateX(-180%) skewX(-18deg)}28%,100%{transform:translateX(440%) skewX(-18deg)}}
@keyframes eec-glow{0%,100%{box-shadow:0 0 0 1px rgba(255,253,246,.25),0 0 8px 0 rgba(211,235,90,.2)}50%{box-shadow:0 0 0 1px rgba(255,253,246,.6),0 0 18px 2px rgba(211,235,90,.6)}}
.eec-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;border-radius:inherit}
.eec-fx-snow i{position:absolute;height:100%;width:var(--s);opacity:0;animation:eec-fall var(--t) linear infinite;animation-delay:calc(var(--d) * -1)}
.eec-fx-snow i::before{content:"";position:absolute;top:0;left:0;width:var(--s);height:var(--s);border-radius:50%;background:#fff;box-shadow:0 0 6px rgba(255,255,255,.7)}
.eec-fx-snow i:nth-child(3n)::before{filter:blur(1px);opacity:.8}
@keyframes eec-fall{0%{transform:translate3d(0,0,0);opacity:0}10%{opacity:.9}50%{transform:translate3d(12px,58%,0)}85%{opacity:.85}100%{transform:translate3d(-5px,116%,0);opacity:0}}
.eec-fx-sparkle i{position:absolute;font-style:normal;font-size:var(--s);line-height:1;color:#FFFDF6;opacity:0;text-shadow:0 0 8px rgba(255,253,246,.85);animation:eec-twinkle var(--t) ease-in-out var(--d) infinite}
.eec-fx-sparkle i::before{content:"\2726"}
.eec-fx-sparkle i:nth-child(even){color:#D3EB5A;text-shadow:0 0 8px rgba(211,235,90,.8)}
@keyframes eec-twinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0deg)}45%{opacity:.95;transform:scale(1) rotate(25deg)}60%{opacity:.8}}

/* ---- Booking pop-up (same look as the homepage one) ---- */
.eec-modal-bg{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px;background:rgba(8,65,76,.7);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);animation:eec-fade .2s;font-family:"Inter",system-ui,sans-serif}
.eec-modal{position:relative;display:flex;flex-direction:column;width:100%;max-width:580px;max-height:92vh;overflow:hidden;background:#FFFDF6;border-radius:28px;box-shadow:0 30px 70px rgba(0,0,0,.4);animation:eec-pop .25s cubic-bezier(.2,.8,.2,1)}
@keyframes eec-fade{from{opacity:0}to{opacity:1}}
@keyframes eec-pop{from{transform:translateY(20px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.eec-modal-close{position:absolute;top:14px;right:14px;z-index:4;width:38px;height:38px;padding:0;border:none;border-radius:999px;background:#FFFDF6;color:#0A3645;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.eec-modal-head{position:relative;flex:0 0 auto;aspect-ratio:16/8;background-size:cover;background-position:center}
.eec-modal-tint{position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(8,65,76,.92))}
.eec-modal-text{position:absolute;left:24px;right:24px;bottom:20px;z-index:2;display:flex;flex-direction:column;gap:3px;color:#FBF6E8}
.eec-modal-eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#D3EB5A}
.eec-modal-text h3{margin:0;font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.02em;color:#FBF6E8}
.eec-modal-text > span:last-child{font-size:13px;opacity:.88}
.eec-modal-body{padding:24px 26px 28px;overflow-y:auto}
.eec-modal-body h5{margin:0 0 14px;font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:17px;line-height:1.2;color:#0A3645}
.eec-ticks{list-style:none;margin:0 0 22px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px 22px}
.eec-ticks li{position:relative;margin:0;padding-left:28px;font-size:13.5px;line-height:1.45;color:#0A3645}
.eec-ticks li::before{content:"\2713";position:absolute;left:0;top:1px;width:19px;height:19px;border-radius:50%;background:#2F9E6B;color:#fff;font-size:12px;font-weight:800;line-height:19px;text-align:center}
.eec-date-rows{display:grid;gap:8px}
.eec-date-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:14px;background:#F3EAD0;border:1px solid rgba(17,76,95,.12)}
.eec-date-row b{font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:15.5px;color:#0A3645}
.eec-date-btn{display:inline-flex;align-items:center;padding:10px 18px;border-radius:999px;background:#114C5F;color:#FFFDF6;font-weight:600;font-size:13.5px;line-height:1.2;text-decoration:none;transition:background .2s ease}
.eec-date-btn:hover{background:#1B7A8F}
.eec-modal-fine{margin:12px 0 0;font-size:12px;line-height:1.5;color:rgba(17,76,95,.58)}
@media (max-width:560px){
  .eec-modal-bg{padding:14px}
  .eec-modal-body{padding:20px 20px 22px}
  .eec-ticks{grid-template-columns:1fr;gap:7px;margin-bottom:18px}
  .eec-ticks li{font-size:13px}
}

/* ---- Tablet: two across ---- */
@media (max-width:1000px){
  .eec-grid,.eec-grid:has(> :last-child:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
  .eec-grid:has(> :only-child){grid-template-columns:minmax(0,420px);justify-content:center}
}
/* ---- Phone: swipe through the cards, one in view with the next peeking in ---- */
@media (max-width:640px){
  .eec-grid,.eec-grid:has(> :last-child:nth-child(2)),.eec-grid:has(> :only-child){display:flex;justify-content:flex-start;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-left:calc(var(--pad,20px) * -1);margin-right:calc(var(--pad,20px) * -1);padding:6px var(--pad,20px) 16px;scroll-padding-inline:var(--pad,20px)}
  .eec-grid::-webkit-scrollbar{display:none}
  .eec-card{flex:0 0 calc(100% - 30px);scroll-snap-align:start;border-radius:20px;box-shadow:7px 7px 0 #D3EB5A}
  .eec-card:nth-child(3n+2){box-shadow:7px 7px 0 #FF8FAE}
  .eec-card:nth-child(3n+3){box-shadow:7px 7px 0 #F2C14E}
  .eec-grid:has(> :only-child) .eec-card{flex-basis:calc(100% - 7px)}
  .eec-card:hover{transform:none}
  .eec-img{border-radius:20px 20px 0 0;aspect-ratio:auto;height:215px}
  .eec-body{padding:16px 18px 18px;gap:9px}
  .eec-body h3{font-size:19px}
  .eec-meta{font-size:13px;gap:5px}
  .eec-meta .eec-venue{min-height:0}
  .eec-btn{font-size:14px;padding:13px 14px}
}
@media (prefers-reduced-motion:reduce){
  .eec-card,.eec-btn{transition:none}
  .eec-modal-bg,.eec-modal{animation:none}
  .eec-card.is-festive .eec-badge,.eec-card.is-festive .eec-badge::after,.eec-fx i{animation:none!important}
  .eec-fx-snow{display:none}
  .eec-fx-sparkle i{opacity:.75}
}
