/* ==== Components\Layout\MainLayout.razor.css ==== */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 0;
}

/* ==== Components\Layout\SiteHeader.razor.css ==== */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-sm) var(--space-md);
}

/* Barra de teléfonos de la versión móvil (oculta en escritorio) */
.site-header-mobile-bar {
    display: none;
}

.site-header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.site-header-logo:hover {
    text-decoration: none;
}

.site-header-logo-img {
    display: block;
    height: 2.5rem;
    width: auto;
}

.site-header-contacts {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: var(--space-sm);
    font-size: 14px;
}

.site-header-end {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-header-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: 500;
    border: 1px solid var(--color-secondary);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.site-header-contact-icon-only {
    padding: 0.3rem;
    width: 1.8rem;
    height: 1.8rem;
    justify-content: center;
}

.site-header-contact-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--color-secondary);
    fill: currentColor;
}

@media (max-width: 1500px) {
    .site-header-contacts {
        gap: 0.5rem;
    }

    .site-header-contact-link {
        padding: 0.3rem 0.5rem;
    }

    .site-header-contact-icon-only {
        padding: 0.3rem;
    }
}

@media (max-width: 1450px) {
    .site-header-end {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .site-header-contacts {
        display: none;
    }

    .site-header-mobile-bar {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.45rem 1rem;
        background-color: #4391cf;
    }

    .site-header-mobile-pill {
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        min-width: 0;
        padding: 0.2rem 0.5rem;
        border: 1px solid #ffffff;
        border-radius: 999px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none;
    }

    .site-header-mobile-pill:hover {
        text-decoration: none;
    }

    .site-header-mobile-pill .site-header-contact-icon {
        color: #ffffff;
    }

    .site-header-row {
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
    }

    .site-header-logo-img {
        height: 2rem;
    }
}

/* ==== Components\Layout\NavMenu.razor.css ==== */
.site-nav-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.site-nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-secondary);
}

.site-nav-toggle-icon {
    font-size: 20px;
}

.site-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    background:
        url("/img/shared/iconoMenuOculto.svg") right 8% bottom 0 / auto 55% no-repeat,
        linear-gradient(135deg, var(--color-overlay-primary) 0%, rgba(31, 139, 214, 0.75) 100%),
        url("/img/shared/apartamento31-34-1920x1255-1.jpg") center / cover no-repeat,
        var(--color-primary-dark);
    overflow-y: auto;
    scrollbar-width: none;
    /* Cerrado: fuera por la derecha; el visibility espera a que acabe la transición de cierre */
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out, visibility 0s linear 0.35s;
    visibility: hidden;
}

.site-nav-overlay::-webkit-scrollbar {
    display: none;
}

/* Abierto: entra de derecha a izquierda; al cerrar hace el recorrido inverso */
.site-nav-toggle-input:checked ~ .site-nav-overlay {
    transform: translateX(0);
    transition: transform 0.35s ease-in-out, visibility 0s;
    visibility: visible;
}

.site-nav-overlay-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.site-nav-overlay .site-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 40rem;
}

.site-nav-overlay .site-nav-link,
.site-nav-overlay .site-nav-sublink {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    text-decoration: none;
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.25rem;
}

.site-nav-overlay .site-nav-index {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-secondary);
    min-width: 1.5rem;
}

.site-nav-overlay .site-nav-sublink .site-nav-index {
    font-size: 16px;
}

.site-nav-overlay .site-nav-item-with-children {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-nav-overlay .site-nav-children {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: var(--space-lg);
}

.site-nav-overlay .site-nav-sublink {
    font-size: 24px;
    border-bottom: none;
}

@media (max-width: 600px) {
    .site-nav-overlay .site-nav-link {
        font-size: 24px;
    }

    .site-nav-overlay .site-nav-sublink {
        font-size: 18px;
    }

    .site-nav-toggle-text {
        display: none;
    }
}

/* ==== Components\Shared\CultureSwitcher.razor.css ==== */
.culture-switcher {
    position: relative;
}

.culture-switcher-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-round);
    border: 1px solid var(--color-border);
    cursor: pointer;
    list-style: none;
}

.culture-switcher-current::-webkit-details-marker {
    display: none;
}

