/*
Theme Name: Medano4you Theme
Description: Custom WordPress theme converted from React project.
Version: 1.0
Author: Lucas Acosta
Text Domain: medano4you
*/

/* ==================================================
GLOBAL PAGE LOADER
================================================== */

.booking-loader {
position: fixed;
inset: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
background: #faf8f3;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
opacity 0.3s ease,
visibility 0.3s ease;
}

.booking-loader.is-active {
opacity: 1;
visibility: visible;
pointer-events: all;
}

.booking-loader-inner {
width: min(260px, 70vw);
text-align: center;
}

.booking-loader-logo {
display: block;
width: 180px;
max-width: 70%;
height: auto;
margin: 0 auto 26px;
}

.booking-loader-line {
position: relative;
width: 100%;
height: 2px;
overflow: hidden;
background: rgba(26, 26, 26, 0.12);
}

.booking-loader-line::after {
content: “”;
position: absolute;
inset: 0;
width: 45%;
background: #c9a45d;
animation: m4u-loader-progress 1.1s ease-in-out infinite;
}

@keyframes m4u-loader-progress {
0% {
transform: translateX(-120%);
}

100% {
transform: translateX(260%);
}
}

body.m4u-is-loading {
overflow: hidden;
}

/* ==================================================
PÁGINA DE AGRADECIMIENTO
================================================== */

main.m4u-gracias-page {
box-sizing: border-box;
width: 100%;
min-height: calc(100svh - 112px);
margin: 0;
padding: 0;
background: #f8f5ef;
}

main.m4u-gracias-page > section,
main.m4u-gracias-page > div,
main.m4u-gracias-page .entry-content,
main.m4u-gracias-page .wp-block-post-content {
width: 100%;
max-width: none;
margin: 0;
padding: 0;
}

.m4u-thank-you {
box-sizing: border-box;
width: 100%;
min-height: calc(100svh - 112px);
margin: 0;
padding: 70px 24px 90px;
display: flex;
align-items: flex-start;
justify-content: center;
background: #f8f5ef;
}

.m4u-thank-you-content {
width: 100%;
max-width: 760px;
margin: 0 auto;
padding-top: 70px !important;
padding-bottom: 70px !important;
text-align: center;
}

.m4u-thank-you-logo {
display: none;
}

.m4u-thank-you-card {
box-sizing: border-box;
width: 100%;
margin: 0 auto !important;
padding: 64px 48px;
background: #ffffff;
border: 1px solid rgba(26, 26, 26, 0.06);
box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
}

.m4u-thank-you-icon {
width: 64px;
height: 64px;
margin: 0 auto 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #c9a45d;
background: rgba(201, 164, 93, 0.14);
}

.m4u-thank-you-label {
display: block;
margin-bottom: 20px;
color: #c9a45d;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.24em;
text-transform: uppercase;
}

.m4u-thank-you h1 {
margin: 0 0 28px;
color: #1a1a1a;
font-family: serif;
font-size: clamp(38px, 6vw, 58px);
font-weight: 300;
line-height: 1.1;
}

.m4u-thank-you-main-text {
margin: 0 0 10px;
color: #4a4a4a;
font-size: 18px;
line-height: 1.8;
}

.m4u-thank-you-secondary-text {
max-width: 580px;
margin: 0 auto 38px;
color: #666666;
font-size: 16px;
line-height: 1.8;
}

.m4u-thank-you-button {
display: inline-block;
padding: 19px 34px;
color: #ffffff;
background: #1a1a1a;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.18em;
text-decoration: none;
text-transform: uppercase;
transition:
opacity 0.25s ease,
transform 0.25s ease;
}

.m4u-thank-you-button:hover {
color: #ffffff;
opacity: 0.88;
transform: translateY(-2px);
}

/* ==================================================
ESTADO DE ENVÍO DE FORMULARIOS
================================================== */

.m4u-submit-loading {
cursor: wait !important;
opacity: 0.8;
pointer-events: none;
}

.m4u-submit-content {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
}

.m4u-submit-spinner {
width: 17px;
height: 17px;
border: 2px solid rgba(255, 255, 255, 0.35);
border-top-color: #ffffff;
border-radius: 50%;
animation: m4u-submit-spin 0.7s linear infinite;
}

@keyframes m4u-submit-spin {
to {
transform: rotate(360deg);
}
}

/* ==================================================
TAMAÑO DEL MENÚ PRINCIPAL
================================================== */

