/*
Theme Name: ALTAMENTE
Theme URI: https://casasaltamente.pt
Author: ALTAMENTE
Description: Tema de blocos leve para o ALTAMENTE – Alojamento Local. Cores e tipografia derivadas do manual de normas gráficas 2024.
Version: 0.3.37
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: altamente
*/

/* Base */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a) { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(a):hover { text-decoration-thickness: 2px; }

/* Foco visível (WCAG 2.2) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--carvao);
	outline-offset: 3px;
	border-radius: 2px;
}
.alt-hero :focus-visible,
.alt-footer :focus-visible,
.alt-dark :focus-visible {
	outline-color: var(--wp--preset--color--pedra);
}

/* Cabeçalho */
.alt-header {
	padding: 1rem var(--wp--preset--spacing--50);
	gap: 1rem 2rem;
	background: var(--wp--preset--color--pedra);
}
.alt-logo { display: inline-block; line-height: 0; }
.alt-logo img { display: block; height: 64px; width: auto; }
.alt-footer-logo { background: var(--wp--preset--color--pedra); padding: 1rem; display: inline-block; line-height: 0; border-radius: 4px; }
.alt-footer-logo img { height: 140px; width: auto; display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alt-header .wp-block-navigation { font-family: var(--wp--preset--font-family--dosis); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.alt-header .wp-block-navigation a { text-decoration: none; padding-block: 0.5rem; }
.alt-header .wp-block-navigation a:hover,
.alt-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; }

/* Botões */
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--dosis);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.7rem 1.6rem;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--terra);
	border: 2px solid var(--wp--preset--color--terra);
}
.wp-block-button__link:hover { background: var(--wp--preset--color--carvao); color: var(--wp--preset--color--branco); }

/* Secções */
.alt-section { padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.alt-eyebrow { font-family: var(--wp--preset--font-family--dosis); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 1rem; }
.alt-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.35; }

/* Hero (substituir por bloco Capa com fotografia quando estiver pronta) */
.alt-hero {
	background: var(--wp--preset--color--musgo);
	color: var(--wp--preset--color--pedra);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
}
.alt-hero-split { max-width: 1200px; margin: 0 auto !important; align-items: center; gap: var(--wp--preset--spacing--60); }
.alt-hero-split > .wp-block-column:first-child { flex-basis: 55%; }
.alt-hero-split > .wp-block-column:last-child { flex-basis: 45%; }
.alt-hero-img { margin: 0; }
.alt-hero-img img { width: 100%; height: auto; max-height: 72vh; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; }
.alt-img img { width: 100%; height: auto; border-radius: 4px; display: block; }
.alt-img { margin: 1.5rem 0; }
.alt-foto { margin: 0 0 1rem; }
.alt-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.alt-pano img { aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; }
.alt-design-split { align-items: center; gap: var(--wp--preset--spacing--50); }
.alt-design-split > .wp-block-column:first-child { flex-basis: 58%; }
.alt-design-split > .wp-block-column:last-child { flex-basis: 42%; }
.alt-design-img { margin: 0; }
.alt-design-img img { width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: 50% 55%; border-radius: 4px; display: block; }
.alt-gallery { margin-top: 1.5rem; }
.alt-gallery img { border-radius: 4px; }
.alt-hero h1 { color: var(--wp--preset--color--pedra); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
.alt-hero .alt-sub { font-size: var(--wp--preset--font-size--medium); max-width: 36ch; }
.alt-hero .wp-block-button__link { background: var(--wp--preset--color--pedra); color: var(--wp--preset--color--carvao); }
.alt-hero .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--pedra); border-color: var(--wp--preset--color--pedra); }
.alt-hero .wp-block-button__link:hover { background: var(--wp--preset--color--ocre); color: var(--wp--preset--color--carvao); border-color: var(--wp--preset--color--ocre); }

/* Três tempos */
.alt-tres { gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50); }
.alt-tres h3 { margin-bottom: 0.25rem; }

/* Destaques */
.alt-destaques ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.alt-destaques li { padding: 1rem 0; border-top: 1px solid rgba(35, 31, 32, 0.25); font-family: var(--wp--preset--font-family--dosis); font-weight: 600; font-size: var(--wp--preset--font-size--medium); }
.alt-destaques li:last-child { border-bottom: 1px solid rgba(35, 31, 32, 0.25); }

