@charset "UTF-8";
/*!
Theme Name: Villagio Child
Theme URI: https://motopress.com/themes/villagio/
Author: MotoPress
Author URI: https://motopress.com/
Description: Saeed Villa customizations for the Villagio theme.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villagio
Template: villagio
*/

/* Saeed Villa homepage hero — refined, image-led hospitality design. */
.sv-home-hero {
    --sv-hero-height: 590px;
    --sv-hero-ink: #fff;
    --sv-hero-panel: #26385e;
    position: relative;
    z-index: 2;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 88px;
    isolation: isolate;
}
.sv-home-hero__slides {
    position: relative;
    height: var(--sv-hero-height);
    min-height: 440px;
    overflow: hidden;
    background: #273958;
}
.sv-home-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 850ms ease, visibility 850ms ease;
}
.sv-home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.sv-home-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 24, 43, .68) 0%, rgba(13, 24, 43, .38) 55%, rgba(13, 24, 43, .16) 100%);
}
.sv-home-hero__copy {
    position: absolute;
    z-index: 2;
    top: 46%;
    left: max(calc((100% - 1120px) / 2), 7.5%);
    width: min(650px, 58%);
    transform: translateY(-50%);
    color: var(--sv-hero-ink);
}
.sv-home-hero__copy h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(36px, 4.1vw, 58px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
    text-shadow: 0 2px 20px rgba(0,0,0,.16);
}
.sv-home-hero__description,
.sv-home-hero__description p {
    color: rgba(255,255,255,.96);
    font-size: 17px;
    line-height: 1.65;
}
.sv-home-hero__description p { margin: 0 0 8px; }
.sv-home-hero__thumbnails {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: max(calc((100% - 1360px) / 2), 3.5%);
    display: flex;
    width: 154px;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}
.sv-home-hero__thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.52);
    border-radius: 0;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    opacity: .78;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.sv-home-hero__thumbnail:hover,