@media (min-width: 1120px) {
.m4u-desktop-navigation .nav-link {
font-size: 12px !important;
}

.m4u-desktop-actions #lang-btn,
.m4u-desktop-actions .nav-btn {
font-size: 12px !important;
}
}

@media (min-width: 1360px) {
.m4u-desktop-navigation .nav-link {
font-size: 13px !important;
}

.m4u-desktop-actions #lang-btn,
.m4u-desktop-actions .nav-btn {
font-size: 13px !important;
}
}

/* ==================================================
PÁGINAS PRINCIPALES DEL BLOG
ESPAÑOL, INGLÉS, ALEMÁN E ITALIANO
================================================== */

/*

* Oculta el título automático generado por WordPress,
* pero conserva los títulos incluidos en Gutenberg.
    */
    body.m4u-blog-index-page main h1:not(.m4u-blog-main-title),
    body.m4u-blog-index-page .entry-title,
    body.m4u-blog-index-page .page-title,
    body.m4u-blog-index-page main .entry-header,
    body.m4u-blog-index-page main .page-header,
    body.m4u-blog-index-page main header.entry-header,
    body.m4u-blog-index-page main header.page-header {
    display: none !important;
    }

/*

* Elimina los anchos, márgenes y rellenos
* de la plantilla general de WordPress.
    */
    body.m4u-blog-index-page main,
    body.m4u-blog-index-page main > article,
    body.m4u-blog-index-page main .entry-content,
    body.m4u-blog-index-page main .page-content,
    body.m4u-blog-index-page main .wp-block-post-content {
    box-sizing: border-box;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    }

/*

* Respaldo por slug en los cuatro idiomas.
    */
    body.page-blog main h1:not(.m4u-blog-main-title),
    body.page-travel-guide main h1:not(.m4u-blog-main-title),
    body.page-ratgeber main h1:not(.m4u-blog-main-title),
    body.page-guida main h1:not(.m4u-blog-main-title) {
    display: none !important;
    }

/* ==================================================
BLOG MEDANO4YOU — ESTRUCTURA GENERAL
================================================== */

body.m4u-blog-index-page {
background: #ffffff;
}

body.m4u-blog-index-page .m4u-blog-page {
box-sizing: border-box;
width: 100%;
max-width: none !important;
margin: 0 !important;
padding: 0 !important;
background: #ffffff;
color: #303030;
}

/*

* La introducción editorial superior no se muestra
* para acercar el diseño al blog de referencia.
    */
    body.m4u-blog-index-page .m4u-blog-intro,
    body.m4u-blog-index-page .m4u-blog-separator,
    body.m4u-blog-index-page .m4u-blog-section-heading {
    display: none !important;
    }

/* Contenedor central */
body.m4u-blog-index-page .m4u-blog-content-wrapper {
box-sizing: border-box;
width: min(1180px, calc(100% - 64px));
max-width: 1180px;
margin: 0 auto !important;
padding: 72px 0 105px;
}

/* Dos columnas */
body.m4u-blog-index-page .m4u-blog-columns {
display: grid !important;
grid-template-columns: minmax(0, 790px) minmax(250px, 1fr);
gap: 55px;
align-items: start;
margin: 0 !important;
}

/* ==================================================
LISTADO PRINCIPAL DE ARTÍCULOS
================================================== */

body.m4u-blog-index-page .m4u-blog-main-column {
box-sizing: border-box;
width: 100%;
min-width: 0;
margin: 0 !important;
}

body.m4u-blog-index-page .m4u-blog-query {
margin: 0;
}

body.m4u-blog-index-page .m4u-blog-list {
display: flex;
flex-direction: column;
gap: 65px;
margin: 0;
padding: 0;
list-style: none;
}

body.m4u-blog-index-page .m4u-blog-list-card {
box-sizing: border-box;
width: 100%;
margin: 0 !important;
padding: 0 0 58px;
border: 0;
border-bottom: 1px solid #e5e5e5;
background: transparent;
box-shadow: none;
}

body.m4u-blog-index-page .m4u-blog-list-card:last-child {
padding-bottom: 0;
border-bottom: 0;
}

/* Imagen destacada */
body.m4u-blog-index-page .m4u-blog-list-image {
width: 100%;
margin: 0 0 26px !important;
overflow: hidden;
border: 0;
border-radius: 0;
background: #f2f2f2;
}

body.m4u-blog-index-page .m4u-blog-list-image a {
display: block;
}

body.m4u-blog-index-page .m4u-blog-list-image img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
transition: opacity 0.3s ease;
}

