/*
	Custom CSS
	Please make sure your CSS rules are 
	more particular / have higher priority
	then other page styles
*/
 #events h3   {
	/* add your css rule here */
}


 #events p.duration, #events div.duration   {
	/* add your css rule here */
}


 #events p.description, #events div.description   {
	/* add your css rule here */
}


 #events .selectedEvent   {
	/* add your css rule here */
}


 #events input.reserve_time_btn   {
	/* add your css rule here */
}


 #events input.select_another_btn   {
	/* add your css rule here */
}


 #eventForm #start_date-block-container h3, #eventForm #timeline-container h3   {
	/* add your css rule here */
}


 #eventForm #save_button   {
	/* add your css rule here */
}


 div.ui-widget-content   {
	/* add your css rule here */
}


 div.ui-widget-header   {
	/* add your css rule here */
}


 #timeline-container table.timeline   {
	/* add your css rule here */
}


 .timeline td.not_worked_time   {
	/* add your css rule here */
}


 .timeline td.free_time   {
	/* add your css rule here */
}


 .timeline td.selected_time   {
	/* add your css rule here */
}


 .timeline td.reserved_time   {
	/* add your css rule here */
}


 div#loading   {
	/* add your css rule here */
}


 #start_date-block-container .zend_form dt, start_date-block-container .zend_form dt b, start_date-block-container .zend_form dd label   {
	/* add your css rule here */
}

/* ========================================================= */
/* MEJORA UX: BOTÓN DE "VOLVER ATRÁS" ESTILO BOUTIQUE        */
/* ========================================================= */

/* 1. Lo volvemos "fantasma" para que NO empuje el texto de la hora */
#sb_back_button {
    display: block !important;
    visibility: visible !important;
    position: absolute !important; /* MAGIA: Lo saca del flujo para no ocupar espacio */
    left: 15px !important; /* Pegado a la izquierda */
    margin-top: 5px !important; /* Ajuste sutil para alinearse con el texto de la derecha */
    z-index: 50 !important;
}

/* 2. Le damos el diseño elegante al botón */
#sb_back_button a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    background-color: #fceceb !important; /* Fondo rosa clarito */
    color: #a67c52 !important; /* Letra café */
    border: 1px solid #d4a373 !important;
    border-radius: 20px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* 3. Ocultamos la flecha fea o el texto en inglés por defecto del sistema */
#sb_back_button a span,
#sb_back_button a i {
    display: none !important;
}

/* 4. Inyectamos nuestro propio texto */
#sb_back_button a::before {
    content: "« Volver atrás" !important;
}

/* ========================================================= */
/* MEJORA RESPONSIVE: BOTÓN "VER DETALLES" EN CELULARES      */
/* ========================================================= */
@media (max-width: 768px) {
    /* 1. Obligamos al botón a estirarse en lugar de ser un cuadrito */
    .service-item .btn.read-more {
        width: auto !important;
        min-width: 140px !important;
        padding: 5px 15px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 2. Ocultamos el texto original aplastado (si existe) */
    .service-item .btn.read-more span {
        display: none !important;
    }

    /* 3. Inyectamos nuestro texto personalizado al lado de la flecha */
    .service-item .btn.read-more::after {
        content: "Ver detalles" !important;
        font-size: 14px !important;
        font-family: 'Open Sans', sans-serif !important;
        margin-left: 8px !important;
        font-weight: 600 !important;
        color: #666 !important; /* Un gris oscuro elegante */
    }
}

@media (max-width: 768px) {
    /* 1. Contenedor principal */
    .service-item.item.panel.-v4 {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* 2. Ocultar título flotante */
    .service-item.item.panel.-v4 .mobile-title {
        display: none !important;
    }

    /* 3. Preloader - imagen cuadrada */
    .service-item.item.panel.-v4 .preloader {
        flex: 0 0 45% !important;
        width: 45% !important;
        align-self: stretch !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        min-height: 180px !important;
    }

    /* 4. Enlace ocupa todo el preloader */
    .service-item.item.panel.-v4 .preloader > a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* 5. Div user img ocupa todo */
    .service-item.item.panel.-v4 .preloader .user.img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 6. Imagen cuadrada que llena todo */
    .service-item.item.panel.-v4 .preloader img.user-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* 7. Columna derecha - contenido pegado a la derecha */
    .service-item.item.panel.-v4 .one-line {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-end !important;
        padding: 15px 15px 15px 10px !important;
        margin: 0 !important;
        min-width: 0 !important;
        text-align: right !important;
    }

    /* 8. Título pegado a la derecha */
    .service-item.item.panel.-v4 .one-line .content .cap.title {
        display: block !important;
        font-size: 0.9em !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        color: #333 !important;
        line-height: 1.3 !important;
        text-align: right !important;
        width: 100% !important;
    }

    /* 9. Info bar pegada a la derecha */
    .service-item.item.panel.-v4 .info-bar.bar-service {
        margin-bottom: 12px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-end !important;
    }

    /* 10. Botones pegados a la derecha */
    .service-item.item.panel.-v4 .btn-bar {
        padding: 0 !important;
        margin-top: 10px !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    /* 11. Botón Ver detalles */
    .service-item.item.panel.-v4 .btn-bar .wrap-read-more {
        flex: 1 !important;
    }

    /* 12. Botón Seleccionar */
    .service-item.item.panel.-v4 .btn-bar .btn-round-mask {
        flex: 1 !important;
    }
}