/*--------------------------------------------------------------
# Meetings page (v2)
--------------------------------------------------------------*/
.mt-v2 {
  --navy: #002143;
  --teal: #014965;
  --green: #94c045;
  --green-dark: #5f8a1c;
  --gold: #f5c84c;
  --ink: #1d2b36;
  --muted: #5a6772;
  --line: #e6ebe0;
  --soft: #f5f8f0;

  margin-top: 70px;
  color: var(--ink);
  background: var(--soft);
}

.mt-v2 section {
  overflow: visible;
  padding: 0;
}

.mt-v2 a:focus-visible,
.mt-v2 button:focus-visible,
.mt-v2 input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Header ---- */
.mt-hero {
  position: relative;
  padding: 64px 0 56px !important;
  color: #fff;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(148, 192, 69, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--teal) 60%, var(--navy) 100%);
}

.mt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.mt-hero h1 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 14px;
}

.mt-lead {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 30px;
}

.mt-search {
  position: relative;
  max-width: 720px;
  margin: 0;
}

.mt-search > .bi-search {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: var(--muted);
  pointer-events: none;
}

.mt-search input {
  width: 100%;
  height: 62px;
  padding: 0 56px 0 56px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}

.mt-search input::placeholder {
  color: #8a96a0;
}

.mt-search input:focus {
  outline: none;
  border-color: var(--green);
}

.mt-search input::-webkit-search-cancel-button {
  display: none;
}

.mt-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

.mt-search-clear:hover {
  background: var(--line);
  color: var(--ink);
}

/* ---- Filters (sticky under the fixed header) ---- */
.mt-filters {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.mt-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.mt-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mt-chips::-webkit-scrollbar {
  display: none;
}

.mt-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #d4dbe1;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mt-chip:hover {
  border-color: var(--navy);
}

.mt-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.mt-chip.is-current:not(.is-active) {
  border-color: var(--green);
}

.mt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---- List ---- */
.mt-list {
  padding: 36px 0 96px !important;
}

.mt-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mt-count {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.mt-count b {
  color: var(--navy);
}

.mt-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.mt-download:hover {
  color: var(--navy);
}

.mt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mt-card[hidden] {
  display: none;
}

.mt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(0, 33, 67, 0.45);
}

.mt-card.is-today {
  border-color: rgba(148, 192, 69, 0.7);
  box-shadow: inset 0 4px 0 var(--green);
}

.mt-card.is-online {
  background: linear-gradient(160deg, #f3f8ff 0%, #fff 55%);
}

.mt-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mt-day {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.mt-today-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.mt-today-badge[hidden] {
  display: none;
}

.mt-format-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.mt-card h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 4px;
}

.mt-type {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
}

.mt-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.mt-meta li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.mt-meta i {
  flex: none;
  color: var(--navy);
  font-size: 15px;
  margin-top: 1px;
}

.mt-meta b {
  color: var(--ink);
  font-weight: 600;
}

.mt-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}

.mt-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mt-actions .mt-btn {
  flex: 1 1 auto;
}

.mt-btn-primary {
  background: var(--green);
  color: var(--navy);
}

.mt-btn-primary:hover {
  background: #a6ca63;
  color: var(--navy);
}

.mt-btn-ghost {
  background: #fff;
  border-color: #d4dbe1;
  color: var(--navy);
}

.mt-btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.mt-btn-ghost.is-copied {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---- Empty state ---- */
.mt-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border: 1px dashed #cdd6c0;
  border-radius: 22px;
}

.mt-empty[hidden] {
  display: none;
}

.mt-empty-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--green-dark);
  background: var(--soft);
}

.mt-empty h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}

.mt-empty p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
}

/* ---- Help strip ---- */
.mt-help {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.mt-help h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 4px;
}

.mt-help p {
  margin: 0;
  color: var(--muted);
}

.mt-help .mt-btn {
  flex: none;
  padding: 13px 22px;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .mt-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 991px) {
  .mt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .navbar .getstarted {
    color: #fff;
    text-align: center;
    justify-content: center;
  }

  .mt-hero {
    padding: 44px 0 40px !important;
  }

  .mt-search input {
    height: 56px;
    font-size: 15px;
    padding-left: 50px;
  }

  .mt-search > .bi-search {
    left: 20px;
  }

  .mt-filter-row {
    padding: 10px 0;
  }

  .mt-chips {
    margin: 0 -12px;
    padding: 0 12px;
  }

  .mt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mt-list {
    padding: 24px 0 72px !important;
  }

  .mt-list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mt-help {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-v2 * {
    transition: none !important;
  }
}

/* ---- Map pop-up ---- */
/* the pop-up is moved to <body>, so it needs its own copy of the colours */
.mt-map-modal {
  --navy: #002143;
  --green: #94c045;
  --green-dark: #5f8a1c;
  --gold: #f5c84c;
}

.mt-map-modal .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}

.modal-backdrop.show {
  opacity: 0.7;
  background-color: #001428;
}

.mt-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  color: #fff;
  background: linear-gradient(135deg, #002143 0%, #014965 100%);
}

.mt-map-head h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 2px 0 6px;
}

.mt-map-when {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94c045;
}

.mt-map-place {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.mt-map-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mt-map-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mt-map-close:focus-visible {
  outline: 3px solid #f5c84c;
  outline-offset: 2px;
}

.mt-map-frame {
  position: relative;
  height: min(60vh, 460px);
  background: #eef2ea;
}

.mt-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mt-map-frame.is-loaded iframe {
  opacity: 1;
}

.mt-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #5a6772;
}

.mt-map-loading span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #cdd6c0;
  border-top-color: #5f8a1c;
  animation: mtSpin 0.8s linear infinite;
}

@keyframes mtSpin {
  to { transform: rotate(360deg); }
}

.mt-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #e6ebe0;
}

.mt-map-foot p {
  margin: 0;
  font-size: 13px;
  color: #5a6772;
}

.mt-map-foot .mt-btn {
  flex: none;
  padding: 11px 20px;
}

@media (max-width: 575px) {
  .mt-map-modal .modal-dialog {
    margin: 12px;
  }

  .mt-map-frame {
    height: 55vh;
  }

  .mt-map-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
