/* =========================================
   EVENTS SECTION  (carpet tap -> popup)
========================================= */
.events-section { position: relative; width: 100%; background: #1c0810; }

.event-map {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;         /* image ka ratio (1440x2560) - hotspots isi par tike hain */
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.event-map > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- dim background ---------- */
.em-shade {                              /* poori screen dim (fixed) */
    position: fixed; inset: 0; z-index: 200;
    background: linear-gradient(rgba(28, 8, 16, .55), rgba(20, 6, 12, .85));
    opacity: 0; pointer-events: none;
    transition: opacity .45s ease;
}
.event-map.open .em-shade { opacity: 1; pointer-events: auto; }

/* ---------- knight pieces (tap points) ---------- */
.em-spot {
    position: absolute; z-index: 2;
    transform: translate(-50%, -50%);
    width: clamp(30px, 9vw, 40px); height: clamp(30px, 9vw, 40px);
    border: 0; border-radius: 50%; padding: 0;
    display: grid; place-items: center;
    background: rgba(255, 236, 200, .24);
    box-shadow: 0 0 0 1px rgba(231, 201, 131, .55);
    color: #fff8e6; font-size: clamp(18px, 5.4vw, 24px); line-height: 1;
    font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", serif;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
    cursor: pointer;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.em-spot::before {                       /* pulse ring */
    content: ""; position: absolute; inset: -2px; border-radius: 50%;
    border: 1.5px solid rgba(231, 201, 131, .95);
    animation: emPulse 1.9s ease-out infinite;
}
.em-spot.done { background: rgba(255, 217, 138, .38); box-shadow: 0 0 0 1.5px #ffd98a; }
.em-spot.done::before { animation: none; opacity: 0; }
.em-spot.done::after {
    content: "\2713"; position: absolute; top: -5px; right: -5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #ffd98a; color: #4a2b00; font-size: 9px; font-weight: 700;
    display: grid; place-items: center; font-family: Arial, sans-serif;
}
@keyframes emPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- first hint (white bubble) ---------- */
.em-hint {
    position: absolute; z-index: 2; left: 50%; top: 48.5%;
    transform: translateX(-50%);
    width: min(78%, 290px); padding: 10px 14px;
    text-align: center; border-radius: 10px;
    background: rgba(251, 243, 230, .96); color: #6b2737;
    border: 1px solid rgba(184, 137, 47, .45);
    font-family: "Cormorant Garamond", serif; font-weight: 600;
    font-size: clamp(12px, 3.5vw, 15px); line-height: 1.3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    pointer-events: none;
    animation: emFloat 2.4s ease-in-out infinite;
    transition: opacity .4s ease;
}
.em-hint::after {
    content: ""; position: absolute; left: 50%; bottom: -5px;
    width: 12px; height: 12px; background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.em-hint.hide { opacity: 0; animation: none; }
@keyframes emFloat { 50% { transform: translate(-50%, -5px); } }

/* ---------- POPUP BUBBLE ---------- */
/* screen ke beech mein: fixed + translate(-50%,-50%) */
.em-bubble {
    --c: #2f3f82;
    position: fixed; z-index: 201;
    left: 50%; top: 50%;
    width: min(calc(100vw - 48px), 340px);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    padding: 24px 22px 20px;
    text-align: center; color: #fff;
    background: var(--c);
    border: 1.5px solid rgba(231, 201, 131, .9);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55), inset 0 0 0 4px var(--c), inset 0 0 0 5px rgba(231, 201, 131, .5);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, -50%) scale(.8);
    transition: transform .45s cubic-bezier(.2, 1.25, .4, 1), opacity .25s ease, visibility 0s linear .45s;
}
.em-bubble.show {
    opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s;
}
.em-close {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #4a1f2c; color: #fff8e6;
    border: 1.5px solid #e7c983; padding: 0;
    font-size: 16px; line-height: 1; cursor: pointer;
    display: grid; place-items: center; font-family: Arial, sans-serif;
}
.em-title {
    padding: 0 26px;
    font-family: "Great Vibes", cursive; font-weight: 400;
    font-size: clamp(28px, 8.4vw, 36px); line-height: 1.05;
    text-shadow: 0 0 12px rgba(255, 255, 255, .55);
}
.em-date {
    margin-top: 4px;
    font-family: "Cormorant Garamond", serif; font-weight: 600;
    font-size: 15px; letter-spacing: 1.2px; opacity: .92;
}
.em-time, .em-venue {
    font-family: "Cormorant Garamond", serif; font-weight: 700;
    font-size: clamp(16px, 4.8vw, 19px); line-height: 1.25; margin-top: 4px;
}
.em-desc {
    margin-top: 9px;
    font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
    font-size: clamp(11.5px, 3.3vw, 13px); line-height: 1.35; opacity: .85;
}

/* ---------- FINAL EVENT CARD (4 khulne ke baad) ---------- */
.em-final {                             /* hamesha dikhta hai, map ke turant baad */
    background: linear-gradient(#fbf5ee, #f3e4e1);
}
.ef-card { padding: 22px 26px 46px; text-align: center; color: #5a2e3a; }
.ef-kicker { font-size: 10px; letter-spacing: 4px; font-weight: 700; color: #b0707f; }
.ef-card h3 {
    font-family: "Great Vibes", cursive; font-weight: 400;
    font-size: clamp(32px, 9.5vw, 42px); margin: 6px 0 22px;
}
.ef-card ul { list-style: none; text-align: left; max-width: 340px; margin: 0 auto; }
.ef-card li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 0; border-top: 1px solid rgba(90, 46, 58, .18);
}
.ef-card li:first-child { border-top: 0; }
.ef-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; }
.ef-card b { display: block; font-size: 19px; font-weight: 700; }
.ef-card small { display: block; font-size: 14.5px; opacity: .8; line-height: 1.35; }

/* tablet/desktop: column width style.css (.mobile-content) se aati hai */


/* =========================================
   TRANSITIONS  -  ek hi motif: Mughal mehrab (arch)
   - Parchment ka ivory (#ead6c0) events ke upar tak chalta hai.
   - Photo ka upar ka kinara mehrab ki shape mein kata hai + gold line,
     upar lotus kalash (parchment arches jaisa).
   - Summary card ka upar bhi mehrab, jo pool ke upar chadhta hai.
========================================= */
.events-section { background: #ead6c0; }

.ev-intro {
    display: flex; justify-content: center;
    padding: 34px 0 0;
    margin-bottom: -4px;
    position: relative; z-index: 2;
}
.ev-lotus {
    display: block;
    width: 46px; aspect-ratio: 100 / 62;
    background: url("../Images/ornament-lotus.svg?v=20261022b") center / contain no-repeat;
}

/* photo ka upar kinara mehrab shape: sirf do kone ivory se dhake (rang nahi badalta) */
.ev-arch-line {
    position: absolute; left: 0; right: 0; top: -1px; height: 97px; z-index: 1;
    background:
        url("../Images/arch-top-line.svg?v=20261022b") center / 100% 100% no-repeat,
        url("../Images/arch-top-corners.svg?v=20261022b") center / 100% 100% no-repeat;
    pointer-events: none;
}

/* summary card ka mehrab-top */
.ev-outro {
    position: relative; z-index: 3;
    height: 84px; margin-top: -84px;
    pointer-events: none;
}
.ev-arch-fill {
    position: absolute; inset: 0 0 -1px;
    background: url("../Images/arch-top-fill.svg?v=20261022b") center / 100% 100% no-repeat;
}
.ev-outro .ev-arch-line {
    height: 100%; top: 0;
    background: url("../Images/arch-top-line.svg?v=20261022b") center / 100% 100% no-repeat;
}
.ev-outro .ev-lotus {
    position: absolute; left: 50%; top: -25px;
    margin-left: -23px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
}
.em-final { position: relative; z-index: 3; margin-top: -1px; }
.ef-card { padding-top: 10px; }