body.m4u-blog-index-page .m4u-blog-list-image a:hover img {
opacity: 0.92;
}

/* Contenido del artículo */
body.m4u-blog-index-page .m4u-blog-list-content {
width: 100%;
margin: 0 !important;
padding: 0;
}

/* Categorías */
body.m4u-blog-index-page .m4u-blog-list-categories {
margin: 0 0 10px !important;
color: #ff6f1c;
font-family: Manrope, Arial, sans-serif;
font-size: 11px;
font-weight: 700;
line-height: 1.5;
letter-spacing: 0.13em;
text-transform: uppercase;
}

body.m4u-blog-index-page .m4u-blog-list-categories a {
color: inherit;
text-decoration: none;
}

body.m4u-blog-index-page .m4u-blog-list-categories a:hover {
color: #d8550d;
}

/* Título */
body.m4u-blog-index-page .m4u-blog-list-title {
margin: 0 0 12px !important;
font-family: Manrope, Arial, sans-serif;
font-size: clamp(25px, 2.3vw, 33px);
font-weight: 500;
line-height: 1.25;
letter-spacing: -0.025em;
}

body.m4u-blog-index-page .m4u-blog-list-title a {
color: #303030;
text-decoration: none;
transition: color 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-list-title a:hover {
color: #ff6f1c;
}

/* Autor y fecha */
body.m4u-blog-index-page .m4u-blog-list-meta {
display: flex;
flex-direction: row-reverse;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 0;
margin: 0 0 20px !important;
}

body.m4u-blog-index-page .m4u-blog-list-date,
body.m4u-blog-index-page .m4u-blog-list-author {
margin: 0 !important;
color: #777777;
font-family: Manrope, Arial, sans-serif;
font-size: 13px;
line-height: 1.5;
}

body.m4u-blog-index-page .m4u-blog-list-author::before {
content: “Por “;
margin-right: 3px;
}

body.m4u-blog-index-page .m4u-blog-list-author::after {
content: “ | “;
margin: 0 7px;
color: #aaaaaa;
}

/* Extracto */
body.m4u-blog-index-page .m4u-blog-list-excerpt {
max-width: none;
margin: 0 0 22px !important;
color: #6e6e6e;
font-family: Manrope, Arial, sans-serif;
font-size: 15px;
line-height: 1.75;
}

body.m4u-blog-index-page .m4u-blog-list-excerpt p {
margin: 0;
}

/* Botón leer artículo */
body.m4u-blog-index-page .m4u-blog-read-more {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 0;
border: 0;
color: #333333;
font-family: Manrope, Arial, sans-serif;
font-size: 12px;
font-weight: 700;
line-height: 1.5;
letter-spacing: 0.09em;
text-decoration: none;
text-transform: uppercase;
transition: color 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-read-more::after {
content: “→”;
transition: transform 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-read-more:hover {
color: #ff6f1c;
}

body.m4u-blog-index-page .m4u-blog-read-more:hover::after {
transform: translateX(4px);
}

/* Sin resultados */
body.m4u-blog-index-page .m4u-blog-empty {
margin: 0;
padding: 60px 20px;
color: #666666;
font-family: Manrope, Arial, sans-serif;
font-size: 16px;
line-height: 1.7;
}

/* Paginación */
body.m4u-blog-index-page .m4u-blog-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
margin-top: 55px;
font-family: Manrope, Arial, sans-serif;
font-size: 12px;
}

body.m4u-blog-index-page .m4u-blog-pagination a,
body.m4u-blog-index-page .m4u-blog-pagination span {
color: #333333;
text-decoration: none;
}

body.m4u-blog-index-page .m4u-blog-pagination a:hover,
body.m4u-blog-index-page .m4u-blog-pagination .current {
color: #ff6f1c;
}

/* ==================================================
SIDEBAR EDITORIAL
================================================== */

body.m4u-blog-index-page .m4u-blog-sidebar-column {
box-sizing: border-box;
width: 100%;
min-width: 0;
margin: 0 !important;
padding-left: 35px;
border-left: 1px solid #e4e4e4;
}

body.m4u-blog-index-page .m4u-blog-sidebar {
display: block;
position: static;
margin: 0;
}

/* Secciones sin cajas */
body.m4u-blog-index-page .m4u-blog-sidebar-section {
margin: 0 0 38px !important;
padding: 0;
border: 0;
background: transparent;
}

/* Títulos de sidebar */
body.m4u-blog-index-page .m4u-blog-sidebar-title {
margin: 0 0 18px !important;
padding: 0;
border: 0;
color: #333333;
font-family: Manrope, Arial, sans-serif;
font-size: 24px;
font-weight: 500;
line-height: 1.25;
letter-spacing: -0.02em;
}

/* Buscador */
body.m4u-blog-index-page .m4u-blog-search {
margin: 0;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__inside-wrapper {
display: grid;
grid-template-columns: minmax(0, 1fr) 66px;
gap: 0;
width: 100%;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__input {
box-sizing: border-box;
width: 100%;
min-width: 0;
height: 43px;
padding: 0 13px;
border: 1px solid #dfdfdf;
border-right: 0;
border-radius: 0;
outline: none;
background: #ffffff;
color: #444444;
font-family: Manrope, Arial, sans-serif;
font-size: 13px;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__input:focus {
border-color: #bdbdbd;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__button {
width: 66px;
min-width: 66px;
height: 43px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: #d6d6d6;
color: #555555;
transition:
background 0.2s ease,
color 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__button:hover {
background: #ff6f1c;
color: #ffffff;
}

/* Artículos recientes */
body.m4u-blog-index-page .m4u-blog-latest-posts {
margin: 0;
padding: 0;
list-style: none;
}

body.m4u-blog-index-page .m4u-blog-latest-posts li {
margin: 0 0 13px;
padding: 0;
border: 0;
}

body.m4u-blog-index-page .m4u-blog-latest-posts li + li {
padding-top: 0;
}

body.m4u-blog-index-page .m4u-blog-latest-posts a {
display: block;
color: #666666;
font-family: Manrope, Arial, sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 1.55;
text-decoration: none;
transition: color 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-latest-posts a:hover {
color: #ff6f1c;
}

body.m4u-blog-index-page .m4u-blog-latest-posts time {
display: block;
margin-top: 3px;
color: #999999;
font-family: Manrope, Arial, sans-serif;
font-size: 11px;
}

/* Categorías y archivo */
body.m4u-blog-index-page .m4u-blog-categories,
body.m4u-blog-index-page .m4u-blog-archives {
margin: 0;
padding: 0;
list-style: none;
}

body.m4u-blog-index-page .m4u-blog-categories li,
body.m4u-blog-index-page .m4u-blog-archives li {
display: block;
margin: 0 0 10px;
padding: 0;
border: 0;
color: #777777;
font-family: Manrope, Arial, sans-serif;
font-size: 14px;
line-height: 1.55;
}

body.m4u-blog-index-page .m4u-blog-categories a,
body.m4u-blog-index-page .m4u-blog-archives a {
color: #666666;
text-decoration: none;
transition: color 0.2s ease;
}

body.m4u-blog-index-page .m4u-blog-categories a:hover,
body.m4u-blog-index-page .m4u-blog-archives a:hover {
color: #ff6f1c;
}

/*

* Oculta la caja promocional de alojamientos
* para acercar el diseño al blog de referencia.
    */
    body.m4u-blog-index-page .m4u-blog-sidebar-highlight {
    display: none !important;
    }

/*

* Oculta el antiguo CTA grande si todavía
* quedara guardado en alguna traducción.
    */
    body.m4u-blog-index-page .m4u-blog-cta {
    display: none !important;
    }

/* ==================================================
RESPONSIVE BLOG — TABLET
================================================== */

@media (max-width: 1050px) {
body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: min(100% - 44px, 1000px);
padding: 62px 0 90px;
}

body.m4u-blog-index-page .m4u-blog-columns {
grid-template-columns: minmax(0, 1fr) 270px;
gap: 38px;
}

body.m4u-blog-index-page .m4u-blog-sidebar-column {
padding-left: 28px;
}
}

/* ==================================================
RESPONSIVE BLOG — MÓVIL
================================================== */

@media (max-width: 781px) {
body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: min(100% - 30px, 700px);
padding: 45px 0 72px;
}

body.m4u-blog-index-page .m4u-blog-columns {
display: flex !important;
flex-direction: column;
gap: 58px;
}

body.m4u-blog-index-page .m4u-blog-main-column,
body.m4u-blog-index-page .m4u-blog-sidebar-column {
width: 100%;
flex-basis: auto !important;
}

body.m4u-blog-index-page .m4u-blog-sidebar-column {
padding: 44px 0 0;
border-top: 1px solid #e4e4e4;
border-left: 0;
}

body.m4u-blog-index-page .m4u-blog-list {
gap: 48px;
}

body.m4u-blog-index-page .m4u-blog-list-card {
padding-bottom: 42px;
}

body.m4u-blog-index-page .m4u-blog-list-title {
font-size: 25px;
}

body.m4u-blog-index-page .m4u-blog-list-excerpt {
font-size: 15px;
line-height: 1.7;
}
}

/* ==================================================
RESPONSIVE BLOG — MÓVIL PEQUEÑO
================================================== */

@media (max-width: 480px) {
body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: calc(100% - 24px);
padding-top: 34px;
}

body.m4u-blog-index-page .m4u-blog-list-image {
margin-bottom: 20px !important;
}

body.m4u-blog-index-page .m4u-blog-list-title {
font-size: 23px;
}

body.m4u-blog-index-page .m4u-blog-list-excerpt {
font-size: 14px;
}

body.m4u-blog-index-page .m4u-blog-sidebar-title {
font-size: 22px;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__inside-wrapper {
grid-template-columns: minmax(0, 1fr) 60px;
}

body.m4u-blog-index-page .m4u-blog-search .wp-block-search__button {
width: 60px;
min-width: 60px;
}
}

/* ==================================================
RESPONSIVE GENERAL
================================================== */

@media (max-width: 640px) {
main.m4u-gracias-page {
min-height: calc(100svh - 90px);
}

.m4u-thank-you {
min-height: calc(100svh - 90px);
padding: 45px 18px 60px;
}

.m4u-thank-you-content {
padding-top: 45px !important;
padding-bottom: 45px !important;
}

.m4u-thank-you-card {
padding: 48px 24px;
}

.m4u-thank-you h1 {
font-size: 38px;
}

.m4u-thank-you-main-text {
font-size: 17px;
}

.m4u-thank-you-secondary-text {
font-size: 15px;
}
}
/* ==================================================
BLOG — MÁS ANCHO Y MÁS SEPARACIÓN DEL MENÚ
================================================== */

body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: min(1460px, calc(100% - 60px)) !important;
max-width: 1460px !important;
margin: 0 auto !important;
padding-top: 125px !important;
padding-bottom: 120px !important;
}

/* Columna principal mucho más ancha */
body.m4u-blog-index-page .m4u-blog-columns {
display: grid !important;
grid-template-columns: minmax(0, 1fr) 320px !important;
gap: 70px !important;
align-items: start;
}

/* La imagen ocupa todo el ancho de la columna principal */
body.m4u-blog-index-page .m4u-blog-main-column,
body.m4u-blog-index-page .m4u-blog-list-card,
body.m4u-blog-index-page .m4u-blog-list-image {
width: 100% !important;
max-width: none !important;
}

/* Imagen más alta y protagonista */
body.m4u-blog-index-page .m4u-blog-list-image img {
width: 100% !important;
aspect-ratio: 16 / 8.5 !important;
object-fit: cover;
}

/* Más separación entre imagen y texto */
body.m4u-blog-index-page .m4u-blog-list-image {
margin-bottom: 32px !important;
}

/* Sidebar ligeramente más separada */
body.m4u-blog-index-page .m4u-blog-sidebar-column {
width: 320px !important;
padding-left: 46px !important;
}

/* Corrige separación entre autor y fecha */
body.m4u-blog-index-page .m4u-blog-list-author::after {
content: “ | “;
margin-right: 8px;
margin-left: 8px;
}

body.m4u-blog-index-page .m4u-blog-list-date,
body.m4u-blog-index-page .m4u-blog-list-author {
display: inline-flex;
align-items: center;
}

/* Pantallas medianas */
@media (max-width: 1200px) {
body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: calc(100% - 48px) !important;
padding-top: 100px !important;
}

body.m4u-blog-index-page .m4u-blog-columns {
grid-template-columns: minmax(0, 1fr) 290px !important;
gap: 48px !important;
}

body.m4u-blog-index-page .m4u-blog-sidebar-column {
width: 290px !important;
padding-left: 32px !important;
}
}

/* Móvil */
@media (max-width: 781px) {
body.m4u-blog-index-page .m4u-blog-content-wrapper {
width: calc(100% - 30px) !important;
padding-top: 70px !important;
padding-bottom: 80px !important;
}

body.m4u-blog-index-page .m4u-blog-columns {
display: flex !important;
flex-direction: column;
gap: 60px !important;
}

body.m4u-blog-index-page .m4u-blog-sidebar-column {
width: 100% !important;
padding-left: 0 !important;
}

body.m4u-blog-index-page .m4u-blog-list-image img {
aspect-ratio: 16 / 10 !important;
}
}