.culture-switcher-current:hover,
.culture-switcher[open] .culture-switcher-current {
    border-color: var(--color-primary);
}

.culture-switcher img {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.culture-switcher-options {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.culture-switcher-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-round);
    border: 1px solid transparent;
}

.culture-switcher-link:hover {
    text-decoration: none;
    border-color: var(--color-primary);
}

/* ==== Motor de reservas (paquete Softme.MotorReservas, llega sin maquetar) ==== */
/* El paquete pinta: .motorsoftme__form > .motorsoftme__field (label + input + icono) y .motorsoftme__submit */

/* Las etiquetas no se ven en el diseño (el placeholder hace de etiqueta), pero se quedan para lectores de pantalla */
.booking-widget .motorsoftme__label,
.booking-mobile-form .motorsoftme__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.booking-widget .motorsoftme__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-widget .motorsoftme__field {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    height: 2.2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
}

/* En escritorio el icono va delante del campo */
.booking-widget .motorsoftme__icon {
    order: -1;
    flex: none;
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0.7;
}

.booking-widget .motorsoftme__input {
    border: none;
    outline: none;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    width: 9rem;
    background: transparent;
    cursor: pointer;
}

.booking-widget .motorsoftme__input--promo {
    width: 6rem;
    cursor: text;
}

.booking-widget .motorsoftme__submit {
    height: 2.2rem;
    padding: 0 1rem;
    font-weight: 400;
    font-size: 14px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 1500px) {
    .booking-widget .motorsoftme__input {
        width: 7rem;
    }

    .booking-widget .motorsoftme__input--promo {
        width: 5rem;
    }
}