.sv-home-hero__thumbnail.is-active {
    border-color: #fff;
    opacity: 1;
    transform: translateX(-3px);
}
.sv-home-hero__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sv-home-hero__dots { display: none; }
.sv-home-hero__booking {
    position: absolute;
    z-index: 6;
    bottom: 0;
    left: 50%;
    width: min(1100px, calc(100% - 48px));
    padding: 22px 28px;
    box-sizing: border-box;
    transform: translate(-50%, 50%);
    background: var(--sv-hero-panel);
    box-shadow: 0 14px 36px rgba(17, 29, 48, .2);
}
.sv-home-hero__booking .mphb_sc_search-form {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr .72fr .72fr auto;
    align-items: end;
    gap: 14px;
    margin: 0;
}
.sv-home-hero__booking .mphb-required-fields-tip { display: none; }
.sv-home-hero__booking .mphb_sc_search-form > p {
    min-width: 0;
    margin: 0;
}
.sv-home-hero__booking label {
    display: inline-block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.sv-home-hero__booking input:not([type="submit"]),
.sv-home-hero__booking select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 2px;
    background: #fff;
    color: #303744;
    box-sizing: border-box;
}
.sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"] {
    min-height: 46px;
    padding: 0 25px;
    border: 1px solid #fff;
    border-radius: 2px;
    background: #fff;
    color: #26385e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"]:hover {
    background: transparent;
    color: #fff;
}
.sv-home-hero__booking .mphb-errors-wrapper,
.sv-home-hero__booking .mphb-error {
    grid-column: 1 / -1;
    color: #fff;
}
@media (max-width: 900px) {
    .sv-home-hero__copy { left: 6%; width: 67%; }
    .sv-home-hero__copy h1 { font-size: clamp(34px, 5vw, 46px); }
    .sv-home-hero__description,
    .sv-home-hero__description p { font-size: 15px; }
    .sv-home-hero__thumbnails { right: 3%; width: 126px; gap: 9px; }
    .sv-home-hero__booking { padding: 18px; }
    .sv-home-hero__booking .mphb_sc_search-form { gap: 10px; }
}
@media (max-width: 767px) {
    .sv-home-hero {
        --sv-hero-height: 570px;
        margin-bottom: 178px;
    }
    .sv-home-hero__slides { height: var(--sv-hero-height); min-height: 530px; }
    .sv-home-hero__shade {
        background: linear-gradient(180deg, rgba(13,24,43,.48) 0%, rgba(13,24,43,.28) 54%, rgba(13,24,43,.5) 100%);
    }
    .sv-home-hero__copy {
        top: 31%;
        left: 6%;
        width: 86%;
        max-width: 520px;
        transform: none;
    }
    .sv-home-hero__copy h1 {
        margin-bottom: 14px;
        font-size: clamp(32px, 8vw, 43px);
        line-height: 1.12;
    }
    .sv-home-hero__description,
    .sv-home-hero__description p {
        font-size: 14px;
        line-height: 1.55;
    }
    .sv-home-hero__thumbnails { display: none; }
    .sv-home-hero__dots {
        position: absolute;
        z-index: 5;
        bottom: 62px;
        left: 6%;
        display: flex;
        align-items: center;
        gap: 11px;
    }
    .sv-home-hero__dot {
        width: 9px;
        height: 9px;
        min-width: 9px;
        padding: 0;
        border: 1px solid #fff;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
    }
    .sv-home-hero__dot.is-active { background: #fff; }
    .sv-home-hero__booking {
        bottom: 0;
        width: calc(100% - 32px);
        padding: 16px;
        transform: translate(-50%, 50%);
    }
    .sv-home-hero__booking .mphb_sc_search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper { grid-column: 1 / -1; }
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"] { width: 100%; }
}
@media (max-width: 380px) {
    .sv-home-hero { --sv-hero-height: 550px; }
    .sv-home-hero__copy h1 { font-size: 31px; }
    .sv-home-hero__booking { width: calc(100% - 24px); padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .sv-home-hero__slide { transition: none; }
}

/* Follow-up refinements: keep the hero within Villagio's page container
   and bring the complete booking form into the initial desktop viewport. */
.sv-home-hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    --sv-hero-height: 470px;
    margin-bottom: 105px;
    overflow: visible;
}
.sv-home-hero__slides {
    height: var(--sv-hero-height);
    min-height: 0;
    overflow: hidden;
}
.sv-home-hero__slide {
    background-size: cover;
    background-position: center center;
}
.sv-home-hero__copy {
    left: 7%;
    width: min(610px, 62%);
}
.sv-home-hero__thumbnails {
    right: 3.5%;
    width: 142px;
    gap: 10px;
}
.sv-home-hero__booking {
    bottom: 0;
    width: min(1040px, calc(100% - 64px));
    padding: 19px 24px;
    transform: translate(-50%, 42%);
    background: #26385e;
    box-shadow: 0 12px 28px rgba(17, 29, 48, .18);
}
.sv-home-hero__booking .mphb_sc_search-form {
    grid-template-columns: 1.3fr 1.3fr .72fr .72fr 124px;
    gap: 16px;
}
.sv-home-hero__booking .mphb_sc_search-form > p {
    margin: 0;
}
.sv-home-hero__booking label {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.3;
}
.sv-home-hero__booking input:not([type="submit"]),
.sv-home-hero__booking select {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d9dce3;
    border-radius: 2px;
}
.sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"],
.sv-home-hero__booking input[type="submit"].button {
    display: block;
    width: 100%;
    min-width: 124px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid #fff;
    border-radius: 2px;
    background: #fff;
    color: #26385e;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}
.sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"]:hover,
.sv-home-hero__booking input[type="submit"].button:hover {
    background: #26385e;
    color: #fff;
}
.sv-home-hero + .wrapper,
.sv-home-hero + .content-area {
    background: #fff;
}
@media (max-width: 1100px) and (min-width: 768px) {
    .sv-home-hero { --sv-hero-height: 450px; }
    .sv-home-hero__booking {
        width: calc(100% - 40px);
        padding: 16px 18px;
    }
    .sv-home-hero__booking .mphb_sc_search-form {
        grid-template-columns: 1.2fr 1.2fr .65fr .65fr 112px;
        gap: 10px;
    }
    .sv-home-hero__booking input[type="submit"].button {
        min-width: 112px;
        padding: 0 12px;
    }
}
@media (max-width: 767px) {
    .sv-home-hero {
        --sv-hero-height: 500px;
        width: 100%;
        margin-left: 0;
        margin-bottom: 175px;
    }
    .sv-home-hero__slides {
        height: var(--sv-hero-height);
        min-height: 0;
    }
    .sv-home-hero__booking {
        bottom: 0;
        width: calc(100% - 32px);
        padding: 16px;
        transform: translate(-50%, 43%);
    }
    .sv-home-hero__booking .mphb_sc_search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper {
        grid-column: 1 / -1;
    }
    .sv-home-hero__booking input[type="submit"].button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
    }
}

/* Match the original Villagio introduction section beneath the hero. */
.front-wrapper {
    background: #fff;
}
.front-wrapper .entry-header {
    margin-top: 24px;
    text-align: center;
}
.front-wrapper .entry-header .entry-title {
    margin-bottom: 14px;
    font-size: clamp(26px, 2.5vw, 34px);
    line-height: 1.2;
}
.front-wrapper .entry-content > p:first-child {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
    font-size: 15px;
    line-height: 1.7;
}
@media (max-width: 767px) {
    .front-wrapper .entry-header { margin-top: 20px; }
    .front-wrapper .entry-content > p:first-child {
        padding: 0 18px;
        margin-bottom: 26px;
        font-size: 14px;
    }
}

/* Final sizing and containment refinements. */
.sv-home-hero,
.sv-home-hero__slides {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.sv-home-hero {
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.sv-home-hero__slides {
    position: relative;
    overflow: hidden;
    contain: paint;
}
.sv-home-hero__slide {
    max-width: 100%;
}
.sv-home-hero__booking {
    box-sizing: border-box;
    padding-top: 14px;
    padding-bottom: 14px;
}
.sv-home-hero__booking .mphb_sc_search-form > p {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}
.sv-home-hero__booking .mphb_sc_search-form > p br {
    display: none;
}
.sv-home-hero__booking label {
    min-height: 18px;
    margin: 0 0 6px;
    line-height: 18px;
}
.sv-home-hero__booking input:not([type="submit"]),
.sv-home-hero__booking select,
.sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"],
.sv-home-hero__booking input[type="submit"].button {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
}
.sv-home-hero__booking .mphb_sc_search-form {
    align-items: end;
}
.front-wrapper .entry-header {
    margin-top: 52px;
}
.front-wrapper .entry-content > p:first-child {
    margin-bottom: 36px;
}
@media (max-width: 1100px) and (min-width: 768px) {
    .sv-home-hero__booking {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
@media (max-width: 767px) {
    .sv-home-hero {
        width: 100%;
        max-width: 100%;
    }
    .sv-home-hero__booking {
        padding: 13px;
    }
    .sv-home-hero__booking input:not([type="submit"]),
    .sv-home-hero__booking select,
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"],
    .sv-home-hero__booking input[type="submit"].button {
        height: 40px;
        min-height: 40px;
    }
    .front-wrapper .entry-header {
        margin-top: 42px;
    }
}

/* Screenshot correction: preserve the Villagio content width and keep the
   MotoPress search controls in one clean desktop row. */
body.home {
    background: #fff;
}
body.home #page.site {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
}
#content > .sv-home-hero {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 82px !important;
    padding: 0;
    left: auto !important;
    right: auto !important;
    overflow: visible;
}
#content > .sv-home-hero .sv-home-hero__slides {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
#content > .sv-home-hero .sv-home-hero__booking {
    width: min(1000px, calc(100% - 80px));
    padding: 16px 22px;
    transform: translate(-50%, 42%);
}
#content > .sv-home-hero .mphb_sc_search-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .72fr) minmax(0, .72fr) 120px;
    align-items: end;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
}
#content > .sv-home-hero .mphb_sc_search-form > p.mphb-required-fields-tip {
    display: none !important;
}
#content > .sv-home-hero .mphb_sc_search-form > p {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}
#content > .sv-home-hero .mphb_sc_search-form > p br {
    display: none !important;
}
#content > .sv-home-hero .mphb_sc_search-form label {
    display: block;
    min-height: 17px;
    margin: 0 0 5px !important;
    line-height: 17px;
}
#content > .sv-home-hero .mphb_sc_search-form input:not([type="submit"]),
#content > .sv-home-hero .mphb_sc_search-form select {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box;
}
#content > .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
    align-self: end;
}
#content > .sv-home-hero .mphb_sc_search-form input[type="submit"],
#content > .sv-home-hero .mphb_sc_search-form input[type="submit"].button {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box;
    border: 1px solid #fff !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #26385e !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    letter-spacing: .04em;
    text-align: center;
}
#content > .sv-home-hero .mphb_sc_search-form input[type="submit"]:hover {
    background: #e9edf5 !important;
}
.front-wrapper .entry-header {
    margin-top: 58px;
}
@media (max-width: 1100px) and (min-width: 768px) {
    #content > .sv-home-hero .sv-home-hero__booking {
        width: calc(100% - 48px);
        padding: 15px 16px;
    }
    #content > .sv-home-hero .mphb_sc_search-form {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .65fr) minmax(0, .65fr) 108px;
        gap: 9px;
    }
}
@media (max-width: 767px) {
    #content > .sv-home-hero {
        width: 100% !important;
        margin-bottom: 190px !important;
    }
    #content > .sv-home-hero .sv-home-hero__booking {
        width: calc(100% - 24px);
        padding: 14px;
    }
    #content > .sv-home-hero .mphb_sc_search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }
    #content > .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
        grid-column: 1 / -1;
    }
    #content > .sv-home-hero .mphb_sc_search-form input[type="submit"] {
        height: 42px !important;
        line-height: 42px !important;
    }
    .front-wrapper .entry-header {
        margin-top: 46px;
    }
}