/* Bloco escuro */
.alt-dark { background: var(--wp--preset--color--carvao); color: var(--wp--preset--color--pedra); }
.alt-dark h2, .alt-dark a { color: var(--wp--preset--color--pedra); }
.alt-dark .wp-block-button__link { background: var(--wp--preset--color--ocre); color: var(--wp--preset--color--carvao); }
.alt-dark .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--pedra); border-color: var(--wp--preset--color--pedra); }

/* Rodapé */
.alt-footer { background: var(--wp--preset--color--carvao); color: var(--wp--preset--color--pedra); padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); font-size: 0.95rem; }
.alt-footer a { color: var(--wp--preset--color--ocre); }
.alt-footer .alt-footer-name { font-family: var(--wp--preset--font-family--dosis); font-weight: 700; letter-spacing: 0.12em; font-size: 1.4rem; color: var(--wp--preset--color--pedra); margin: 0 0 0.5rem; }
.alt-footer ul { list-style: none; padding: 0; margin: 0; }
.alt-footer li { padding: 0.2rem 0; }
.alt-footer .alt-legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(244, 240, 232, 0.25); font-size: 0.85rem; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Títulos das páginas interiores */
.alt-section > .wp-block-post-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.5rem; text-align: left; }


/* ===== Checkout e formulários MotoPress (0.3.11) ===== */
:where(.mphb_sc_checkout-form, .mphb_sc_booking_confirmation-wrapper, .mphb_sc_search_results-wrapper, .mphb-booking-form) {
	font-family: var(--wp--preset--font-family--newsreader);
	color: var(--wp--preset--color--carvao);
	max-width: 760px;
	margin-inline: auto;
}
.mphb_sc_checkout-form h2, .mphb_sc_checkout-form h3, .mphb_sc_checkout-form h4,
.mphb_sc_booking_confirmation-wrapper h2, .mphb_sc_booking_confirmation-wrapper h3 {
	font-family: var(--wp--preset--font-family--dosis);
	font-weight: 700;
	color: var(--wp--preset--color--terra);
	line-height: 1.15;
	margin: 2rem 0 0.75rem;
}
.mphb_sc_checkout-form h2 { font-size: 1.9rem; }
.mphb_sc_checkout-form h3 { font-size: 1.5rem; }
.mphb_sc_checkout-form h4 { font-size: 1.25rem; }
.mphb_sc_checkout-form p { margin: 0 0 0.9rem; }

/* Campos */
.mphb_sc_checkout-form input[type="text"],
.mphb_sc_checkout-form input[type="email"],
.mphb_sc_checkout-form input[type="tel"],
.mphb_sc_checkout-form input[type="number"],
.mphb_sc_checkout-form select,
.mphb_sc_checkout-form textarea,
.mphb-booking-form input[type="text"],
.mphb-booking-form select {
	width: 100%;
	max-width: 28rem;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--carvao);
	background: var(--wp--preset--color--branco);
	border: 1px solid rgba(35, 31, 32, 0.45);
	border-radius: 3px;
	padding: 0.6rem 0.75rem;
	min-height: 2.75rem;
}
.mphb_sc_checkout-form textarea { max-width: 100%; min-height: 6rem; }
.mphb_sc_checkout-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.mphb_sc_checkout-form label abbr { color: var(--wp--preset--color--terra); text-decoration: none; }
.mphb_sc_checkout-form .mphb-required-fields-tip { font-size: 0.9rem; opacity: 0.8; }

/* Código de cupão */
.mphb-coupon-code-wrapper { margin: 1.25rem 0; }
.mphb-coupon-code-wrapper input[type="text"] { max-width: 16rem; display: inline-block; vertical-align: middle; }
.mphb-coupon-code-wrapper label { display: inline-block; margin-right: 0.5rem; }

/* Botões */
.mphb_sc_checkout-form input[type="submit"],
.mphb_sc_checkout-form button,
.mphb_sc_checkout-form .button,
.mphb-booking-form input[type="submit"],
.mphb_sc_search_results-wrapper .button {
	font-family: var(--wp--preset--font-family--dosis);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wp--preset--color--terra);
	color: var(--wp--preset--color--branco);
	border: 2px solid var(--wp--preset--color--terra);
	border-radius: 3px;
	padding: 0.75rem 1.75rem;
	cursor: pointer;
}
.mphb_sc_checkout-form input[type="submit"]:hover,
.mphb_sc_checkout-form button:hover,
.mphb-booking-form input[type="submit"]:hover { background: var(--wp--preset--color--carvao); border-color: var(--wp--preset--color--carvao); }
.mphb-apply-coupon-code-button { padding: 0.55rem 1.1rem !important; font-size: 0.95rem !important; }
.mphb_sc_checkout-submit-wrapper, .mphb-reserve-btn-wrapper { margin-top: 1.5rem; }

