/*
Theme Name:     DFD Ronneby Child Theme
Theme URI: 		http://rnbtheme.com/
Description:    ronneby - Highly Functional Multifaceted WP Theme
Author:         DFD
Author URI:		http://rnbtheme.com/
Template:       dfd-ronneby
Version:        1.0.0
*/

/* ====== OHBE layout como la imagen (3 bloques, centro en 2 filas) ====== */

form.ohbe-search-form .input-group{
    display:grid;
    grid-template-columns: 40% 40% 20%; /* izq / centro / botón */
    grid-template-rows: 1fr 1fr;            /* entrada / salida */
    align-items:stretch;
    width:100%;
    min-height:100px;
    /**background:#9b4f3a;**/
    background:transparent;
    margin-bottom: 0;
    font-family: "Archiaregular";

}

/* Oculta los hidden */
form.ohbe-search-form .input-group > input[type="hidden"]{
    display:none !important;
}

/* Bloque izquierdo (texto) */
form.ohbe-search-form .input-group::before{
    content:"RESERVA TU ESTANCIA\A CON LA MEJOR TARIFA";
    white-space:pre-line;
    grid-column:1;
    grid-row:1 / 3; /* ocupa las 2 filas */
    display:flex;
    align-items:center;
    padding:0 24px;
    color:#fff;
    text-transform:uppercase;
    line-height:1.15;
    border-right:1px solid rgba(255,255,255,.65);
    /**margin-left: 25%;**/
    font-size: 30px;
    font-family: "Archiaregular";
}

/* Entrada (fila 1, centro) */
form.ohbe-search-form .input-group > input.ohbe-datepicker-arrival{
    grid-column:2;
    grid-row:1;
    border:0;
    background:transparent;
    color:#fff;
    padding:0 52px 0 22px; /* espacio para icono */
    text-transform:uppercase;
    border-bottom:1px solid rgba(255,255,255,.65); /* separador horizontal */
    border-radius:0;
    height: 50px;
    font-family: "Archiaregular";

}

/* EN */
html[lang^="en"] .ohbe-search-form .input-group::before{
    content:"BOOK YOUR STAY AT THE BEST RATE";
    text-align: left;

}

/* FR */
html[lang^="nl-NL"] .ohbe-search-form .input-group::before{
    content:"BOEK DIRECT EN PROFITEER VAN ONS BESTE TARIEF";
    text-align: left;

}

/* DE */
html[lang^="de"] .ohbe-search-form .input-group::before{
    content:"BUCHEN SIE IHREN AUFENTHALT ZUM BESTEN PREIS";
    text-align: left;
}

/* Salida (fila 2, centro) */
form.ohbe-search-form .input-group > input.ohbe-datepicker-departure{
    grid-column:2;
    grid-row:2;
    border:0;
    background:transparent;
    color:#fff;
    padding:0 52px 0 22px;
    text-transform:uppercase;
    border-radius:0;
    height: 50px;

}

/* Botón (derecha, ocupa toda la altura) */
form.ohbe-search-form .input-group > button.ohbe-search-submit{
    grid-column:3;
    grid-row:1 / 3;
    border:0;
    margin:0;
    border-radius:0;
    /**background:#8a4432;**/
    background:transparent;
    color:#fff;
    font-weight:600;
    text-transform:uppercase;
    cursor:pointer;
    border-left:1px solid rgba(255,255,255,.65);
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex;            /* para centrar el texto */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Focus limpio */
form.ohbe-search-form input:focus,
form.ohbe-search-form button:focus{
    outline:none;
    box-shadow:none;
}
/* Forzar que los inputs ocupen TODO el ancho de su celda del grid */
form.ohbe-search-form .input-group > input.ohbe-datepicker-arrival,
form.ohbe-search-form .input-group > input.ohbe-datepicker-departure{
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;   /* clave en grid */
    box-sizing: border-box !important;
}
form.ohbe-search-form .input-group{
    display: grid !important;
}


/* Placeholder moderno */
form.ohbe-search-form .input-group > input::placeholder{
    color: #ffffff;
    font-size: 20px;
    opacity: 1; /* Firefox */
    font-family: "Archiaregular";
}

/* Safari / iOS */
form.ohbe-search-form .input-group > input::-webkit-input-placeholder{
    color: #ffffff;
    font-size: 20px;
}

/* Firefox antiguo */
form.ohbe-search-form .input-group > input::-moz-placeholder{
    color: #ffffff;
    font-size: 20px;
    opacity: 1;
}

/* IE / Edge legacy (por si acaso) */
form.ohbe-search-form .input-group > input:-ms-input-placeholder{
    color: #ffffff;
    font-size: 20px;
}


.wpb_wrapper p > a:not(.dk_toggle):before {
    border-bottom-style: none !important;
}

/**Menu WPML**/
li[id^="nav-menu-item-wpml-ls-"] > .sub-nav {
    background: #a35139 !important;
}

/**Contact form policy fix**/
a.dfd-custom-link {
    font-family: 'Montserrat';
    font-size: 17px;
    color: #a35139;
    font-weight: 600;
    text-decoration: underline;
}

/* ====== Responsive ====== */
@media (max-width: 768px){
    form.ohbe-search-form .input-group{
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        min-height:auto;
    }

    form.ohbe-search-form .input-group::before{
        grid-column:1;
        grid-row:1;
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.35);
        padding:14px 16px;
    }

    form.ohbe-search-form .input-group > input.ohbe-datepicker-arrival{
        grid-column:1;
        grid-row:2;
        border-left:0;
        border-right:0;
    }

    form.ohbe-search-form .input-group > input.ohbe-datepicker-departure{
        grid-column:1;
        grid-row:3;
        border-left:0;
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.35);
    }

    form.ohbe-search-form .input-group > button.ohbe-search-submit{
        grid-column:1;
        grid-row:4;
        border-left:0;
        min-height:56px;
        font-size: 17px !important;
    }

    iframe.iframe_maps {
        width: 100% !important;
    }
}

/**Iframe Reservas**/
.ohbe-page iframe {
    min-height: 600px;
}
@media (max-width: 1224px) {
    .custom_title_column h2.widget-title.dfd-title {
        font-size: 20px;
    }
}
/* ====== TABLET (hasta 1024px) ====== */
@media (max-width: 1024px) {
    .ohbe-page iframe {
        min-height: 400px;
    }

    .column_adjust .dfd-heading-shortcode h2 {
        font-size: 16px !important;
    }
    .custom_title_column h2.widget-title.dfd-title {
        font-size: 15px;
    }
}
/* ====== MÓVIL (hasta 768px) ====== */
@media (max-width: 768px) {
    .ohbe-page iframe {
        min-height: 300px;
    }
    form.ohbe-search-form .input-group::before{
        font-size: 25px;
    }
}