/* November 7 layout refinement: compact hero and single-row booking panel. */
.sv-home-hero {
    --sv-hero-height: 520px !important;
}
.sv-home-hero__slides {
    height: 520px !important;
    min-height: 520px !important;
}
.sv-home-hero__copy h1 {
    font-size: 36px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
}
@media (min-width: 768px) {
    #content > .sv-home-hero .sv-home-hero__booking {
        height: 100px !important;
        min-height: 100px !important;
        padding: 12px 18px !important;
        box-sizing: border-box !important;
        display: flex;
        align-items: center;
        transform: translate(-50%, 50%) !important;
    }
    #content > .sv-home-hero .mphb_sc_search-wrapper,
    #content > .sv-home-hero .mphb_sc_search-form {
        width: 100%;
        margin: 0 !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .72fr) minmax(0, .72fr) 120px !important;
        align-items: end !important;
        gap: 12px !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form > p.mphb-required-fields-tip {
        display: none !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form > p {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form > p br {
        display: none !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form label {
        min-height: 16px !important;
        margin: 0 0 4px !important;
        line-height: 16px !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form input:not([type="submit"]),
    #content > .sv-home-hero .mphb_sc_search-form select,
    #content > .sv-home-hero .mphb_sc_search-form input[type="submit"] {
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
        align-self: end !important;
    }
}
@media (max-width: 767px) {
    .sv-home-hero,
    .sv-home-hero__slides {
        --sv-hero-height: 520px !important;
        height: 520px !important;
        min-height: 520px !important;
    }
    .sv-home-hero__copy h1 {
        font-size: 36px !important;
    }
    #content > .sv-home-hero .sv-home-hero__booking {
        height: auto !important;
        min-height: 100px !important;
    }
}

/* Booking panel: full-height accent action on desktop; normal flow on mobile. */
@media (min-width: 768px) {
    #content > .sv-home-hero .sv-home-hero__booking {
        height: 150px !important;
        min-height: 150px !important;
        padding: 0 !important;
        overflow: hidden;
        background: #26385e !important;
        box-sizing: border-box !important;
        display: block !important;
        transform: translate(-50%, 50%) !important;
    }
    #content > .sv-home-hero .mphb_sc_search-wrapper,
    #content > .sv-home-hero .mphb_sc_search-form {
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .72fr) minmax(0, .72fr) 124px !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form > p:not(.mphb_sc_search-submit-button-wrapper):not(.mphb-required-fields-tip) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper {
        display: flex !important;
        align-self: stretch !important;
        align-items: stretch !important;
        height: 150px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form input[type="submit"],
    #content > .sv-home-hero .mphb_sc_search-form input[type="submit"].button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 150px !important;
        min-height: 150px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #3d9fc2 !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: .04em !important;
        text-align: center !important;
        text-transform: uppercase;
    }
    #content > .sv-home-hero .mphb_sc_search-form input[type="submit"]:hover {
        background: #318eaf !important;
        color: #fff !important;
    }
    #content > .sv-home-hero .mphb_sc_search-form input:not([type="submit"]),
    #content > .sv-home-hero .mphb_sc_search-form select {
        height: 40px !important;
        min-height: 40px !important;
    }
}
/* Refined booking form alignment for desktop and mobile. */
@media (min-width: 768px) {
    .sv-home-hero__booking {
        padding: 0 !important;
        overflow: hidden !important;
        background: #26385e !important;
        box-sizing: border-box !important;
    }
    .sv-home-hero__booking .mphb_sc_search-wrapper {
        width: 100% !important;
        height: 150px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sv-home-hero__booking .mphb_sc_search-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .72fr) minmax(0, .72fr) 145px !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        height: 150px !important;
        margin: 0 !important;
        padding: 0 0 0 28px !important;
        box-sizing: border-box !important;
    }
    .sv-home-hero__booking .mphb_sc_search-form > p.mphb-required-fields-tip {
        display: none !important;
    }
    .sv-home-hero__booking .mphb_sc_search-form > p.mphb_sc_search-check-in-date,
    .sv-home-hero__booking .mphb_sc_search-form > p.mphb_sc_search-check-out-date,
    .sv-home-hero__booking .mphb_sc_search-form > p.mphb_sc_search-adults,
    .sv-home-hero__booking .mphb_sc_search-form > p.mphb_sc_search-children {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sv-home-hero__booking .mphb_sc_search-form > p br { display: none !important; }
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper {
        display: block !important;
        width: 100% !important;
        height: 150px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .sv-home-hero__booking .mphb_sc_search-submit-button-wrapper input[type="submit"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 150px !important;
        min-height: 150px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #3d9fc2 !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        text-transform: uppercase !important;
    }
}
@media (max-width: 767px) {
    .sv-home-hero {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 34px !important;
        overflow: visible !important;
    }
    .sv-home-hero .sv-home-hero__slides {
        position: relative !important;
        order: 1 !important;
        flex: 0 0 520px !important;
        width: 100% !important;
        height: 520px !important;
        min-height: 520px !important;
    }
    .sv-home-hero .sv-home-hero__booking {
        position: relative !important;
        inset: auto !important;
        order: 3 !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: calc(100% - 30px) !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 20px 18px !important;
        transform: none !important;
        overflow: visible !important;
        background: #26385e !important;
        box-sizing: border-box !important;
        z-index: 3 !important;
    }
    .sv-home-hero .mphb_sc_search-wrapper {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sv-home-hero .mphb_sc_search-form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start !important;
        gap: 14px 12px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .sv-home-hero .mphb_sc_search-form > p.mphb-required-fields-tip { display: none !important; }
    .sv-home-hero .mphb_sc_search-form > p.mphb_sc_search-check-in-date,
    .sv-home-hero .mphb_sc_search-form > p.mphb_sc_search-check-out-date,
    .sv-home-hero .mphb_sc_search-form > p.mphb_sc_search-adults,
    .sv-home-hero .mphb_sc_search-form > p.mphb_sc_search-children {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sv-home-hero .mphb_sc_search-form > p br { display: none !important; }
    .sv-home-hero .mphb_sc_search-form label {
        display: block !important;
        margin: 0 0 6px !important;
        color: #fff !important;
        line-height: 1.3 !important;
    }
    .sv-home-hero .mphb_sc_search-form input:not([type="submit"]),
    .sv-home-hero .mphb_sc_search-form select {
        display: block !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .sv-home-hero .mphb_sc_search-submit-button-wrapper {
        display: block !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sv-home-hero .mphb_sc_search-submit-button-wrapper input[type="submit"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #3d9fc2 !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 48px !important;
    }
    .front-wrapper .entry-header { margin-top: 46px !important; }

    /* Keep the slide pagination inside the image area, never over the form. */
    .sv-home-hero__dots {
        position: absolute !important;
        top: 488px !important;
        bottom: auto !important;
        left: 6% !important;
        z-index: 5 !important;
    }

    /* Equal, deliberate breathing room above and below the mobile form. */
    .sv-home-hero .sv-home-hero__booking {
        padding: 24px 18px !important;
    }
    .sv-home-hero .mphb_sc_search-form {
        row-gap: 14px !important;
    }

    /* Separate the booking card from the slider and tighten the intro spacing. */
    .sv-home-hero {
        margin-bottom: 0 !important;
    }
    .sv-home-hero .sv-home-hero__booking {
        margin: 14px auto 0 !important;
        box-shadow: 0 10px 24px rgba(20, 34, 58, .16) !important;
        position: relative !important;
        z-index: 3 !important;
    }
    .sv-home-hero .sv-home-hero__slides {
        position: relative !important;
        z-index: 1 !important;
    }
    .front-wrapper .entry-header {
        margin-top: 8px !important;
    }

    .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper input[type="submit"],
    .sv-home-hero .mphb_sc_search-form input[type="submit"],
    .sv-home-hero .mphb_sc_search-form input[type="submit"].button {
        background: #3d9fc2 !important;
        background-color: #3d9fc2 !important;
        color: #fff !important;
        border: 0 !important;
    }
    .sv-home-hero .mphb_sc_search-form .mphb_sc_search-submit-button-wrapper input[type="submit"]:hover,
    .sv-home-hero .mphb_sc_search-form input[type="submit"]:hover {
        background: #318eaf !important;
        background-color: #318eaf !important;
        color: #fff !important;
    }
}

/* Final mobile spacing and Search button override. */
@media (max-width: 767px) {
    body.home #content > .sv-home-hero {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.home #content > .front-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body.home #content > .front-wrapper .entry-header {
        margin: 8px 0 0 !important;
        padding: 0 !important;
    }
    body.home #content > .front-wrapper .entry-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body.home #content > .front-wrapper .entry-content {
        margin-top: 8px !important;
        padding-top: 0 !important;
    }
    body.home #content > .sv-home-hero .sv-home-hero__booking {
        margin-bottom: 0 !important;
    }
    body.home .sv-home-hero__booking form.mphb_sc_search-form p.mphb_sc_search-submit-button-wrapper > input[type="submit"].button,
    body.home .sv-home-hero__booking form.mphb_sc_search-form input[type="submit"].button {
        -webkit-appearance: none !important;
        appearance: none !important;
        background: #3d9fc2 !important;
        background-color: #3d9fc2 !important;
        background-image: none !important;
        color: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    body.home .sv-home-hero__booking form.mphb_sc_search-form p.mphb_sc_search-submit-button-wrapper > input[type="submit"].button:hover,
    body.home .sv-home-hero__booking form.mphb_sc_search-form input[type="submit"].button:focus {
        background: #318eaf !important;
        background-color: #318eaf !important;
        color: #ffffff !important;
    }
}

/* Keep the recommendation panel full-width inside Villagio's flex-based grid wrapper. */
@media (min-width: 48em) {
    body .mphb_sc_search_results-wrapper.mphb_sc_rooms-wrapper.grid-view {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }
    /* Every direct child except a room card must occupy its own full-width row.
       MotoPress can render the introductory label as a div or another element,
       not only as a paragraph or the known results-info class. */
    body .mphb_sc_search_results-wrapper.mphb_sc_rooms-wrapper.grid-view > :not(.mphb-room-type) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body .mphb_sc_search_results-wrapper.mphb_sc_rooms-wrapper.grid-view > .mphb-room-type {
        flex: 0 0 33.3333% !important;
        width: 33.3333% !important;
        max-width: 33.3333% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 1.875em !important;
        padding-right: 1.875em !important;
    }
}

/* Recommendation summary: left-aligned, with accommodation details and price separated. */
body .mphb_sc_search_results-wrapper .mphb-recommendation-title {
    text-align: left !important;
    margin: 28px 0 14px !important;
}
body .mphb_sc_search_results-wrapper form.mphb-recommendation {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
    text-align: left !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-details-list {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-details-list > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e0e1e5 !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 16px !important;
    row-gap: 6px !important;
    text-align: left !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-item-count,
body .mphb_sc_search_results-wrapper .mphb-recommendation-item-link {
    grid-column: 1 !important;
    justify-self: start !important;
    text-align: left !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-item-link {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommedation-item-subtotal {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-item-guests {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    align-self: start !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    color: #666 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-item-guests span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-total {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 16px 0 !important;
    text-align: right !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation-reserve-button {
    display: inline-block !important;
    float: left !important;
    margin: 0 !important;
}
body .mphb_sc_search_results-wrapper .mphb-recommendation:after {
    display: block;
    clear: both;
    content: "";
}