/* Calendario: días con precio / sin disponibilidad (solo aparecen si MotorSoftme:UrlApiDisponibilidad tiene valor) */
.flatpickr-day .dia-con-precio,
.flatpickr-day .dia-con-x {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.flatpickr-day .precio,
.flatpickr-day .noches {
    font-size: 10px;
    color: #707070;
}

.flatpickr-day .x {
    font-size: 10px;
    color: #b0b0b0;
}

/* Versión móvil: oculta en escritorio */
.booking-mobile-input,
.booking-mobile-panel,
.booking-widget-mobile {
    display: none;
}

@media (max-width: 900px) {
    .booking-widget {
        display: none;
    }

    /* Casilla invisible pero accesible con teclado: la etiqueta "Ver disponibilidad" la marca y desmarca */
    .booking-mobile-input {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    /* Panel del motor: va dentro de la cabecera (fondo blanco), así que empuja hacia abajo el botón.
       Se despliega animando la altura (0fr -> 1fr); cerrado no es visible ni enfocable. */
    .booking-mobile-panel {
        display: grid;
        grid-template-rows: 0fr;
        visibility: hidden;
        transition: grid-template-rows 0.35s ease-in-out, visibility 0s linear 0.35s;
    }

    .booking-mobile-input:checked ~ .booking-mobile-panel {
        grid-template-rows: 1fr;
        visibility: visible;
        transition: grid-template-rows 0.35s ease-in-out, visibility 0s;
    }

    .booking-mobile-panel-inner {
        min-height: 0;
        overflow: hidden;
    }

    .booking-mobile-form {
        padding: 0.95rem 1rem;
        border-top: 1px solid var(--color-border);
    }

    .booking-mobile-form .motorsoftme__form {
        display: flex;
        flex-direction: column;
        gap: 0.95rem;
    }

    .booking-mobile-form .motorsoftme__field {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        height: 2.4rem;
        padding: 0 0.5rem 0 0.6rem;
        border: 1px solid #4e4e4e;
        background-color: var(--color-surface);
    }

    .booking-mobile-form .motorsoftme__input {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        font: inherit;
        font-size: 14px;
        font-weight: 400;
        color: #4e4e4e;
    }

    .booking-mobile-form .motorsoftme__icon {
        flex: none;
        width: 1rem;
        height: 1rem;
        color: #4e4e4e;
    }

    .booking-mobile-form .motorsoftme__submit {
        height: 2.4rem;
        width: 100%;
        border: 1px solid #4391cf;
        background-color: #4391cf;
        color: #ffffff;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
    }

    /* Botón que cuelga justo debajo de la cabecera fija (su contenedor posicionado) y se superpone al contenido */
    .booking-widget-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: calc(100% + 2px);
        left: 50%;
        transform: translateX(-50%);
        width: min(14rem, 62vw);
        height: 2.2rem;
        padding: 0 1rem;
        border-radius: var(--radius-sm);
        background-color: #4391cf;
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        white-space: nowrap;
        cursor: pointer;
        user-select: none;
    }

    .booking-mobile-input:focus-visible ~ .booking-widget-mobile {
        outline: 2px solid var(--color-secondary);
        outline-offset: 2px;
    }

    /* Con el panel abierto el botón pasa a "Cerrar motor", más oscuro y con la flecha hacia arriba */
    .booking-widget-mobile {
        gap: 0.5rem;
        transition: background-color 0.3s;
    }

    .booking-mobile-input:checked ~ .booking-widget-mobile {
        background-color: #356f9e;
    }

    .booking-label-close {
        display: none;
    }

    .booking-mobile-input:checked ~ .booking-widget-mobile .booking-label-open {
        display: none;
    }

    .booking-mobile-input:checked ~ .booking-widget-mobile .booking-label-close {
        display: inline;
    }

    .booking-label-chevron {
        width: 0.45rem;
        height: 0.45rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.3s ease-in-out;
    }

    .booking-mobile-input:checked ~ .booking-widget-mobile .booking-label-chevron {
        transform: translateY(2px) rotate(-135deg);
    }

    @media (prefers-reduced-motion: reduce) {
        .booking-mobile-panel,
        .booking-mobile-input:checked ~ .booking-mobile-panel,
        .booking-label-chevron,
        .booking-widget-mobile {
            transition: none;
        }
    }
}

/* ==== Components\Layout\SiteFooter.razor.css ==== */
/* Pie de la web original: ocupa el alto de la ventana (menos la cabecera fija), con la foto a la izquierda
   recortada en diagonal (arriba al 39 % del ancho y abajo al 49 %) y el contenido centrado en el resto. */
.site-footer {
    display: flex;
    flex-direction: column;
    height: clamp(34rem, calc(100vh - 4.1rem), 53rem);
    font-size: 14px;
    font-weight: 500;
}

.site-footer-top-bar {
    flex: 0 0 auto;
    height: 0.45rem;
    background-color: color-mix(in srgb, var(--color-secondary) 65%, #ffffff);
}

.site-footer-main {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

.site-footer-photo {
    flex: 0 0 48.8%;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%);
    overflow: hidden;
}

.site-footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.site-footer-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 4.5rem var(--space-md) 2rem;
}

.site-footer-logo {
    display: block;
    height: 7.5rem;
    width: auto;
    max-width: 100%;
}

.site-footer-social {
    display: flex;
    justify-content: center;
    gap: 10.5rem;
}

.site-footer-social a {
    display: inline-flex;
    text-decoration: none;
}

.site-footer-social img {
    display: block;
    width: 4.4rem;
    height: 4.4rem;
}

.site-footer-columns {
    align-self: stretch;
    display: grid;
    grid-template-columns: 18rem auto;
    justify-content: start;
    padding-left: 13%;
}

.site-footer-column {
    display: flex;
    flex-direction: column;
}

.site-footer-column a,
.site-footer-credit {
    padding: 0.6rem 0;
    color: #858585;
    text-decoration: none;
}

.site-footer-column a:hover {
    color: var(--color-secondary);
}

.site-footer-credit a {
    padding: 0;
    color: inherit;
}

.site-footer-heading {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem var(--space-md);
    font-size: 12px;
}

.site-footer-legal a {
    color: #858585;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: var(--color-secondary);
}

@media (max-width: 1100px) {
    .site-footer-social {
        gap: 4rem;
    }

    .site-footer-columns {
        padding-left: 0;
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .site-footer {
        height: auto;
    }

    .site-footer-main {
        flex-direction: column;
    }

    .site-footer-photo {
        flex: 0 0 14rem;
        clip-path: none;
    }

    .site-footer-content {
        gap: var(--space-lg);
        padding: var(--space-lg) var(--space-md);
    }

    .site-footer-social {
        gap: 2rem;
    }

    .site-footer-columns {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-left: 0;
    }
}

