/* Job 25: only what the festival page does not have: the Log in button and the login side panel
   (panel CSS ported from Foundry365's modal variant). Everything else is css/festival-report.css. */
html.lp-panel-open { overflow: hidden; }

.panel-root { position: fixed; inset: 0; z-index: 1700; }
.panel-root[hidden] { display: none; }
.panel-scrim { position: absolute; inset: 0; background: rgba(13,27,42,.34); backdrop-filter: blur(2px); animation: lp-fade .18s ease; }
@keyframes lp-fade { from { opacity: 0 } to { opacity: 1 } }
.panel { position: absolute; top: 0; right: 0; height: 100%; width: 420px; max-width: 100vw; background: #fff; box-shadow: -8px 0 40px rgba(13,27,42,.18); display: flex; flex-direction: column; animation: lp-slidein .24s cubic-bezier(.22,1,.36,1); }
@keyframes lp-slidein { from { transform: translateX(100%) } to { transform: translateX(0) } }
.panel__hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.panel__title { font-weight: 700; font-size: 15px; }
.panel__close { background: none; border: 0; font-size: 18px; color: #64748b; cursor: pointer; padding: 4px 8px; }
.panel__body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; }
.panel__body .am-login-card { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .panel, .panel-scrim { animation: none; } }

/* Footer content (copyright, Privacy, Terms, email) lives at the bottom of the panel on the logged-out home;
   the site footer stays hidden there (festival.css) so it never takes space from the search panel. */
.panel__ft { flex-shrink: 0; border-top: 1px solid #e2e8f0; padding: 16px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-family: 'DM Sans', system-ui, sans-serif; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.panel__ft-left, .panel__ft-right { display: flex; flex-direction: column; gap: 2px; }
.panel__ft-right { align-items: flex-end; text-align: right; }
.panel .panel__ft a { color: #64748b; text-decoration: none; }
.panel .panel__ft a:hover { color: #00A880; text-decoration: underline; }

/* "Sign in" in the header: same look as the active "All" pill (white on the dark bar; navy on the light mobile bar) */
.am-fixed-header .btn-am-ghost[data-open-panel] { background: #fff; border: 1px solid #fff; color: var(--am-navy); border-radius: 999px; padding: .32rem .9rem; font-size: .8rem; font-weight: 600; }
.am-fixed-header .btn-am-ghost[data-open-panel]:hover { background: #fff; border-color: rgba(255,255,255,.5); color: var(--am-navy); }
.am-nav .btn-am-ghost[data-open-panel] { background: var(--am-navy); border: 1px solid var(--am-navy); color: #fff; border-radius: 999px; padding: .32rem .9rem; font-size: .8rem; font-weight: 600; }
.am-nav .btn-am-ghost[data-open-panel]:hover { background: var(--am-navy-800); color: #fff; }

/* Landing top menu. First fold: one "Today's events" button (same look as the active "All" pill).
   Once the listing fold is in view (body.lp-in-listing): "Today" and "Tomorrow" pills instead, "All" hidden. */
.day-pill[data-day="all"] { display: none !important; }
#dayRailHeader, #dayRail { display: none !important; }
body.lp-in-listing #dayRailHeader { display: flex !important; }
body.lp-in-listing #dayRail { display: flex !important; }
body.lp-in-listing .am-today-btn { display: none !important; }
.am-today-btn { flex: 0 0 auto; text-decoration: none; cursor: pointer; }
.am-fh-inner .am-today-btn { margin-right: auto; }

/* "Search upcoming events" next to Today / Tomorrow: listing fold only, styled like Sign in */
.am-search-btn { display: none !important; flex: 0 0 auto; white-space: nowrap; }
body.lp-in-listing .am-search-btn { display: inline-flex !important; }
.am-fixed-header .am-search-btn { background: #fff; border: 1px solid #fff; color: var(--am-navy); border-radius: 999px; padding: .32rem .9rem; font-size: .8rem; font-weight: 600; margin-left: .5rem; }
.am-fixed-header .am-search-btn:hover { background: #fff; border-color: rgba(255,255,255,.5); color: var(--am-navy); }
.am-fh-inner { gap: .5rem; }
/* keep the pills and the search button together on the left; Sign in stays on the right */
.am-fixed-header #dayRailHeader { flex: 0 0 auto; }
.am-fixed-header .am-search-btn { margin-right: auto; }

/* Explore (city icon, as in the site menu) to the left of Sign in */
.am-explore-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-right: .5rem; border-radius: 50%; text-decoration: none; font-size: 1rem; color: rgba(255,255,255,.85); }
.am-explore-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.am-nav .am-explore-btn { color: var(--am-navy); }
.am-nav .am-explore-btn:hover { color: var(--am-navy); background: var(--am-slate-100); }
.am-fh-actions { display: flex; align-items: center; }

/* the festival link colour would turn these icons teal; keep them white (dark bar) / navy (light mobile bar) */
.am-fixed-header .am-explore-btn, .am-fixed-header .am-explore-btn i { color: rgba(255,255,255,.88); }
.am-fixed-header .am-explore-btn:hover, .am-fixed-header .am-explore-btn:hover i { color: #fff; }
.am-nav .am-explore-btn, .am-nav .am-explore-btn i { color: var(--am-navy); }

/* Button labels: .btn has font-family "DM Sans" with no fallback, so it renders serif; give every button on the page (except the login
   panel, which has its own styling) the same stack as the "Today's events" pill. */
body.page-festival button:not(.panel *), body.page-festival .btn:not(.panel *), body.page-festival .am-search-btn { font-family: "DM Sans", system-ui, sans-serif; }

/* Add event popup: one or more link fields */
.add-event-row { position: relative; margin-bottom: 8px; }
.add-event-row .form-control { padding-right: 2.2rem; }
.add-event-remove { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--am-slate); cursor: pointer; padding: 2px 6px; }
.add-event-remove:hover { color: var(--am-navy); }
.add-event-plus { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed var(--am-slate-300); background: none; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; font-weight: 600; color: var(--am-navy); cursor: pointer; font-family: "DM Sans", system-ui, sans-serif; }
.add-event-plus:hover:not(:disabled) { border-color: var(--am-teal); color: var(--am-teal-deep); }
.add-event-plus:disabled { opacity: .45; cursor: default; }

/* Add event popup: roomier (the festival's Coco popup is a compact 500px box) */
#cocoModal .modal-dialog { max-width: 680px; }
#cocoModal .modal-body { padding: .5rem 2.75rem 2.25rem; }
#cocoModal .coco-orb { margin-bottom: 1rem; }
#cocoModal h3 { font-size: 1.9rem; margin-bottom: .75rem !important; }
#cocoModal p.text-slate { font-size: 1.02rem; margin-bottom: 1.75rem; }
#cocoModal .add-event-row { margin-bottom: 12px; }
#cocoModal .add-event-row .form-control { padding: .8rem 2.6rem .8rem 1rem; font-size: 1rem; }
#cocoModal .add-event-plus { margin: .35rem 0 1.25rem; padding: .35rem 1rem; font-size: .88rem; }
#cocoModal #addEventForm .btn { padding: .7rem 1.6rem; font-size: .95rem; }
#cocoModal #addEventMsg { min-height: 1.4rem; margin: 0 0 1rem !important; }
@media (max-width: 575px) { #cocoModal .modal-body { padding: .25rem 1.25rem 1.5rem; } #cocoModal h3 { font-size: 1.6rem; } }

/* Confirmed link: hyperlink + edit pencil */
.add-event-view { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--am-slate-200); border-radius: .375rem; background: var(--am-slate-100); padding: .8rem 2.6rem .8rem 1rem; }
.add-event-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--am-teal-deep); font-size: 1rem; text-decoration: none; }
.add-event-link:hover { text-decoration: underline; }
.add-event-edit { flex: 0 0 auto; border: 0; background: none; color: var(--am-slate); cursor: pointer; padding: 4px 6px; font-size: .9rem; }
.add-event-edit:hover { color: var(--am-navy); }
.add-event-row:only-child .add-event-remove { display: none; }
.add-event-row:only-child .add-event-view { padding-right: 1rem; }

/* "+" in the top menu: opens the same Add event popup as the listing's button (green circle, as in the logged-in menu) */
.am-add-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: .6rem; border: 0; border-radius: 50%; background: var(--am-teal, #00c49a); color: #fff; font-size: .85rem; cursor: pointer; padding: 0; flex: 0 0 auto; }
.am-add-btn:hover { background: var(--am-teal-mid, #00a880); }
.am-add-btn i { color: #fff; }