/* Repartição de preços */
.mphb-price-breakdown { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; font-size: 1rem; }
.mphb-price-breakdown th, .mphb-price-breakdown td { padding: 0.5rem 0.25rem; text-align: left; vertical-align: top; border: 0; }
.mphb-price-breakdown th:last-child, .mphb-price-breakdown td:last-child,
.mphb-price-breakdown .mphb-price-breakdown-total th + td { text-align: right; white-space: nowrap; }
.mphb-price-breakdown tr + tr > * { border-top: 1px solid rgba(35, 31, 32, 0.15); }
.mphb-price-breakdown .mphb-price-breakdown-total,
.mphb-price-breakdown tfoot th, .mphb-price-breakdown tfoot td { font-weight: 700; font-family: var(--wp--preset--font-family--dosis); font-size: 1.15rem; }
.mphb-price-breakdown tfoot th, .mphb-price-breakdown .mphb-price-breakdown-total th { text-align: left; }
.mphb-price-breakdown a, .mphb-price-breakdown a:hover, .mphb-price-breakdown a:focus { border: 0 !important; outline: 0; box-shadow: none; background: transparent !important; padding: 0 !important; }
.mphb-price-breakdown button, .mphb-price-breakdown .mphb-price-breakdown-expand {
	background: transparent !important; color: var(--wp--preset--color--terra) !important;
	border: 1px solid var(--wp--preset--color--terra) !important; padding: 0 0.4rem !important;
	min-height: 0 !important; font-size: 1rem !important; line-height: 1.3 !important; margin-right: 0.4rem; text-transform: none; letter-spacing: 0;
}
.mphb-price-breakdown tr:last-child > *:last-child, .mphb-price-breakdown tfoot tr > *:last-child { text-align: right !important; }
.mphb-price-breakdown tr:last-child > *, .mphb-price-breakdown tfoot tr > * { font-family: var(--wp--preset--font-family--dosis); font-weight: 700; font-size: 1.15rem; }
.mphb_sc_checkout-form .mphb-customer-note label + *, .mphb_sc_checkout-form p:has(textarea) br { display: none; }
.mphb_sc_checkout-form textarea { margin-top: 0; display: block; }

/* Métodos de pagamento */
.mphb-gateways-list, .mphb-gateway-chooser-list { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; }
.mphb-gateway { padding: 0.9rem 1rem; margin: 0 0 0.6rem; background: var(--wp--preset--color--branco); border: 1px solid rgba(35, 31, 32, 0.25); border-radius: 4px; }
.mphb-gateway label { display: inline; font-family: var(--wp--preset--font-family--dosis); font-weight: 700; font-size: 1.15rem; }
.mphb-gateway input[type="radio"] { accent-color: var(--wp--preset--color--terra); margin-right: 0.5rem; transform: scale(1.15); }
.mphb-gateway .mphb-gateway-description, .mphb-gateway-description { margin: 0.4rem 0 0 1.6rem; font-size: 0.95rem; opacity: 0.85; }
.mphb-total-price, .mphb-deposit-amount { font-family: var(--wp--preset--font-family--dosis); font-size: 1.3rem; }

/* Termos */
.mphb-terms-and-conditions, .mphb_sc_checkout-form .mphb-checkout-terms-wrapper { margin: 1.25rem 0; }
.mphb_sc_checkout-form input[type="checkbox"] { accent-color: var(--wp--preset--color--terra); width: 1.15rem; height: 1.15rem; vertical-align: -0.2em; margin-right: 0.4rem; }
.mphb_sc_checkout-form .mphb-terms-and-conditions label, .mphb_sc_checkout-form label[for*="terms"] { display: inline; font-weight: 400; }

