/* Página pública no telemóvel (até 770px): cabeçalho só com logótipo, lupa e menu; primeiro ecrã com slogan curto,
   pesquisa à vista e atalhos de categoria. O desktop e o tablet não mudam. */
.hero-find, .mobile-menu-col, .mm-overlay { display: none; }

@media (max-width: 770px) {
  header.topMenuHeader .organizer-header-col, header.topMenuHeader .third-header-col { display: none; }
  header.topMenuHeader .mobile-menu-col { display: flex; align-items: center; margin-left: auto; }
  .mm-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: #202833; cursor: pointer; }
  .mm-btn:focus-visible, .mm-close:focus-visible, .mm-list a:focus-visible, .mm-lang:focus-visible, .hero-search:focus-visible, .hero-chips a:focus-visible { outline: 3px solid #202833; outline-offset: 2px; }

  /* menu a toda a largura, com o resto da página escurecido */
  .mm-overlay { position: fixed; inset: 0; z-index: 2000; display: block; background: rgba(32, 40, 51, .55); }
  .mm-overlay[hidden] { display: none; }
  .mm-sheet { position: absolute; inset: 0 0 auto 0; max-height: 100dvh; overflow-y: auto; background: #fff; border-radius: 0 0 20px 20px; padding: 8px 16px 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
  .mm-sheet__head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; font-size: 18px; }
  .mm-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: #202833; }
  .mm-list { list-style: none; margin: 0; padding: 0; }
  .mm-list a, .mm-lang { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid rgba(32, 40, 51, .12); background: transparent; color: #202833; font: inherit; font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
  .mm-label { margin: 16px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5f6672; }
  .mm-lang img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
  .mm-lang span { flex: 1 1 auto; text-transform: capitalize; }
  .mm-lang[aria-current="true"] { font-weight: 700; }
  .mm-check { color: #202833; }
  html.mm-lock, html.mm-lock body { overflow: hidden; }

  /* primeiro ecrã: slogan em 2 linhas, pesquisa e categorias, e o cartão seguinte a espreitar */
  .first-div { height: auto; }
  .topContentRow { min-height: 0; padding-right: var(--left-right-space, 16px); }
  .homeFirstColumn { padding: 20px 0 0; text-align: center; }
  .homeFirstColumn h1 { display: inline; font-size: clamp(26px, 8.2vw, 40px); line-height: 1.05; letter-spacing: -0.02em; text-align: center; }
  .homeFirstColumn h1.colorBlack { margin-left: .25em; }
  .word-per-line span { display: inline; }
  .word-per-line span + span::before { content: " "; }
  .hero-find { display: block; margin: 16px auto 0; max-width: 460px; }
  .hero-search { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #5f6672; font: inherit; font-size: 16px; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); cursor: pointer; }
  .hero-search .tls-icon--em { color: #202833; flex: none; }
  .hero-chips { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #202833; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .homeSecondColumn { padding-top: 8px; }
}

/* ---- Cartões de evento (lista e explorar) ---- */
.category-event-card .pill-more { display: none; }
@media (max-width: 770px) {
  .category-event-card .event-card-eventname.uppercase-text { text-transform: none; }
  .category-event-card .event-card-eventname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: normal; text-overflow: clip; }
  .category-event-card .cEventCategories { flex-wrap: nowrap; overflow: hidden; gap: 4px; align-items: center; }
  .category-event-card .pill-extra { display: none; }
  .category-event-card .pill-more { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; color: #5f6672; padding: 0 2px; }
  .category-event-card .buyTicketBtn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 450px) {
  .category-event-card { height: auto; min-height: 168px; }
  .category-event-card a > div { min-height: 152px; }
  .category-event-card .event-card-eventname { font-size: 15px; line-height: 18px; }
  .category-event-card .category-content-div .cCity { font-size: 11px; }
  .category-event-card .category-content-div .cEventDate { font-size: 12px; line-height: 15px; }
  .category-event-card .category-producer { font-size: 10px; line-height: 12px; }
  .category-event-card .buyTicketBtn { font-size: 10px; line-height: 28px; margin-top: auto; padding: 0 6px; letter-spacing: -0.01em; }
}

/* ---- Botão de compra dos cartões: duas linhas centradas, com área de toque de 44px e o preço sempre inteiro ---- */
@media (max-width: 450px) {
  .category-event-card .buyTicketBtn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 44px; padding: 4px 8px; box-sizing: border-box; white-space: normal; overflow: visible;
    font-size: 11px; line-height: 14px; letter-spacing: 0; text-align: center;
  }
  .category-event-card .buyTicketBtn .buy-sep { display: none; }
  .category-event-card .buyTicketBtn .buy-label { font-weight: 700; }
  .category-event-card .buyTicketBtn .buy-price { white-space: nowrap; font-weight: 700; }
}

/* botão só com "Buy ticket" e título sem cortes */
@media (max-width: 450px) {
  .category-event-card .buyTicketBtn .buy-price, .category-event-card .buyTicketBtn .buy-sep { display: none; }
  .category-event-card .buyTicketBtn { min-height: 44px; font-size: 13px; line-height: 18px; }
  .category-event-card a > div { height: auto; min-height: 152px; }
  .category-event-card .category-content-div { overflow: visible; }
  .category-event-card .category-event-image { height: auto; align-self: stretch; }
}

/* o nome do evento nunca encolhe dentro do cartão (cortava a última linha) */
@media (max-width: 450px) { .category-event-card .event-card-eventname { flex: none; } }

/* o conteúdo do cartão manda na altura: nada encolhe nem fica cortado (cidade, título, data, categorias e botão) */
@media (max-width: 450px) {
  body .category-event-card { height: auto; min-height: 0; }
  body .category-event-card a > div { height: auto; min-height: 152px; align-items: stretch; }
  body .category-event-card .category-content-div { height: auto; overflow: visible; gap: 0; }
  body .category-event-card .category-content-div > * { flex: none; }
  body .category-event-card .category-content-div .cEventDate { margin-top: 6px; }
  body .category-event-card .category-content-div .cEventCategories { margin: 8px 0; min-height: 20px; }
  body .category-event-card .category-content-div .buyTicketBtn { margin-top: auto; }
  body .category-event-card .category-event-image { align-self: stretch; height: auto; min-height: 152px; }
}
