/* Malta 360 — 05 agenda. Figma 228:4154: px 80, py 160, gap 80; head 700 wide. */

/* clip (not hidden) so the sticky "3" can stick to the viewport. */
.m360-agenda { padding-block: 160px; overflow: clip; }
.m360-agenda [x-cloak] { display: none !important; }

.m360-agenda .m360-section-head { max-width: 700px; }

/* Sticky track: from y=61 to the section bottom, 636 wide at x=1122. */
.m360-agenda__three-track {
  position: absolute;
  top: calc(61 * var(--u));
  bottom: 0;
  right: calc(-318 * var(--u));
  width: calc(636 * var(--u));
  pointer-events: none;
}

.m360-agenda__three {
  position: sticky;
  top: 0;
  width: 100%;
  height: calc(765 * var(--u));
}

.m360-agenda__empty {
  margin-top: 80px;
  padding: 32px;
  border: 1px solid var(--m360-line);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--m360-text-2);
}

.m360-agenda__tabs-wrap { margin-top: 80px; }

/* Day tabs: 100×36, 1px orange rule under the row, 2px white under the active tab. */
.m360-agenda__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--m360-orange);
}

.m360-agenda__tab {
  min-width: 100px;
  height: 36px;
  margin-bottom: -1px;
  padding: 4px 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--m360-font-display);
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -.375px;
  text-transform: uppercase;
  color: var(--m360-orange);
  cursor: pointer;
  transition: color .2s var(--m360-ease), border-color .2s var(--m360-ease);
}

.m360-agenda__tab.is-active {
  color: var(--m360-text);
  border-bottom-color: var(--m360-white);
}

/* ---- rows: px 16, py 24; time 120 | 48 | title | 24 | marker 28; orange 40% rules. ---- */
.m360-agenda__row {
  padding: 0 16px;
  border-top: 1px solid rgba(230, 95, 52, .4);
}
.m360-agenda__row:first-child { border-top: 0; }

.m360-agenda__summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 48px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}
.m360-agenda__summary::-webkit-details-marker { display: none; }

.m360-agenda__time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--m360-orange);
  white-space: nowrap;
}
.m360-agenda__clock { flex: 0 0 16px; width: 16px; height: 16px; }

.m360-agenda__title {
  font-family: var(--m360-font-display);
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -.375px;
  text-transform: uppercase;
  color: var(--m360-text);
}

.m360-agenda__marker {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -24px;
  color: #D1D5DB;
}
.m360-agenda__plus { width: 24px; height: 24px; transition: transform .25s var(--m360-ease); }
.m360-agenda__row[open] .m360-agenda__marker { color: var(--m360-orange); }
.m360-agenda__row[open] .m360-agenda__plus { transform: rotate(45deg); }

/* ---- open body: under the title column, text | 24 | 340×191 image ---- */
.m360-agenda__row[open] .m360-agenda__summary { padding-bottom: 24px; align-items: start; }

.m360-agenda__body {
  display: flex;
  gap: 24px;
  padding: 0 0 24px 168px;
}

.m360-agenda__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-width: 0; }

.m360-agenda__location,
.m360-agenda__desc { font-size: 16px; line-height: 26px; color: var(--m360-text-2); }
.m360-agenda__location strong { font-weight: 700; }

.m360-agenda__img {
  flex: 0 0 340px;
  width: 340px;
  height: 191px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--m360-bg);
}

@media (max-width: 1024px) {
  .m360-agenda { padding-block: 96px; }
  .m360-agenda__summary { column-gap: 24px; }
  .m360-agenda__body { padding-left: 144px; flex-direction: column; }
  .m360-agenda__img { flex-basis: auto; width: 100%; max-width: 340px; height: auto; aspect-ratio: 340 / 191; }
}

/* Figma mobile 228:4399: py 48; time row, then title (24/28) + marker; body full width, image 327×173 under it. */
@media (max-width: 640px) {
  .m360-agenda { padding-block: 48px; }
  .m360-agenda__tabs-wrap { margin-top: 48px; }
  .m360-agenda__tabs { flex-wrap: nowrap; }
  .m360-agenda__row { padding: 0; }
  .m360-agenda__summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas: "time ." "title marker";
    gap: 16px 24px;
    padding: 24px 0;
  }
  .m360-agenda__time { grid-area: time; }
  .m360-agenda__title { grid-area: title; }
  .m360-agenda__marker { grid-area: marker; margin-left: 0; align-self: center; }
  .m360-agenda__body { padding-left: 0; flex-direction: column; }
  .m360-agenda__img { width: 100%; max-width: none; height: auto; aspect-ratio: 327 / 173; }
  .m360-agenda__three-track { display: none; }
}
