/* Lisboa de Borla — sistema de cartões e páginas de eventos.
   Cor da categoria: --lxb-c (definida por .lxb-cat-{slug}); cor da marca: --lxb-brand. */

:root {
	--lxb-brand: #00B5CC;
	--lxb-brand-dark: #00879A;
	--lxb-ink: #141414;
	--lxb-muted: #666;
	--lxb-line: #ececec;
	--lxb-soft: #E8FAFC;
	--lxb-radius: 14px;
	--lxb-font: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.lxb-page, .lxb-section, .lxb-search, .lxb-quick, .lxb-cats, .lxb-form, .lxb-card { font-family: var(--lxb-font); color: var(--lxb-ink); }
.lxb-page { max-width: 1200px; margin: 0 auto; padding: 24px 16px 56px; box-sizing: border-box; }
.lxb-page *, .lxb-section *, .lxb-form * { box-sizing: border-box; }
.lxb-i { flex: none; vertical-align: -3px; }

/* Grelha */
.lxb-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 24px; }
.lxb-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lxb-grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.lxb-grid--lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .lxb-grid--lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lxb-grid--lista { grid-template-columns: 1fr; } }

/* Cartão */
.lxb-card { --lxb-c: var(--lxb-brand); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lxb-line); border-radius: var(--lxb-radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.lxb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.lxb-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #f2f2f2; overflow: hidden; }
.lxb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.lxb-card:hover .lxb-card__media img { transform: scale(1.04); }
.lxb-card__noimg { position: absolute; inset: 0; background: var(--lxb-c); opacity: .18; }
.lxb-card__media .lxb-chip--cat { position: absolute; top: 12px; left: 12px; }
.lxb-card__media .lxb-chip--badge { position: absolute; top: 12px; right: 12px; }
.lxb-card__band { background: var(--lxb-c); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 14px; line-height: 1.3; }
.lxb-card__body { padding: 14px 16px 12px; flex: 1; }
.lxb-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.lxb-card__title a { color: var(--lxb-ink); text-decoration: none; }
.lxb-card__title a:hover { color: var(--lxb-c); }
.lxb-card__where { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 14px; color: var(--lxb-muted); line-height: 1.4; font-weight: 500; }
.lxb-card__where .lxb-i { color: var(--lxb-c); margin-top: 1px; }
.lxb-card__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--lxb-line); background: #fcfcfc; }
.lxb-card__more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lxb-c); text-decoration: none; border: 1.5px solid var(--lxb-c); border-radius: 8px; padding: 7px 14px; transition: background .15s, color .15s; }
.lxb-card__more:hover { background: var(--lxb-c); color: #fff; }
.lxb-share { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--lxb-line); border-radius: 8px; padding: 7px 9px; cursor: pointer; color: var(--lxb-muted); font: inherit; }
.lxb-share:hover { color: var(--lxb-ink); border-color: #ccc; }
.lxb-share.is-copied::after { content: 'Link copiado'; font-size: 12px; }

/* Cartão compacto (museus) */
.lxb-card--compacto .lxb-card__media { aspect-ratio: 16 / 9; }
.lxb-card--compacto .lxb-card__title { font-size: 16px; }

/* Etiquetas */
.lxb-chip { display: inline-block; font-family: var(--lxb-font); font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lxb-chip--cat { background: var(--lxb-c, var(--lxb-brand)); color: #fff; }
a.lxb-chip--cat:hover { filter: brightness(.92); color: #fff; }
.lxb-chip--badge { background: #141414; color: #fff; }
.lxb-chip--badge.is-res { background: #fff; color: #141414; box-shadow: inset 0 0 0 1.5px #141414; }
.lxb-chip--dark { background: #141414; color: #fff; }
.lxb-chip--ended { background: #eee; color: #555; }

/* Secções */
.lxb-section { margin: 0 0 36px; }
.lxb-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.lxb-section__title { font-family: var(--lxb-font); font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.lxb-section__all { font-weight: 700; color: var(--lxb-brand-dark); text-decoration: none; white-space: nowrap; }
.lxb-section__all:hover { text-decoration: underline; }
.lxb-empty { color: var(--lxb-muted); padding: 24px; background: #fafafa; border-radius: var(--lxb-radius); text-align: center; }

/* Pesquisa */
.lxb-search { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 6px; background: #fff; border: 1.5px solid #cfeff3; border-radius: 14px; padding: 6px; box-shadow: 0 6px 20px rgba(0, 181, 204, .08); }
.lxb-search__q { display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--lxb-muted); }
.lxb-search input, .lxb-search select { width: 100%; border: 0; background: transparent; font: 500 15px var(--lxb-font); color: var(--lxb-ink); padding: 12px 8px; outline: none; }
.lxb-search select { border-left: 1px solid var(--lxb-line); cursor: pointer; }
.lxb-search button { background: var(--lxb-brand); color: #fff; border: 0; border-radius: 10px; font: 700 15px var(--lxb-font); padding: 0 22px; cursor: pointer; }
.lxb-search button:hover { background: var(--lxb-brand-dark); }
.lxb-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; }

/* Categorias (grelha de mosaicos) */
.lxb-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.lxb-cats__item { display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 16px; border-radius: var(--lxb-radius); background: var(--lxb-c, var(--lxb-brand)); color: #fff; text-decoration: none; transition: transform .15s; }
.lxb-cats__item:hover { transform: translateY(-2px); color: #fff; }
.lxb-cats__name { font-size: 18px; font-weight: 700; }
.lxb-cats__count { font-size: 13px; opacity: .9; font-weight: 600; }

/* Botões */
.lxb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.lxb-btn { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--lxb-font); color: var(--lxb-ink); background: #fff; border: 1.5px solid #dcdcdc; border-radius: 10px; padding: 10px 14px; text-decoration: none; cursor: pointer; }
.lxb-btn:hover { border-color: var(--lxb-c, var(--lxb-brand)); color: var(--lxb-c, var(--lxb-brand-dark)); }
.lxb-btn--primary { background: var(--lxb-brand); border-color: var(--lxb-brand); color: #fff; }
.lxb-btn--primary:hover { background: var(--lxb-brand-dark); color: #fff; }
.lxb-btn--ghost { border-style: dashed; }

/* Página do evento */
.lxb-single { --lxb-c: var(--lxb-brand); }
.lxb-crumbs { font-size: 13px; color: var(--lxb-muted); margin: 0 0 14px; }
.lxb-crumbs a { color: var(--lxb-muted); text-decoration: none; }
.lxb-crumbs a:hover { color: var(--lxb-c); }
.lxb-single__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.lxb-single__title { font-family: var(--lxb-font); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.lxb-single__lead { font-size: 19px; color: #444; line-height: 1.5; margin: 0 0 22px; max-width: 760px; }
.lxb-single__media { margin: 0 0 28px; border-radius: var(--lxb-radius); overflow: hidden; }
.lxb-single__media img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.lxb-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.lxb-selo { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--lxb-c) 12%, #fff); color: var(--lxb-ink); border-left: 4px solid var(--lxb-c); padding: 12px 16px; font-weight: 700; margin: 0 0 20px; }
.lxb-selo .lxb-i { color: var(--lxb-c); }
.lxb-prose { font-size: 17px; line-height: 1.75; }
.lxb-prose p { margin: 0 0 1em; }
.lxb-info { position: sticky; top: 24px; border: 1px solid var(--lxb-line); border-radius: var(--lxb-radius); overflow: hidden; background: #fff; }
.lxb-info__band { background: var(--lxb-c); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; padding: 12px 18px; }
.lxb-info dl { margin: 0; padding: 8px 18px 4px; }
.lxb-info dt { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lxb-muted); margin: 12px 0 4px; }
.lxb-info dt .lxb-i { color: var(--lxb-c); width: 16px; height: 16px; }
.lxb-info dd { margin: 0 0 4px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.lxb-info dd a { color: var(--lxb-c); }
.lxb-contacts a { overflow-wrap: anywhere; }
.lxb-info .lxb-condicao { display: block; color: var(--lxb-muted); font-size: 14px; }
.lxb-map { display: block; margin: 12px 18px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--lxb-line); }
.lxb-map iframe { display: block; width: 100%; height: 190px; border: 0; pointer-events: none; }
.lxb-info__note { font-size: 12px; color: var(--lxb-muted); padding: 0 18px; margin: 12px 0; }
.lxb-info__note a { color: var(--lxb-muted); }
.lxb-related { margin-top: 8px; }
.lxb-related .lxb-section { margin-bottom: 0; }
.lxb-related .lxb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lxb-related .lxb-card__body { padding: 10px 12px 8px; }
.lxb-related .lxb-card__title { font-size: 15px; }
.lxb-related .lxb-card__where { font-size: 12px; }
.lxb-related .lxb-card__band { font-size: 11px; padding: 6px 12px; }
.lxb-related .lxb-card__media .lxb-chip { font-size: 10px; padding: 5px 8px; top: 8px; }
.lxb-related .lxb-card__media .lxb-chip--cat { left: 8px; }
.lxb-related .lxb-card__media .lxb-chip--badge { right: 8px; }
.lxb-related .lxb-card__media .lxb-chip { overflow: hidden; text-overflow: ellipsis; }
.lxb-related .lxb-card__media .lxb-chip--cat { max-width: calc(45% - 8px); }
.lxb-related .lxb-card__media .lxb-chip--badge { max-width: calc(55% - 12px); }
.lxb-related .lxb-card__foot { padding: 8px 12px; gap: 6px; }
.lxb-related .lxb-card__more { font-size: 11px; padding: 6px 9px; letter-spacing: .03em; }
@media (max-width: 1100px) { .lxb-related .lxb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Listagem */
.lxb-archive__head { background: var(--lxb-soft); border-radius: 18px; padding: 28px; margin: 0 0 28px; }
.lxb-archive__title { font-family: var(--lxb-font); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.lxb-archive__desc { color: #444; margin: 0 0 16px; }
.lxb-archive .lxb-search, .lxb-hero .lxb-search { margin-top: 16px; }
/* Topo com imagem de fundo esbatida (Definições → Imagem de fundo do topo). */
.lxb-hero { position: relative; isolation: isolate; overflow: hidden; }
.lxb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lxb-hero-img, none) center / cover no-repeat; opacity: var(--lxb-hero-op, 0); pointer-events: none; }
.lxb-hero .lxb-archive__title { margin: 0; }
body .lxb-hero .lxb-quick { margin-bottom: 0; }
.lxb-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 12px 0; font-family: var(--lxb-font); font-weight: 700; }
.lxb-pager .page-numbers { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--lxb-line); text-decoration: none; color: var(--lxb-ink); }
.lxb-pager .current { background: var(--lxb-brand); border-color: var(--lxb-brand); color: #fff; }

/* Anúncios */
.lxb-ad { margin: 8px 0 32px; min-height: 90px; text-align: center; }
.lxb-ad--placeholder { border: 2px dashed #ddd; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #999; font: 600 13px var(--lxb-font); padding: 24px; }

/* Formulário de sugestão */
.lxb-form { max-width: 760px; }
.lxb-form label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.lxb-form input[type=text], .lxb-form input[type=url], .lxb-form input[type=email], .lxb-form input[type=date], .lxb-form select, .lxb-form textarea { display: block; width: 100%; margin-top: 6px; font: 500 15px var(--lxb-font); padding: 11px 12px; border: 1.5px solid #dcdcdc; border-radius: 10px; background: #fff; color: var(--lxb-ink); }
.lxb-form input:focus, .lxb-form select:focus, .lxb-form textarea:focus { outline: none; border-color: var(--lxb-brand); box-shadow: 0 0 0 3px rgba(0, 181, 204, .15); }
.lxb-form__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.lxb-check { display: flex !important; gap: 10px; align-items: center; font-weight: 600 !important; }
.lxb-hp { position: absolute !important; left: -9999px !important; }
.lxb-alert { font-family: var(--lxb-font); padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; font-weight: 600; }
.lxb-alert--ok { background: #e6f7ef; color: #0c5a37; }
.lxb-alert--erro { background: #fdecec; color: #8a1c1c; }

/* Telemóvel */
@media (max-width: 900px) {
	.lxb-single__grid { grid-template-columns: 1fr; }
	.lxb-info { position: static; }
	.lxb-search { grid-template-columns: 1fr 1fr; }
	.lxb-search__q { grid-column: 1 / -1; }
	.lxb-search select { border-left: 0; border-top: 1px solid var(--lxb-line); }
	.lxb-search button { grid-column: 1 / -1; padding: 12px; }
}
@media (max-width: 600px) {
	.lxb-section__title { font-size: 22px; }
	.lxb-archive__head { padding: 20px 16px; }
	.lxb-grid { gap: 16px; }
}

/* Proteção contra as cores e sublinhados de link do tema/kit do Elementor (ex.: .elementor-kit-N a). */
body a[class*="lxb-"], body [class*="lxb-"] a { text-decoration: none; }
body a.lxb-chip--cat, body a.lxb-chip--cat:hover, body a.lxb-chip--cat:focus,
body a.lxb-chip--badge, body a.lxb-chip--badge:hover,
body a.lxb-chip--dark, body a.lxb-chip--dark:hover,
body a.lxb-cats__item, body a.lxb-cats__item:hover, body a.lxb-cats__item:focus,
body a.lxb-btn--primary, body a.lxb-btn--primary:hover,
body a.lxb-card__more:hover,
body .lxb-pager a.current, body .lxb-pager .current { color: #fff; }
body a.lxb-chip--badge.is-res, body a.lxb-chip--badge.is-res:hover { color: #141414; }
body a.lxb-cats__item *, body a.lxb-chip * { color: inherit; }
body .lxb-card__title a { color: var(--lxb-ink); }
body .lxb-card__title a:hover { color: var(--lxb-c, var(--lxb-brand-dark)); }
body a.lxb-card__more { color: var(--lxb-c, var(--lxb-brand-dark)); }
body a.lxb-section__all, body a.lxb-section__all:hover { color: var(--lxb-brand-dark); }
body a.lxb-section__all:hover { text-decoration: underline; }
/* Botões <button> do plugin: anular o estilo de botão do tema/kit (ex.: Partilhar a rosa). */
body button.lxb-btn, body button.lxb-btn:hover, body button.lxb-btn:focus {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font: 700 14px var(--lxb-font); text-transform: none; letter-spacing: normal; line-height: normal;
	background: #fff; color: var(--lxb-ink); border: 1.5px solid #dcdcdc; border-radius: 10px; padding: 10px 14px; box-shadow: none;
}
body button.lxb-btn:hover, body button.lxb-btn:focus { border-color: var(--lxb-c, var(--lxb-brand)); color: var(--lxb-c, var(--lxb-brand-dark)); }
body button.lxb-share:not(.lxb-btn), body button.lxb-share:not(.lxb-btn):hover, body button.lxb-share:not(.lxb-btn):focus {
	font: inherit; text-transform: none; background: none; color: var(--lxb-muted); border: 1px solid var(--lxb-line); border-radius: 8px; padding: 7px 9px; box-shadow: none;
}
body button.lxb-share:not(.lxb-btn):hover { color: var(--lxb-ink); border-color: #ccc; }

/* Newsletter — [lxb_newsletter] */
.lxb-newsletter { font-family: var(--lxb-font); color: var(--lxb-ink); background: var(--lxb-soft); border-radius: 18px; padding: 28px; margin: 0 0 28px; }
.lxb-newsletter__title { font-family: var(--lxb-font); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.lxb-newsletter__text { margin: 0 0 18px; color: #444; line-height: 1.55; max-width: 640px; }
.lxb-newsletter__form { max-width: none; }
.lxb-newsletter__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: end; }
.lxb-newsletter__fields label { margin: 0; }
.lxb-newsletter__fields .lxb-btn { justify-content: center; padding: 12px 22px; height: 46px; }
.lxb-form .lxb-newsletter__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 13px; line-height: 1.5; color: #444; margin: 14px 0 0; }
.lxb-newsletter__consent input { margin-top: 3px; flex: none; }
.lxb-newsletter__consent a { color: var(--lxb-brand-dark); }
@media (max-width: 700px) {
	.lxb-newsletter { padding: 20px 16px; }
	.lxb-newsletter__fields { grid-template-columns: 1fr; }
}
body button.lxb-btn--primary, body button.lxb-btn--primary:focus { background: var(--lxb-brand); border-color: var(--lxb-brand); color: #fff; }
body button.lxb-btn--primary:hover { background: var(--lxb-brand-dark); border-color: var(--lxb-brand-dark); color: #fff; }
