/* css/events.css — /events listing + /events/<slug> page */
.ev-wrap { max-width: 1120px; margin: 0 auto; padding: 132px 24px 80px; color: #3a3330; font-family: 'DM Sans', 'Inter', sans-serif; }
.ev-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a09890; margin: 0 0 12px; }
.ev-h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0 0 12px; color: #1a1714; }
.ev-lede { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 20px; color: #7a6f68; margin: 0 0 28px; line-height: 1.4; }
.ev-muted { color: #8a7f76; font-size: 14px; line-height: 1.7; }

/* Listing */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.ev-card { display: block; text-decoration: none; color: inherit; }
.ev-card__img { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #efe6dc, #e3d6c8); position: relative; }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ev-card:hover .ev-card__img img { transform: scale(1.03); }
.ev-card__tag { position: absolute; top: 14px; left: 14px; background: rgba(250, 249, 246, .92); border-radius: 999px; padding: 6px 12px; font-size: 11px; letter-spacing: .06em; color: #3a3330; }
.ev-card__date { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a09890; margin: 16px 0 6px; }
.ev-card__title { font-family: 'Cormorant Garamond', Georgia, serif !important; font-weight: 400 !important; font-size: 26px; line-height: 1.15; margin: 0 0 6px; color: #1a1714; }
.ev-card__meta { font-size: 13px; color: #7a6f68; }
.ev-empty { margin-top: 40px; padding: 48px 24px; border: 1px dashed #d8cfc4; border-radius: 12px; text-align: center; }

/* Event page */
.ev-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ev-cover { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #efe6dc, #e3d6c8); position: sticky; top: 108px; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Gallery */
.ev-media { position: sticky; top: 108px; min-width: 0; }
.ev-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; background: linear-gradient(160deg, #efe6dc, #e3d6c8); scrollbar-width: none; aspect-ratio: 1 / 1; }
.ev-slides::-webkit-scrollbar { display: none; }
.ev-slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.ev-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-slide figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(250, 249, 246, .92); border-radius: 999px; padding: 7px 14px; font-size: 12px; letter-spacing: .04em; color: #3a3330; }
.ev-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.ev-thumbs button { padding: 0; border: 1px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: #efe6dc; cursor: pointer; opacity: .6; transition: opacity .2s; }
.ev-thumbs button.on, .ev-thumbs button:hover { opacity: 1; border-color: #3a3330; }
.ev-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo sections */
.ev-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 32px; }
.ev-tiles.is-one { grid-template-columns: 1fr; }
.ev-tile { border-radius: 12px; overflow: hidden; background: #f7f3ee; }
.ev-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ev-tiles.is-one .ev-tile img { aspect-ratio: 16 / 10; }
.ev-tile__t { padding: 12px 14px 14px; }
.ev-tile__t strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 21px; color: #1a1714; line-height: 1.15; }
.ev-tile__t span { display: block; font-size: 13px; color: #6b5f56; line-height: 1.5; margin-top: 4px; }

/* Reminder opt-in */
.ev-remind { border: 1px dashed #d8cfc4; border-radius: 14px; padding: 16px 18px; margin: -16px 0 32px; }
.ev-remind__t { font-size: 14px; color: #5a4f48; margin: 0 0 10px; line-height: 1.5; }
.ev-remind__t strong { color: #1a1714; font-weight: 500; }
.ev-remind__t:last-child { margin: 0; }
.ev-remind__row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.ev-remind input { padding: 11px 12px; border: 1px solid #e3dbd2; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: #3a3330; min-width: 0; }
.ev-remind button { padding: 11px 16px; border: 1px solid #1a1714; border-radius: 8px; background: #fff; color: #1a1714; font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ev-remind button:disabled { opacity: .5; }
.ev-remind__note { font-size: 12px; color: #8a7f76; margin: 8px 0 0; }

/* Sticky book bar (phones) */
.ev-sticky { display: none; }

.ev-facts { border-top: 1px solid #e8e2dc; border-bottom: 1px solid #e8e2dc; padding: 6px 0; margin: 0 0 24px; }
.ev-fact { display: flex; gap: 16px; padding: 12px 0; font-size: 14px; }
.ev-fact + .ev-fact { border-top: 1px solid #f0ece8; }
.ev-fact__k { width: 64px; flex-shrink: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a09890; padding-top: 2px; }
.ev-fact__v { color: #3a3330; line-height: 1.5; }
.ev-fact__v a { color: #3a3330; text-underline-offset: 3px; }
.ev-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ev-pair { margin: -8px 0 18px; font-size: 14px; color: #6b5f56; }
.ev-was { font-size: 20px; color: #a09890; text-decoration: line-through; margin-left: 6px; }
.ev-pair strong { color: #1a1714; font-weight: 500; }
.ev-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; color: #1a1714; }
.ev-spots { font-size: 13px; color: #7a6f68; }
.ev-spots.is-low { color: #b4563a; }

.ev-form { background: #f7f3ee; border-radius: 14px; padding: 22px; margin: 0 0 32px; }
.ev-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-form input, .ev-form select { width: 100%; padding: 12px 14px; border: 1px solid #e3dbd2; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: #3a3330; box-sizing: border-box; }
.ev-form input:focus, .ev-form select:focus { outline: none; border-color: #3a3330; }
.ev-form .span-2 { grid-column: span 2; }
.ev-btn { width: 100%; margin-top: 14px; padding: 16px; border: none; border-radius: 8px; background: #1a1714; color: #fff; font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.ev-btn:disabled { opacity: .5; cursor: not-allowed; }
.ev-btn--out { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
.ev-form__note { font-size: 12px; color: #8a7f76; margin: 12px 0 0; line-height: 1.5; text-align: center; }
.ev-form__err { font-size: 13px; color: #b4563a; margin: 10px 0 0; min-height: 0; }
.ev-closed { background: #f7f3ee; border-radius: 14px; padding: 22px; margin: 0 0 32px; font-size: 14px; line-height: 1.6; color: #5a4f48; }
.ev-closed strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 24px; color: #1a1714; margin-bottom: 4px; }

.ev-done { background: #f3f8ee; border-radius: 14px; padding: 24px; margin: 0 0 32px; }
.ev-done h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 30px; margin: 0 0 6px; color: #1a1714; }
.ev-done p { font-size: 14px; color: #5a4f48; margin: 0 0 16px; line-height: 1.6; }
.ev-done a { display: inline-block; padding: 12px 20px; border-radius: 8px; background: #1a1714; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.ev-section-t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a09890; margin: 0 0 10px; }
.ev-desc { font-size: 15px; line-height: 1.8; color: #4a423d; margin: 0 0 28px; white-space: pre-line; }
.ev-includes { list-style: none; padding: 0; margin: 0 0 28px; }
.ev-includes li { padding: 10px 0 10px 26px; position: relative; font-size: 14px; border-bottom: 1px solid #f0ece8; }
.ev-includes li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 1px; background: #a09890; }
.ev-policy { font-size: 13px; color: #8a7f76; line-height: 1.6; }

.ev-skel { height: 420px; border-radius: 14px; background: linear-gradient(90deg, #f0ebe5, #f7f3ee, #f0ebe5); background-size: 200% 100%; animation: evsk 1.4s infinite; }
@keyframes evsk { to { background-position: -200% 0; } }

@media (max-width: 860px) {
    .ev-wrap { padding: 104px 16px 64px; }
    .ev-layout { grid-template-columns: 1fr; gap: 24px; }
    .ev-cover { position: static; aspect-ratio: 1 / 1; }
    .ev-media { position: static; margin: 0 -16px; }
    .ev-slides { border-radius: 0; }
    .ev-thumbs { display: flex; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
    .ev-thumbs::-webkit-scrollbar { display: none; }
    .ev-thumbs button { flex: 0 0 52px; }
    .ev-tile__t strong { font-size: 19px; }
    .ev-sticky { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #faf9f6; border-top: 1px solid #e8e2dc; box-shadow: 0 -6px 20px rgba(0,0,0,.05); transition: transform .25s; }
    .ev-sticky.is-hidden { transform: translateY(110%); }
    .ev-sticky strong { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 26px; color: #1a1714; }
    .ev-sticky s { font-size: 14px; color: #a09890; margin-left: 4px; }
    .ev-sticky span { display: block; font-size: 11px; letter-spacing: .06em; color: #8a7f76; }
    .ev-sticky a { padding: 14px 22px; border-radius: 8px; background: #1a1714; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
    .ev-wrap { padding-bottom: 110px; }
    /* Lift the WhatsApp bubble above the sticky book bar */
    body:has(.ev-sticky:not(.is-hidden)) .whatsapp-float { bottom: 96px !important; transition: bottom .25s; }
    .ev-form__grid { grid-template-columns: 1fr; }
    .ev-form .span-2 { grid-column: span 1; }
    .ev-remind__row { grid-template-columns: 1fr 1fr; }
    .ev-remind button { grid-column: span 2; }
}

/* Upcoming / past sections on /events */
.ev-h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: #1a1714; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid #e8e2dc; }
.ev-h2:first-child { margin-top: 12px; padding-top: 0; border-top: 0; }
.ev-grid--past { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.ev-card--past .ev-card__img img { filter: saturate(.85); }
.ev-card--past .ev-card__title { font-size: 22px; }