/* Mensagens */
.mphb-errors-wrapper, .mphb-error { color: #8a1c1c; background: #fbeaea; border-left: 4px solid #8a1c1c; padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 2px; }
@media (max-width: 600px) {
	.mphb_sc_checkout-form input[type="text"], .mphb_sc_checkout-form input[type="email"],
	.mphb_sc_checkout-form input[type="tel"], .mphb_sc_checkout-form select { max-width: 100%; }
	.mphb_sc_checkout-form input[type="submit"] { width: 100%; }
}

/* Ajustes checkout 0.3.14 */
.mphb_sc_checkout-form br { display: none; }
.mphb_sc_checkout-form .mphb-price-breakdown-expand, .mphb_sc_checkout-form button[class*="price-breakdown"] {
	background: transparent !important; border: 0 !important; color: var(--wp--preset--color--terra) !important;
	padding: 0 !important; text-align: left; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.mphb_sc_checkout-form [class*="price-breakdown"] a, .mphb_sc_checkout-form [class*="price-breakdown"] a:hover { border: 0 !important; box-shadow: none !important; }
.mphb_sc_checkout-form p { margin: 0 0 1rem; }
.mphb_sc_checkout-form input[type="text"], .mphb_sc_checkout-form input[type="email"], .mphb_sc_checkout-form input[type="tel"], .mphb_sc_checkout-form select, .mphb_sc_checkout-form textarea { margin-top: 0; }

/* Hero com duas fotografias (jacuzzi + entrada) */
.alt-hero-split > .wp-block-column:first-child { flex-basis: 42%; }
.alt-hero-split > .wp-block-column:last-child { flex-basis: 58%; }
.alt-hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.alt-hero-pair .alt-hero-img { margin: 0; }
.alt-hero-pair .alt-hero-img img { aspect-ratio: 4 / 5; height: 100%; object-fit: cover; }
.alt-hero-pair .alt-hero-img--entrada img { object-position: 46% 50%; }
@media (max-width: 781px) { .alt-hero-pair { grid-template-columns: 1fr 1fr; gap: 0.6rem; } .alt-hero-pair .alt-hero-img img { max-height: 46vh; } }

/* Página do alojamento (MotoPress): galeria em grelha, sem imagens em miniatura sobre o texto */
.alt-alojamento .mphb-single-room-type-gallery-wrapper,
.alt-alojamento .mphb-room-type-gallery,
.alt-alojamento .mphb-flexslider-gallery-wrapper,
.alt-alojamento .mphb-gallery-slider { max-width: 100%; margin: 1.5rem 0 2rem; float: none; clear: both; }
.alt-alojamento .mphb-single-room-type-gallery-wrapper ul,
.alt-alojamento .mphb-room-type-gallery ul,
.alt-alojamento .mphb-flexslider-gallery-wrapper ul,
.alt-alojamento .mphb-gallery-slider ul,
.alt-alojamento ul.slides,
.alt-alojamento .flex-control-nav {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem;
	list-style: none; margin: 0; padding: 0; width: 100% !important; transform: none !important;
}
.alt-alojamento .mphb-gallery-slider li, .alt-alojamento ul.slides > li { width: auto !important; float: none !important; margin: 0 !important; display: block !important; }
.alt-alojamento .mphb-gallery-slider img, .alt-alojamento ul.slides img,
.alt-alojamento .mphb-single-room-type-gallery-wrapper img, .alt-alojamento .mphb-room-type-gallery img {
	width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block;
}
.alt-alojamento .flex-direction-nav, .alt-alojamento .flex-control-nav:empty { display: none; }
.alt-alojamento .mphb-room-type-title, .alt-alojamento .entry-meta, .alt-alojamento .wp-block-post-date { display: none; }
.alt-alojamento h2, .alt-alojamento h3 { color: var(--wp--preset--color--terra); }

/* Telemóvel: impedir o modo escuro forçado de alguns navegadores (ex.: Xiaomi) de inverter o logótipo e o cabeçalho */
:root { color-scheme: only light; }

/* Cabeçalho no telemóvel: menu junto ao botão Reservar, ícone bem visível */
.alt-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--carvao);
	background: transparent;
	border: 0;
	padding: 0.5rem;
}
.alt-header .wp-block-navigation__responsive-container-open svg { width: 34px; height: 34px; fill: currentColor; }
.alt-header .wp-block-navigation__responsive-container-open svg rect, .alt-header .wp-block-navigation__responsive-container-open svg path { stroke: currentColor; stroke-width: 1; }
@media (max-width: 781px) {
	.alt-header { flex-wrap: nowrap !important; gap: 0.5rem; }
	.alt-header .wp-block-navigation { margin-left: auto; }
	.alt-header .alt-logo img { width: 52px; height: 52px; }
	.alt-eyebrow { letter-spacing: 0.1em; font-size: 0.8rem; }
}

/* Cores explícitas: alguns navegadores móveis (modo escuro forçado) só mantêm as cores que estão definidas elementos a elemento */
html, body, .wp-site-blocks { background-color: #F4F0E8 !important; color: #231F20; }
main, .alt-section:not(.alt-dark), .alt-destaques { background-color: #F4F0E8; color: #231F20; }
.alt-section:not(.alt-dark) :where(h1, h2, h3, h4) { color: #7F381A; }
.alt-section:not(.alt-dark) :where(p, li, a, span) { color: inherit; }
.alt-section:not(.alt-dark) a:not(.wp-block-button__link):not(.button):not([class*="button"]) { color: #7F381A; }
.alt-dark { background-color: #231F20 !important; color: #F4F0E8; }
.alt-dark :where(h1, h2, h3, h4, p, li) { color: #F4F0E8; }
.alt-hero { background-color: #3E4A3A !important; }
.alt-footer { background-color: #231F20 !important; }
.alt-header { background-color: #F4F0E8; }

/* Botões em secções claras: texto branco no botão cheio, terra no botão de contorno */
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link { background-color: #7F381A; color: #FFFFFF; }
.alt-section:not(.alt-dark) .wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent; color: #7F381A; }
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-color: #231F20; color: #FFFFFF; }

/* Garantia: texto branco nos botões cheios em qualquer estado (incluindo toque no telemóvel) */
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:visited { color: #FFFFFF !important; }
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link { background-color: #7F381A; }
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.alt-section:not(.alt-dark) .wp-block-button:not(.is-style-outline) .wp-block-button__link:active { background-color: #231F20; }
.alt-section:not(.alt-dark) .wp-block-button.is-style-outline .wp-block-button__link,
.alt-section:not(.alt-dark) .wp-block-button.is-style-outline .wp-block-button__link:visited { color: #7F381A !important; }
.alt-section:not(.alt-dark) .wp-block-button.is-style-outline .wp-block-button__link:hover { background-color: #7F381A; color: #FFFFFF !important; }

/* Botões do MotoPress (ex.: "Ver detalhes") com letras brancas; título sem sublinhado */
.alt-alojamento a.button, .alt-alojamento a[class*="button"], .alt-alojamento .mphb-view-details-button, .alt-alojamento .mphb-book-button,
.alt-section a.button, .alt-section a[class*="mphb"][class*="button"] {
	background-color: #7F381A; color: #FFFFFF !important; border: 2px solid #7F381A; border-radius: 3px;
	font-family: var(--wp--preset--font-family--dosis); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 0.75rem 1.75rem; display: inline-block; text-decoration: none; cursor: pointer;
}
.alt-alojamento a.button:hover, .alt-alojamento a[class*="button"]:hover, .alt-section a.button:hover { background-color: #231F20; border-color: #231F20; color: #FFFFFF !important; }
.alt-alojamento h1 a, .alt-alojamento .wp-block-post-title a { text-decoration: none; }
.alt-desconto-nota { font-size: 1rem; color: #231F20; border-left: 3px solid #D2A12A; padding: 0.35rem 0 0.35rem 0.9rem; margin: 0.5rem 0 1.5rem; }
.alt-desconto-nota strong { color: #231F20; }

/* Páginas de texto: o título e o conteúdo ficam alinhados à mesma margem
   (o bloco interior da página já tinha o seu próprio padding lateral). */
main.alt-section .alt-section { padding-left: 0; padding-right: 0; padding-top: 0; }
/* Hierarquia dos títulos: título da página > secções > perguntas. */
main.alt-section > .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.25rem); }
main.alt-section .alt-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.15; margin-top: 2.25rem; }
main.alt-section .alt-section h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; }

/* Telemóvel: a última foto da galeria, quando fica sozinha na linha, não ocupa um ecrã inteiro. */
@media (max-width: 781px) {
	.alt-gallery figure.wp-block-image:last-child:nth-child(odd) img {
		aspect-ratio: 16 / 10; height: auto !important; width: 100%; object-fit: cover; object-position: center 72%;
	}
}

/* Formulários WPForms (página Contactos) */
.wpforms-container { margin: 1.5rem 0 0; color: #231F20; }
.wpforms-container .wpforms-form .wpforms-field { padding: 0 0 1.25rem; }
.wpforms-container .wpforms-form .wpforms-field-label,
.wpforms-container .wpforms-form .wpforms-field-sublabel {
	font-family: var(--wp--preset--font-family--dosis); font-weight: 600; font-size: 1rem; color: #231F20; margin: 0 0 0.35rem; display: block;
}
.wpforms-container .wpforms-form .wpforms-required-label { color: #7F381A; }
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form textarea {
	width: 100%; max-width: 100% !important; box-sizing: border-box; padding: 0.7rem 0.8rem;
	border: 1px solid #8A7F72; border-radius: 4px; background-color: #FFFFFF; color: #231F20; font: inherit; font-size: 1rem;
}
.wpforms-container .wpforms-form textarea { min-height: 9rem; }
.wpforms-container .wpforms-form input:focus, .wpforms-container .wpforms-form textarea:focus {
	outline: 2px solid #D2A12A; outline-offset: 1px; border-color: #7F381A;
}
.wpforms-container .wpforms-form .wpforms-field-checkbox ul { list-style: none; margin: 0; padding: 0; }
.wpforms-container .wpforms-form .wpforms-field-checkbox li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.2rem 0; margin: 0; }
.wpforms-container .wpforms-form .wpforms-field-checkbox input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: #7F381A; flex: none; }
.wpforms-container .wpforms-form .wpforms-field-checkbox label { font-weight: 400; margin: 0; color: #231F20; }
.wpforms-container .wpforms-form .wpforms-error,
.wpforms-container .wpforms-form label.wpforms-error { color: #A12A1B; font-size: 0.9rem; margin-top: 0.3rem; }
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
	background-color: #7F381A !important; color: #FFFFFF !important; border: 0 !important; border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--dosis); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 0.75rem 1.75rem !important; font-size: 1rem; cursor: pointer; height: auto !important;
}
.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover { background-color: #231F20 !important; color: #FFFFFF !important; }
.wpforms-confirmation-container-full, .wpforms-container .wpforms-confirmation-container-full {
	background: #FFFFFF; border: 1px solid #7F381A; color: #231F20; padding: 1rem 1.25rem; border-radius: 4px;
}

/* Rodapé: redes sociais com ícone */
.alt-social-list p { margin: 0 0 0.9rem; }
.alt-social { display: inline-flex; align-items: center; gap: 0.55rem; }
.alt-social img { width: 20px; height: 20px; flex: none; display: block; }

/* ===== Formulário de pesquisa de disponibilidade (0.3.30) ===== */
.mphb_sc_search-form, form.mphb_sc_search-form {
	font-family: var(--wp--preset--font-family--newsreader);
	color: var(--wp--preset--color--carvao);
	max-width: 760px;
	margin-inline: auto;
}
.mphb_sc_search-form p { margin: 0 0 1.1rem; }
.mphb_sc_search-form .mphb-required-fields-tip { font-size: 0.9rem; opacity: 0.8; }
.mphb_sc_search-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 1.05rem; }
.mphb_sc_search-form label abbr { color: var(--wp--preset--color--terra); text-decoration: none; }
.mphb_sc_search-form input[type="text"],
.mphb_sc_search-form input[type="date"],
.mphb_sc_search-form select {
	width: 100%;
	max-width: 22rem;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--carvao);
	background: var(--wp--preset--color--branco);
	border: 1px solid rgba(35, 31, 32, 0.45);
	border-radius: 3px;
	padding: 0.6rem 0.75rem;
	min-height: 2.75rem;
}
.mphb_sc_search-form input:focus-visible, .mphb_sc_search-form select:focus-visible { outline: 2px solid var(--wp--preset--color--ocre); outline-offset: 1px; }
.mphb_sc_search-form input[type="submit"],
.mphb_sc_search-form button,
.mphb_sc_search-form .button {
	font-family: var(--wp--preset--font-family--dosis);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wp--preset--color--terra);
	color: var(--wp--preset--color--branco);
	border: 2px solid var(--wp--preset--color--terra);
	border-radius: 3px;
	padding: 0.75rem 1.75rem;
	cursor: pointer;
	margin-top: 0.5rem;
}
.mphb_sc_search-form input[type="submit"]:hover, .mphb_sc_search-form button:hover { background: var(--wp--preset--color--carvao); border-color: var(--wp--preset--color--carvao); }
@media (max-width: 781px) { .mphb_sc_search-form input[type="text"], .mphb_sc_search-form select { max-width: 100%; } .mphb_sc_search-form input[type="submit"] { width: 100%; } }
.mphb_sc_search-form br { display: none; }
.mphb_sc_search-form .mphb-required-fields-tip { font-size: 0.95rem; }

/* ===== Calendário de datas (datepick do MotoPress) (0.3.32) ===== */
.datepick-popup { z-index: 99999; }
.datepick, .mphb-datepick-popup .datepick {
	font-family: var(--wp--preset--font-family--newsreader) !important;
	color: var(--wp--preset--color--carvao) !important;
	background: var(--wp--preset--color--branco) !important;
	border: 1px solid rgba(35, 31, 32, 0.35) !important;
	border-radius: 4px !important;
	box-shadow: 0 8px 28px rgba(35, 31, 32, 0.22) !important;
	overflow: hidden;
}
.datepick .datepick-nav, .datepick .datepick-ctrl { background: var(--wp--preset--color--carvao) !important; color: var(--wp--preset--color--pedra) !important; }
.datepick .datepick-nav a, .datepick .datepick-ctrl a { color: var(--wp--preset--color--pedra) !important; font-family: var(--wp--preset--font-family--dosis); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; padding: 0.55rem 0.75rem !important; }
.datepick .datepick-nav a:hover, .datepick .datepick-ctrl a:hover { background: var(--wp--preset--color--terra) !important; color: var(--wp--preset--color--branco) !important; }
.datepick .datepick-month-header, .datepick .datepick-month-header select, .datepick .datepick-month-header input {
	background: var(--wp--preset--color--pedra) !important;
	color: var(--wp--preset--color--terra) !important;
	font-family: var(--wp--preset--font-family--dosis) !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	border: 0 !important;
}
.datepick .datepick-month { border: 0 !important; width: 15.5rem; }
.datepick .datepick-month + .datepick-month { border-left: 1px solid rgba(35, 31, 32, 0.15) !important; }
.datepick table { border-collapse: separate; border-spacing: 2px; width: 100%; }
.datepick th, .datepick th span { background: transparent !important; color: var(--wp--preset--color--carvao) !important; font-family: var(--wp--preset--font-family--dosis); font-weight: 700; font-size: 0.85rem; padding: 0.3rem 0 !important; }
.datepick td { background: transparent !important; padding: 0 !important; }
.datepick td a, .datepick td span { display: block; text-align: center; padding: 0.5rem 0 !important; background: var(--wp--preset--color--pedra) !important; color: var(--wp--preset--color--carvao) !important; border-radius: 3px; text-decoration: none; font-size: 1rem; }
.datepick td a:hover { background: var(--wp--preset--color--ocre) !important; color: var(--wp--preset--color--carvao) !important; }
.datepick td .datepick-today { outline: 2px solid var(--wp--preset--color--ocre); outline-offset: -2px; }
.datepick td .datepick-selected, .datepick td a.datepick-selected { background: var(--wp--preset--color--terra) !important; color: var(--wp--preset--color--branco) !important; font-weight: 700; }
.datepick td .datepick-other-month, .datepick td span.datepick-unselectable { background: transparent !important; color: rgba(35, 31, 32, 0.28) !important; }
.datepick td span.datepick-unselectable:not(.datepick-other-month) { text-decoration: line-through; background: rgba(35, 31, 32, 0.06) !important; }
.datepick-ctrl .datepick-cmd-close, .datepick-ctrl .datepick-cmd-clear { color: var(--wp--preset--color--pedra) !important; }
@media (max-width: 781px) { .datepick .datepick-month { width: 100%; } }
/* Acertos do calendário (0.3.33) */
.datepick .datepick-nav, .datepick .datepick-ctrl { display: flex !important; justify-content: space-between; align-items: center; flex-wrap: nowrap; }
.datepick .datepick-nav a, .datepick .datepick-ctrl a { float: none !important; display: block !important; width: auto !important; white-space: nowrap; }
.datepick .datepick-nav a.datepick-cmd-today { margin: 0 auto; }
.datepick th, .datepick th span { font-family: var(--wp--preset--font-family--newsreader) !important; font-weight: 700; text-transform: none; }
.datepick table, .datepick th, .datepick td, .datepick td a, .datepick td span { border: 0 !important; box-shadow: none !important; }
.datepick td { height: auto; }
.datepick-clear-fix { display: none; }

/* Calendário no telemóvel: cabe no ecrã, sem zoom (0.3.34) */
@media (max-width: 781px) {
	.datepick-popup { left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100vw !important; }
	.datepick-popup .datepick, .datepick { width: 100% !important; max-width: 100vw !important; box-sizing: border-box; }
	.datepick .datepick-month-row, .datepick .datepick-month { width: 100% !important; max-width: 100% !important; float: none !important; display: block; box-sizing: border-box; }
	.datepick table { table-layout: fixed; width: 100%; }
	.datepick td a, .datepick td span { padding: 0.35rem 0 !important; font-size: 0.95rem; }
	.datepick, .datepick * { touch-action: manipulation; }
}
.mphb_sc_search-form input, .mphb_sc_search-form select { font-size: 16px; touch-action: manipulation; }

/* Dias indisponíveis: claros e riscados (0.3.35) */
.datepick td.datepick-unselectable, .datepick td.mphb-past-date, .datepick td.mphb-booked-date, .datepick td.mphb-unavailable-date,
.datepick td.mphb-earlier-min-date, .datepick td.mphb-later-max-date, .datepick td.mphb-not-stay-in-date, .datepick td.mphb-not-check-out-date {
	opacity: 1;
}
.datepick td.datepick-unselectable *, .datepick td.mphb-past-date *, .datepick td.mphb-booked-date *, .datepick td.mphb-unavailable-date *,
.datepick td.mphb-earlier-min-date *, .datepick td.mphb-later-max-date *, .datepick td.mphb-not-stay-in-date *,
.datepick td span.datepick-unselectable:not(.datepick-other-month), .datepick td span.mphb-past-date, .datepick td span.mphb-booked-date {
	background: rgba(35, 31, 32, 0.04) !important;
	color: rgba(35, 31, 32, 0.38) !important;
	text-decoration: line-through !important;
	text-decoration-color: rgba(35, 31, 32, 0.45) !important;
	cursor: not-allowed;
}
/* Dias livres: mais destaque */
.datepick td a { font-weight: 600; }

/* ===== Página do alojamento (0.3.36) ===== */
main.alt-alojamento > .wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.25rem); }
main.alt-alojamento h2, main.alt-alojamento .wp-block-post-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); margin: 2.75rem 0 1rem; }
main.alt-alojamento h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
/* Comodidades e detalhes: texto simples, sem links para páginas que não existem */
main.alt-alojamento .mphb-single-room-type-attributes a,
main.alt-alojamento .mphb-room-type-facilities a,
main.alt-alojamento .mphb-room-type-view a,
main.alt-alojamento .mphb-room-type-bed-type a { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }
main.alt-alojamento .mphb-single-room-type-attributes { list-style: none; padding-left: 0; margin: 0 0 1.25rem; }
main.alt-alojamento .mphb-single-room-type-attributes li { padding: 0.45rem 0; border-bottom: 1px solid rgba(35, 31, 32, 0.12); }
main.alt-alojamento .mphb-single-room-type-attributes li:last-child { border-bottom: 0; }
/* Preço "a partir de" */
main.alt-alojamento .mphb-regular-price { font-size: 1.1rem; margin: 0.75rem 0 0; }
/* Formulário de reserva e calendário: mesmo estilo do resto */
main.alt-alojamento .mphb-booking-form, main.alt-alojamento .mphb_sc_search-form { max-width: 100%; margin-inline: 0; }
main.alt-alojamento .mphb-booking-form label, main.alt-alojamento .mphb_sc_search-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
main.alt-alojamento .mphb-booking-form p { margin: 0 0 1.1rem; }
main.alt-alojamento .mphb-booking-form br { display: none; }
main.alt-alojamento .mphb-calendar { margin: 0.5rem 0 2rem; }
.alt-price-from { font-size: 1.15rem; margin: 0.9rem 0 0; }
.alt-price-from strong { font-family: var(--wp--preset--font-family--dosis); font-size: 1.35rem; color: var(--wp--preset--color--terra); }
